Problem in refreshing JSP

I've installed Tomcat 4.1, mySQL. My JSP pages are put in a sub-directory of CATALINA_HOME/webapps and I've also set up the web.xml file in /web-inf.
When I invoked the JSP pages for the first time, they worked properly. But when I refreshed the pages, errors were shown like this:
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: org.apache.jsp.AddressBookJSP$jsp
     at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
     at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
     at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
     at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
     at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
     at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
     at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
     at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:376)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
     at java.lang.Thread.run(Thread.java:484)
root cause
java.lang.ClassCastException: org.apache.jsp.AddressBookJSP$jsp
     at org.apache.jasper.servlet.JspServletWrapper.getServlet(Unknown Source)
     at org.apache.jasper.compiler.Compiler.isOutDated(Unknown Source)
     at org.apache.jasper.JspEngineContext.compile(Unknown Source)
     at org.apache.jasper.servlet.JspServletWrapper.service(Unknown Source)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
     at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
     at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
     at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
     at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
     at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
     at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
     at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(Unknown Source)
     at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
     at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
     at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:376)
     at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:518)
     at java.lang.Thread.run(Thread.java:484)

Hi,
If you are using IE, put in TOOLS->OPTIONS->GENERAL->CONFIGURATIONS select the first option, IE refresh all when you invoked the JSP pages for ever.

Similar Messages

  • Problem in refreshing the data of the UI element Table

    Hi Experts,
    I am having a problem.
    I have a screen which displays list of variants in table ( variant name , variant desc )
    I am binding the entries of table in WDDOINIT method.
    but when i go back to selection screen view and come back to display variants view, WDDOINIT is not triggering.
    Now if i move the code written in WDDOINIT method to WDDOMODIFYVIEW method, its not retaining the lead selection as the binding happens on every server round trip. if i check with First_time = 'X'. its same as that of having it in WDDOINIT method.
    How do i overcome this problem of refreshing the table data.
    any clue is highly appreciated.
    Regards,
    Ajay

    hi Ajay ,
    create a custom controller for this and when u want to move from selection screen view to display variant ,
    call method of this custom controller
    DATA lo_edit TYPE REF TO ig_edit .
    lo_edit =   wd_this->get_edit_ctr( ).
      lo_edit->edit1(
    here I am calling the edit1 method of my custom controller named EDIT.
    try to move code of ur WDDOINIT here.
    it shud help
    rgds,
    amit

  • Problem with refresh of snapshot

    I am facing one problem with refresh of a snapshot. In the front end (developed in D2K) there is a PL/SQL code written which loops through user_snapshots and refreshes each snapshots one by one.
    With one particular snapshot its giving the error. I traced the session and found the problematic snapshot. I tried to refresh the same snapshot with some other user with DBA role granted to it and its working fine.
    Now I logged in to SQL Plus with the user Z0000 ( This is the user with which the application user logs in to the application) and tried to rerfresh the snapshot. Its giving me ORA-03113 end-of-file on communication channel. Then I granted DBA role to user Z000 and then tried to refresh its again giving the same error.
    I tried with many different users and its working fine.
    Any ideas where could be the problem.
    Thanks
    Sidhu
    Database is 10gR2 on AIX 5.3
    Message was edited by:
    Sidhu

    Hi,
    did you try to do it locally?
    Maybe a possible problem on the network.
    This issue remembers me a bug on older versions.
    It is strange on a 10.2
    Acr

  • Problem in refreshing JTree inside Jscrollpane on Button click

    hi sir,
    i have problem in refreshing JTree on Button click inside JscrollPane
    Actually I am removing scrollPane from panel and then again creating tree inside scrollpane and adding it to Jpanel but the tree is not shown inside scrollpane. here is the dummy code.
    please help me.
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.tree.*;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.event.WindowListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    public class Test
    public static void main(String[] args)
         JFrame jf=new TestTreeRefresh();
         jf.addWindowListener( new
         WindowAdapter()
         public void windowClosing(WindowEvent e )
         System.exit(0);
         jf.setVisible(true);
    class TestTreeRefresh extends JFrame
         DefaultMutableTreeNode top;
    JTree tree;
         JScrollPane treeView;
         JPanel jp=new JPanel();
         JButton jb= new JButton("Refresh");
    TestTreeRefresh()
    setTitle("TestTree");
    setSize(500,500);
    getContentPane().setLayout(null);
    jp.setBounds(new Rectangle(1,1,490,490));
    jp.setLayout(null);
    top =new DefaultMutableTreeNode("The Java Series");
    createNodes(top);
    tree = new JTree(top);
    treeView = new JScrollPane(tree);
    treeView.setBounds(new Rectangle(50,50,200,200));
    jb.setBounds(new Rectangle(50,300,100,50));
    jb.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
              jp.remove(treeView);
              top =new DefaultMutableTreeNode("The Java ");
    createNodes(top);
              tree = new JTree(top);
                   treeView = new JScrollPane(tree);
                   treeView.setBounds(new Rectangle(50,50,200,200));
                   jp.add(treeView);     
                   jp.repaint();     
    jp.add(jb);     
    jp.add(treeView);
    getContentPane().add(jp);
    private void createNodes(DefaultMutableTreeNode top) {
    DefaultMutableTreeNode category = null;
    DefaultMutableTreeNode book = null;
    category = new DefaultMutableTreeNode("Books for Java Programmers");
    top.add(category);
    book = new DefaultMutableTreeNode("The Java Tutorial: A Short Course on the Basics");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Tutorial Continued: The Rest of the JDK");
    category.add(book);
    book = new DefaultMutableTreeNode("The JFC Swing Tutorial: A Guide to Constructing GUIs");
    category.add(book);
    book = new DefaultMutableTreeNode("Effective Java Programming Language Guide");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Programming Language");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Developers Almanac");
    category.add(book);
    category = new DefaultMutableTreeNode("Books for Java Implementers");
    top.add(category);
    book = new DefaultMutableTreeNode("The Java Virtual Machine Specification");
    category.add(book);
    book = new DefaultMutableTreeNode("The Java Language Specification");
    category.add(book);
    }

    hi sir ,
    thaks for u'r suggession.Its working fine but the
    properties of the previous tree were not working
    after setModel() property .like action at leaf node
    is not working,I'm sorry but I don't understand. I think you are saying that the problem is solved but I can read it to mean that you still have a problem.
    If you still have a problem then please post some code (using the [code] tags of course).

  • Wwsto_api_session: problems on refresh

    Hi,
    I have a portlet [pl/sql based].
    In package of this portlet (procedure show) I am working with the session objects:
    1. Load the session object, using load_session method.
    2. Manipulate the attributes of the session object by using the set_attribute methods.
    3. Save session, using save_session method.
    Then I access the portlet for the first time.
    But on refresh page,which include the portlet, and procedure show of the portlet executes, the session variables are null.
    Please, help me!
    Sorry for my English, Sergei

    Hi!
    Addition to previous queston "wwsto_api_session: problems on refresh"
    Does anybody can help me?
    Oracle 9 iAS R2
    procedure show(...);
    declare
    l_session portal.wwsto_api_session;
    counter number ;
    begin
    l_session:=portal.wwsto_api_session.load_session('domain','subdomain');
    counter:=l_session.get_attribute_as_number('counter');
    htp.p('counter='||counter);
    counter:=counter+1;
    l_session.set_attribute('counter',counter);
    l_session.save_session;
    end;
    end;
    Text of the procedure got from books, oracle guides.
    What's wrong?
    Sergei.

  • 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

  • Problem in refreshing

    Hi ,
    i am facing a problem of refreshing a query.
    my query is using a user inputn variable for fiscal yr and on the basis of fiscal year it return a variable say 01.04.2007-30.04.200 .
    but the problemm is wen i first enter the value of fiscal year in query it shows perfect data but as soon as i change the value of variable let say if i make it 2006 from 2007 it gives me the same data its not refreshing the data plz letme know y is it happning,
    thnks

    hi m refreshing it ..still
    WHEN 'ZC00000N25'. " variable
        LOOP AT i_t_var_range INTO loc_var_range
          WHERE vnam = '0P_FYEAR'. " fiscal variable
          CLEAR l_s_range.
          l_s_range-low(4) = loc_var_range-low(4) + 1  .
          l_s_range-low+4(4) = '0101'   .
          l_s_range-sign = 'I'.
          l_s_range-opt =  'BT'.
          l_s_range-high(4) = loc_var_range-low(4) + 1.
          l_s_range-high+4(4) = '0331'.
          APPEND l_s_range TO e_t_range.
           CLEAR : l_s_range , i_t_var_range.
          EXIT .
        ENDLOOP .

  • Problem of refreshing a tree in web dynpro java

    hi all,
    I'm facing a problem for refreshing a tree in web dynpro java for SAP HR.
    I created a viewset with 2 cells( 1 view for each).
    In the 1st view I created a droplistbyindex to select the unit ID and in the 2nd view ( defaut=false)  I called a method to populate my tree according to my selection in the 1st view ( method called in wdInit).
    When I make the first selection everything is ok.
    But when I select another unit ID, the tree is not changed and I know the context is well changed according to my selection.
    So I think the method is executed only the first the view is called.
    In this case, how can I refresh my tree on real-time?
    Thanks for your help
    Yimin

    May be u can write the code wdDoModify instead.
    -Ashutosh

  • Problem in refreshing popup

    ADF11g :
    I have problem in refreshing popup.
    On main page there is one table and in one column of that table i put commandImageLink .on click of that image i supposed to open one popup where i am displaying info result.
    on first click of that image i am able to show result correctly but if i change the row and try to click image again i am not able to show new result .it is showing old one.Onclick i checked new result values are retrived by server but not reflecting on popup.
    One more thing which i observerd is that at first time when i click image it goes to action method and then open popup but at next click it opens popup fisrt and then call action method.
    <af:column sortable="false" headerText="Actions"
    rendered="true" width="50">
    <af:panelGroupLayout layout="horizontal">
    <af:commandImageLink icon="/image/info.jpg"
    shortDesc="Info"
    partialSubmit="true" action="#{IssueActionBean.refresh_ContentRevisionInfo1}"
    launchListener="#{IssueActionBean.getRevisionLauncherListener}">
    <af:showPopupBehavior popupId="::popupinfo"
    triggerType="click"/>
    </af:commandImageLink>
    <af:commandImageLink icon="/image/checkinout.jpeg"
    shortDesc="Check in/out">
    <af:showPopupBehavior popupId="::popupMenu"
    triggerType="action"
    align="beforeStart"/>
    </af:commandImageLink>
    </af:panelGroupLayout>
    </af:column>
    </af:table>
    <af:popup id="popupinfo" popupFetchListener="#{IssueActionBean.getfetchRevisionLauncherListener}">
    <af:panelWindow title="Content Information"
    inlineStyle="width:600px; height:500px;">
    <af:table value="#{bindings.documentRevisions.collectionModel}"
    var="row" id="popupinfo1"
    rows="#{bindings.documentRevisions.rangeSize}"
    emptyText="#{bindings.documentRevisions.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.documentRevisions.rangeSize}"
    selectedRowKeys="#{bindings.documentRevisions.collectionModel.selectedRow}"
    selectionListener="#{bindings.documentRevisions.collectionModel.makeCurrent}"
    rowSelection="single"
    inlineStyle="width:750px; height:250px; margin:20px;">
    <af:column sortProperty="revLable" sortable="true"
    headerText="#{res['contentInformation.revision']}">
    <af:outputText value="#{row.revLable}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.documentRevisions.hints.revLable.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="releaseDate"
    sortable="true"
    headerText="#{res['contentInformation.rDate']}">
    <af:outputText value="#{row.releaseDate}">
    <af:convertDateTime pattern="#{bindings.documentRevisions.hints.releaseDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="expirationDate"
    sortable="true"
    headerText="#{res['contentInformation.eDate']}">
    <af:outputText value="#{row.expirationDate}">
    <af:convertDateTime pattern="#{bindings.documentRevisions.hints.expirationDate.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="status" sortable="true"
    headerText="#{res['contentInformation.status']}">
    <af:outputText value="#{row.status}"/>
    </af:column>
    <af:column sortProperty="did" sortable="true"
    headerText="#{ res['contentInformation.did']}">
    <af:outputText value="#{row.did}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.documentRevisions.hints.did.format}"/>
    </af:outputText>
    </af:column>
    <af:column sortProperty="docName" sortable="true"
    headerText="#{res['contentInformation.docName']}">
    <af:goLink destination="#{row.docURL}" text="#{row.docName}"
    targetFrame="_blank"/>
    </af:column>
    <af:column sortProperty="docURL" sortable="true"
    headerText="#{bindings.documentRevisions.hints.docURL.label}">
    <af:outputText value="#{row.docURL}"/>
    </af:column>
    </af:table>
    <af:panelFormLayout>
    </af:panelFormLayout>
    </af:panelWindow>
    </af:popup>
    public String refresh_ContentRevisionInfo1() {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
    Object result = operationBinding.execute();
    bindings.refresh();
    DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("documentRevisionsIterator");
    iterBind.executeQuery();
    iterBind.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
    return null;
    public void getRevisionLauncherListener(LaunchEvent launchEvent) {
    BindingContainer bindings = getBindings();
    OperationBinding operationBinding = bindings.getOperationBinding("getContentRevisionInfo");
    Object result = operationBinding.execute();
    bindings.refresh();
    DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
    DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("documentRevisionsIterator");
    iterBind.executeQuery();
    iterBind.refresh(DCIteratorBinding.RANGESIZE_UNLIMITED);
    Thanks for all Help.
    Jaydeep

    You are in the wrong forum. This is the the forum for the [Application Express development tool|http://apex.oracle.com]. You want a JDeveloper/ADF forum.

  • 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>

  • [Solved] Problem in refreshing the iterators

    Hi All -
    I am facing problem in refreshing the iterators on the page / retaining the values in the view when refreshing the region (a task flow dropped as region).
    I have two ShowDetailItems in tabbed regions as Tab1 and Tab2. Tab1 has a task flow, having page with Transient VOs, as region and same
    is the case with Tab2. As per my requirement I have to navigate between Tabs and have to refresh the regions in the Tabs through bean as below.
    this.homeRegion.refresh(FacesContext.getCurrentInstance());
    But in doing so i.e. navigating from Tab1 to Tab2 and coming back to Tab1, I lose the data in the Tab1.
    The problem is my bean associated with the page of the task flow in Tab1 does not get called when I refresh the
    region. And also the iterators lose their values when I come back to TAb1.
    I thought if I could reload the page or execute the iterators somehow when I refresh the region in the Tab, I would be able
    to fix the issue.
    Please help. I have been trying to figure it out for quite some time.
    Best -
    Rohit
    Edited by: Rohit Makkad on May 13, 2010 12:52 AM

    Hi All -
    I somehow overcame the issue. In my Tab2 region task flow I had set Transaction property as "Always Begin New Transaction" because of which when I go to the Tab2 the Tab1 was losing its values in the transient VO.
    For now, I reset the Transaction property of Tab2 to its default value and could navigate between different tabs with refreshing them everytime on disclosure event and still able to retain values in the transient VO.
    - Rohit

  • Problems placing compiled jsp in the right directory

    I have problems placing compiled jsp in the right directory.
              - My document root is weblogic/myserver/public_html
              - My jsp's are placed in weblogic/myserver/public_html/ram/jsp.
              - My folder for placing compiled jsp is in weblogic/myserver/compiled_jsp.
              - When weblogic compiles my jsp it places them in
              weblogic/myserver/compiled_jsp/jsp_servlet/_ram/_jsp
              Now I want to compile ram1.jsp and place it in above directory. I tried the
              following but it does not place class correct.
              1: java weblogic.jspc -d C:\weblogic\myserver\compiled_jsp ram1.jsp
              **** Places the class in weblogic/myserver/compiled_jsp/jsp_servlet
              2: java weblogic.jspc -d
              C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp ram1.jsp
              C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp\jsp_servlet\_ram1.cl
              ass
              What am I doing wrong ?
              cheers Per
              

              I would try this...
              cd public_html
              java weblogic.jspc -prefix compiled_jsp ram/jsp/ram1.jsp
              I'm not sure if -prefix is the exact option - something like that - maybe package_prefix.
              As always, things work better/easier when you leave things at the default value
              (jsp_servlet).
              Mike
              "Per Lovdinger" <[email protected]> wrote:
              >I have problems placing compiled jsp in the right directory.
              >
              >- My document root is weblogic/myserver/public_html
              >- My jsp's are placed in weblogic/myserver/public_html/ram/jsp.
              >- My folder for placing compiled jsp is in weblogic/myserver/compiled_jsp.
              >
              >- When weblogic compiles my jsp it places them in
              >weblogic/myserver/compiled_jsp/jsp_servlet/_ram/_jsp
              >
              >Now I want to compile ram1.jsp and place it in above directory. I tried
              >the
              >following but it does not place class correct.
              >
              >1: java weblogic.jspc -d C:\weblogic\myserver\compiled_jsp ram1.jsp
              >**** Places the class in weblogic/myserver/compiled_jsp/jsp_servlet
              >
              >2: java weblogic.jspc -d
              >C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp ram1.jsp
              >****
              >C:\weblogic\myserver\compiled_jsp\jsp_servlet\_ram\_jsp\jsp_servlet\_ram1.cl
              >ass
              >
              >What am I doing wrong ?
              >
              >cheers Per
              >
              >
              

  • JDev 11.1.1.2.0: Problem with refresh in form view after delete

    Hi All,
    I'm trying to delete the current row in a form view with the delete binding operation and obviously I do NOT want to fire any validations so I use the immediate = true but that causes the ADF lifecycle to skip the update models phase and thus my fields are not refreshed with the new current row after the old row has been deleted.
    How can I fix this ?
    Thanks in advance,
    Mark

    First the standard disclaimer: SQL code should be in a servlet/bean. It has no place on a JSP.
    I would recommend you write a bean method that returns a list of objects, and then iterate over that list of objects on the JSP.
    What exception does is getting thrown?
    At a guess, your problem is that you are not releasing all resources. Connections, statements, resultsets...
    That is probably hidden inside your DBBean. You are maybe releasing your result set with the statement Rset.close() - but if an exception happens even that wouldn't be executed.
    Any sql code should be in a try/catch block, with resources being freed in the finally.
    Cheers,
    evnafets

  • Problem with Refresh

    Hi all,
    I have a main page which consists of 3 frames. 2 of these hold content of JSP's only, the problem is that when I press refresh I get an error 500, saying that there is an error in my main page i.e. "Can't happen - classname is null, who added this ?". I dont know how I can go about getting the main page to remember where it is at, should I create the contents of the main page with a JSP? Any advice would be mostly appreciated, as I need to get this working by tommorow if possible.

    Hi Osian,
    your error is not so much clear. Still iam trying. Are u seeing this error in IE5? Sometimes, in IE, you can get some 'cann't display-error' message comes wherefrom u can't get the root of the error. You can try that out in Netscape 4.74. It gives almost perfect error.
    I don't know whether I have caught that or not.
    atanu

  • Problem in refreshing html page using LinkToURL API

    Hi all,
    I use LinkToURL in order to open a html page in a new window. My problem is that this html file is changed (the name is the same but the contents is diff) dynamically. I click on the link and the window is open, but later on when the html file is changed and I reopen the window it shows the old html file. Is it possible to refresh this window automatically every time when it is opened? Otherwise the user has to press Refresh button in order to see the new html file.
    10x for your help.
    Svetlomira

    Hi Svetlomira,
    Do you have access to html file? Can you changed it?
    Or you can use following approach: if html is static (not jsp or asp or similar)
    you can append System.currentTimeMillis() to the html file name after '?' sign:
    final String nonCachedURL = "http://www.domain.com/index.html?" + System.currentTimeMillis();
    You can achieve this by using calculated context attribute and bind it with LinkToUrl`s reference proprty.
    Best regards, Maksim Rashchynski.

Maybe you are looking for