S
spivee
I'm looking for a solution to this problem I've been having. I have a
multi page form. Basically, the first form, you pick an identifying
object. The Action for that form generates an object based on the
identifying object and displays the data into a form on the second
page, to allow for edits. Basically, I need to be able to populate the
text fields with some of the data from the object in the session. I'm
basically trying to do this...
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ page language="java" import="com.spivee.www.MyObject" %>
<%
MyObject object = (MyObject) session.getAttribute("MyObject");
%>
<html:html locale="true">
<body>
<p>Please confirm the information.</p>
<html:form action="/configureControlTool">
My Object Name: <html:text property="objectname"
size="18"
value="<%= object.getName() %>" />
<html:submit /> <html:reset />
</html:form>
</body>
</html:html>
I know I can do this by using a standard html input tag, but I'd like
to know how it's supposed to be done with taglibs. I found one article
but all it really said was to 'use JSTL expression language' and I'm
not sure what that is
multi page form. Basically, the first form, you pick an identifying
object. The Action for that form generates an object based on the
identifying object and displays the data into a form on the second
page, to allow for edits. Basically, I need to be able to populate the
text fields with some of the data from the object in the session. I'm
basically trying to do this...
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ page language="java" import="com.spivee.www.MyObject" %>
<%
MyObject object = (MyObject) session.getAttribute("MyObject");
%>
<html:html locale="true">
<body>
<p>Please confirm the information.</p>
<html:form action="/configureControlTool">
My Object Name: <html:text property="objectname"
size="18"
value="<%= object.getName() %>" />
<html:submit /> <html:reset />
</html:form>
</body>
</html:html>
I know I can do this by using a standard html input tag, but I'd like
to know how it's supposed to be done with taglibs. I found one article
but all it really said was to 'use JSTL expression language' and I'm
not sure what that is