Geting values in a form with post method

heloo all
hi
i am creating a website, in my website i am developing a discussion forum
now i am stucked ....
in the discussion forum there is a reply option for all discussions
exatly the way it has for this java technology forum and when one clicks the reply ,a html form comes (same as in this case) with a topic text box and a message text area
now my problem is i want the topic text box to be filled with the topic of the discussion
but since the method of the form is post it cannot take any values
can any one give a solution
thanks 4 ur time

Hi,
As the user clicks on the reply link, associate the topic parameter or the topic name with it in the hyperlink.
Like :
http:\\localhost:8080\jspdemo.jsp?topic_no=<<topic_no>>&any_other_parameter=<<parameter>>
Now, according to your coding perspectives, you can make jspdemo.jsp as a jsp to access the topic name from the database given the topic no. Or, the topic name can directly be associated as a parameter, which can be send to the form jsp page. But using jsp is necessary.
Hope this helps.
Regards,
Deepa

Similar Messages

  • Send the fields of a form with POST method

    I have a form based on a table, used to insert news. The problem is that I have to send the fields of the form to another aplication when I push the INSERT button, but I have to send them using the POST method.
    I tried to insert code in the event of the INSERT button to do that, but I think it uses the GET method and the other application doesn't receive anything.
    Thank's.

    FWIW, the usual explanations in regards to this are wrong more often that they are right.
    For example, the Acrobat License Agreement says nothing about emailing extended documents or posting extended documents on a web site, but rather simply deploying them.
    Also, it only mentions instances of an extended document in relation to how many the licensee may extract information from if the document was deployed to more than 500 recipients and returned to the licensee.
    If there are 500 or fewer recipients, the licensee may extract information from an unlimited number of instances of an extended document.
    George

  • Redirect page with POST method in JSTL

    how to redirect page with POST method in JSTL.
    below is the code that i make, but the page redirected with GET method,
    so, the URL shown as http://localhost:8080/tes2/coba2.jsp?nama=saya
    how to hide the parameter, so it didn't show at the URL..??
    anybody help me..??
    server1 -> coba1.jsp
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <head>
    <title>coba1</title>
    </head>
    <body>
    <c:url value="http://localhost:8080/tes2/coba2.jsp" var="displayURL">
      <c:param name="nama" value="saya"/>
    </c:url>
    <c:redirect url="${displayURL}"/>
    </body>
    </html>server2->coba2.jsp
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <html>
    <head>
    <title>coba2</title>
    </head>
    <body>
    <c:forEach items="${param}" var="currentParam">
            <li><c:out value="${currentParam.key}" />
                = <c:out value="${currentParam.value}" /></li>
          </c:forEach>
    </body>
    </html>

    There are other two way communications methods as well. One such would be:
    Server1Page1: Take response with parameters.  Use HttpURLConnection to make a request to DataInputServlet
                  on Server2 and send the parameters there with a POST operation
    Server2DataInputServer: Takes request with data in it and starts a new session.  Puts the data into the session and
                  returns the session id to the requester
    Server1Page1: Reads the response from the DataInputServer (the session id) and generates a sendRedirect to
                  Server2's display page using the session id.  Server1Page1 is now done.
    Server2Page1: Gets a request from the client with the session id, and pulls the parameters out of the session.  Then
                  can continue as normal.Server2Page1 can also do a quick refresh to itself not using the session id as well, which will keep the URL visible by the client relatively clean.

  • Passing value to another form with on demand process

    Hi,
    This is my first post and I am an absolute beginner to apex (using 4.1)
    I would like to pass a value to another form, but to no avail.
    I have an on demand process that is being called when a button is clicked (ISSUE)
    This process is being called from P33 and I need the value to go to P33_ST_NUMBER_HOLD
    DECLARE
      v_rownum NUMBER;
    BEGIN
      for i in 1..apex_application.g_f01.count
      loop
        v_rownum := apex_application.g_f01(i);
        apex_debug_message.log_message('row selected: '||v_rownum);
        apex_debug_message.log_message('value: '||apex_application.g_f03(v_rownum));
        htp.p('$x_Value("P17_ST_NUMBER_HOLD",apex_application.g_f03(v_rownum));');
    end loop;
    END;What am I doing wrong?
    Edited by: Hansen_____ on 2012/06/15 1:15 AM

    Hansen_____ wrote:
    htp.p('$x_Value("P17_ST_NUMBER_HOLD",apex_application.g_f03(v_rownum));');This is PL/SQL and you have to use one of these methods to set the item value, But you are using javascript API's in PL/SQL.
    FYI - javascript is a client/browser side and it got nothing to do with PL/SQL
    :P17_ST_NUMBER_HOLD := apex_application.g_f03(v_rownum);
    //OR
    APEX_UTIL.SET_SESSION_STATE('P17_ST_NUMBER_HOLD',apex_application.g_f03(v_rownum));http://docs.oracle.com/cd/E17556_01/doc/apirefs.40/e15519/apex_util.htm#AEAPI181

  • Problems with post-method in weblogic-server 6.0

    Hello,
              I tried to implement a servlet in Visual Cafe working with weblogic 6.0.
              As I used the get-method it worked fine, but as I used the post-method
              I got the following java.lang.IllegalArgumentException:
              bad URLMatchMap path:''
              Does anybody know about this error and where I would have to set the
              path-variable. I have already registered the servlet in web.xml
              Thanx for your help
              Thorsten
              

              Try installing SP1. In SP1 a bug regarding POST using HTTPS has been fixed. Check
              the bug id 041234 in this link
              http://edocs.bea.com/wls/docs60/notes/bugfixes2.html#1073617
              Shiva.
              "Raju" <[email protected]> wrote:
              > Hi,
              >>
              >> We are using Weblogic server 6.0 with out service pack 1.0.
              >>
              >> I am having problem with Https POST, i am using port 7002. and when
              >i use
              >> https post servlet hangs for lot of time. But when i use Https using
              >GET,it
              >> works fine.
              >>
              >> Did any one face the problems.
              >>
              >> Thanks in Advance.
              >>
              >> Raju
              >>
              >
              >
              >
              

  • Accessing Java webservice (XML over http) via WCF or HTTP adapter with content-type and authorization HTTP headers with POST method

    Hi Team,
    I need to access Java web service which is simple service and accepts and returns XML over HTTP. No credentials are needed to access the service. We need to pass following two HTTP headers (Content-Type and Authorization) along with XML request message:
    <GetStatus> message is being constructed in the orchestration and URI is constant to access.
    Which adapter shall I use to get the response back? I tried using WCF-WSHttp with Security Mode = Transport, and different options of client credential types but every time, error returned stating:
    System.Net.WebException:
    The HTTP request is unauthorized with client authentication scheme 'Basic'. The
    authentication header received from the server was 'Basic realm='.
    Authentication failed for principal Basic. Message payload is of type:
    String 
    In Fiddler, request looks line following
    POST <https://URL/GetServiceReopnse HTTP/1.1
    Content-Type: application/xml
    Authorization: Basic cmVmU3RhdHN2Y19kgeRfsdfs=
    Host: <Server name>
    <GetStatus XMLNS="http://server.com/.....">
    <OrgId>232323</OrgId>
    <HubId>3232342323</HubId>
    </GetStatus>
    MMK-007

    First, you should not use the HTTP Adapter because it's been deprecated and replaced by WCF.
    Start with the WCF-Custom Adapter and select the customBinding.
    You should start with the textMessageEncoder and httpTransport and go from there.

  • HELP!!! Wierd CF 9.02 issue when "to many" form fields are posted in "post" method

    So we just installed cf9.02 64 bit on all brand new windows server 2003 machines and migrated all code over and we have run into the wierdest (and very dead on the water) issue, any form posting to a cf templae with a "large" amount of fields using method = "post"  barfs, works fine with method = "get" or with a smaller amount of fields.  Here are some "basic" examples I pulled out of our app: 
    https://dev1.mystudentsprogress.com/testposting/smallform.html --> this is using method = "post" and works fine with a small number of fields, click save and it calls a cf template that simply says "index.cfm here" 
    https://dev1.mystudentsprogress.com/testposting/formget.html ---> this is using method = "get" and also works fine, click save  and it calls a cf template that simply says "index.cfm here" 
    https://dev1.mystudentsprogress.com/testposting/formpost.html --> this is using method = "post" and it barfs, click save and you get an error 500 page  And once this happens the "next" call for even the succesfull pages returns a blank page i.e. go here: 
    https://dev1.mystudentsprogress.com/testposting/smallform.html and click save No go here again and click save: 
    https://dev1.mystudentsprogress.com/testposting/smallform.html 
    ...there is nothing in any of the CF logs indicating any kind of errors, it just flat barfs on forms with post method and a large amount of fields, clearly a MAJOR issue as our app has lots ot screens with lots of fields!!

    You might investigate the postParametersLimit and postSizeLimit values in your server's neo-runtime.xml file.  I suspect you'll need to increase the values for those two settings.  Remember to back up this file before making any changes. You will need to restart the CF server to apply any changes made to the settings in this file.
    See the CF 9.0.2 release notes for more information: http://helpx.adobe.com/coldfusion/release-note/coldfusion-9-0-update-2.html

  • File Not found error when calling Form Post Method to a JSP from JSP Portlet

    I have built a set of JSP forms using post method to call other JSPs. Normally, the code looks like
    <form name="MyForm" action="MyJsp.jsp" method="post">
    I migrated the calling form containing this code to a portlet, but not the MyJsp.jsp. When I submit the form, I get a file not found in Jserv.log
    Exception:javax.servlet.ServletException: java.io.FileNotFoundException: D:\servlet\RegisterCompany.jsp (The system cannot find the file specified)
    [14/06/2001 13:59:59:679 PDT] JspServlet: unable to dispatch to requested page: Exception:javax.servlet.ServletException: java.io.FileNotFoundException: d:\oracle\isuites\apache\apache\MyJsp.jsp (The system cannot find the file specified)
    I notice that launching the calling jsp from a portlet, my opriginal context that uses ../Apache/Apache/htdocs is not being searched for the JSp. Why is this? Moreover, I try to set up an Alias in httpd.conf file to the this director and use it with the jsp in the action tag, but still get an error that my jsp servlets/Myjsp can't be found. Why is it insiting on looking at servlets context instead of htdocs.
    I have none of these issues outside of Portal30 using IAS.
    regard

    Initially, I couldn't do this unless I moved tghe jsp's up to the root directory of IAS, i.e ../Apache/Apache. Nomrally, htdocs is my doc directory for IAS. I could not do http:\\myUrl\htdocs\myJsp. If I tgried this, I got an error in Apache error logg that said can't find file ..\htdocs\htdocs\MyJsp.jsp.
    If I just tried the the URL http:\\myUrl\MyJsp.jsp with Jsp file in htdocs, I would get an error in the Jserve log that file d:\oracle\isuites\apache\apache\MyJsp.jsp could not be found. Once I moved the file MyJsp to Apache/Apache directory, it could be found using http:\\myUrl\MyJsp.jsp. Later, I delted these files and kept the ones in htdocs and they continued to work.
    I'm confused why launching pages through portal isn't consistant with Apache Standards. Where is the documentation that tells me how to configure context and aliases for pages launched from portal pages?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Sue Vickers ([email protected]):
    David,
    Passing information using Portal is different than just using Apache/Jserv. Does it work in portal if you use the absolute path?
    <form name="MyForm" action="http://host.domain/MyJSP.jsp" method="post">
    Portal will not be on the same relative path as your Apache, so you may need to adjust your action somehow.
    Thanks,
    Sue<HR></BLOCKQUOTE>
    null

  • Getting the values of a form (JSP, JavaScript involved)

    Hi, basically I want to read the values from one page to another one, but I have found that when call the jsp from a javascript function it does not work!!! ... if I call the page "getValues.jsp" directly from the <form action>, everything works perfectly ...
    ... does anyone know how to read the values without putting the jsp directly into the <form action>?
    In asp i used to get the values from the form with a "Request.Form('fieldName')" method, and i could call the asp from any javascript function. Does jsp has anything similar to that?
    ----- fillValues.jsp ----
    <script language="JavaScript">
    function doSomething(){
    // do something else
    window.document.location="getValues.jsp";
    </script>
    <html>
    <body>
    <form method="post" action="javascript:doSomething()" name="x">
    <input name="fldSubject" type="text">
    </form>
    </body>
    </html>
    ------- getValues.jsp ---
    <%@ page import="java.lang.*" %>
    <%@ page import="java.util.*" %>
    <jsp:useBean id="_mb" class="MyBean" scope="session"/>
    <%
    _mb.setSubject(request.getParameter("fldSubject"));
    %>
    <html>
    Subject <%= _pr.getSubject() %><br>
    </html>

    I dont know what the problem in your code is but the following works:
    <script>
    function foo()
    document.myForm.action="getValues.jsp";
    </script>
    <form name="myForm>
    <input type="submit" name="submit" onClick="foo()">
    </form>

  • ASP url, post method

    Hi all,
    I' m working on a web crawler to crawl information about company. I need to get information from a web company register http://www.ur.sk.
    Url with all needed information looks like this one: http://www.ur.sk/index.asp?lang=&stranka=3&ID=0&ico=35700921 where Ico is known ID of slovak company but ID is unknown.
    All I need is to search the company using this form http://www.ur.sk/index.asp?stranka=1. For example you can try to write this ICO number in the form 36513873 and click 'Hladat'. From the search results it's able to get wanted url after clicking the button 'Vypis'. Form uses post method but when I try to figure out a url with query strings it's not working.
    Can anyone help me to go through that form and get the wanted url with correct ID in it..?
    Thanks

    An idea. Add attributes charset and throwOnError to the
    cfhttp tag. remove the port attribute. Then wrap everything around
    try/catch. Hopefully, that should tell us a bit more if it were to
    fail again.
    <cftry>
    <cfhttp URL="https://<url
    address>:444/2serverAuth.asp"
    method="POST" charset="UTF-8" throwonerror="yes"
    resolveurl="false" timeout="60">
    <cfhttpparam type="Header" name="Accept-Encoding"
    value="deflate;q=0">
    <cfhttpparam type="Header" name="TE"
    value="deflate;q=0">
    <CFHTTPPARAM type="HEADER" name="User-Agent"
    value="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)">
    <cfcatch type="any">
    <cfdump var="#cfcatch#">
    </cfcatch>

  • HTTP Receiver adapter with post

    Hello,
    I have following scenario.
    XI (http receiver adapater) -
    > 3rd party web based application.
    The 3rd party application expects XI payload to be part of URL with POST Method.
    When HTTP receiver adapter sends request to 3rd party application, the URL looks like as follows.
    http://myserver:6789/myapplication/name1=value1&name2=value2&.....&name27=value27
    I looked at HTTP receiver adpater document on SDN. I see some attributes such as headerfiled1, headerfiled2..... headerfield6 and urlfield1....urlfield6. I have about over 25 fields to be passed with URL.
    Now I have following questions.
    1. How to make XI payload as name value pairs and part of URL.?
    2. I think the default for http adapater is GET, How to configure http adaper to use POST?
    I appreciate your help.
    Thank you,
    Balaji

    > 1. How to make XI payload as name value pairs and part of URL.?
    You should create the whole URL in a user defined function in mapping.
    > 2. I think the default for http adapater is GET, How to configure http adaper to use POST?
    HTTP adapter (and SOAP adapter) use HTTP POST. GET is not supported.
    Regards
    Stefan

  • A page with a post method form is not opening in PageViewer web part

    Hi,
    I wanted to display a page in the Page Viewer web part. So, i gave the URL of the page in the Page Viewer web part.
    The page is rendered as expected. 
    Now, the page has a link when clicked opens another page which has a form with a post method. The issue is the page with the form is not opening. I want the page to open and function as expected.
    Any suggestions?

    Hello Raghavendra_RT,
    Is that page on SharePoint, or is that on the internet?
    If the second is the case I would just use a hyperlink which opens in a new tab via target blank attribute:
    http://www.w3schools.com/tags/att_a_target.asp
    And you can place it in a content editor web part.
    Btw, with SharePoint 2013 you can use the Script Editor Web Part to embed a form from a source like Survey Monkey:
    http://community.bamboosolutions.com/blogs/sharepoint-2013/archive/2013/05/20/how-to-use-script-editor-web-part-in-sharepoint-2013.aspx
    - Dennis | Netherlands | Blog |
    Twitter

  • Render html form & send forms's input values as params via HTTP POST

    Hello,
    I'm using appache commons http client to send HTTP post queries to a given url and receive HTTP response then process it.
    one of the requirements of my Application is the following: one of these HTTP Post requests is supposed to return an HTML form with different html types (text filed, text area etc..) that i will need to display in my swing application. one important requirement is that i can't know in advance what the html form field types will be.. it depends on a given parameters that my application send as part of HTTP Post method (using apache http client).
    I Longly searched for a simple solution to this problem . There are many solutions but each one has it's limitations :
    1-i can render the html form inside a JEditorPane .but how can I collect the user entered data inside JEditorPane ? i'm not sure this swing component offers the capability to detect its html contents and more it will be difficult to know what are the values entered by user inside html form rendered by JEditorPane.
    2-are there any Java Embedded browsers that offer some API to enable me detect the html form fields ,capture the data entered by user inside the html form ?
    3-the solution i currently opted for is : parse html & convert html form to swing dialog. currently this solution i use works well but the cost of implementing it is high : it involves difficult parsing logic. this makes me worried .I'm not sure if i'm now using the right & easiest solution.
    I need some advice on What is the simplest and clean solution to render a html form & yet be able to collect user entered inputs & send the user input values as params via java HTTP POST request ?

    dragzul wrote:
    In my opinion, your actual solution is what you need to do. You're trying to "merge" two different kinds of view. Actually, the "easiest" way may be: if you have your data to display, you decide to show it on html or swing.Yes i believe that my current solution may be the unique one for my special requirements. when doing research about this problem i found a multitude of java libraries to convert xml to swing (ex: www.swixml.org) .However i was surprised there are no java libraries to convert HTML forms to swing dialogs -as far as i know-. this is a bit strange. The Limitation is that the developers of the server API are not Java guys and are reluctant to use an xml format that i can easily convert to swing . probably they have their own reasons as they might be using the HTML Response for some other server side work. So I was obliged to deal with an HTML stream that i need to display in my client application and process its data. in my opinion the only way to do this is by developing a HTML form to swing converter package. that's what i did now. i was only worried if i'm complicating things and if there are some easier solutions to this issue.
    thanks

  • GetURL / LoadVars with POSTing values

    Hi
    Seems like there are lots of getURL / LoadVar problems and
    this one seems bizarre to me.
    I am trying to submit form entries in Flash to an external
    perl script. I understand that locally Flash won't function with
    getURL now, so have uploaded it to my server and tried testing it.
    I tried just calling a getURL from within Flash with the
    following:
    wholeString = "
    http://myHost.com/cgi-bin/FormMailer.pl?recipient=1&subject=NewFlashTest";
    getURL(wholeString,"_self", "POST");
    I know that the perl script and this format function as I've
    sent the following from a form within my website:
    <form method="post" action="
    http://myhost.com/cgi-bin/FormMailer.pl?recipient=1&subject=NewTest">
    <input type="hidden" name="recipient" value="1" />
    <!--input type="hidden" name="subject" value="Webdesign
    feedback form" /-->
    Name: <input type="text" name="name" /><br />
    Address: <input type="text" name="mail_address"
    /><br />
    E-mail: <input type="text" name="email" /><br />
    Telephone: <input type="text" name="telephone"
    /><br />
    <input type="submit" />
    </form>
    This HTML form functioned exactly as it should. However, my
    Flash script did call the function, but the perl script returned
    saying that no recipient was passed to it. Yet the complete URL,
    including the recipient value is contained in the address bar of
    IE.
    So, I tried with LoadVars instead. I tried this:
    myObject = new LoadVars();
    myObject.recipient = 1;
    myObject.subject = "Testing of LoadVars";
    myObject.name = "with LoadVars";
    myObject.email = "[email protected]";
    myObject.send("
    http://myhost.com/cgi-bin/FormMailer.pl"
    ,"_self","POST" );
    At the moment this is situated in a function called from an
    onRelease on a button.
    However, this appeared to do nothing and I receive nothing
    from the perl script mailer.
    Anyone have any suggestions? Thanks.

    When you use your form you are sending the variables
    recipient and subject using both methods, GET and POST. Maybe this
    is why the script works because it depends on this fact (it is not
    the right thing to do though).
    In your second example using LoadVars change the last line
    to:
    myObject.send("
    http://myhost.com/cgi-bin/FormMailer.pl?recipient=1&subject=NewTest",
    "_self", "POST");
    This way you'll be doing the same as your form is doing.
    If on the other hand it still doesn't work maybe it is due to
    security restrictions. If the host you are calling for example is
    myHost.com from flash the this is the same domain you need to use
    for the html page that contains the flash file. Otherwise flash
    will be blocked. Flash blocks itself from sending and reding data
    from internet if the file is in your local machine and viceversa.
    It blocks comunication too when the file is not in the same domain.
    Even if the domain is the same but you write it different. For
    example if you have your own server you can start you app using the
    domain localhost. But if flash is calling data using 127.0.0.1 then
    flash will block communication even though both ways of
    communication refer to the same server.

  • Creating the JSPDynPage ( form   name="myFormName" method="post" action=""

    Hi All,
    I am developing JSPDynPage example ,in this example i am using html tags instead  of business HTML . So  when i am submitting the JSP page , what is the name of the action i have to set in action method.
      So please provide me detailed information for the above query and that would be greatly appreciated
    Regards
    Siva
    This is my java class :
    public class test extends PageProcessorComponent
    below i am posting the my jsp page code:
    <jsp:useBean id="myBean" scope="request" class="test.testmyBean" />
    <hbj:content id="myContext" >
      <hbj:page title="PageTitle">
       <form   name="myFormName" method="post" action="">  
                   <input type="text" name="T1" size="20" value="<%=(myBean == null)?"":myBean.getText()%>">
    <input type="submit" value="Submit" name="B1"  onClick="javascript:fntCheck();">
       </form>
       <script language="javascript">
         function fntCheck()
              document.myFormName.submit();
         </script>
      </hbj:page>
    </hbj:content>

    Hi Siva,
    We can use <hbj:form> tag in our HTML code. So use <hbj:form> tag in place of normal HTML <form> tag and place a <hbj:button> tag in the hidden part of the HTML code.
    When the user clicks on the HTML button, at that time call javascript to trigger the <hbj:button> button. This will submit the form to the server as the same way as submitting the page of HTMLB.
    We implimented this in our project.
    Follwing are the steps to do:
    1. Replace <form> tag with<b><hbj:form></b> tag.
    2. Add the follwing code in your JSP.
              <b><div style="visibility:hidden;">
                   <hbj:button
                      id="Update"
                      encode="false"
                      text="Update"
                      width="125px"
                      tooltip="Click here to update address data."
                      onClick="Update"
                      disabled="false"
                      design="STANDARD"
                      jsObjectNeeded="TRUE"
                   />
              </div></b>
    3. Add the follwing line of code in <u>'fntCheck()' </u>javascript function.
    <b>
    var funcName = htmlb_formid+"_getHtmlbElementId";
        func = window[funcName];
    var buttonUpdate = eval(func("Update"));
    document.getElementById(buttonUpdate.id).onclick();</b>
    Deploy & Run.
    Cheers....
    Satya

Maybe you are looking for