Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Not knowing how to call jsp page by sending a parameter

Ranch Hand
Posts: 53
MyEclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>

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="/">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
Posts: 9615
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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).
    Bookmark Topic Watch Topic
  • New Topic