Geeta,

Another problem ... request.getParameter will return a value of type String.
Use the Integer wrapper class to create an Integer object, then set your int
variable to its intValue() ...

<% int progId = new Integer(request.getParameter("Id")).intValue();

...blah...

%>

Thanks,

P.J. Tenn
Business Analyst
NetworkOil, Inc.
713.590.1514 (direct)
713.951.0101 (fax)
[EMAIL PROTECTED]


-----Original Message-----
From: Aggarwal, Pawan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 12, 2000 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP - JavaScript Question ??...URGENT!!


say document.frm.submit();
Also Put a semi colon after the line document.frm.action=....;


        -----Original Message-----
        From:   Geeta Kottapalli [SMTP:[EMAIL PROTECTED]]
        Sent:   12 June 2000 22:50
        To:     [EMAIL PROTECTED]
        Subject:        JSP - JavaScript Question ??...URGENT!!

        I am trying to send some values from one page to
        another or to the same page while submitting the form
        as :
        function submitInfo() {
         document.frm.method="post";
         document.frm.action="test.jsp?Id=100&val=200"
         document.submit();
        }

        In the JSP page when I request for the values as

        <% int progId = request.getParameter("ID");
           ....
           ....
        %>

        the values requested are null.
        Please help me.In JDeveloper where I developed the
        application worked fine.But when I deployed in JWS
        most of my JavaScript is not working.
        If anyone of you know why this is happenning or any
        suggestions how to solve it please.... let me know.
        Thanks,
        Geeta







        __________________________________________________
        Do You Yahoo!?
        Yahoo! Photos -- now, 100 FREE prints!
        http://photos.yahoo.com


===========================================================================
        To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
        Some relevant FAQs on JSP/Servlets can be found at:

         http://java.sun.com/products/jsp/faq.html
         http://www.esperanto.org.nz/jsp/jspfaq.html
         http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
         http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to