Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

how to access the <param> in jsp which are set from struts.xml

 
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any one tell me how to access the <param> in jsp which are set from struts.xml.



I want to access the parameter resultType in jsp.

I tried ${param.resultType } in jsp but not getting parameter.

 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The parameters you set on results are just that: parameters for the result implementation class--in your case, a "dispatcher" result. They are not available to your action or view side of the result.

What, specifically, are you trying to accomplish?
 
Jigar Naik
Ranch Hand
Posts: 763
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
oh ok. becuase somewhere i read that its available in custom interceptor as a request parameter.

anyways i was trying to accomplish the same thing which i descripbed in my previous thread. but then i did it easily using topics.

https://coderanch.com/t/444505/Struts/Struts-d-submit-Selecting-Targets

 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

You wrote: oh ok. becuase somewhere i read that its available in custom interceptor as a request parameter.


Oh, maybe it is and I just never knew that. Well, maybe I did--but I think it'd be set on the action, so you'd need an action property. Maybe I'll try that out and see what happens. Learn something new every day!
 
reply
    Bookmark Topic Watch Topic
  • New Topic