This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

querystring within a querystring  RSS feed

Posts: 25
  • Mark post as helpful
  • send pies
  • 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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!