Hi,
I'm not sure what you mean by "make a request", however so that this is not a
useless response here are some ideas.
If you want the output of another page included in your page you can use
<jsp:include page="{ relativeURL | <%= expression %>}" flush="true" />
Examples
<jsp:include page="scripts/login.jsp" />
<jsp:include page="copyright.html" />
<jsp:include page="/index.html" />
this includes either a static or dynamic file in a JSP file
or
<%@ include file="relativeURL" %>
this includes a file of text or code in the JSP source file.
If however you want to pass data between JSP's or servlets you can use a bean
using a wider scape than page, eg request or session
<jsp:useBean
id="beanInstanceName"
scope="page|request|session|application"
{ class="package.class" |
type="package.class" |
class="package.class" type="package.class" |
beanName="{ package.class | <%= expression %> }"
type="package.class"
}
{ /> |
> other tags </jsp:useBean>
}
Examples
<jsp:useBean id="cart" scope="session" class="session.Carts" />
<jsp:setProperty name="cart" property="*" />
<jsp:useBean id="checking" scope="session" class="bank.Checking" >
<jsp:setProperty name="checking" property="balance" value="0.0" />
</jsp:useBean>
for more infomation on this stuff go to http://java.sun.com/products/jsp/docs
where you'll find the lates syntax cards etc.
Hope this helped
Karl
"Ornelas, Gabriel (CAP, CORP)" wrote:
> Hi everybody!!!
> I have worked with ASP, and know I'm changing to JSP, but I haven't found
> the way to make a request from one page to another, can anyone please tell
> me how can I do that.
>
> Thanks !!!
>
> ===========================================================================
> 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