What are the advantages of using JSP over HTML? Can I transfer the control from a form in my HTML page to a servlet? I know I can do it in JSP, what about HTML?
NOTE : [I]This question was asked by tereeves[/I]
Printable View
What are the advantages of using JSP over HTML? Can I transfer the control from a form in my HTML page to a servlet? I know I can do it in JSP, what about HTML?
NOTE : [I]This question was asked by tereeves[/I]
seems to be this guy has no idea about jsp and html....
html can be used with any server side programming ..
hi lokesh
see ,u have got it wrong.HTML is a language to create forms etc.It can b used with JSP as well as servlet.
For eg with HTML u can create a form say two text field named User name and password.HTML is the form which u see when u open a website.(filling forms)
JSP will accept the username and password ,verify it with DB( using SQL coding used )and if valid forward u to other web page.
This topic is very vast and no one can explain everything here.So better take a JSP book and start reading
Bye:)
Hi,
through the tag,
<form action="servletname">
u can pass the request from HTML to Servlet.
Advantage of HTML over JSP is,
for eg,
u cann't access the session contents using,
<% = session.getAttribute("userName");%>
i htink u got the thing now.