I have a JSP page displaying an object called docsFacebook
. I need to pass this object to an action class in order to process its content. How to do it?
JSP
<s:iterator value="docsFacebook">
<p>
<img src="images/fb.png" />
<b><s:property value="Newspaper"/></b>
<s:property value="Date"/></p>
<p><s:property value="Message"/></p>
<p><a href=<s:property value="Link_url"/>>
<s:property value="Link_url"/></a>
</p>
<br></br>
</s:iterator>
In the same page I have a button with a link to an action class..
<a href="<s:url action="display" />">Facebook</a>
How to retrieve this data from that action class?
struts.xml
<struts>
<package name="default" extends="struts-default">
<action name="doFirstQuery" class="action.FirstQuery">
<result name="success">success.jsp</result>
<result name="failure">error.jsp</result>
</action>
<action name="doFollowingQuery" class="action.FollowingQuery">
<result name="success">success.jsp</result>
</action>
<action name="display" class="action.Display">
<result name="success">dis.jsp</result>
</action>
</package>
</struts>