*
The moose likes JSP and the fly likes Developing web page using JSP and Servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Developing web page using JSP and Servlets" Watch "Developing web page using JSP and Servlets" New topic
Author

Developing web page using JSP and Servlets

Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
Hi,
Since beginning I'm working with microsoft products. I don't have much experience with JSP/Servlets. I have basic question. In ASP we can combine HTML and Server side scripting like this
<%@ Language=VBScript %>
<%
Sub FetchRecordsFromDatabase()
:
:
:
vData = RS.getRows()
End Sub
Call FetchRecordsFromDatabase()
%>
<HTML>
<BODY>
<table>
<% for iLoop1 = 0 to Ubound(vData,1) %>
<tr>
<% for iLoop2 = 0 to Ubound(vData,2) %>
<td>
<%=vData(iLoop1,iLoop2)%>
</td>
<%next%>
</tr>
<% next %>
</table>
<input type=button value="Submit">
</BODY>
</HTML>
I was wondering how to implement this type of logic using JSP and Servlets.
I really appreciate any ideas.
Thanks
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
Dilipkumar
You can do basically the same thing with a JSP page as you can do with an ASP. With servlets you can not intermix things. Here are a couple of good starting points for you.
servlet tutorial
JSP tutorial


Dave
 
jQuery in Action, 2nd edition
 
subject: Developing web page using JSP and Servlets
 
Similar Threads
Sending Email from jsp page
calling action while loading the home page
jsp:include and c:import combination/nesting
Conversion configuration objects from ASP to JSP
JSP and XML