• 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

Forwarding to a JSP specifying a target frame

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,

I'll bet this question has been asked before, but I can't find a definitive answer.

Can Java code within an action class, either directly or indirectly, forward to a jsp, specifying a target frame for the jsp?

I have a navigation frame on the left side with a link on it that, when clicked, displays a jsp login dialog in a different frame on the right side. So far, so good. The login jsp, via a Submit button, then goes to the code in an action class. The action class forwards to a jsp which I would like to display in the left navigation frame. Can this be done? The problem seems to be that in the struts config file, the <forward/> element doesn't have a "target" attribute.

Thanks in advance.
 
pie sneak
Posts: 4727
Mac VI Editor Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I believe the request from the browser must specifiy the target.
 
Cliff Edwards
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks,
Yeah, I see the problem now. Looks like the only way I can get there from here is to use a Javascript hack to cause a refresh of the other frame. Phooey.
 
If you have a bad day in October, have a slice of banana cream pie. And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic