• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • Last Modified:

how to find reffering page in struts

Hi,

I have a jsp page and a html link on it (ex:  html:link action = "/site/editEmail").  

when the user click that link, they sent to editEmail action,  in Edit email action how do I find out if the user is coming from the link?

Thanks
0
Ilan_Moorthy
Asked:
Ilan_Moorthy
  • 2
1 Solution
 
bloodredsunCommented:
String referrer=request.getHeader(“Referer”); should do the trick.

Or you could add a parameter on the links and check for them.

0
 
Ilan_MoorthyAuthor Commented:
I think struts provides some sort of method to look up actions...
0
 
TimYatesCommented:
>>  I think struts provides some sort of method to look up actions...

Not sure what you mean...  Can you explain what is wrong with bloodredsun's suggestion?
0
 
bloodredsunCommented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now