Forums Register Login

querystring within a querystring

+Pie Number of slices to send: Send
Hello all,
I have an application that accepts an url as a querystring parameter.

http://mapapp/mapit?zoomlevel=10&url=http://myserver/xmlFileName.xml

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

http://myapp/mapit?zoomlevel=10&url=http://myserver/MyServlet

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.
TIA!
What do you have in that there bucket? It wouldn't be a tiny ad by any chance ...
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 564 times.
Similar Threads
URL path
cannot invoke servlet in Tomcat
how to access jsps in a different pathinfo path in the same webapp using c:url
question about servlet-mapping and auto redirecting URL
command to run a cron job
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 19:14:20.