This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

added non sticky request params from a jsp  RSS feed

 
Andrew Mcmurray
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I am trying to add a request param from a jsp. Right now I am using <portlet:renderURL> in the jsp. That works, except that the param never goes away. So the next time the porlet is called the param is still there. Is there anyway I can either clear the param, reset it in the doView() method of the portlet, or set it in the jsp as not sticky?

Thanks,

AMD
 
Jesus Angeles
Ranch Hand
Posts: 2070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One way is:

When your portlet 'dispatches' to the jsp, add a parameter to the jsp, to indicate what params or whatever you want in your jsp.

e.g.

>> in your portlet, ... url of jsp has ?displayParams=no

>> and in your jsp, you can make scriptlets to decide what kind of Render URLs you want, some with param, some doesnt
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!