Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Developing web page using JSP and Servlets

 
Dilip kumar
Ranch Hand
Posts: 360
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3244
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic