This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

form values not set correctly

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my form values are not set.

in my actionclass i have



in my jsp page:


in struts-config



in my Jsp page, all the form values are empty. What is wrong here? thanks
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

can you give <form> tag in your jsp page.so that it will be easier to solve
 
lynn fann
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<html:form action="/enquiriesAction?action=submitMessage" enctype="multipart/form-data" >
<html:text property="id"/>
<html:text property="userId"/>
<html:text property="refNo"/>
<html:text property="status"/>
</html:form>

[ April 04, 2007: Message edited by: lynn fann ]
[ April 04, 2007: Message edited by: lynn fann ]
 
sreenivas jeenor
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Iynn,

you are calling wrong action in form tag,you form tag must be in this way
<html:form action="/viewEnquiries?action=submitMessage" enctype="multipart/form-data" > instead of

<html:form action="/enquiriesAction?action=submitMessage" enctype="multipart/form-data" >


Hope this will work for you.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic