You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rick Ashley <ri...@hotmail.com> on 2003/01/21 16:37:11 UTC

Detecting what linkof the page is pressed

Hello,

I have a jsp page containing multiple html:links.
Is it possible to get information about that what html:link
is pressed by user and then put own variable flag to e.g. session?

I mean e.g. code like below:

<!-- start of jsp -->
<html:link forward="myapp.mypage1" >
  <logic:match ... >
	<jsp:setProperty name="myBean" property="selection" value="myapp.mypage1" 
/>
  </logic:match>
</html:link>

<html:link forward="myapp.mypage2" >
  <logic:match ... >
	<jsp:setProperty name="myBean" property="selection" value="myapp.mypage2" 
/>
  </logic:match>
</html:link>
<!-- end of jsp -->

Or are there other solutions?

Thanks,

rick




_________________________________________________________________
The new MSN 8 is here: Try it free* for 2 months 
http://join.msn.com/?page=dept/dialup


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>