The code below will return you to the calling page with some parameters set.
Which you can then pick up and use.
<a href="<%= HttpUtils.getRequestURL(request) %>?whataction=first&start=<%=
String.valueOf(start) %>&end=<%= String.valueOf(end) %>">
John.
----- Original Message -----
From: "Khem Chand Sachdeva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 08, 2000 7:23 AM
Subject: Re: How to get the self url
> action="" will do
>
>
> "Sumeet Aggarwal , Gurgaon" wrote:
>
> > Hi all,
> >
> > I want to post my JSP page back to the same page...i.e. the action part
of
> > the form would contain the URL of the same page in which it is used.
> >
> > <FORM NAME="XYZ" METHOD="POST" ACTION="self URL">
> >
> > Is there any attribute/ property available with in JSP which can return
me
> > the name of the page from which it is called, so that instead of
hardcoding
> > the page name we can simply use that attribute.
> >
> > Regards,
> > Sumeet.
> >
> >
===========================================================================
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > http://www.esperanto.org.nz/jsp/jspfaq.html
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets