hi,
        u can call a servlet from jsp using the following code
<form name="" action="URL of the servlet">
.............
.............
............
..............
<input type=submit>
</form>

this would submit the form to the servlet where u can access the contents of
this form and whatever operations u want accessing database or anything else
a servlet can do from the servlet redirect to the jsp page send the data u
want to send to ths jsp as parameters and manipulate them in the jsp as u
wish
hope this is clear

regards
saravana kumar
> ----------
> From:         Matt Krevs[SMTP:[EMAIL PROTECTED]]
> Sent:         Tuesday, October 12, 1999 9:32 AM
> To:   ACI Team (Chennai)
> Subject:      RE: Calling a servlet from a JSP page
>
> Thanks
>
> But how do I access the results of the servlet call from within the JSP
> page?
>
> I dont want the raw output of the servlet to be included in the output of
> my
> JSP/HTML file. I want to somehow capture the output and do something with
> it.
>
> > -----Original Message-----
> > From: ACI Team (Chennai) [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, 12 October 1999 13:32
> > To: 'Matt Krevs'
> > Subject: RE: Calling a servlet from a JSP page
> >
> >
> > hi, you can use servlet tag inside you jsp.here's the syntax of
> > the Servlet
> > tag.
> >
> >
> > <SERVLET NAME="servlet_name" CODE="servlet_class_name"
> > CODEBASE="URL_for_remote_loading"
> >    initparm1="initparm_value">
> > <PARAM NAME="parm_name" VALUE="param_value">
> > </SERVLET>
> >
> > Name is optional here
> >
> > Happy Coding,
> > Diwan
> >
> >
> >
> > > ----------
> > > From:     Matt Krevs[SMTP:[EMAIL PROTECTED]]
> > > Reply To:         Matt Krevs
> > > Sent:     Tuesday, October 12, 1999 6:31 AM
> > > To:       [EMAIL PROTECTED]
> > > Subject:  Calling a servlet from a JSP page
> > >
> > > I have the following situation
> > >
> > > I want to call a servlet from within my JSP page and then do something
> > > with
> > > the result.
> > >
> > > The servlet returns an XML string which I want the JSP page to
> > break apart
> > > and insert various bits into several XML data islands on the HTML
> page.
> > >
> > > eg
> > > in the jsp I want to code something similar to the following
> > >
> > > ...
> > > <%! String theXML = ""; %>
> > >
> > > <%
> > > theXml = theCustomerServlet?customerName="fred";
> > > %>
> > >
> > > <XML id=theXML>
> > > <%= theXML %>
> > > </XML>
> > >
> > > ...
> > >
> > >
> > >
> > > Any help would be greatly appreciated.
> > >
> > >
> >
> ==========================================================================
> > > =
> > > 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