You can call a servlet from jsp by specifying the url in the action
atribute of the form tag.
Pass the parmeters either as querystring or use the post method. Use the
getParameter function of the request object to obtain the values from the
form.
You can use response.redirect to call the jsp page.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ASHWANI KALRA
NIIT LTD.
E-Commerce Group, SEB
Email : [EMAIL PROTECTED]
           [EMAIL PROTECTED]
Phone :091-11-6203577(D),6203578
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~







> ----------
> From:         Ajay Kumar Vasireddy
> Reply To:     Ajay Kumar Vasireddy
> Sent:         Saturday, February 26, 2000 1:14 AM
> To:   [EMAIL PROTECTED]
> Subject:      JSP-Servlet,Servlet-JSP  Communication
>
> Hi All,
>           I've a Login.JSP Page
> After i enter the user name and password, it has to call a Servlet for
> login validation.
> if the login is successful,it'll show some jsp page.
> if the login not successful,it'll redirect the user to the same
> login.JSP  page with
> some error message.
>
> How should i procced doing this.
>
> How to pass parameters from jsp to servlet.
>
> How to call a servlet from JSP Page.
>
> How to call a JSP Page from a Servlet.
>
> Any inputs are appreciated .
>
> Is there any good web site where can i get info on JSP other than Sun
> Site.
>
> Thanks in advance
> Ajay
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to