Question:

Ads

 
 
 

Share on Google+Share on Google+

Gokul

2 Answer(s)      9 years ago
Posted in : Struts
Добовляйтесь в группу "МАЙНКРАФТА" Будьте участниками Группы Помогаите нам и себе Наша группа https://vk.com/club60851464 Есть свой сервер! Хорошая атмосфера. [Хороши спавн зделаный в ручную] Добрая администрация, хорошие игроки адекватные! Ждём вас у нас в группе и на сервере!
Ads
View Answers

April 30, 2008 at 1:35 PM


Hi


try{
Statement st = con.createStatement();
String query = "SELECT * FROM insert_retrive";
ResultSet rs = st.executeQuery(query);
while (rs.next()) {
%>
</tr>
<tr>
<td width="50%" valign="right"><%=rs.getInt("id")%></td>
<td width="50%" valign="right"><%=rs.getString("userid")%></td>
<td width="50%" valign="right"><%=rs.getString("lastname")%></td>
<td width="50%" valign="right"><%=rs.getString("qualification")%></td>
<td width="50%" valign="right"><%=rs.getString("engineer")%></td>
<td width="50%" valign="right"><%=rs.getString("docter")%></td>
</tr>
<%}
out.println("<br/><a href=Insert-and-Retrieve.jsp><b>Home</b></a>");
rs.close();
con.close();

}
catch (SQLException ex){
System.out.println("SQL statement is not executed!");
}
}


--------------------


April 30, 2008 at 6:42 PM


Hi
Thank you For reply
but Im using the Arraylist and adding HashMap object in it
As you can see the code in my ques
I want to use only struts tag not scriplet tag
So pl help me out

Thanks and Regards
Gokul

Ads









Related Tutorials/Questions & Answers:
Tutorials   
Java Spring Hibernate Struts Training Dynamic tabs in struts 1.2 Unable to upload a file to mysql database using struts1 Pagination in struts 2 struts2 filterdispatcher is deprecated please use the new filters viewing How to add struts2 dependency in Maven? Struts Exception Handling can you check below code if any erors multimedia how to display the value of termcell name in label class not found exception Where to learn Struts 2? dropdown cacheing Upload and Download Large files in jsp What is Struts 2 framework struts and hibernate based health care project source code struts and hibernate based health care project source code Struts 2 Integration with Struts 1 About captcha of strut2 About captcha of strut2 Which is the good website for struts 2 tutorials? advance java source code source code In Struts 2 how to pass the Struts struts internationalization for Korean language struts2 Struts2 and Hibernate Fetch Data Base Value Struts2 and Hibernate Fetch Data Base Value Struts2 and Hibernate i want to create an application with only a button which on click displays table from database using struts2 and hibernate on eclipse Struts2 and Hibernate Struts2 and Hibernate Struts2 validation Procedure Struts2 validation Procedure Struts2 validation Procedure Struts2 validation Procedure Struts 2 action-validation.xml not loading Struts-2 and Ajax integration STRUTS QUESTION conerting web project into .exe file About Select tag ScartApplication aplicacion ecommerce struts 1.3 struts 1.3 sms prob Need to know struts1 all jar file names struts with hibernate

Ads

 
Advertisement null

Ads