well ... one way would be to check the REFERRER Header ... it will give u
the filename from which the JSP was called before checking the QueryString
Params.
Alternatively .. u could pass a additional param that would indicate the
source using
<input type="hidden" name="source" value="jsp1">
in ur form. although that would increase the variable numbers by one
Mayuresh
-----Original Message-----
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Nicholas Larsson
Sent: Wednesday, May 23, 2001 3:21 PM
To: [EMAIL PROTECTED]
Subject:
Hi!
I use a "search" jsp which is accessed from two different jsp's.
One of the jsp's only needs to send in 1 parameter and the other sends in 3
parameters.
if I use request.getParameter("aaa") I get a nullpointer when parameters
aren't found.
Is there a work around except from including them in the URL (looks bad)?
/Nico
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
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".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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