File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing url parameters to ASP page

 
Martin Lira
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a jsp page that has an <iframe> in the <body>. Basically this is what I have:


It works fine. But when I do a view source you can see the user and password. I dont want that to happen. Is there any way you can send the request parameters to an external url and still hide it from being seen.
I dont have to be using an <iframe> but any thing similar will work.

Thanks,
Martin
[ October 28, 2004: Message edited by: Martin Lira ]
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suppose you could fetch the page yourself and include the contents from within you JSP file. Then you wouldn't have to do any username/password/iframe things on the client side.
 
Martin Lira
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please elaborate on what you suggested.

Thanks,
ML
 
rahul V kumar
Ranch Hand
Posts: 82
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you doing some validations in your iframe ?

If not why dont you just send the userid and query the database in the iframe and fetch whatever you want.
 
Martin Lira
Ranch Hand
Posts: 97
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The asp page i am calling is not on my server and I cannot access the database.

ML
 
nilesh Katakkar
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what Nathaniel mean is, in your serverside servlet/JSP code, you can actually call this external url and embed the response of that in the output HTML.

Please check out HttpURLConnection class. It will allow you to call this external URL , get the response and embed it in your output.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic