File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Not knowing how to call jsp page by sending a parameter Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Not knowing how to call jsp page by sending a parameter" Watch "Not knowing how to call jsp page by sending a parameter" New topic
Author

Not knowing how to call jsp page by sending a parameter

maganti suryanarayana
Ranch Hand

Joined: Mar 30, 2010
Posts: 53

Hi, I am running into a issue with struts2 and jsp. Its about adding a button which says edit current location.

The scenario is that when we search a item, we need to enter its code. Then we are going into a jsp page. when we enter the code, its calling the xml file which is like this:

<action name="search-item-update" class="itemAction" method="display">

<param name="editType">update</param>

<result name="loginRequired" type="redirect">/</result>
</action>

After submitting updates we are going to get the summary page. In that summary page i need to add a button in such a way that if i press that button it should go to the page when we entered the code.

Already some of the buttons are added and one of them is as follows:

<a href="/search-item-update.do">Update Item</a>

I need to add a new button here so that , the button name should be Edit Item and it should go to the page directly without reentering the item code. How to do this ?

Please help me. Its urgent


surya
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8259

Please help me. Its urgent


Everyone's question is "urgent". We are a community of volunteers answering questions in our spare time. Please ease up.
You can use the url tag to create a URL on the fly, then use that URL name in your anchor tag (note that is the Struts anchor tag, not the HTML anchor tag).


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Not knowing how to call jsp page by sending a parameter
 
Similar Threads
Tidying up my code?
page is not shown only url is showing
Web app exception: Name jdbc is not bound in this Context
when i use login validator my validation not work properly
How to set table values as parameters (present on one page) and pass it into another jsp