File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » JSP
Bookmark "Developing web page using JSP and Servlets" Watch "Developing web page using JSP and Servlets" New topic

Developing web page using JSP and Servlets

Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
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()
<% for iLoop1 = 0 to Ubound(vData,1) %>
<% for iLoop2 = 0 to Ubound(vData,2) %>
<% next %>
<input type=button value="Submit">
I was wondering how to implement this type of logic using JSP and Servlets.
I really appreciate any ideas.
Dave Vick
Ranch Hand

Joined: May 10, 2001
Posts: 3244
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

I agree. Here's the link:
subject: Developing web page using JSP and Servlets
It's not a secret anymore!