• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

<form:hidden path="lastName" value="${param.lname}" /> is it valid ?

 
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
In my application I need to pass a value of lastname as a hidden field from one jsp to another jsp .In the last jsp I am storing lastname value into a bean so I have written -----

<form:form method="POST" commandName="user">
Credential:
<form:input path="credential" value="${param.fname}" />
Last Name:
<form:hidden path="lastName" value="${param.lname}" />
Password :
<form:password path="password"/>
<input type="submit" value="click it" />
</form:form>



lastName is a property of User class

after this flow goes to result.jsp in which I have written -----

<body bgcolor="#abcc3d">
<h1>Welcome to Kolkata </h1>

First Name : ${abc.credential}
Last Name : ${abc.lastName}
Password : ${abc.password}
</body>



I am getting credential and password but not getting lastName
what is the problem in here?
please give me some idea

Thanks in advance
 
reply
    Bookmark Topic Watch Topic
  • New Topic