Could someone tell me how to read actionForm's bean value please?
(1) Bean.java
String name;
... ...
You have a getName and setName methods right?
(2) Action class
public class ProcessAction extends ActionSupport
{
Bean bean1 = new Bean();
... ...
}
You have a getBean and setBean methods right?
(3) JSP file
Here is my question!
<form action="ProcessAction" ...>
<%
String name = bean1.getName();
%>
... ...
</form>
How to assign bean1.name to string name in jsp file please?
If you have declared yous struts tags as such:
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:property value="bean.name" />
This is not what I want!
I want to save form.bean.fieldValue into a <% String str =
bean.fieldValue %>
And then str will be used for other purposes. For example,
<display:table pageSize=<%=str %>
I do not want to display the property at all!
--
Lu Ying
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org