Problem in Struts JSP

Hi All,
I have a problem in the JSP where I am using two select list boxes for displaying two lists of size 4, I can transfer the values from one list box to another using buttons. The html part is as mentioned below:
<td colSpan="2">
<html:radio property="types" value="all" onclick="greyOutTypes(true);fb_MoveAllOptions(transSearchQueryForm.availableTypes, transSearchQueryForm.selectedTypes);displayVal()"/><bean:message key="label.report.allTypes" />
<bean:message key="label.report.or"/>
<html:radio property="types" value="select" onclick="greyOutTypes(false);fb_MoveAllOptions(transSearchQueryForm.selectedTypes, transSearchQueryForm.availableTypes);displayVal()"/>
<bean:message key="label.report.selectTypes" />
</td>
</tr>
<tr>
<td>
<br>
</td>
<td colSpan="4">
<table cellpadding="0" cellspacing="2" border="0">
<tr>
<td colspan=3>
<bean:message key="label.report.availableTypes"/>
</td>
<td>
<bean:message key="label.report.selectedTypes"/>
</td>
</tr>
<tr>
<td>
<bean:define name="transSearchQueryForm" id="availableTypesCollection" property="availableTypesTM" />
<html:select size="4" property="availableTypes" multiple="true" styleClass="lists" >
<html:options collection="availableTypesCollection" property="key" labelProperty="value" />
</html:select>
</td>
<td vAlign=center align=middle>
<p>
<input type="button" name="btRemoveGroup" class="smallbutton" value="<" onclick="javascript:fb_SelectBoxMoveSelectedOptions(transSearchQueryForm.selectedTypes, transSearchQueryForm.availableTypes);displayVal()">
<br>
<input type="button" name="btRemoveAllGroups" class="smallbutton" value="<<" onclick="javascript:fb_MoveAllOptions(transSearchQueryForm.selectedTypes, transSearchQueryForm.availableTypes);displayVal()">
</p>
</td>
<td vAlign=center align=middle>
<p>
<input type="button" name="btAddGroup" class="smallbutton" value=">" onclick="javascript:fb_SelectBoxMoveSelectedOptions(transSearchQueryForm.availableTypes, transSearchQueryForm.selectedTypes);displayVal()">
<br>
<input type="button" name="btAddAllGroups" class="smallbutton" value=">>" onclick="javascript:fb_MoveAllOptions(transSearchQueryForm.availableTypes, transSearchQueryForm.selectedTypes);displayVal()">
</p>
</td>
<td>
<bean:define name="transSearchQueryForm" id="selectedTypesCollection" property="selectedTypesTM" />
<html:select property="selectedTypes" multiple="true" size="4" styleClass="lists" >
<html:options collection="selectedTypesCollection" property="key" labelProperty="value" />
</html:select>
</td>
</tr>
</table>
</td>
</tr>
The transfer of values works fine when we select one or more values by individually selecting them. But this fails to work when we do a move all or we click on the Select radio button which eventually does a move all.
After analyzing we found that when we do a move all then the form bean does not get updated with the changes made by the user; like suppose we move all from the Select list to Available list then the availableTypes array (which is associated with the Select for Available Types) show all the types moved to it which is correct but the selectedTypes array (which is associated with the Select for Select Types) also shows all the types in the form bean so when the JSP is reloaded then both the lists boxes show the same entries (all the entries on either side), thus duplicating each entry and causing an error.
The same work absolutely correctly when we manually select one or more entries from either of the list boxes. Meaning both the form bean arrays reflect what the user has selected on the screen.
The methods called on click of the buttons are clearly setting and removing entries selected from the two arrays. We put alerts in the JSP to see the changes in the arrays and they reflect correct values. But once the control has been transferred to the java classes we view the form bean values of the same two arrays which show different values.
Please let me know how I can make the changes of the user reflect in the form bean somehow!
Thanks,
Regards,
Abhishek Arora

Hi,
I have similar code, and i have used java script, i hope it is usefull and it is quite simple in fact very simple
<html>
<head>
     <script language="javascript">
          function moveDualList(leftlist,rightlist)
               if(leftlist.selectedIndex==-1)
                    alert("Nothing Slected To Transfer");
               else
                    newDestList = new Array( rightlist.options.length );
                    var len = 0;
                    for( len = 0; len < rightlist.options.length; len++ )
                         newDestList[ len ] = new Option(rightlist.options[ len ].text,rightlist.options[ len ].value,rightlist.options[ len ].defaultSelected, rightlist.options[ len ].selected);
                         var styletextinlist = rightlist.options[len].style.cssText;
                         newDestList[ len ].style.cssText = styletextinlist;
                    for(var i=0;i<leftlist.options.length;i++)
                         if((leftlist.options!=null) && (leftlist.options[i].selected==true))
                              newDestList[ len ] = new Option(leftlist.options[i].text, leftlist.options[i].value, leftlist.options[i].defaultSelected, leftlist.options[i].selected);
                              var styletextinlist = leftlist.options[i].style.cssText;
                              newDestList[ len ].style.cssText = styletextinlist;                              
                              len++;
                    for ( var j = 0; j < newDestList.length; j++ )
                    if ( newDestList[ j ] != null )
                         rightlist.options[ j ] = newDestList[ j ];                    
                    for( var i = leftlist.length -1; i >= 0 ; i--)
                    if ( leftlist.options[i] != null && ( leftlist.options[i].selected == true))
                         leftlist.options[i]=null;                                                  
     </script>
</head>
     <body>
          <center>
               <form name="coolform">     
               <table border="0">
                    <tr>
                         <td rowspan="2">
                              <select size="10" name="leftlist" multiple>
                                   <option style = "color:RED">One
                                   <option style = "color:BLUE">Two
                                   <option style = "color:GREEN">Three
                              </select>
                         </td>
                         <td align="center"><input type="button" value="Add>>" name = "added" onClick="moveDualList(document.coolform.leftlist,document.coolform.rightlist)"></td>
                         <td rowspan="2">
                              <select name="rightlist" size="10" multiple>                                   
                              </select>
                         </td>
                    </tr>
                    <tr>     
                         <td><input type="button" value="Rem<<" onClick="moveDualList(document.coolform.rightlist,document.coolform.leftlist)"></td>
                    </tr>
               </table>
               </form>
          </center>
     </body>     
</html>

Similar Messages

  • COMMIT problem in TopLink, Struts, JSP and ADF Databinding sample

    In the sample Developing a J2EE Application using TopLink, Struts, JSP and ADF Databinding,
    I followed all the steps to build a department browse page and a edit page.
    But when I get to Step number 23 in "Create a JSP to Edit Departments" I have a problem with the commit.
    Only after I make a change in the form and click the sumbit button, the commit and rollback buttons become active. And After I click the commit button the data gets commited to the database but the page inofmation changes to the very first department record, not the current one.
    How do I make those buttons active with out the extra click on the submit?
    After I click the commit button, how do I keep the current data on the screen?
    Thanks for you help.

    Shay,
    Thanks for the reply.
    For #1, I was able to do the following and get away with not having to press submit first. I just removed the bindings for disable. I hope that does not cause any problems?
    <input type="submit" name="event_Commit" value="Commit" />
    <input type="submit" name="event_Rollback" value="Rollback" />
    For #2, How I add an action on an HTML button? My UIModel.xml for the edit department page currently has two actions on it. Commit and RollBack. Is it linked through the "name" attribute of the input tag?

  • How to retrieve values from the struts DAO to Struts JSP

    Hi friends,
    I have one question. i want to display values in the struts jsp file from the struts DAO class. can anyone tell how do it.
    Appreciated for your help.
    Thanks
    G1 :)

    Hi Santosh,
    Thanks for your prompt reply.
    Actually, my problem is i want to display complete rows from the DAO to JSP page. I'm displaying all the rows in the DAO from DB.
    But i dont know how to retrieve all these data from DAO. Can i take arraylist.??
    DAO:
    ------------     public Customers getData(Customers customers){ // Reading data from DB
         //ArrayList list = null ;
         try
              Connection conn = getSQLConnection();
              Statement statement = conn.createStatement();
              String qry = "select * from register";
              ResultSet resultSet = null;
              PreparedStatement pstat = conn.prepareStatement(qry);
              // pstat.setString(1, customers.getFname());
              resultSet = pstat.executeQuery();
    //Print the data to the console
    while(resultSet.next()){
              String fnam = resultSet.getString(1);
              String lnam = resultSet.getString(2);
              String gen = resultSet.getString(3);
              String addres = resultSet.getString(4);
              String cit = resultSet.getString(5);
              String zip = resultSet.getString(6);
              String county = resultSet.getString(7);
              String emal = resultSet.getString(8);
              System.out.println("First name:"+fnam);
              System.out.println("Last name:"+lnam);
              System.out.println("Address:"+addres);
              customers.setFname(fnam);
              customers.setLname(lnam);
              customers.setGender(gen);
              customers.setAddress(addres);
              customers.setCity(cit);
              customers.setZipcode(zip);
              customers.setCountry(county);
              customers.setEmail(emal);
                   statement.close();
                   conn.close();
              }catch(Exception e1){
                   e1.printStackTrace();
              return customers;
    Bean:
    I have specified in this line in Bean:
    request.getSession().setAttribute("customers", customers);
    But in JSP. how will i populate all these data. Pls..send some code.
    I'm sorry this is just practicals. i'm not doin any real time project. that;s why i have placed all these code.
    Thanks for your patience for resolving my problems.
    Thanks
    G1

  • How to use VPD in Java/Struts JSP portlet with SSO

    DB = 10.1.0 (Standard Edition)
    Portal = 9.0.4.1
    10gAS = 9.4.0.1 (EE)
    I am in the beginning stages of developing some portlets that will be Java/Struts JSP based. We use SSO and have implemented some VPD security in our DB by creating some views that use SYS_CONTEXT('USERENV','CURRENT_USERID').
    These Java portlets connect to the DB using a defined JDBC connection for the OC4J container they are deployed in. The problem I'm having is that the call to SYS_CONTEXT is returning the user of the JDBC connection and not the SSO user. So far I have been unable to find any documentation that will point me in the right direction to get this configured properly.
    Deployment and configuration are as follows. Deploy war file to custom container on app server. In the configuration of the OC4J contain the app used the containers default JDBC connection using the oracle.jdbc.pool.OracleDataSource class. Max and Min open connections are blank.
    In the portal configuration under Navigator - Providers tab we defined a new Registered Provider. In the Connections tab for the provider we Specify the URL Http://hpsrv02.simsol.com:7777/discovery-portlets/providers. Under "Specify how the user's identity will be set by the Portal..." the "The user has the same identity in the Web providers application as in the Single Sign-On identity" is selected. Under "User/Session Information" User is selected and Login Frequency is set to "Once per user session". Then we created a new portal page and created a new portlet with the new provider.
    Just an FYI I do have Discoverer working with VPD and any report portlet, dynamic page portlet and any other type of portlet I created all work correctly with VPD it is just the java/struts one that is not working.
    So does any one have any insight into what configuration steps I have missed?
    Any help is much appreciated,
    Ed Klinger

    Ed,
    Your java code must get the SSO username (it's just a HTTP header variable) :
    ie: code sample...
    Enumeration e = request.getHeaderNames();
    while (e.hasMoreElements()) {
    String name = (String)e.nextElement();
    String value = request.getHeader(name);
    out.println("<br> "+name + " = " + value);
    if (name.toUpperCase().trim().equals("OSSO-USER-DN")){
    dn_user=value;
    out.println("<br>******** USER DN = "+dn_user);
    Then, the SSO username can be used in the VPD policy.
    Note that there is a difference between the sso username and the database username . SSO username is not known by database (CURRENT_USERID will return a database username)
    Discoverer worked OK in your case with the SYS_CONTEXT (.. CURRENT_USERID) because authentication is made by database user, probably.

  • Adf-Struts/JSP/BC4J- and setting date fields from jsp

    Hi,
    I'm working with the new ADF Frameworks (JDev 9.0.5.1) and ran into some questions regarding exception handling using BC4J, Struts and JSPs.
    I have a DATE column in database and an entity and VO with a datefield with type oracle.jbo.domain.Date.
    My JSP shows a textfield and the user should enter a valid date. Everything fine, until date is of wrong format or contains illegal characters...
    Problem:
    ADF tries to do a setAttribute on the datefield in VO row which expects a parameter with type oracle.jbo.domain.Date. When the user entered e.g. "NiceWeather" as date, I get an IIlegalArgumentException while converting to the correct Date format. This exception isn't thrown by bc4j as AttrValException and therefore my JSP renders a global error instead of a message directly behind the date field.
    I tried to validate the datefield in my DataForm and in my Action in the validateModelUpdates() method, but with no fitting solution.
    Any ideas how to validate a datefield with adf/struts/jsp/bc4j?
    Thanks for your help!
    Torsten.

    Torsen - In the first instance I'd recommed that you try and handle it declaritively using the Struts Validator Framework . See http://otn.oracle.com/products/jdev/howtos/10g/StrutsValidator/struts_validator_howto.html
    There is a section in there on how to use the validator with ADF databound pages and you can check the format the user enters via generated JavaScript.
    Also check out the matching sample project:
    http://otn.oracle.com/sample_code/products/jdev/10g/ADFandStrutsValidator.zip - this has a data field check on it as well

  • "Serious Problem in Struts" + "Please help me"

    Hi all,
    I m facing one problem in struts. I have A DTO with Attributes(data transfer Object) which contains one Array List. In that Arraylist i have other B DTO with Attributes.
    In my Screen I have fields which are using some of the attributes from A DTo and B Dto
    In the JSP
    I m creating controls like this
    <html:text name="facilityForm" property="dto.installationSite" />
    in the ActionForm I m setting values which are typed in the screen to the dto.
    I have to create one control(textbox) which is using B DTO Attribute..
    How to do that?
    if its the attribute of DTO i can create like this
    "dto.installationSite"
    But A Dto contains ArrayList that contains B Dto objects
    <html:text name="facilityForm" property="dto.ARRAYLIST(B DTO).Attribute" />
    Please help me...

    try this... (not sure though)
    <html:text name="facilityForm" property="dto[0].Attribute" />
    or is it this:
    <html:text name="facilityForm" property="dto(0).Attribute" />
    ... I'm not really sure about this, however. ...Maybe instead, loop thru the outer list and create a field for each object.

  • Problem in struts using JDeveloper10.1.2

    hi
    Iam completly new to jdeveloper
    Iam using jdev 10.1.2 for my simple struts application
    I have
    action class -- LoginAction
    form bean -- login (using DynaActionForm)
    login.jsp to enter username
    success.jsp for welcom msg
    failure.jsp --- in this i use one submit btn when i press this it will go to login.jsp for relogin
    <form action="/login.jsp">....
    the problem is
    In LoginAction
    String password=(String)((DynaActionForm)form).get("password");
    // String pwd =request.getParameter("username");
    if(password.equalsIgnoreCase("oracle"))
    return mapping.findForward("success");
    else
    return mapping.findForward("failure");
    iam import all the class for the respective reff variables.
    But it will indicate err underline(blue) under text which are in bold saying msgs as
    --method get(java.lang.string) not found in org.apache.struts.action.DynaActionform
    the samething for remaining two showing on ActionMapping
    plese tell me where is the problem
    running on Embedded OC4J SERVER
    error message is
    http://hostname:8988/hello_struts1-ViewController-context-root/login.do
    07/07/19 17:12:31 Oracle Application Server Containers for J2EE 10g (10.1.2.0.2) initialized
    Jul 19, 2007 5:12:32 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Jul 19, 2007 5:12:32 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Jul 19, 2007 5:12:32 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='view.ApplicationResources', returnNull=true
    Jul 19, 2007 5:12:32 PM org.apache.struts.action.RequestProcessor processException
    WARNING: Unhandled Exception thrown: class java.lang.NullPointerException
    thanks

    Duplicate post:
    problem on struts using jdeveloper 10.1.2
    user583549,
    I see you got an answer from Shay in the other post.
    Good Luck,
    Avi.

  • Working with large number of search results in struts/jsp application

    I'm developing a struts/jsp web application that returns upwards of
    30000 results obtained from a very complex schema and multiple queries
    to the database.
    We want the user to be able to paginate through the results, sort by
    several fields, add/drop columns and download in several formats. We
    don't expect heavy traffic but we do want it to be scalable.
    Up to now, I have been storing the results in a session ArrayList
    which can eat up a lot of memory. The queries take long to perform so
    I do not want to repeat them with every request.
    I would like to store in a single mysql temp table but I have read
    that when the connection ends, the table is dropped. I understand that
    creating a database Connection as a session variable is not a good
    practice.
    This is not a unique problem - I was hoping someone else has some
    insight into the best way to proceed.
    Thanks

    glwinsor wrote:
    I'm developing a struts/jsp web application that returns upwards of
    30000 results obtained from a very complex schema and multiple queries
    to the database.Who will want to deal with 30,000 rows? Not me. When Google returns a result to me, I get it in chunks of 10 at a time.
    We want the user to be able to paginate through the results, sort by
    several fields, add/drop columns and download in several formats. We
    don't expect heavy traffic but we do want it to be scalable.That's a separate, complex issue.
    Up to now, I have been storing the results in a session ArrayList
    which can eat up a lot of memory. The queries take long to perform so
    I do not want to repeat them with every request.Maybe your schema has issues. Do you have appropriate indexes? Has your DBA checked EXPLAIN PLAN to be sure that the queries are optimal?
    I would like to store in a single mysql temp table but I have read
    that when the connection ends, the table is dropped. I understand that
    creating a database Connection as a session variable is not a good
    practice.Not scalable.
    This is not a unique problem - I was hoping someone else has some
    insight into the best way to proceed.The paging part has been dealt with by Hibernate and other frameworks. Something like the Flex grid UI component might help. Caching and such can help you out. It's not easy, as you already know, and there isn't a canned solution that is one size fits all.
    %

  • FREEEEE struts/jsp editor plugin for Eclipse

    Hi guys,
    I am tired of searching for struts/jsp editor plugin for Eclipse. I tried the trail version for Exadel, My eclipse, Lomboz, but none of them are good enough. I dont want to pay for a plugin.
    So I downloaded Netbeans IDE which has good support for struts. But I dont want to change my Eclipse IDE because its much better.
    In case you are already using a good struts/jsp editor plugin for Eclipse then please advice me ASAP.
    I dont want to type up the code like <html:text or wait for runtime compilation to realize that there is a problem in the syntax. Wouldnt it be a lot better if the IDE help us reduce the development time.
    Thanx
    Rohit Kumar

    Thanx for your reply.
    I used JDeveloper with Oracle many years back. That time I found it to be slow. Maybe it must have improved by now.
    Today I downloaded EasyEclipse which is built on Excipse 3.1
    EasyEclipse
    http://www.easyeclipse.org/site/home/index.html
    EasyEclipse Plugins
         -----> Amateras JSP, HTML, XML editor
         -----> Weblogic Server Plugin for Eclipse
         -----> JBoss IDE
         -----> J2EE Tools
         -----> ....................
    http://www.easyeclipse.org/site/plugins/index.html
    I would say WOW. It satisfies most of my needs. Maybe all u guys might wanna try it too.
    Regards
    Rohit Kumar

  • Help! Problem with Struts tag html:errors/

    Hi everybody,
    In my JSP page called addUser.jsp, i have the different Struts Tag
    <html:errors/>
    <html:form action="/addUser" focus="firstName">
    </html:form>
    I have of course the ApplicationResources.properties file with differents Struts properties:
    errors.footer=</ul><hr>
    errors.header=<h3><font color="red">Validation Error</font></h3>You must correct the following error(s) before proceeding:<ul>
    errors.ioException=I/O exception rendering error messages: {0}
    and an other one:
    error.fieldsNeeded=<font color="#FF0000">Some fields are missing.</font>
    when I call the addUser form, my JSP page display:
    null Some fields are missing. null
    Have u any suggestion about my prob?
    tx a lot
    s.

    Hi,
    can u post the java code where u are actually adding the error to the action errors. may be there is something wrong with that. I dont see any problem with the jsp or the applicationsResources.properties.
    Thanks
    Latha

  • How to use javascript functions in struts jsp page

    hi
    iam using struts jsp pages. here iam calling one javascript function. but iam not able to access the form in javascript.
    wat i have to give as form name to get the elements of the form.
    please reply me soon
    it is urgent
    vamsi

    your form has no name liek this one:
    <html:form action="/userRegistration.do" >so you cannot access the elements inside your form?
    accessing the elements inside the form will be like this:
    document.forms[0].propertyName.value;

  • Problem in connecting JSP with Oracle 9i.

    Hi,
    I am having problem in connecting JSP with Oracle 9i.
    I am using windows XP and my JDK version is 1.4. For executing JSP I am using
    "jakarta-tomcat-5.5.4-preconfigured". My database name is global.
    I have set java_home, j2ee_home, oracle_home, path, classpath as follows:
    j2ee_home=c:\sun\appserver
    java_home=c:\sun\appserver\jdk
    oracle_home=C:\oracle\ora92
    path=C:\Sun\AppServer\bin;C:\Sun\AppServer\jdk\bin;C:\oracle\ora92\bin
    classpath=C:\Sun\AppServer\lib\j2ee.jar;C:\oracle\ora92\jdbc\lib\ojdbc14.jar;C:\oracle\ora92\jdbc\lib\nls_charse
    t12.zip
    My code is as follows:
    <%@ page language="java" %>
    <%@ page import ="java.sql.*"%>
    <%
    try
    DriverManager.registerDriver(new oracle.jdbc.OracleDriver());
    Connection conn = DriverManager.getConnection ("jdbc:oracle:oci8:@global", "scott", "tiger");
    catch(SQLException e)
    out.println(""+e);
    out.println("Connected");
    %>
    I tried other program:
    <%@ page language="java" %>
    <%@ page import ="java.sql.*"%>
    <%
    Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:global","scott","tiger");
    out.println("Connected");
    %>
    I am getting following error:
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 5 in the jsp file: /jsp/oracle.jsp
    Generated servlet error:
    oracle.jdbc.OracleDriver cannot be resolved or is not a type
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:389)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:296)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    Thanking you in advance,
    Anurag

    maneesh108 wrote:
    hi this is maneesh1) Read the thread it has been answered.
    2) The thread is very old. Don't resurrect old threads.
    I'm locking this zombie thread.
    Kaj

  • Urgent: Portletizing an struts JSP application

    Hello all,
    I have a struts JSP application. I want to portletize this whole
    application, so that navigation is always within the portal
    framework.
    Using URL Services all I can see is that the first page will be a
    portlet.
    Can anyone suggest the best way to portletize the application?
    This is quite urgent and your help will be greatly appreciated.
    Thanks in advance.
    Faisal.

    Hi all,
    Concerning the message below, does the struts framework affect how normal JSP applications are added to Portal? Or is it as simple as just importing the portal classes and referencing them in the JSP's?
    We would like to use struts for our next web application using JSPs, but need to display them within Portal. I've done this before by just changing the way our hrefs work, but am wondering if using struts will affect any of this.
    Thanks in advance,
    Gillian
    Hello all,
    I have a struts JSP application. I want to portletize this whole
    application, so that navigation is always within the portal
    framework.
    Using URL Services all I can see is that the first page will be a
    portlet.
    Can anyone suggest the best way to portletize the application?
    This is quite urgent and your help will be greatly appreciated.
    Thanks in advance.
    Faisal.

  • Alternative to HTML Frame in struts/jsp

    I am using Struts/JSP for my application..
    I have 3 panels(3 jsp's) each with a table of information.. each jsp has a summary part to it.. the data & information in the summary is the same across all panels.. Currently I've copy pasted the code for the summary in all 3 jsp's & Actions & ActionForms... I would like to change this to using a 4th panel sort of for the summary information... not sure what would be the best way to do this.. html frames or anything better maybe.. ?
    Thanks

    did u consider using struts tiles?
    http://struts.apache.org/userGuide/dev_tiles.html

  • Accessing ApplicationModule in Struts/JSP application using JDev 11g TP3

    Hello All,
    I am using Oracle JDeveloper 11g Technical Preview 3
    I got one "AppModule" created under my (Struts/jsp) project "MODEL" structure.
    Now, how can I access that ApplicationModule in my Action Class
    BC4JContext bc4jContext = BC4JContext.getContext(request) is not working, returns null everytime,
    Can anyone please let me know, how can I achieve this?
    Thanks
    user625610

    Hi don't know your name,
    if you get null from BC4JContext.getContext(request) you should check you configuration. Check your web.xml file where you should see something like...  <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>mapping</param-name>
          <param-value>oracle.jbo.html.struts11.BC4JActionMapping</param-value>
        </init-param>
        <init-param>
          <param-name>BC4JDefinition</param-name>
          <param-value>your_model_project_name</param-value>
        </init-param>
    ...The init parameter BC4JDefinition is used to set up the context in the BC4JRequestProcessor class. My guess is that you don't have this parameter in your web.xml (or are pointing to a wrong name). the value should be the name of the cpx file without the .cpx you have in your viewcontroller project.
    If you have migrated your project from JDev 10.1.2 you should check the 10.1.2 web.xml against the 11TP3 web.xml after the migration. The servlet part should be identical.
    Timo

Maybe you are looking for

  • Adding Navigation Buttons for Users of PDF Documents

    The default for Acrobat Reader (and even the Pro version) seems to leave the Forward and Back navigation buttons OFF the Acrobat Reader tool bar. You have to deliberately go into the Tools - Customize Tools menu and turn on these two buttons in order

  • ISSUE in Nokia Lumia 800 music transport controls ...

    http://www.youtube.com/watch?v=K0GwSfd4T0s As you can see at the above link, you can forward to the next track by 2 clicks or backward by 3 clicks. The same controls can be done to the radio also. But what about when you turn off the screen??? With t

  • Burning a window dub from FCP for spanish translation

    I need to burn a window dub of my program for a spanish translation company that needs to translate the english to spanish. Would this be done in FCP or in DVDSP? Thanks. Kevin

  • Source attachment of swc file

    Hi, is it possible to specifie a zip or tar file (instead of folder path) in the source attachment of a swc in a library path ? thanks, vdelbart

  • N97 Keeping the Display ON all the time

    Is there anyway to do this? The max time I can keep the display on for is 60 second, EVEN if the phone is connected to the mains adapter. This is rather stupid since there are times when I want the screen on all the time - eg. when connected to a pow