Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Problem getting values passed from aspx to jsp

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
We are facing a problem retrieving values passed from an aspx into a jsp page.
The aspx page reads as follows
<HTML>
<body>
<form name="form1" action="http://172.31.109.63:7001/SingleSignOnWeb/validateUser.jsp?appname=webstat"; method=get>
</form>
<script language=javascript>
document.forms[0].submit()
</script>

When i do a request.getQueryString in the validateUser.jsp, it returns a null.

Any idea why this is happening?

Thanks in Advance
Jaydeep



</body>



</HTML>
 
Sheriff
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you use getQueryString in place of getParameter?
 
Jaydeep Deshmukh
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tried that...!!! Didnt work...!!!

Actually, the initial intention was to get the requester of the validateUser.jsp page. But in case of getQueryString and getParameter, it returns a null

Regards
Jaydeep
 
Bear Bibeault
Sheriff
Posts: 67389
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the URL properly formed as displayed in the browser window? What about in the 'get info/properties' for the page?

I have seen some cases where a query string on the action attribute of a form is ignored in favor of form elements when submitting a form. I'd try sending the appname parameter as a hidden form element rather than on the query string.
 
rubbery bacon. crispy tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic