• 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

Parameters and JSP includes

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Again
I'm confused about something..
I have 2 pages..a home page and a search page.

In the home page, I included the search page
the homepage has the address



I want the search page to be able to read get variables from the address bar..that was why i include a <jsp:param>
so that in the search page i can just go

But instead of typing
in the search.jsp page..I accidentally typed the actual variable in the get




And it worked, it was only after I realized the slip! :S..
I thought when you send a form to a certain page..only that certain page should be able to read param values..hence home.jsp should only be able to read the get variables...That was i added the jsp:param
But if search page could read it..without sending a direct post or get request to it..does that mean the variables in the param are global?

Or is it because I included the search in the homepage so it was able to read directly the variables? I am going more for params variables are global..
Would be grateful if someone can clear this fog up.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Grab the JSP Spec and read up on the rules of dispatcher include.
 
Eman Adenola
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
em...ok this might sound like a ridiculous question...but where do I get that?
It probably contains lot of complicated stuff, doesn't it..? lol
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
See the JSP FAQ.

If you are writing JSP, you need to be familiar with the specification and how to look up information within it.
 
Eman Adenola
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
very well, I shall.
Thanks for your help.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic