my dog learned polymorphism*
The moose likes Struts and the fly likes can i use a normal form with struts? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "can i use a normal form with struts?" Watch "can i use a normal form with struts?" New topic
Author

can i use a normal form with struts?

KOla Oyedeji
Greenhorn

Joined: Aug 28, 2001
Posts: 20
Hi
I have the following code in a jsp page :
<form action="register.do" method="post" >
will this work with struts and an ActionForm or do i need to use the struts html:form tag?
Thanks
Vladan Radovanovic
Ranch Hand

Joined: Mar 20, 2000
Posts: 216
Yes that will work.
David Hibbs
Ranch Hand

Joined: Dec 19, 2002
Posts: 374
Originally posted by Vladan Radovanovic:
Yes that will work.

...but you'll have to manually re-populate the fields on your form. Users get really frustrated when they have to fill out a whole form multiple times because of minor typos.
Especially when the user is a web developer who knows how easy it would be to re-fill those fields.


"Write beautiful code; then profile that beautiful code and make little bits of it uglier but faster." --The JavaPerformanceTuning.com team, Newsletter 039.
KOla Oyedeji
Greenhorn

Joined: Aug 28, 2001
Posts: 20
Thank you
Especially for pointing out the advantage of using the struts form tag over the normal form tag
Kola
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can i use a normal form with struts?
 
Similar Threads
Using form based authentication and Struts
Domain Object as Strtus Action form.
how to use javascript in struts form?
Form Variables vs Session Variables
Fundamental struts question