Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

can i use a normal form with struts?

 
KOla Oyedeji
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes that will work.
 
David Hibbs
Ranch Hand
Posts: 374
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
KOla Oyedeji
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you
Especially for pointing out the advantage of using the struts form tag over the normal form tag
Kola
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic