This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have David & Dawn Griffiths on-line!
See this thread for details.
Win a copy of Head First Android this week in the Android forum!
  • 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

querystring within a querystring

Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I have an application that accepts an url as a querystring parameter.


The url parameter is a URL to a file.
I want to, instead , pass a Servlet output stream as the url parameter.


I can do this if I hard code the PrintWriter output stream with a rss feed String.

What I need to do is to be able to dynamically construct the rss feed within the Servlet by passing parameters to it.

Now you are probably saying: Use the POST method and embed parameters in hidden form fields. I thought of that but dont think it is possible.

Here is why...

I have a jsp with a map div and also a links div. Each link needs to be a link to each individual rss feed, that when clicked, populates the mapapp with the rss feed. I have no control over the map app below: http://mapapp/mapit?zoomlevel=10&url=http://myserver/xmlFileName.xml

I wanted to do the following:

Basically calling my servlet as the FileInput and constructing the PrintWriter stream on the fly.
Now the url above crashes the mapping app when I append a Servlet querystring.

So is there a way to do the following:
Create a link to the mapping app that contains the url to my servlet that gets passed the rss feed parameters to construct the feed that is passed to the mapping app? Basically the link causes the mapping app to import a rss feed that it knows nothing about beforehand.

Does this make sense?

Let me know if it doesnt.
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic