• 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 ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

HTML form's POST method behaving like GET method

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am using Jboss Portal 2.6.6-GA. I have a form in a portlet that
collects username and password from the user and sends it to the
portlet logic to process it.

<form name="mainForm" action="<portlet:actionURL/>" method="POST">
<INPUT TYPE=TEXT NAME=username SIZE=20>
<INPUT TYPE=PASSWORD NAME=password SIZE=20>
</form>

Even though the form is sent using POST method, the form data is seen in
the address bar of the browser like including the password that the user
typed.

Here is what I am seeing in the address bar:

https://myserver.com:443/portal/sec/portal/default/default/MyPortletWindow?password=somepassword&action=e&windowstate=normal&mode=view&username=myself

What am I missing? Any clues?

Thanks.
.Bala.
 
Bala Ananthan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I tried the HelloWorld JSP Portlet - one of the simplest portlets from the portlet swap page at: http://www.jboss.org/portletswap/portlets_tutorial.html

There too when the form is submitted, the form data is appended in the URL and is visible in the address bar, even though the method of submission is POST.

Is this expected? What do I do to prevent this? Any help is much appreciated.

Thanks.
.Bala.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic