sending object amoung jsp

hi,

i am trying to send an object from a jsp when i click on a link,and take the object to other jsp.and i have lots of links, and have lots of objects mapping to each link.i must understand which link was clicked and so which object to show on the forwarded jsp.

i am working with struts and myeclipse.

best wishes...

[343 byte] By [java_piscesa] at [2007-11-27 4:53:54]
# 1
You can use HttpServletRequest#setAttribute() and #getAttribute() to pass objects from request to request. You can append HttpServletRequest#getHeader("referer") to retrieve the referrer and pass it along or just store it in this object.
BalusCa at 2007-7-12 10:08:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

[nobr]thank for your attention,

i thought to use request object but i don't know where to set the request object, i try to put on this code segment to understand which link is clicked...

*****************************************************************************

[code] for (int i=0;i<list.size();++i)

{

etkinlik=(Etkinlik)list.get(i);

etkinlikAdi=etkinlik.getEtkinlikAdi() + "";

etkinlikafis=etkinlik.getAfis();

System.out.println(etkinlikafis);

%>

<center><img alt=" -- " src=<%=etkinlikafis %>>

<html:link forward="etkinlik"><%= etkinlikAdi%> </html:link>

</center>

<%

}[/nobr]

java_piscesa at 2007-7-12 10:08:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
How can i understand which link is clicked by this way i must send an object to the other jsp page...?
java_piscesa at 2007-7-12 10:08:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Someone already mentioned that here above:> You can append HttpServletRequest#getHeader("referer") to retrieve the > referrer and pass it along or just store it in this object.
BalusCa at 2007-7-12 10:08:28 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...