This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
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

Struts2 CRUD - Edit - it is not displaying the value in JSP.

 
T Ponraj
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I m trying for Edit functionality, I have passed id in to the action and got the value object from DB and I can print the value object in action class. but the values are not getting displayed in JSP.

I want to know my object is present in Value Stack. Can anyone help me, how to confirm this


2. I m passing value as querystring and I have the parameter name as variable(with set and get) in my action class. It is not populating the value. Dont know why? So i have used ServeletRequestAware Interface(with get and set), request object is null. So I used ServerActionContext.getRequest(), I m getting the request object.


Any idea, how to resolve the above two issues.

Regards

 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without seeing any code or configuration it's impossible to help; setting parameters works fine so it's probably something simple to fix.
 
bhavani evuri
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you'll notice several "CRUD" applications that all deal with the same concept of updating mock Employee information (CRUD refers to the typical application's dealing with create, retrieve, update, and delete actions.) in below link follow learn technology topic


http://infochannel.weebly.com/javaj2ee.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic