Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to prepopulate a form using form:input tag?

 
hernan rodriguez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i need some help, need to prepopulate a form , just take the data from the db and put them into a form. I tried using the "value" attribute but it didn't work, i got an error: Undefined attribute name "value". In the form should appear the user's credentials so he can edit them... but i don't know how to do it...,
there's is also select tags in the form.

thanks

regards
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does your Controller method look like? How about your jsp file? We can't figure it out unless we see that information.

Mark
 
hernan rodriguez
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark Spritzler wrote:What does your Controller method look like? How about your jsp file? We can't figure it out unless we see that information.

Mark


My index.jsp:



My controller:



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic