Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 22nd, 2003, 04:02 AM
walter76 walter76 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 18 walter76 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Servlet doesn't get paramater out of POST-Request

Hi,

i have a servlet producing the following HTML-Output:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  "http://www.w3.org/TR/html4/transitional.dtd">

<html>

<head>
  <meta http-equiv="pragma" content="no-cache">
  <title>SOC ePayment - Bezahlverfahren auswählen</title>
  <link rel="stylesheet" type="text/css" href="../css/soc.css">
  <base target="_self">
</head>

<body>

<table align="center" border="0" cellpadding="0" cellspacing="0" width="640">
  <tr height="50"><td width="640" colSpan="3"><img src="../img/tsystems.gif" alt=""></tr></td>

  <tr height="10"><td width="640" colSpan="3">&nbsp;</td></tr>

  <tr height="1"><td width="640" colSpan="3" bgColor="#000080"><img src="../img/pixel.gif"></td></tr>

  <tr>
    <td width="1" bgColor="#000080"><img src="../img/pixel.gif"></td>
    <td width="638"><h1>Bezahlverfahren auswählen<h1></td>

    <td width="1" bgColor="#000080"><img src="../img/pixel.gif"></td>
  </tr>

  <tr>
    <td width="1" bgColor="#000080"><img src="../img/pixel.gif"></td>
    <td width="638"><h1>&nbsp;<h1></td>
    <td width="1" bgColor="#000080"><img src="../img/pixel.gif"></td>
  </tr>

  <tr>

    <td width="1" bgColor="#000080"><img src="../img/pixel.gif"></td>
    <td width="638">
      <table align="center" border="0" cellpadding="0" cellspacing="0" bgColor="#cccccc">
        <tr height="1"><td colSpan="3" bgColor="#000000"><img src="../img/pixel.gif"></td></tr>

        <tr>
          <td width="1" bgColor="#000000"><img src="../img/pixel.gif"></td>
          <td>
            <form method="post" action="/soc/services/TransactionService">

              <table align="center" border="0" cellpadding="5" cellspacing="0" bgColor="#cccccc">
                <tr>
                  <td width="238"><input type="radio" name="ppdid" value="TESTPPD" tabindex="1">Test-Bezahlverfahren</td>
                </tr>
                <tr>
                  <td width="238" align="center"><input type="submit" name="okButton" value="Mit diesm Verfahren bezahlen" tabindex="2"></td>
                </tr>
              </table>

              <input type="hidden" name="cmd" value="start_select">
              <input type="hidden" name="tid" value="sWmSs4YaYSsVsPPwN1ss1NYtZ8smNDk4DtPPxQmWYsw4ERWt0LstwE5QSbXPPzwt">
              <input type="hidden" name="jsessionid" value="D0A7C03CC70A16B4D6D7930C710F58D4">
            </form>
          </td>
          <td width="1" bgColor="#000000"><img src="../img/pixel.gif"></td>
        </tr>

        <tr height="1"><td colSpan="3" bgColor="#000000"><img src="../img/pixel.gif"></td></tr>

      </table>
    </td>
    <td width="1" bgColor="#000080"><img src="../img/pixel.gif"></td>
  </tr>

  <tr>
    <td width="1" bgColor="#000080"><img src="../img/pixel.gif"></td>
    <td width="638"><h1>&nbsp;<h1></td>
    <td width="1" bgColor="#000080"><img src="../img/pixel.gif"></td>

  </tr>

  <tr height="1"><td width="640" colSpan="3" bgColor="#000080"><img src="../img/pixel.gif"></td></tr>

</table>

</body>

</html>

On execution i choose the option from the radio button and i thought that the given value of PPDID will be posted to the servlet. But it doesn't. When i try to get out the servlet parameter with:
Code:
    // Parameter 'ppdid'
    if(sessionObj.getProperty("ppdid") == null) {
      param = req.getParameter("ppdid");
      if(param != null) {
        log.debug("ppdid=" + param);
        sessionObj.setProperty("ppdid", param);
      }
    }

I only get an empty string. I can't figure out were the problem is. Can you people help me?

cu/ walter76

Reply With Quote
  #2  
Old May 22nd, 2003, 05:06 AM
walter76 walter76 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 18 walter76 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,

i've solved the problem. Sorry for the unneccesary trouble.
The problem was my test-application. it posted a empty string for the parameter.
It seems, that's every time so, when you post your problem you solve it minutes later....

cu/ walter76

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Servlet doesn't get paramater out of POST-Request


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT