• 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 ...
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • 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
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">
<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" />

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}

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

Thanks in advance
    Bookmark Topic Watch Topic
  • New Topic