Help:Parameters can't be seen when post parameters using session(servlet)

Dear all,
Thanks,
When post the parameters(e.g. userID or password) by form submit,The parameters can be seen in the address form of IE Explorer.
For security,How can I do then it can't be seen.
Best Regards,
bitan

In the HTML-page where you have the <FORM> tag
change the METHOD to "POST" instead of "GET".
For Example:
<FORM METHOD="POST"
ACTION=....... >
<INPUT TYPE="........>
</FORM>
Also you have to change the Servlet method to "doPost"
instead of doGet.
Hope this solves your problem.

Similar Messages

  • Where can close the objects when i am using prepareStatement

    hi,
    where can close the objects when i am using prepareStatement
    the following is code i am using.
    Connection connection;
         PreparedStatement prepare;
         JTextField tfStateNameEng;
         JTextField tfStateNameKan;
         JButton save;
         public DynamicSQL(){
    try{
         Class.forName("com.mysql.jdbc.Driver");
    connection=DriverManager.getConnection("jdbc:mysql://localhost:3306/kantest","gk","gk");
         String sql ="insert into daya (Name,Name_KAN) values (?,?)";
         prepare = connection.prepareStatement(sql);
    }catch(Exception e){System.out.println(e);}
         tfStateNameEng = new JTextField(20);
         tfStateNameKan = new JTextField(20);
         save = new JButton("save");
         save.addActionListener(this);
         this.getContentPane().add(tfStateNameEng,"North");
         this.getContentPane().add(tfStateNameKan,"Center");
         this.getContentPane().add(save,"South");
         pack();
         setVisible(true);
         setDefaultCloseOperation(EXIT_ON_CLOSE);
    public void actionPerformed(ActionEvent ae){
         try{
              prepare.clearParameters();
              prepare.setString(1,tfStateNameEng.getText());
              prepare.setString(2,tfStateNameKan.getText());
              prepare.executeUpdate();
              }catch(Exception e){System.out.println(e);}
    /*try{
              //     connection.close(); // if going to close object here then it won't work
                   //prepare.close();//next time.
              }catch(Exception e){} */
         public static void main(String args[]){
              new DynamicSQL();
    thanks
    daya

    hello,
    ok.
    thanks
    daya

  • How can't Parameters be seen when post parameters using session?

    Dear all,
    Thanks,
    When post the parameters(e.g. userID or password) by form submit,The parameters can be seen in the address form of IE Explorer.
    For security,How can I do then it can't be seen.
    Best Regards,
    bitan

    Hi ,
    When post the parameters(e.g. userID or password) by
    form submit,The parameters can be seen in the address
    form of IE Explorer.Wrong.When u do a http POST , the parameters are not seen in the adress bar
    But they are seen in the address bar in case u do a GET.
    The std way is to go for a POST in case u have such a securoty requirement.
    I m not aware of any way by which u can make it not to appear in a GET.

  • Photos in lightroom mobile can't be seen when tapping on collections

    I can't see photos from my online collections in lightroom mobile. The screen is empty when i tap on the collections on my phone or tablet.
    But I can see those photos when I open the collection in my browser.
    Anyone else with this problem or maybe a solution?
    Thanks!

    Since you have not so many Photos uploaded yet could you try to trigger "Delete Data" via the Lightroom Preferences->Lightroom Mobile. Thereafter re-sign-in and syc those photos again.
    If that won't help please send me a LR Desktop diagnostig log  - best as a private message with a downloadable dropbox link.
    You can trigger the log via LR Desktop prefereneces -> Lightroom Mobile and when you hold down the alt key you will notice a generate diagnostic log button.
    Guido

  • FI-CAX event 1102 when posting documents using BAPI_CTRACDOCUMENT_CREATE

    The event 1102 in FI-CAX has been implemented to copy "Alternative business partner for payments" to the document, when posting a document using transaction FPE1.
    Will this event aslo be executed when posting documents automatically via the BAPI BAPI_CTRACDOCUMENT_CREATE?
    If not, is there any other possibility to copy "Alternative business partner for payments" to the document, when posting a document automatically via the BAPI BAPI_CTRACDOCUMENT_CREATE?

    Thank you!
    In our system this note has not been implemented yet so this is something we need to fix.
    Do you know if event 1102 is supposed to be called when running FP60M/FP60P (mass activity: revenue distribution/Revenue distribution: Create and post documents)?
    Cheers,
    Teo

  • Can iphone be tracked when it is used to surf the internet in wifi?

    Can iphone be tracked using the wifi by capturing the MAC address when it is used to browse the internet ?If so then it can be used to track the lost phone..

    Yes, but you'd first need to know the GPS coordinates. You'd need a court order to get the carrier to release this info(extremely difficult to obtain), then you'd need the police involved to witness & verify the software being used to locate the phone by its Mac address(again difficult to do). But, possible.

  • I have FF 15, and want to update to FF 18. I have 30 pages in my browser that I can't lose. When it restarts the session restore like a normal restart

    i have FF 15, and want to update to FF 18. I have 30 pages in my browser that I can't lose. When I typically shutdown/restart my computer FF always will restore my previous session. My questions is, after an update will FF restore like a normal restart with all the pages?

    If you have set Firefox to restore your pages, then yes they will restore just like a normal restart.

  • Can't kill query when I run using "statement" option

    Help! I get an "X" to kill the query when I run a query using the "script"" option, but when I use the "statement" option I have no option I can find to cancel/kill the query. What should I do? I am using SQL Developer 2.1.1.64. In prior versions the "X" was always there. This has got to be a bug but I don't see this quetions posted anywhere else.
    Please help!!! Thanks.
    Edited by: user13064034 on Jul 9, 2010 10:06 AM

    Oh... right, but that's only on SELECTs. I thought we were all referring to the still missing features discussed in-depth in 30EA2->2.1.*: Task Progress indication
    K.

  • Help! can i get a tree view component used in jsp ,urgent!!

    hello all
    can i get a tree view component can be used in jsp ,it gets children data from database only when user expand one node, and it must be able to add nodes or removes node by user,so i can do some post handler in my database.
    regards!

    Where did you get this tree view component?

  • Can I control  filenaming when archiving  files using the file adapter?

    Hi folks,
    Is there anyway to control the filename used when the File Adapter writes out to an archive?
    Second question, I also need to be able to pass a "filename" to the adapter from an "input file." Is there a way to do this in the file adapter?
    Sincerely,
    lpac

    Hi,
    I have done that with the ftp adapter. In the .xsl file I wrote the following after the <xsl:stylesheet version="1.0" ....> tag:
    <xsl:variable name="INFILENAME" select="ehdr:getRequestHeader('/fhdr:InboundFTPHeaderType/fhdr:fileName','fhdr=http://xmlns.oracle.com/pcbpel/adapter/ftp/;')"/>
    <xsl:template match="/">
    <xsl:variable name="OUTFILENAME"
    select="ehdr:setOutboundHeader('/fhdr:OutboundFileHeaderType/fhdr:fileName', $INFILENAME, 'fhdr=http://xmlns.oracle.com/pcbpel/adapter/file/;')"/>
    <opaque:opaqueElement>
    <xsl:value-of select="/opaque:opaqueElement"/>
    </opaque:opaqueElement>
    </xsl:template>
    </xsl:stylesheet>
    To use this with the file adapter, you would have to wirte file where is written ftp.
    Hope this helps,
    Zaloa

  • HELP - I can't download video podcasts that I used to be able to !

    I have a 120 gb iPod classic that I received for Christmas a couple of years ago (2008) & I download podcasts to it every wk. since I received it. It still has 80 gb of free space BUT it wont' load some video podcasts from iTunes now. I'm thinking I accidentally changed a setting somewhere. Can somebody PLEASE help me? The video podcast I'm having trouble with today is "Max Lucado - Video Podcasts" that are in the iTunes store. I downloaded the "Call to Prayer" in Jan. '10 just fine & have many of his earlier than that on my iPod but none of the ones past that go to my iPod from iTunes. iTunes gives me a message that 3 of the videos were unable to load or something very similar to that.
    REALLY looking forward to hearing from someone,
    Donette

    I too have this problem but it seems to be selective.....I can download cooking video podcasts just fine but the Hubblecast video podcast files will not load onto my ipod.....how frustrating...hope there is an answer soon...

  • Help: I can't right-click on tools or use brush tools with left-click

    Like a problem I have tell in my title.
    I don't know it's about a problem of my mouse or of the software.
    Please help me. Thank you so much!

    In Windows there's a way to reverse the left and right mouse buttons via the Mouse section in the Windows Control Panel.
    -Noel

  • If I hide my Apple ID app purchase history using my iPhone, can it be seen from other devices using my Apple ID?

    Let's say I hide an app from the Purchased section of the App Store using my iPhone, will it be hidden on other iPhones which use my Apple ID?
    Thanks

    when you change your Apple iD it's pretty much changing the visual email, i guess that doesn't really answer your question, yes you keep your purchases, it just changes the log-in email and email where newsletters , etc. go to.

  • Sign in problems when trying to use Skype WiFi

    I have a tablet that I am trying to connect to Skype WiFi and keep getting looped around to the sign-in screen.  It tells me "You're already on line", but I can't do anything after that.  I just have the "Learn More" button.  I have unstalled and installed Skype WiFi twice and it still will not open.  None of your instructions or guide are helping me.
    Need Help
    Added the text, "...when trying to use Skype WiFi" to the subject/title for clarity.

    hi,
    The call to the function 'wwpre_api_util.get_names_table' is not returning any data. so, you are getting an exception. Try adding an exception block for NO_DATA_FOUND and print some message.
    --Sriram                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How the page should redirect when we click a link using sessions

    Hi Friends,
    I have two links namely Gujarati and English in the page. before logon to the application, when i click the Gujarati link, the total content of the page should change to Gujarati and for english as same..How to do this using sessions and Internationalization(i18n).
    It can be easy if anybody is using Property files and resourcebundle.
    Thank you..

    I will give u a very simple example of using session here.
    Lets say you have 2 links in your HTML or JSP page: Gujarati | English
    In you nextPage.jsp, you need to do the following:
    <%@ page session="true" %>
    By using page directive with session attribute to true will make HTTPSession implicit object available with you in your JSP.
    Now you can save your request parameter lang to this session for further identification of user's selection for the language.
    This is how it can be add user selected language into sessions in JSP:
    <%
    session.setAttribute("Language", request.getParameter("lang"));
    %>
    To retrieve this value for further usage, you can use the following:
    <%
    String lang = (String)session.getAttribute("Language");
    %>
    If you are using servlet instead of JSP, you can handle the same by having following lines of code in your servlet:
    To set a value or object in the session:
    HttpSession session = request.getSession();
    request.setAttribute("Language", request.getParameter("lang"));
    to retrieve a value or object from the session:
    HttpSession session = request.getSession();
    String language = (String)request.getAttribute("Language");
    I hope this helps to solve your problem for having selected language using sessions. Once you know which language the user has selected you can use internationalization to convert your pages to other languages.
    Choicest Regards
    Amit Singh Rathore

Maybe you are looking for