It would be better if you go through some good book like 'Head First servlets & JSP'
Joined: May 08, 2007
thanks Nalini and Pranav for your kind help
but now i am in one more doubt if anyone can help
me on it i have created a html web page in dreamweaver now on the form action event i need to call a jsp in order to pass data from html form to jsp for furthur processing
so i am confused now to where i must write my code for jsp in dreamweaver?
below shown is my code if anyone can help
any help on the above will be realy great thanks in advance
Dhwani:>Its always too soon to quit.
Joined: May 08, 2007
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 ]