i am happy to inform that i have created a JSP but now
i am in a different doubt i am veryfying my abc.jsp using web browser option it shows a window saying write name of your site now what i must write here ?or it gives other option below saying create FTP server etc...
i am working in LAN ie i am working on client machine so will i proceed now please if anyone can help
Here's a simple example where you send 2 parameters to a JSP page. This first page can be pure HTML (you can call it form.html):
Note that on the action attribute of the form tag, we're specifying a page called result.jsp. This is the page that will receive these parameters, and in this case it has to be in the same directory of the form.html page. Here's the code of the result.jsp page:
Well, I hope this helps. Take care, partner. [ December 28, 2007: Message edited by: Roberto Perillo ]
Originally posted by Roberto Perillo: You'll learn that a JSP page is not the place to put Java code
Robert is quite correct.
Since you are just starting out, developing good coding habits at the start is always a good idea. JSPs should not be used for processing data, but to create the display. As such, your action should submit to a servlet (rather than a JSP) to perform the data processing. When the servlet is finished with its job, it can forward to a JSP to show the results.
There are some articles that might be helpful to you at this point. Please take a look at this article and this article. [ December 28, 2007: Message edited by: Bear Bibeault ]