File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get?

 
Edward Durai
Ranch Hand
Posts: 223
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello i am using Struts. ok.

I Have one page. addpage.jsp.

It contains

username
description

If i entered the page actionservlet works and these two informations stored in database and i redirect the same page(addpage.jsp).

But the previous entered data(username, description) vanished. How can i avoid this problem?

Thanks.
Edward
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you use <html:text> tags to display these values? If not, that's the problem. I'd suggest working through a Struts tutorial to get a basic understanding of how all this works.
 
Edward Durai
Ranch Hand
Posts: 223
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes i am using html:text. but not working. Pls tell me some idea.
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Posting the section from your struts-config file and action class would help you get an answer. If you have your forward configured with redirect="true" then that could be the cause of your problem.

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic