• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 179
  • 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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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