File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes how to get? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get?" Watch "how to get?" New topic

how to get?

Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
Hello i am using Struts. ok.

I Have one page. addpage.jsp.

It contains


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?


Thank You<br />Edward
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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.

Consultant, Sima Solutions
Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
yes i am using html:text. but not working. Pls tell me some idea.
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
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:
subject: how to get?