• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

<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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic