How to send more than one request parameter through a submit button?

Hi,
I want to send two request parameters from the JSP page to the Struts application via following tag:
<html-el:submit property="event" value="Assign"/>
This piece of code sends only one request parameter to the backend application: The name of the request parameter is "event" and the value is "Assign".
However I want to send one more request parameter with each button click. How can I do this?
Any help is greatly appreciated.

One thing u can do is add a hidden field and set value into it. When u submit the form this value also will be available in the request object. use request.getParameter("name") to get the value.

Similar Messages

  • How to send more than one parameter from FORM to REPORT?

    Dear all,
    i can send one parameter from FORM to REPORT. but when i send more than one parameter it gives error: frm 41214 unable to run report.
    here is the code i think the error is in the following line of procedure:
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_date_from='||v_date_from||'p_date_to='||v_date_to);
    where to place the parameters and is there any space is required?
    Thanks
    Muhammad Nadeem

    Dear Saeed Iqbal,
    thanks for you reply.
    dear i am using Form 10g run_product is not supported in this version.
    i am using RUN_REPORT_OBJECT.
    PROCEDURE rep_gl_ledger IS
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    rep_status VARCHAR2(50);
    v_date_from date;
    v_date_to date;
    v_detail_id_from varchar2(100);
    v_detail_id_to varchar2(100);
    v_voucher_type varchar2(100);
    --req_no char(17);
    BEGIN
    v_date_from :=      :ledger_para.p_date_from;
    v_date_to :=      :ledger_para.p_date_to;
    v_detail_id_from :=      :ledger_para.p_detail_id_from;
    v_detail_id_to :=      :ledger_para.p_detail_id_to;
    v_voucher_type :=      :ledger_para.p_voucher_type;
    repid := find_report_object('gl_ledger');
    --repid := find_report_object('REPORT80');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_EXECUTION_MODE,BATCH);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_COMM_MODE,SYNCHRONOUS);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESTYPE,CACHE);
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_DESFORMAT,'pdf');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_SERVER,'rep_online_FRHome');
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no p_date_from='||v_date_from||'p_date_to='||v_date_to);
    --SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no');
    v_rep := RUN_REPORT_OBJECT(repid);
    rep_status := REPORT_OBJECT_STATUS(v_rep);
    WHILE rep_status in ('RUNNING','OPENING_REPORT','ENQUEUED')
    LOOP
    rep_status := report_object_status(v_rep);
    END LOOP;
    IF rep_status = 'FINISHED' THEN
    /* Display report in the browser */
    WEB.SHOW_DOCUMENT('http://'||:GLOBAL.G_IP||'/reports/rwservlet/getjobid'||substr(v_rep,instr(v_rep,'_',-1)+1)||'?','_blank');
    ELSE
         message('Error when running report');
    END IF;
    END;
    Regards:
    Muhammad Nadeem

  • How to send more than one value to the Jump target report variable screen.

    Hi,
       I have two reports with Plant variable on their input variable screens. Say this Plant can take two values X and Y. The first report is executed with Plant value X and displays data. When a jump is made  to report two, Plant value X is retrievd into report two's plant varible value. Now how to send value Y also to Report two when jump is made. I think we can do it with a customer exit? Any help is appreciated
    Thanks
    Bhanu

    Hi Bhanu,
    I guess u have created a Variable with Sinlge value ,So Create a Variable which has Multiple Sinlge Values or Interval so that u can have more than one value and if u hvae more than value u will get data for those values and when u do a jump then u can see the data in the JUMP query for both the Values of Input.
    Rgds
    SVU123

  • How to send more than one email while creating Order

    Hi,
    after upgrade from 4.5 to 4.7 we have following problem. In 4.5 in XK03 t-code we could enter for our vendors more than one email address (divided by ";" sign). In 4.7 it is impossible. When we create Purchase Order, the output of the created document is email (our own defined Z*) and we would like that this document prinout should be sent to more than one vendor's email addresses.
    And in our R/3 4.7 we cannot input in XK03 more than one email address because program SAPFM06P, which prints Purchase Orders, runs function module SX_INTERNET_ADDRESS_TO_NORMAL, which checks if there are ";" in the address and if yes - it causes error.
    How to make vendor data so that the email is sent to more than one email address?
    any help would be appreciated.

    Hi Dorota,
    I think there is no such option to disable in SPRO as far i am aware of.
    May be you might want to use a distribution list instead of an email? Or try to misuse any unused field( you can enable many other fields from SPRO which are really not used generally).
    Cheers
    VJ
    Btw if you wish to explore here is the path in SPRO
    Fiancial Accounting --> Accounts Receviable and Accounts payable --> Vendor Accounts --> Master Data --> Prepareations for creating vendor master data --> Define account groups with screen layout.
    Select the account group for your vendor and from the next screen double click on General data section and then again double click on communication section.
    Cheers
    VJ
    Message was edited by: Vijayendra  Rao

  • How to send more than one pic in email?

    Im trying to creat a email with more than one pics taken by iphone3G. but everytime I can only attach one to an email.can I attach more than one pic in an email?
    Thanks

    please help.

  • How to send More Than One Parameter To A Pop-Up Region

    Hi
    I am trying to send multiple parameters to my (standard) OAF Parameterized popup in Release 12.1.3.
    According to the OAF Dev Guide I can use this field to send 'Specify any base page parameters to pass to the pop-up region, if the pop-type is parameterized.'
    I can send a single parameter (e.g. *pItemID={@ItemID}* ), but I don't know how to send another parameter. Using commas and/or spaces as delimiters
    doesn't seem to work.
    What is the correct syntax to send multiple parameters?
    Thanks, RMH

    Hi,
    I haven't tried but u can follow the below approach.
    popupBean1.setParameters("pItemID={@ItemID}&deptNo={@Deptno}")
    Regards,
    Gyan

  • HttpConnection: Sending more than one data item through POST

    Hi,
    I am trying to send data to a PHP server through POST. I am sending two variables, login and password. But I think there is some problem with the formatting of the data, the server is reading it as one variable.
    I use a class called PostPackager to format the data. And then recieve the server response.
            PostPackager pp=new PostPackager();
            pp.addText(login,"login");
            pp.addText(passwd,"password");Login and Passwd are Strings. The server responds with the value of the variable "login" as....
    anurag
    ---------------------------7d43722015402c8
    Content-Disposition: form-data; name=\"password\"
    anurag
    ---------------------------7d43722015402c8-- This certainly means it is taking both variables as one, and not understanding the boundary. Please help.
    * PostPackager.java
    * Created on April 28, 2005, 2:16 AM
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    * @author anurag
    public class PostPackager
        private ByteArrayOutputStream baos;
        private String boundary;
        /** Creates a new instance of PostPackager */
        public PostPackager()
            baos=new ByteArrayOutputStream();
            boundary = "---------------------------7d43722015402c8";
            String s ="--"+boundary;
            writeTo(s);
        public void addImage(byte []imgData,String fieldName)
            writeTo("\r\nContent-Disposition: form-data; ");
            writeTo("name=\""+fieldName+"\" filename=\"packager.png\"\r\n");
            writeTo("Content-Type: /x-png\r\n\r\n");
            try
                baos.write(imgData);
            catch(IOException ioe)
                System.out.println("Packager: Output stream crashed.");
            writeTo("\r\n");
            writeTo(boundary);
        public void addText(String txtData,String fieldName)
            writeTo("\r\nContent-Disposition: form-data; ");
            writeTo("name=\""+fieldName+"\"\r\n\r\n");
            writeTo(txtData);
            writeTo("\r\n");
            writeTo(boundary);
        public String getBoundary()
            return boundary;
        public byte[] getRequest()
            writeTo("--\r\n");
            return baos.toByteArray();
        private void writeTo(String s)
            byte []b = s.getBytes();
            try
                baos.write(b);
            catch(IOException ioe)
                System.out.println("Packager: Output Stream crashed.");
    }

    Hi there,
    Thanks for the help. I finally got the error. I also wrote the code to generate the request.
    Here it is.....
    http://students.iiit.net/~anurag_rana/linux/PostPackager.java
    http://students.iiit.net/~anurag_rana/linux/InfoExchanger.java
    (might remove it soon)
    The format of the POST request is...
    --boundary\r\n
    Content-Disposition: form-data; name="photo"; filename="some.png"\r\n
    Content-Type: /x-png\r\n\r\n
    <image data>\r\n
    --boundary\r\n
    Content-Disposition: form-data; name="name"\r\n\r\n
    <text data>\r\n
    --boundary\r\n
    here we are sending two variables, photo and name, one is a image, and another is text. We will store this entire data in a array,... say PostData.
    We can send it like this.
    HttpConnection htt=(HttpConnection)Connector.open(url,Connector.READ_WRITE);
    htt.setRequestMethod(HttpConnection.POST);
    htt.setRequestProperty("content-type","multipart/form-data; boundary="+boundary);
    DataOutputStream dos=htt.openDataOutputStream();
    dos.write(PostData);
    dos.flush();
    dos.close();I am just writing all the info to help if someone has the same problem. Cheers!!

  • How to send more than one doc via email from Pages on iPad

    When sending a resume and a cover letter via Pages from my iPad, how do I send a second document via the same email?

    What fruhulda said. In addition, in the Mail composition window, I recommend that you select the paperclip icon from the Toolbar, and enable Send Windows-Friendly Attachments.
    You can also select multiple files in the Finder and drag them onto the composition window. In my experience, the documents resist an iconic state, so right-click on just one, and choose View as Icon from the contextual menu. This will transform all attached documents into icons.
    If you want to send just one document from within Pages v5, use the Share icon in the Toolbar and select Send a Copy > Email. You can then choose PDF (and its image quality), or Word (.docx default, or .doc) document formats that will be attached as an icon in a new pop-up Email composition window.

  • How to send more than one command at the same time to write buffer in VISA READ?

    Hi,
    I'm using the LABVIEW->serial.VI with a small modification for my serial communication with a shutter control unit.At present,I can send one command CTSO1 to the write buffer.My instrument can read upto 5 commands.I want to send CTSO1 and CTSO2 simulatenouly so that i could open two shutters simulatenously.Note that commands have carraige return constants as terminatting characters.I'm enclsoing the VI which works for one command.
    Any help in this regard is greatly appreciated!
    Regards,
    Rajesh
    Attachments:
    VI_SHUTTER_JUNE30.vi ‏50 KB

    You cannot do two different simultaneous VISA writes over a serial bus. There is a single rx line on the pc's com port and a single rx line on the instrument. You only hope is if the instrument allows you to chain commands and the reception of the carriage return triggers the instrument to implement both at the same time. Maybe you can send CTS01 and CTS02 separated by a space or comma. The manual should tell you if that's possible or maybe you need to ask the manufacturer.

  • More than one request for a single submit through IE 5.5/Netscape 4.7

    While using IE 5.5 or Netscape 4.7, I'm getting 3 requests coming to my servlet for a sigle submit from the same page. All 3 requests have 3 different thread ids. Can anyone advise how to prevent this?
    Thanks in advance for your early response.
    Thanks,
    Kalyan

    There is a good chance that the page that makes the request has the problem. I have seen it happen for using unnecessary javascript which submits the same form several times. check that page first.

  • How to emai more than one person

    hi, can someone please post some code on how to send more than one person the same email, i tried what's below but get an error:
    //  Send message out as email via JavaMail
    //  Emails for group 1
    String namesOne[] = {"[email protected], [email protected]"};
    //  Vector to store names
    Vector namesInGroup = new Vector();
    //  Add names to vector
    for(int i=0; i<namesOne.length; i++) {
         namesInGroup.add(namesOne);
    Properties props = new Properties();
    props.put("mail.smtp.host", "???");
    Session s = Session.getInstance(props);
    MimeMessage message = new MimeMessage(s);
    InternetAddress from = new InternetAddress("[email protected]");
    message.setFrom(from);
    InternetAddress[] to = new InternetAddress[namesInGroup.size()];
    String emailOfPerson;
    for(int i=0; i<namesInGroup.size(); i++) {
         emailOfPerson = (String)namesInGroup.elementAt(i);
         to[i] = new InternetAddress(emailOfPerson);
    message.setRecipients(Message.RecipientType.CC, to);
    message.setSubject(subjectOfMessage);
    String text = mailText.toString();
    MimeMultipart mm = new MimeMultipart();
    MimeBodyPart mbp = new MimeBodyPart();
    mbp.setContent(text,"text/html");
    mm.addBodyPart(mbp);
    message.setContent(mm);
    Transport.send(message);
    // End of JavaMail code
    the host is fine, ???, just didn't want to write it there, i've been able to email one person but can't get this to work, i get the following error:
    [05/Sep/2002:15:27:03] failure (10730): Internal error: exception thrown from the servlet service function (uri=/WriteAndEmail.jsp): javax.servlet.ServletException: Illegal address, stack: javax.servlet.ServletException: Illegal address
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:384)
    at WriteAndEmailjsp._jspService(_WriteAndEmail_jsp.java:291)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
    at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:533)
    , root cause: javax.mail.internet.AddressException: Illegal address in string ``[email protected], [email protected]''
    at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:66)
    at WriteAndEmailjsp._jspService(_WriteAndEmail_jsp.java:243)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
    at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:533)
    both emails are valid.
    Thank you.

    soni29 wrote:
    hi, can someone please post some code on how to send
    more than one person the same email, i tried what's
    below but get an error:
    //  Send message out as email via JavaMail
    //  Emails for group 1
    String namesOne[] = {"[email protected],
    [email protected]"};
    //  Vector to store names
    Vector namesInGroup = new Vector();
    //  Add names to vector
    for(int i=0; i<namesOne.length; i++) {
         namesInGroup.addElement(namesOne);
    Properties props = new Properties();
    props.put("mail.smtp.host", "???");
    Session s = Session.getInstance(props);
    MimeMessage message = new MimeMessage(s);
    InternetAddress from = new
    InternetAddress("[email protected]");
    message.setFrom(from);
    InternetAddress[] to = new
    InternetAddress[namesInGroup.size()];
    String emailOfPerson;
    for(int i=0; i<namesInGroup.size(); i++) {
         emailOfPerson = (String)namesInGroup.elementAt(i);
         to[i] = new InternetAddress(emailOfPerson);
    message.setRecipients(Message.RecipientType.CC, to);
    message.setSubject(subjectOfMessage);
    String text = mailText.toString();
    MimeMultipart mm = new MimeMultipart();
    MimeBodyPart mbp = new MimeBodyPart();
    mbp.setContent(text,"text/html");
    mm.addBodyPart(mbp);
    message.setContent(mm);
    Transport.send(message);
    // End of JavaMail code
    the host is fine, ???, just didn't want to write it
    there, i've been able to email one person but can't
    get this to work, i get the following error:
    [05/Sep/2002:15:27:03] failure (10730): Internal
    error: exception thrown from the servlet service
    function (uri=/WriteAndEmail.jsp):
    javax.servlet.ServletException: Illegal address,
    stack: javax.servlet.ServletException: Illegal
    address
    at
    org.apache.jasper.runtime.PageContextImpl.handlePageExc
    ption(PageContextImpl.java:384)
    at
    WriteAndEmailjsp._jspService(_WriteAndEmail_jsp.java:
    91)
    at
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBa
    e.java:126)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java
    826)
    at
    com.netscape.server.http.servlet.NSServletRunner.Servic
    (NSServletRunner.java:533)
    , root cause: javax.mail.internet.AddressException:
    Illegal address in string ``[email protected],
    [email protected]''
    at
    javax.mail.internet.InternetAddress.<init>(InternetAddr
    ss.java:66)
    at
    WriteAndEmailjsp._jspService(_WriteAndEmail_jsp.java:
    43)
    at
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBa
    e.java:126)
    at
    javax.servlet.http.HttpServlet.service(HttpServlet.java
    826)
    at
    com.netscape.server.http.servlet.NSServletRunner.Servic
    (NSServletRunner.java:533)
    both emails are valid.
    Thank you.
    try using addElement()method of the vector.
    or get all the address as one string represented by _to
    where _to = "[email protected], [email protected]";
         //set to addresss
    InternetAddress to = new InternetAddress() ;
    InternetAddress [] toadd = to.parse(_to);
    msg.setRecipients(Message.RecipientType.CC,toadd);
    i hope this wouldhelp you
    thanks and regards,
    Suraj Berwal                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to send more than 1 attachment thru email

    Hi All,
    Need to know how to send more than one attachment through email.  I need the coding part of it.
    Thanks in Advance.
    Balaji

    Hi Balaji,
    Check this thread
    Sending mail with 2 attachments
    Regards,
    Santosh

  • How to make manager approve more than one request in one time in SSHR

    Dear All,
    Anyone has an idea on how to make manager approver more than one request in one time in SSHR??
    for example, manager is having 20 requests to approve on Change Pay Function, he don't want to check one by one and approve it, he want to approve the 20 requests directly from one time, is there any solution for that??
    Thanks and Regards

    Hi Adel,
    As Vignesh has mentioned we don't have any standard functionality which will allow bulk approvals. We had same kind of requirement in performance management where the business was asking for a bulk approval feature which should be available to Skip level manager for approving the rating suggested by line manager. We had created a custom page which will list all the notifications and user can select the ones which S/He wants to bulk approve and click submit button. Internally we had called the workflow with item key and other required parameter and do the approval.
    You can have a work with your technical guy and can work on the same lines.
    Thanks,
    Sanjay

  • How can i send more than one signal to DMA FIFO?

    Hello,
    I'm trying to send more than one signal to DMA FIFO, but i don't know how to do. When i send one signal i don't have problems. I try to use one block DMA FIFO for one signal. For example if i have 3 signal i use · DMA FIFO but whe i want to wath them in a waveform chart the signals have a delay.
    How can I do to send more than one signal to DMA FIFO? and if that's no posible, How i can do for syncronizate the 3 signals?
    The data type of the signal is FXP <16,10>
    Regards.
    Pablo
    Solved!
    Go to Solution.
    Attachments:
    Block Diagram.jpg ‏81 KB
    Block Diagram.jpg ‏81 KB

    Not quite.  You need to use the Integer To Fixed Point Cast to change from the integers to your FXP numbers.  You can then build them into a cluster to write to the Waveform Chart.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Combine and Decode FXP.png ‏14 KB

  • How can I send more than one document on an email

    how can I send more than one document on one email

    Thank you but I understand that form of attaching a document. However when I select a document then click 'Share' I have the option of sending the document by email as a word or pages document or pdf, what I want to know is can I use this procedure to send more than one document per email and if I can how?

Maybe you are looking for

  • WBS element reg

    Hi SAP Gurus, When I am trying to create PR/PO the following error is appearing In document item 010 WBS element 026140008316, budget for WBS element 0261400083 for fiscal year 2009 was exceeded by 87,070.95 EGP. Can you pl.throw some light on this i

  • Usage limit

    Hi, I've been with BT for about 6months now and never had a problem with it until now. I received an email on Monday saying I'd used over 7GB of my 10GB allowance for the month. Having checked it today it now says i've used 9.3GB! I've maybe watched

  • Windows 8 Explorer cannot see NAS drive on WiFi connected laptop

    I have several devices on my home network. Windows XP PC's, Windows 7 PC's, Android tablets, and 2 Windows 8 laptops.  All the devices can see the harddrive attached to my WiFi router except for one of the Windows 8 laptops and I can't seem to figure

  • JStartupICheckFrameworkPackage: can't find framework package jvmx.jar

    Hi,  I do not manage to open J2EE Engine Visual Administrator I have this message: Unable to lookup connection default http://SOLMAN:8100/msgserver/text/logon returned empty list of connection parameters I have create a new connection with port 50104

  • Web Browser  -  removing cookies

    For the past 5 x days I've been having trouble getting into a website I use daily. Their technical person advised me to remove cookies from my browser, but I don't know how to do this, nor even where my browser is. They've emailed me: Thanks for your