-
Problems Struts 1.1 + validation.xml
Hello guys
(sorry for my grammar)
i have a form in a jsp related with a ValidatorActionForm call WorkerForm (many Actions Share the same WorkerForm)
why i use ValidatorActionForm instead of ValidatorForm???
http://www.oracle.com/technology/ora...ev_struts.html
or
http://www.devarticles.com/c/a/Java/Validator/3/
i have this sequence of calls
1)index.jsp (just have some link (just a menu) to call an Action LoadFormWorkerAction )
2)LoadFormObreroAction
just make these few lines
try{
ArrayList niveles=obrerobo.getNivelesDesepeno();
ArrayList tiposdocs=obrerobo.getTiposDocumentosIdentidad();
request.setAttribute("ListaTipoDocs",tiposdocs);
request.setAttribute("ListaNiveles",niveles);
}
their job is fill 2 html:select with 2 ArrayList as u can see,
then the Forward go to insertWorker.jsp
3)insertWorker.jsp
which is related or validate with validator.xml;
here i show one of the 2 select, the other have the same format, but of course with a referecne to other
"property"
<logic:present name="ListaTipoDocs" scope="request">
<html:select property="tipodocumentoObrero" >
<html:optionsCollection name="ListaTipoDocs" label="nombre" value="iddocumento" />
</html:select>
</logic:present>
the joke is that, when i press submit in insertWorker.jsp (really happen a validaton
, ie white fields, bad format etc etc are detected) and showed with html:errors
in the same jsp
but the NO APPEAR ANYMORE THE 2 HTML:SELECT
if i delete <logic:present name="ListaTipoDocs" scope="request"> </logic:present>
appear a error message from the tomcat that says that "ListaTipoDocs"
can't be found it any scope
so the 2 Attributes i think that are lost
so, friends, how i can resolve this???
p.d: i cant add 2 properties just ArrayList to the WorkerForm , because maybe in the future
the List can be very long and kill my performance when i press submit, so i need work
in the way with request.setAttribute();
Thanks a lot for your time
Similar Threads
-
By dhruba.bandopad in forum ASP.NET
Replies: 3
Last Post: 10-18-2006, 04:32 PM
-
By Michael in forum ASP.NET
Replies: 3
Last Post: 05-01-2006, 07:52 AM
-
By Acceris in forum ASP.NET
Replies: 1
Last Post: 01-25-2006, 05:17 PM
-
By shstubbs in forum .NET
Replies: 1
Last Post: 09-16-2005, 10:11 AM
-
By Tuomas Salste in forum vb.announcements
Replies: 0
Last Post: 01-24-2001, 12:22 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks