• 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 html:link and target

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm developing a webapp using struts. The main page has a left menu and a right body, and I configure it using tiles.

In the left menu I have some links that should be opened in the right body, but when I click on any of them the page is opened in a new navigator window. This is my code:

<html:link href="/body/body.jsp" target="body">Body</html:link>

And the tiles are configured this way:

<tiles-definitions> <definition name="main" path="/main/main.jsp"> <put name="menu" value="/main/menu.jsp"/> <put name="body" value="/main/body.jsp"/> </definition> </tiles-definitions>

Best regards
Miguel
 
If you believe you can tell me what to think, I believe I can tell you where to go. Go read this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic