• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with nested:link href

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Iam trying to achieve the following


Using the following nested tag



Unforutnately Iam not getting any display on the screen and neither any log in my log.

In object hierarchy Iam at second level namely "maniSearchForm.srvTrxNode" and it is at this level the above portion of the code getting executed.

Also while using "a href " ( without the nested form) I get the output jsp but when I click the image it doesn't take me to link enclosed with " a href"

Thanks for your time in advance

Cheers
Anirban
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your code will not work because you cannot specify more than one paramId attribute for a single html:link tag. If you're using Struts Version 1.3.6 or above, do it this way:

If you're using an earlier version, you will have to create a hashmap of parameter names and values and specify this in the name attribute of the html:link tag.
 
Anirban Das
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Merrill for your help....
 
Anirban Das
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Merrill,
I tried your suggestion but it is not working. Now the jsp page itself is not getting displayed.

My code now looks like this




Can you please help me ?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The problem is with the html:image tag. This is actually a type of submit button and shouldn't be nested inside an <html:link> tag. Substitute a simple <img> tag instead. Sorry I didn't catch that earlier.
[ September 18, 2007: Message edited by: Merrill Higginson ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic