Determining which link was selected on my next JSP
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   al_still
Posted On:   Tuesday, April 16, 2002 03:49 AM

I have 2 links on a JSP and both go to the same JSP, say TestPage.jsp, is it possible to determine which link was selected on TestPage.jsp without using JavaScript

Thanx in Advance,

Alan

Re: Determining which link was selected on my next JSP

Posted By:   Anonymous  
Posted On:   Tuesday, April 16, 2002 04:01 AM

You could add some unique parameter to each one on the same page


link1




link1



Then in test page



String whichPage = (String)request.getParameter("x");

if(whichPage==null) whichPage="";



You can then determine which page the request came from



Eoin

About | Sitemap | Contact