Including jsp form in multiple jsps

Hi
I have a requirement to include a common jsp form in several other jsps that live in different web applications. For e.g. there is test_form.jsp taht I can access via http://www.test.com/common/test_form.jsp. There are several other jsps /app1/call_test1.jsp , /app2/call_test1.jsp taht need to include the /common/test_form.jsp. These jsps just provide different look with specific images etc.. We also need the pages to be accessed via those specific urls.
The form is showing fine. But when I submit the included form, I am submitting to the wrapper jsp(say /app1/call_test1.jsp which I am passing as aparam to teh include), if any validation errors its supposed to show on /app1/call_test1.jsp. But its not showing them. If I call the include jsp separately in the browser, its working fine. How can I get the form errors dispalyed on the wrppaer.jsp??
Any help is appreciated
Thanks

<select size="8" name="fruit" multiple>
<option value="apple">apple</option>
<option value="orange">orange</option>
<option value="mango">mango</option>
<option value="cherry">cherry</option>
<option value="pineapple">pineapple</option>
<option value="grapes">grapes</option>
</select>
if i select apple, orange,mango and cherry and submit it to the database field 'fruit', only 'apple' gets inserted. none others.
this is the the line where it is processing the value.
String fruit=request.getParameter("fruit");
by the way I have only one database table
I hope this example helps

Similar Messages

  • Inserting data from jsp form to multiple tables !

    Hi,
    I want to insert data from jsp form to two tables
    tables are
    (1) Form
    formId (PK)
    deptName
    (2) Data
    formId (FK)
    sNo
    description
    itemCode
    and the problem is that i want to save information form a jsp form to above two tables and i have only one form.
    so how do i insert data from a jsp form to multiple tables.

    You already know what your form in the jsp will be and what fields they are. You also already know what your database looks like. Using one form, you should be able to break the data down, and give it certain ids and/or names, so that when the form is submitted, you retrieve the correct values corresponding to a specific field and insert it.
    Unless there is something else I am not catching, this seems pretty straight forward.

  • How to pass one JSP form to next JSP ?

    i am using the two JSPs. i want to pass the form name of the first JSP to the second JSP and then assign the form name to second JSP form

    i have tone JSP file which is will be added to any JSP... This is my requirement.
    So i want to get the parent JSP form name and asign to the this JSP form name ... so that this code will be Generic

  • Jsp form - inserting multiple selection in to one column of the database

    I have this JSP/ HTML form that has fields that I can select multiple values and in the backend there is only one table. But when I select these multiple value and submit, only one value gets to the database. How do I get all the values that I selected .
    By the way I am using jdeveloper 10g and oracle 9i database
    thank you,
    san

    thanks aleena. sorry for the late reply. Because I away during the weekend. so I saw u are also into a web application project. I use jdeveloper 10g as my developing tool. its free to download for personal use. It may help you with your class project.
    also thanks to dev_AZ
    angrycat here is a similar example of my problem
    <select size="8" name="fruit" multiple>
    <option value="apple">apple</option>
    <option value="orange">orange</option>
    <option value="mango">mango</option>
    <option value="cherry">cherry</option>
    <option value="pineapple">pineapple</option>
    <option value="grapes">grapes</option>
    </select>
    if i select apple, orange,mango and cherry and submit it to the database field 'fruit', only 'apple' gets inserted. none others.
    this is the line where it is processing the value.
    String fruit=request.getParameter("fruit");
    by the way I have only one database table
    I am going to try the for loop example that aleena has posted.
    one more time thanks everyone
    santhosh

  • JSP FORMS WITH MULTIPLE INPUT ROWS

    HI,
    I NEED USE A FORM IN JSP WITH MULTIPLE INPUT ROWS TO IMPLEMENT A SALES ITEM PROGRAM.
    I HAVE TRIED WITH INSTRUCTIONS -- WHILE AND DO.. WHILE -- BUT TOMCAT 4.0 DOES NOT PROCESS THEM CORRECTLY BECAUSE IS IN A DEAD LOCK.
    ANY BODY CAN HELP ME?

    Thank you. But i don?t use caps lock. My program look like this:
    <form method="pos" action="echo.jsp">
    <table align="center" cellpadding="0" cellspacing="0" border="1" width="100%" bgcolor="#ffffff">
    <tr>
    <th class="titulo3">C?digo</th>
    <th class="titulo3">Descripci?n</th>
    <th class="titulo3">Nivel seguridad</th>
    <th class="titulo3">Moldes</th>
    <th class="titulo3">j</th>
    </tr>
    <%
    do {                    
    %>                                   
    <tr>
    <td class="titulo3">
    <input name="codigo" type="text" size="10" maxlength="10">               
    </td>
    <td class="titulo3">
    <input name="nombre" type="text" size="30" maxlength="100">               
    </td>          
    <td class="titulo3">
    <SELECT NAME="codopc" >                         
         <OPTION VALUE="nivel1"> Nivel 1                
         <OPTION VALUE="nivel2"> Nivel 2      
         <OPTION VALUE="nivel3"> Nivel 3
         <OPTION VALUE="nivel4"> Nivel 4
         <OPTION VALUE="nivel5"> Nivel 5           
    </SELECT>                                    
    </td>     
    <td class="titulo3">
    <input name="moldes" type="checkbox" size="30" maxlength="20">          
    </td>     
    <td class="titulo3">
    <input name="moldes" type="text" size="10" maxlength="20" value="<%= j %>">     
    </td>                                   
    </tr>               
    <%
    } while ( newlines );
    %>                                        
    </table>
    ....... more code about submit and clear buttons...
    </form>

  • Multiple submit buttons in a jsp form?

    I've been doing some research and found out that multiple buttons in a JSP form are possible by two ways:
    - We can obtain the value of the submit button to know which one was clicked in the parameters of the request using the name of the buttons (which should be the same for all the submit buttons).
    - We can change the submit destination using Javascript (Horrible solution since I want my web site to be safe to be used even if Javascript isn't active in clients browsers. I will use it of course since we can do amazing things with it but I want my website to be able to work without it also)
    WHAT annoys me is the fact that the value of a submit button is also his text, so if I change the text of the submit button, I will always have to check the servlet to do the corresponding change.
    Is there a third choice to be able to use multiple buttons?
    Olivier Voutat

    It seem rather convoluted at first but it's really good. I've not worked with JSF so I've no idea how that compares but from what I know, Craig McClanahan, who came up with Struts, worked on JSF also, so I guess it could only improve on Struts.
    EDIT: Here's a search result on Google'ing his name: http://www.theserverside.com/news/thread.tss?thread_id=29068
    But like I said, you don't have to use Struts ( which only uses standard JSP/ Servlets stuff anyway ), you simply use one of the ideas from it.
    For example; you have a properties file, say "/WEB-INF/properties/myProps.properties" with these entries:
    #USERS MODULE
    users.button.save=Save User
    users.button.search=Search User By Name
    users.button.delete=Delete UserThis would be a key: users.button.save to the value Save User
    Now, in your JSP, you use JSTL <fmt> tags:
    <fmt:setBundle basename="properties.myProps"/>
    //set the resource bundle you want to use
    //and create buttons with the proper values
    <input name="myButton" type="submit"><fmt:message key="users.button.save"/></input>
    <input name="myButton" type="submit"><fmt:message key="users.button.search"/></input>This would create buttons with text "Save User" and "Search User By Name" respectively
    Now, finally, in your servlet:
    //create a map of the properties,
    //possibly on app startup using a ServletContextListener
    //and put it in the servlet context for access everywhere
    HashMap myProps = (HashMap)getServletContext.getAttribute("myPropertiesMap");
    String buttonClicked = request.getParameter("myButton");
    if ( buttonClicked.equals((String)myProps.get("users.button.save")) )
    //perform save action
    else if ( buttonClicked.equals((String)myProps.get("users.button.search")) )
    //perform search action
    //etcYou'll obviously want to optimize this. Perhaps make a method that handles the comparison so you can have neater if conditions. But you get the idea, right?
    Edited by: nogoodatcoding on Oct 4, 2007 8:12 PM

  • Javascript function is not working for jsp:include.. form elements

    HI,
    I have two jsp's and i will include one jsp in the another jsp, when i do this
    i am not able to access child form elements value using javascript. the javascript
    function is defined in the main jsp. but i could able to get the main form elements
    through javascript
    here is the code.
    main.jsp
    <!--Generated by WebLogic Workshop-->
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui:html>
    <head>
    <title>
    Web Application Page
    </title>
    <script language="JavaScript">
    function isValidAge() {
    alert ("hage " +document[getNetuiTagName("MyForm")][getNetuiTagName("age")].value)
    alert ("swage " +document[getNetuiTagName("MyForm")][getNetuiTagName("swage")].value)
    alert ("wage "+document[getNetuiTagName("MyForm")][getNetuiTagName("wage")].value)
    </script>
    </head>
    <body>
    <p>
    <netui:form action="myaction" tagId="MyForm">
    <netui:textBox tagId="age" dataSource="{actionForm.age}"/>
    <netui:textBox tagId="swage" dataSource="{actionForm.swage}"/>
    here i am adding
    <jsp:include page="NewPage.jsp" />
    <netui:button onClick="isValidAge();" />
    </netui:form>
    </p>
    </body>
    </netui:html>
    child.jsp :
    <!--Generated by WebLogic Workshop-->
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <table class="tablebody">
    <tr class="tablebody">
    <td> wife age
    <netui:textBox tagId="wage" dataSource="{actionForm.wage}"/>
    </td>
    </tr>
    </table>
    can you tell me is this is bug in hte weblogic portal SP1.
    I am using weblogic portal SP1.
    thanks in advance
    shashi

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

  • Multiple form inside one jsp file

    I have to use nested jsp forms in my latest project
    ex:-
    <html>
    <head>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="ex.htm">
    <form id="form2" name="form2" method="post" action="ex2.htm">
    </form>
    <form id="form3" name="form3" method="post" action="ex3.htm">
    </form>
    </form>
    </body>
    </html>
    Can some one tell me, is there a way to submit the each forms seperatly?
    -----------------------------------------------------------------More on problem-----------------------------------------------------------------
    I am developing e-savings application.
    When the customer enter the accountno i need to display details - for this i use "form1"
    When the customer enter the withdrawal amount i need to display the balance - for this i use "form2"
    Finally i use "form3" to submit the data.
    I have done all the things inside one jsp page.
    I think you are now clear in my problem and hope best solution....
    Thank you........

    According to the HTML specification, you may not nest forms.
    You can use multiple forms as long as you don´t nest them.

  • Loading multiple forms in single jsp

    Hi,
    My jsp page has multiple forms (one form for each table which has specific info). So assume it has 3 tables, so 3 forms.
    I need to load all the form when the page is loaded.
    code:
    <FORM name=form1 action="/action1" method=post></FORM>
    <FORM name=form2 action="/action2" method=post></FORM>
    <FORM name=form3 action="/action3" method=post></FORM>
    So if I need to load all the forms, how should I proceed. Also please note each form has its own form class and action class.
    For e.g. Assume Page A (From Page A I am coming to this form page via a hyperlink and there is no action class in between) calls the page with 3 forms and I need to display all the values in the 3 forms. So how can I call the action classes for each of the 3 forms.
    So when and how will the action1, action2, action3 called?
    Any help would be greatly appreciated.
    Thanks.

    Thanks for your reply. I understand only one form would be submitted. Its ok.
    But the thing I am looking at is loading the multiple form values at a time.
    I have page A, Page B (where I need to display multiple form values. Actually this page has 3 tables, and each table is one form e.g. one table has all the name values, one table has all address values. So each has different actions).
    I am calling Page B via a hyperlink from Page A. Since I need to use hyperlink, there is no way (atleast I dont know) of using action class or anything.
    Now, my question is how do I populate the values for all these 3 forms.
    Any help would be great.
    Thanks.

  • Working with multiple buttons on a jsp form....!

    Hi guys...!
    I have a jsp form, which has 3 buttons (submit, update, cancel), and I also have a java Servlet that processes that form.
    In my java Servlet, i have a method called submitData(). I also want to have a method called updateData(), which will be called when the user clicks on the update button.
    These are the codes in my jsp form:
    <SCRIPT language="JavaScript" type="text/javascript">
                   function submitFunction (i) {
                        if (i==1) {
                             document.theForm.action="/MyWebApp/FormServlet";
                        if (i==2) {
                             document.theForm.action="/MyBugWebApp/FormServlet";
                        if (i==3) {
                             document.theForm.action="/MyWebApp/DisplayForm.jsp";
                        document.theForm.submit()
              </SCRIPT>
    <form name="theForm">
    <input type="button" value="Submit" onClick="submitFunction(1)"></input>
    <input type="reset" value="Reset"></input>
    <input type="button" value="Cancel" onClick="submitFunction(3)"></input>
    <input type="button" value="Update" onClick="sumbitFunction(2)"></input>
    </form>
    As u can see, both the submit and the update button use the same java servlet file. But inside that java servlet file, I want to have methods that will be called inside my doPost() method when the user clicks on update or submit.
    I've tried to pass a value through the httpRequest but it doesn't work... This is what I did.
    In my javaScript, I added this value in the action attribute:
    document.theForm.action="/MyWebApp/FormServlet?id=submit";
    document.theForm.action="/MyWebApp/FormServlet?id=update";
    I did that because I wanted to be able to retrieve the value of the "id" in my servlet and check which type of action was sent and then call the appropriate function in my servlet.
    But, it doesn't work. It returns "null" as the value for "id"
    Does anyone know how to do this task??...or what am I doing wrong in my code???
    Thanks...

    So there are really two solutions to this:
    1) Use <input type="submit" instead of buttons. Give all three buttons the same name but different values. Then the button used to submit will be added to the list of parameters.
    2) Add a hidden input to the form, and when the form determines which button was pushed, set a different value for the hidden input field. For example of both, take a look at this code:
    <html>
      <head>
        <script type="text/javascript">
          function formSubmit(i)
            var toSubmit = document.getElementById("myForm")
            if (i == 1) toSubmit.doThis.value="one"
            if (i == 2) toSubmit.doThis.value="two"
            if (i == 3) toSubmit.doThis.value="three"
            toSubmit.submit()
        </script>
      </head>
      <body>
        <form id="myForm" action="" method="get">
          <input type="hidden" name="doThis" /><br />
          <input type="submit" name="whatToDo" onclick="formSubmit(1)" value="Submit" />
          <input type="submit" name="whatToDo" onclick="formSubmit(2)" value="Cancel" />
          <input type="submit" name="whatToDo" onclick="formSubmit(3)" value="Update" />
        </form>
      </body>
    </html>For method one, if the servlet did:
    String whatToDo = request.getParameter("whatToDo");
    if ("Submit".equals(whatToDo)) {
      //doSubmit();
    } else if ("Update".equals(whatToDo)) {
      //doUpdate();
    } else if ("Cancel".equals(whatToDo)) {
      //doCancel();
    } else if ("Reset".equals(whatToDo)) {
      /doReset();
    } else {
      //error situation
    }Or you could instead look at the hidden value:
    String doThis = request.getParameter("doThis");
    if ("1".equals(doThis)) { ... }I personally like the submit button with the same names and different values, since the second method breaks if the user has javascript disabled.

  • Multiple servlet actions from jsp forms

    Hi all ,
    how can i do muliple actions from a jsp form, i need to do an action when user clicks on a column and a different action when user clicks on cell in a row .
    i need to read and store the attribute from the column to pass back to the webservice to request that the service sorts the reults by that column either as desecending or as asending.
    also i need to get the value from a cell that is clicked on and pass that through as a parameter to the webservice to request some further data for the specific id.
    how can i do this?
    currently i have a form which has as part of the row an onclick event that captures the value of cell clicked - but what i need to do is change the cell value to a href and if this is clicked capture the value of the href and submitt this to the form action and regonise that the href has been clicked (how do i do that?) and thus do soemething specific for that in the servlet and if the column with its ascending or descending image is clicked capture the asc or desc value and regonise that the column asc or desc has been clicked (how do i do that?) and thus do soemething specific for that in the servlet.
    <tr onclick="selectPatCareRec(this)">
    <td><netui:label value="{container.item.perId}"/></td> rest of form is :-
    you dont need to pay attention to rest of stuff except that which columnHeader field was clicked and in which order (ie ascending or desc)
    also if a cell is clicked to pass the values as part of a submit to the action and regonise that a herf click was done and value of that cell - i have the javascript that is used to find the cell value once the row is clicked.
    <netui:form action="refresh">
          <rpb:repeaterBlock name="contacts" filter="<%=filter%>"
          ascendingImage='<%=request.getContextPath()+"/resources/images/up-arrow.gif"%>'
          descendingImage='<%=request.getContextPath()+"/resources/images/down-arrow.gif"%>'>
          <netui-data:repeater dataSource="{pageFlow.carerGpListResults}">
         <netui-data:repeaterHeader>
           <table class="tablebody" border="0">
             <tr>
               <th><rpb:columnHeader field="SYSTEMREF"></rpb:columnHeader></th>
               <th><rpb:columnHeader field="TITLE"><i18n:getMessage messageName="title"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="GIVENNAME"><i18n:getMessage messageName="given_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="FAMILYNAME"><i18n:getMessage messageName="family_name"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ADDRESS"><i18n:getMessage messageName="address"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="POSTCODE"><i18n:getMessage messageName="post_code"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="DOB"><i18n:getMessage messageName="dob"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ORGANISATION"><i18n:getMessage messageName="organisation"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="TYPE"><i18n:getMessage messageName="type"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="QUESTION"><i18n:getMessage messageName="question"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="ANSWER"><i18n:getMessage messageName="answer"/></rpb:columnHeader></th>
              <th><rpb:columnHeader field="PER_ID"><i18n:getMessage messageName="patientid"/></rpb:columnHeader></th>
             </tr>
           </netui-data:repeaterHeader>
           <netui-data:repeaterItem>
             <tr onclick="selectPatCareRec(this)">
               <!-- do an on click event to trigger another action to get all the patient list (ie. link it to the patientCasesList jsp) of cases and keep refresh to get sorting -->
              <td><netui:hidden dataInput="{container.item.SYSTEMREF}"dataSource="{actionForm.systemref}"/></td>
              <td><netui:label value="{container.item.TITLE}"/></td>
              <td><netui:label value="{container.item.GIVENNAME}"/></td>
              <td><netui:label value="{container.item.FAMILYNAME}"/></td> 
              <td><netui:label value="{container.item.ADDRESS}"/></td>
             <td><netui:label value="{container.item.POSTCODE}"/></td>
            <td><netui:label value="{container.item.DOB}"/></td>
            <td><netui:label value="{container.item.ORGANISATION}"/></td>
            <td><netui:label value="{container.item.TYPE}"/></td>
            <td><netui:label value="{container.item.QUESTION}"/></td>
           <td><netui:label value="{container.item.ANSWER}"/></td> 
              <td><netui:label value="{container.item.perId}"/></td> 
            </tr>
           </netui-data:repeaterItem>
           <netui-data:repeaterFooter></table></netui-data:repeaterFooter>
         </netui-data:repeater>
         <br />
         <rpb:firstPage label="First"/>
         <rpb:previousPage label="Previous"/>
         <rpb:nextPage label="Next"/>
         <rpb:pageNumber/>
          </rpb:repeaterBlock>
            <div>
            <netui:hidden tagId="selectedPatientId" dataSource="{actionForm.selectedPatientId}" dataInput="{actionForm.selectedPatientId}" />
            </div>
        </netui:form>thanks for any / all help.

    You can modify your connection pool management servlet so you can set the 'connection pool object' as an attribute of the request. Then forward the request to your jsp page.
    Example:
    in your service method of your sevlet, add something like
    public void service (HttpServletRequest request, HttpServletResponse response) {
    ConnectionPool pool= new ConnectionPool();
    request.setAttribute("mypool", pool);
    // forward the request to a jsp page.
    RequestDispatcher dispatcher = request.getRequestDispatcher("jsp/myjsp.jsp");
    dispatcher.forward(request, response);
    }then in your myjsp.jsp, you can access the connection pool object using the 'mypool' attribute.

  • JSP form values lost upon servlet request (RequestDispatcher)

    Hello,
    I have a query screen (jsp) that calls a servlet and gets results. However, although the results or errors display just fine (I do a setAttribute for them), I lose the initial values in the query form (values that the user input - which are stored in the request object). Shouldn't those values be maintained and displayed, since I'm using the RequestDispatcher and thus, I should have the same request object? Thank you, C Turner
    *****My JSP (the related code)*****
    <jsp:useBean id="form" class="com.foo.ActivityBean" scope="session">
    <jsp:setProperty name="form" property="*"
    </jsp:useBean>
    <HTML>
    <BODY>
    <FORM ACTION="ActivityFormHandler" METHOD="POST">
    <P><B>From Date</B>
    <INPUT TYPE="TEXT" NAME="fromDate" SIZE="9" VALUE="<jsp:getProperty name="form" property="fromDate"/>">
    <P><B>To Date</B>
    <INPUT TYPE="TEXT" NAME="fromDate" SIZE="9" VALUE="<jsp:getProperty name="form" property="toDate"/>">
    *****Java from my HttpServlet, ActivityFormHandler (acting as a formhandler)*****
    if (errors.size() == 0) {
    ActivityBean myActivityBean = new ActivityBean();
    myActivityBean.setBeanQueryValues(acctNumber, department, fromDate, toDate);
    Vector resultsVector = null;
    try {
    resultsVector = myActivityBean.executeQuery();
    } catch (CreateException ce) {
    errors.add("There was a problem retrieving the requested data from the database.");
    request.setAttribute("results", resultsVector);
    } else {
    //Data is not okay.
    String[] errorArray = (String[])errors.toArray(new String[errors.size()]);
    request.setAttribute("errors", errorArray);
    RequestDispatcher rd;
    rd = getServletContext().getRequestDispatcher("/public_html/ActivityQuery.jsp");
    //rd.forward(request, response);
    rd.include(request, response);

    For those interested in my question, here's what I figured out.
    Instead of:
    <INPUT TYPE="TEXT" NAME="fromDate" SIZE="9" VALUE="<jsp:getProperty name="form" property="fromDate"/>">
    Use:
    <INPUT TYPE="TEXT" NAME="fromDate" SIZE="9" VALUE="<%out.print(request.getParameter("fromDate"));%>">
    This allows the input field to persist the query value instead of blanking it out when the results are displayed. -ct

  • How to find out last_query from jsp form in oracle applications

    Hi
    At present i am working on Quality Module.
    in India Localization.
    In Quality module -> Results -> Inquiries -> Skip Lot Inquiry
    If i enter our organization name
    Then its openning one form.
    I am unable to find out the table names from the jsp form.
    User also unable to comment on it.
    So, please help me on this issue.
    Regards,
    Pradeep.

    Hi
    Once you open the jsp form, at below leftside corner you can see link : About This Page. If you click on the link : About this Page this again open another window, there you can see multiple tabs at header level, if you click on page tab, there you can all the VO objects used to build this page. If you click on VO object hyperlink you can see the query.

  • Multiple JSPs with JSR 168-compliant Java portlet

    Hi,
    I have an application with multiple JSPs that I'm trying to run in a portlet. Looks like a JSR 168 Java Portlet is the best way to do that. I want to avoid using proprietary PDK Portlet route.
    A few questions:
    1. Is there any sample of that available with multiple JSPs?
    2. More specifically, if I have a form element in one jsp, can I specify another JSP in the action element, or do I have to use an actionURL or renderURL?
    3. Also, how can I can debug my Java portlet from JDeveloper?
    Thanks.
    - Anupam

    Hi,<br>
    I'm building a JSR 168 Java portlet. I've been trying to pass params from my JSP using actionURL in my jsp, like so:<br><br>
    <FORM METHOD="POST" ACTION="<portlet:renderURL/>">
    <TABLE BORDER="0" CELLPADDING="4" CELLSPACING="0" BGCOLOR="#eeeeee">
    <TR>
    <TD ALIGN="right">
    <FONT FACE="Arial" SIZE="-1 ">User Name:</FONT>
    </TD>
    <TD>
    <INPUT NAME="userName" SIZE="12" MAXLENGTH="32">
    </TD>
    </TR>
    <TR>
    <TD>
    <INPUT NAME="action" SIZE="12" TYPE="hidden" value="Login">
    </TD>
    </TR>
    </TABLE>
    </FORM>
    <br><br>
    I find that in my processAction, I can see value of "action" parameter but not the value the user enters in the portlet for "userName".<br><br>
    Any idea why? I must be doing sthing wrong, dunno what.<br><br>
    Also, if I use renderURL instead of actionURL, I don't even see "action" getting passed. Is that expected?<br><br>
    Thanks

  • Random behaviour for multiple JSP

    I tried to create Oracle PDK java portlet that will have multiple JSP. Which i want to call one after the another in the flow.
    I did created in entry in provider.xml sas follows
    <pageParameterName>rs_next_page</pageParameterName>
    My JSP has sample code as follows
    <%@page contentType="text/html; charset=windows-1252"
    import="oracle.portal.provider.v2.render.PortletRenderRequest"
    import="oracle.portal.provider.v2.http.HttpCommonConstants"
    import="oracle.portal.provider.v2.url.UrlUtils"
    %>
    <%
    PortletRenderRequest pReq = (PortletRenderRequest)
    request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    %>
    <P>Hello <%= pReq.getUser().getName() %>.</P>
    <P>This is the <b><i>Show</i></b> render mode!</P>
    <form name="actItem" method="get" ACTION="<%= UrlUtils.htmlFormActionLink(pReq,UrlUtils.PAGE_LINK) %>">
    <%= UrlUtils.htmlFormHiddenFields(pReq,UrlUtils.PAGE_LINK, "actItem") %>
    <input type = hidden name = "rs_next_page" value = "/htdocs/editresources/editresourcesEditPage.jsp">
    <input type="submit" value="Submit"/>
    </form>
    But it does not work It does not give error or anything. I have 2 Oracle PDK portlet having same code it works but this does not work.
    Could you please guide me what is best approach of redirecting to another JSP in Oracle portal

    hi,
    When you enter more than one partner for a particular partner function (for example, you define three different ship-to parties), you can select one partner as the default. During sales or purchasing processing, if you have defined multiple partners for a partner function, the system prompts you to choose just one partner. The system presents the default partner as the first choice in the pop-up window and it is must.
    CHAN

Maybe you are looking for