Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Populate Field From Database onblur

 
ankit mahajan
Greenhorn
Posts: 7
IBM DB2 Eclipse IDE Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Two fields userid and name in database.

I want that when user enters userid and presses tab then name should be fetched from the database and the textfield should be populated.

can anyone tell me how it can be done in struts 2.

I was able to do it with ajax in jsp and servlets.

but i dont know how to do it in struts.
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts is built on top of jsp and servlets so you can use the same techniques.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic