I only seem to get my values of my form when i repost. 

CODE

<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>File Upload Example</title>
<link href="<s:url value="/css/main.css"/>" rel="stylesheet"
type="text/css"/>

</head>

<body>

<s:actionerror />
<s:fielderror />
<s:form action="doUpload"  method="POST" enctype="multipart/form-data">
<tr>
<td colspan="2"><h1>File Upload Example</h1></td>
</tr>

<s:textfield name="title" label="Title" id="title"/>
<s:submit />
</s:form>
</body>
</html>


<s:property value="title"  /></td>


        <package name="example" extends="struts-default"> 


                

                <action name="showUpload" method="input">
                        <result>pages/upload.jsp</result>
                
                </action>

                <action name="doUpload"
                        class="Upload" >
                        <result name="input">showUpload</result>
<result>pages/upload-success.jsp</result>
                </action>
        </package>


I get nothing, until I refresh my page, and then it fills my values.

Thx in advance!

Nushi
-- 
View this message in context: 
http://www.nabble.com/STRUTS-2%3A-fail-to-retrieve-values-without-repost-tp15306729p15306729.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to