Problem in custom jsp page when pressing enter button

Hi to all,
<pre>
I am created a cutom jsp page. When i am clicking on a button it working fine, but if i am pressing
Enter key it redirecting to home page and showing an exception in cosole.
<b>Exception is </b>
18:00:50,718 ERROR [WEBAPP] Class/Method: tcActionBase/execute encounter some problems: {1}
java.lang.NullPointerException
at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
18:00:50,718 ERROR [WEBAPP] Class/Method: tcAction/execute encounter some problems: {1}
java.lang.NullPointerException
at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
18:00:50,718 WARN [RequestProcessor] Unhandled Exception thrown: class java.lang.NullPointerException
18:00:50,718 ERROR [[action]] Servlet.service() for servlet action threw exception
java.lang.NullPointerException
at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
at org.springframework.web.struts.DelegatingActionProxy.execute(DelegatingActionProxy.java:110)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:619)
</pre>
Edited by: iceman513 on Aug 11, 2010 7:14 PM
Edited by: iceman513 on Aug 24, 2010 10:32 AM
Edited by: iceman513 on Aug 24, 2010 10:33 AM

once you click a button, say, "Draw Rectangle", it should draw a rectangleYes, but you need to repaint() the component (in your case panel) to see the change.
The error is: The method paintComponent(Grpahics) is undefined for the type ObjectThe compiler never lies. As far as your code goes, you have added a method paintComponent(...) to a class that implicitly extends Object. Perhaps you wanted to create an anonymous subclass of JPanel.JPanel panel = new JPanel() {
  public void paintComponent(Graphics g) {
    super.paintComponent(g);
    myPaint(g);
};Note the changes in brace and semicolon placement.
Also:
1. You're setting a FlowLayout to a JPanel, which is anyhow the default layout manager. And when using a layout manager, setSize calls are redundant and effectively ignored.
2. For a JFrame to be centered on the screen, setLocationRelativeTo(null) after setting the size, not before.
3. To void visual artifacts, setVisible(true) after all other properties are set.
It looks to me like you've been throwing together bits of code from here and there without adequate understanding. I recommend you go through the Swing tutorials linked from the topic listing page for this forum.
db

Similar Messages

  • Problem with JEditorPane p lost when press ENTER

    OK, so here goes my problem.
    I have in my application a JEditorPane which formats text with bold italic and so on.
    The user can save this into a text file.
    So far so good, but the new lines are lost, no <p> tag is inserted, and no ALIGN either. All other tags - <b> <i> work fine.
    If I insert <p> tags into the text file and then open it in my application, they remain there fine.
    Any idea on this one?
    P.S. pls include some code samples, I'm not advanced ;)

    here is some code what i have used in my report program , i will still like to remind that its an Logical database program (PNP) for ABAP-HR , right now i tried the code mentioned above but not getting any result.
    TABLES: pernr,sscrfields,pa0001.
    *& Declaring Type-pools
    TYPE-POOLS : slis.
    *& Declaring Infotypes
    INFOTYPES: 0000,          " Action
                         0001.          " Org. Assignment
    *& Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK n1 WITH FRAME TITLE t1.
    PARAMETER : p_despat TYPE zhr_transfer-despt OBLIGATORY,              " Despatch Number
                r_pernr  TYPE pa0001-pernr OBLIGATORY,                                    " Reporting to
                re_pernr TYPE pa0001-pernr OBLIGATORY,                                   " Relieving Authority
                a_pernr  TYPE pa0001-pernr OBLIGATORY MODIF ID one.             " Authorize Person
    SELECTION-SCREEN END OF BLOCK n1.
    INITIALIZATION.
      t1 = 'Transfer Records'.
      LOOP AT SCREEN.
        IF screen-name = 'PNPPERNR-LOW'.                                  " Personnel Number (Mandatory)
          screen-required = 1.
            MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    AT SELECTION-SCREEN OUTPUT.
      IF a_pernr IS INITIAL.
        a_pernr = pa0001-ename.
      ENDIF.
    END-OF-SELECTION.

  • When I enter a search in the Mozilla Start Page and press enter the browser does nothing. It doesn't bring in any search results. I use Windows Vista pack2

    I just upgraded Firefox for windows to version 21.0
    After upgrading, when I enter a subject to search in the search box (in the middle of the page) of the Mozilla Start page and press enter nothing happens. It doesn't bring in any search results.
    The only way to navigate using the browser is to enter the website name in the address box at the top of the page and press enter. I'm running the browser for Windows Vista - 32 bits.
    I tried re-installing firefox and I got the same result. I also tried re-booting after installation and it still behaves the same way.
    Please help,
    Thank you,
    Hektor

    he man check here
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Problem when pressing ENTER for InputText object text

    Hi,
    I encountered a very strane anomly when pressing ENTER for
    InputText object text.
    1) I set the InputText object for having maxium 2 characters.
    2) I set the InputText object for getting only numbers using
    .restrict= "0-9";
    Now, say the InputText is now empty.
    1) Say I press the number "7" - the text line is now
    containing - "7".
    2) Now, I press ENTER - the "7" is cleared from the text
    line.
    Now, while the text box is clear, we think that we can insert
    2 numbers.. but not!
    3) I press a number, say "9" - the line contains "9"
    4) I try to insert another number... but I can't!!
    In order to be able to insert two numbers, I have to press
    twice the Backspace in order to clear the "9" , and another ghost
    note (the ENTER?).
    How can I solve this anomaly?
    Thanks
    Yossi

    Thank you very much! it works.
    (Those tiny anomalies are so annoying, that it is so great
    feeling to have them solved, thanks)

  • Pressing Enter Button Gives a Blank Page while Cursor is in Text Field

    Hi,
    I have a problem on my jsp page that there is a text filed (input type="text") and a button (input type="button") to submit the page.
    When page loads the cursor blinks in the text field, and at the same moment if i hit the enter button of my keyboard it gives a blank page.
    Here the button on page does not clicked by this enter button, no script calls neither the page submitted to the given url.
    Kindly suggest what is going wrong.
    Thanks in Advance
    Rajiv K.

    I'd come across this issue a while back: [http://tipsandtricks.nogoodatcoding.com/2007/07/html-single-text-field-submit-caveat.html]; when there is only a single text field in a form, then pressing enter causes a submit with the text-field as the initiator. The submit button isn't invoked. This means any onsubmit actions will not be called. A simple way out is to put in a dummy text field in the form and set it's display to none (using CSS/styling)

  • Opening a seeded OAF page from custom JSP page.

    Hi All,
    We have requirement to open a seeded OAF page from custom JSP page.
    When we try to open URL of an OAF page after passing URL input parameters, we are always getting following error:
    'You have insufficient privileges for the current operation. Please contact your System Administrator.'
    On directly accessing the seeded OAF page, its encoding all the input parameters passed in URL. Also some more encoded parameters are getting added to the URL dynamically.
    Is there any standard way exists to invoke seeded OAF pages without passing encrypted parameters to it? Also where can we get more details about
    encrypting OAF URL parameters.
    Any pointers would be appreciated.
    Thanks in advance!
    Saurabh

    Have you duplicated entire Customer Service module's menu in your responsibility?
    or Also ping me the menu name..
    --Prasanna                                                                                                                                                                                                                                                               

  • How to Build Custom JSP Page to bypass Oracle Apps Login

    Hi All,
    Can some one guide me how to develop a custom jsp page to bypass Oracle Apps R12 Login.
    Actually Our requirement is some external user will enter the login details in some third party login page with the third party generated username and passwrod, that user's credentials are mapped to oracle system,so as soon as they enter credentials having validated it has to redirect that external user to Oracle Apps R12 Home Page, where responsibilities are shown. Currently that third Party login page is set to redirect to RF.jsp but that is not working and throws this error:
    "You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session.Please select Home to Proceed"
    So I am planning to build a custom jsp page to resolve the error.
    As soon as user enter credentials in the third party login page, it will be redirected to my custom login page which in turn redirect external user to Oracle Apps R12 Home Page, where responsibilities are shown. Is it possible? If yes what JSP Page/Servlet I have to invoke from custom JSP Page and what all URL parameters or session parameters and cookies parameter I have to pass or set.
    Can anybody please help me...
    Its very urgent. We are running short of time. Its a sev 1 issue.
    Please reply soon.
    Thanks,
    Raja Dutta

    Hi,
    Thanks for the update.
    Sir its not about calling the JSP Page from OAF page.
    My requirement is what I have explained above.
    Please suggest its urgent.
    Thanks,
    Raja Dutta

  • Screen exit Payment document saved when press enter after error message

    Hi All,
       I have created a screen enhancement for payment document WZR1.its in additional data tab under header details.
    Here i should populate a error message when user save the payment document without entering values to custom screen fields.It works fine with Function exit LWZRE017 . It populated the msg and the screen is disabled but after when i press enter button the document is saved and created.
    please let me know how to stop saving the document without entering values in custom fields.
    Thanks,
    Arun kumaran.
    Edited by: Arun Kumaran on Mar 4, 2010 12:09 PM
    Edited by: Arun Kumaran on Mar 4, 2010 3:26 PM
    Edited by: Arun Kumaran on Mar 4, 2010 3:43 PM

    I found the fcode when enter is 'ENT1' it is from standard screen program.
    I populated the same message when UCOMM = 'ENT1' still not working.
    ARUN KUMARAN.
    Edited by: Arun Kumaran on Mar 5, 2010 1:36 PM
    Edited by: Arun Kumaran on Mar 5, 2010 2:11 PM

  • Jsf problem go from jsp page to another jsp in new window

    I’ve two jsp pages attendReport.jsp and printAttendReport.jsp
    attendReport.jsp contains inputs for attend duration and employee id and command button “view” to view attendance data entered employee during entered duration inside the same page(this work very good)
    the problem is the same page includes another command button “print” its job is to get the same data but view them in the second page printAttendReport.jsp in another window in order to print the data in some suitable format , but the print button opens attendReport.jsp instead of printAttendReport.jsp and does not hold the inputs else if I set <managed-bean-scope> to session not request which cause caching data , please help me if you to solve this problem
    and here the related lines of code
    <faces-config >
    <managed-bean>
    <managed-bean-name>attendReportBean</managed-bean-name>
    <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/attend/attendReport.jsp</from-view-id>
    <navigation-case>
    <from-action>#{AttendReportBean.attendReport}</from-action>
    <from-outcome>attendReport</from-outcome>
    <to-view-id>/attend/attendReport.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    <navigation-rule>
    <from-view-id>/attend/attendReport.jsp</from-view-id>
    <navigation-case>
    <from-action>#{AttendReportBean.printAttendReportAction}</from-action>
    <from-outcome>printAttendReportAction</from-outcome>
    <to-view-id>/attend/printAttendReport.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    </faces-config> // here is managed bean code
    public class AttendReportBean {
    // data , getters and setters
    init();
    //Preload in initialization block.
    public void init() {
    // initialize data
    public String attendReport() {
    // code to get attend data to go to view page(same page) it is ok
    return "attendReport"; // Navigation case.
    public static String getRequestParameter(String name) {
    return (String) FacesContext.getCurrentInstance().getExternalContext()
    .getRequestParameterMap().get(name);
    public void printAttendReportListener(ActionEvent event) {
    String fromYearStr = getRequestParameter("fromYearAtt");
    System.out.println("fromYearStr = "+fromYearStr);
    // try to get inputs through ActionListener but it gives me null
    public String printAttendReportAction() {
    // code to get attend data to go to print page(another page in new //window) but inputs come in default values
    return "printAttendReportAction"; // Navigation case.
    }attendReport.jsp
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <f:view>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    //title . styles and validations //
    </head>
    <body>
    <h:form id="attendReportForm">/the form tag appear in running source as <form id="attendReportForm" method="post" action="/newdiwan/faces/attend/attendReport.jsp" enctype="application/x-www-form-urlencoded" >
    i.e. it always submit to attendReport.jsp page
    / some inputs and outputs /
    <h:commandButton onclick="return check();" id="view" action="#{attendReportBean.attendReport}" value="" styleClass="linksNumBlue" />//it works good/
    // some outputs to view data /
    <h:commandLink immediate="true" id="printLink" value="" action="#{attendReportBean.printAttendReportAction}" actionListener="#{attendReportBean.printAttendReportListener}" target="_blank" styleClass="linksNumBlue">
        <f:attribute  name="fromYearAtt" value="2009" />
        <f:attribute  name="fromMonth" value="01" />
       <f:attribute  name="toYear" value="2010" />
       <f:attribute  name="toMonth" value="06" />
    </h:commandLink>//this has two problems 1)submit to attendReport.jsp not printAttendReport.jsp which I want to go to.
    //2)does not get the inputs but return the default values only /
    </h:form></body></html></f:view>I use libraries { jsf-api.jar , jsf-impl.jar , jstl-1.1.0.jar and tomahawk-1.1.6.jar } and deploy on tomcat 6.0
    I’m sorry for the prolongation, please help me if you can
    Edited by: alynoor on Jul 8, 2010 1:51 AM
    Edited by: alynoor on Jul 8, 2010 1:55 AM

    my problem solved 1- i use 2 managed bean , one of request scope (used in attendReport.jsp ) and the other with session scope (used in printAttendReport.jsp)
    2 - add new jsp contains the h:commandLink of the print (attendReportPrintAction.jsp)
    3 - divide the view of attendReport.jsp to two subviews (each subview has its own form) one contains inputs and outputs of attend and the other contains include to (attendReportPrintAction.jsp)
    <%@ include file="attendReportPrintAction.jsp" %>
    4 - send and get parameters using two methods
                public static Object getSessionMapValue(String key) {
                   return FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get(key);
                public static void setSessionMapValue(String key, Object value) {
                   FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put(key, value);
                }faces-config.xml
       <managed-bean>
          <managed-bean-name>attendReportBean</managed-bean-name>
          <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
          <managed-bean-scope>request</managed-bean-scope>
       </managed-bean>
        <managed-bean>
          <managed-bean-name>print_attendReportBean</managed-bean-name>
          <managed-bean-class>csc.attend.bean.AttendReportBean</managed-bean-class>
          <managed-bean-scope>session</managed-bean-scope>
       </managed-bean>
    <navigation-rule>  
        <display-name>viewReport</display-name>  
        <from-view-id>/attend/attendReport.jsp</from-view-id>  
        <navigation-case>  
            <from-action>#{AttendReportBean.attendReport}</from-action>
            <from-outcome>attendReport</from-outcome>  
            <to-view-id>/attend/attendReport.jsp</to-view-id>  
        </navigation-case>  
    </navigation-rule>
    <navigation-rule>  
        <display-name>printReport</display-name>
        <from-view-id>/attend/attendReport.jsp</from-view-id>  
        <navigation-case>  
            <from-outcome>printAttendReportAction</from-outcome>  
            <to-view-id>/attend/printAttendReport.jsp</to-view-id>  
        </navigation-case>  
    </navigation-rule>attendReportPrintAction.jsp
    <f:subview id="printAttendReportSubView" >
    <h:form id="printAttendReportForm" onsubmit="return check222();" >
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td width="11%">
                                    <table width="70" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                          <td width="7" height="28"><img src="../images/B-left.gif" width="7" height="28" /></td>
                                          <td align="center" background="../images/B-bg.gif">
                                            <!--a href="printAttendReport.jsp" class="linksNumBlue" target="_blank" >&#1591;&#1576;&#1575;&#1593;&#1577;</a-->
    <h:commandLink id="printLink" value="&#1591;&#1576;&#1575;&#1593;&#1577;" title="&#1591;&#1576;&#1575;&#1593;&#1577;"  action="#{print_attendReportBean.printAttendReportAction}"   target="_blank"  styleClass="linksNumBlue">
                                        </h:commandLink>
                                            </td>
                                          <td width="7" height="28"><img src="../images/B-right.gif" width="7" height="28" /></td>
                                        </tr>
                                      </table>
                                      </td>
                                    <td align="right"> </td>
                                  </tr>
                                </table>
    </h:form>
    </f:subview>i hope this helps someone

  • History problem in jsp page,internet explorer back button

    hi everyone
    i have a jsp page suppose a.jsp.in which i am using dropdown menu to displays:list of data from database,one submit button i am using name select and click here.after selecting the value from dropdown menu ,again some other data will be displayed from some other table in same a.jsp page.
    my problem is:
    when user selects one value from drop down menu ,it is diplaying the value in same page .upto here is ok
    and i click back button from I.E only one page back it is showing
    but when user select the value form drop down menu 2nd time ,and after data get dipalyed in same apge a.jsp.then
    whne i click back button ,now it is showing two a.jsp page .history is not going .
    this is the problem.i dont want to this morw than one page get displayed in back button.only one page a.jsp
    if anyone has understood my problem ,please help.
    thanku

    thanks java2006
    but it is not working .i will try to explain once again
    1. one page called a.jsp.this page contains one drop drown menu list box ,and one submit button.
    2.data in drop dropdown is coming from db.as the user select value from drop down box .relalted value is diplayed on same a.jsp page.
    3.again user select the 2ndvalue from drop down box ,related value is displayed.
    this i explained about my a.jsp page.
    problem is
    4.when user select the 1st value and clcik on submit button related value is displaying.upto here its ok.and in back button of Internet explorer it is showing only one a.jsp page
    5.but whenever i am trying to see 2nd or 3rd or more value from drop down after related value is being diplayed in same a.jsp page.
    the back button of internet exlorer showing two a.jsp page after clcicking submit button
    .as u have told the code aso but it is not working
    i have added ur code indisde html tags .

  • OneNote 2013: Font changes when pressing Enter / Return key

    I have the same problem as this guy (who didn't get a relevant answer): http://social.technet.microsoft.com/Forums/office/en-US/233833f7-dde8-414d-bdca-604ed8d57667/onenote-2013-font-changes-when-pressing-enter-return-key?forum=officeitpro
    I set my default to Calibri 14, but every time I press enter (I make a lot of bullet lists) the font changes to Calibri 11. 

    Hi,
    Did you change the default font after you typed a few words in a note container?
    Setting the default font in Microsoft Office OneNote affects text that you type in new note containers only. It does not affect existing text or text that you add to existing note containers.
    If you want to change the font in an existing note container, you need to change it manually under
    Home tab > Basic Text.
    Thanks,
    Steve Fan
    TechNet Community Support

  • When pressing enter the values are converted to upper case in module pool

    hi
    tehre are three fields for maintanece in module pool
    wheni press enter the fields are converted to upper case i want to avoid this as i dont want to have the upper case
    i need to save in table as waht user has inputed not in upper case
    so i dont want the fields to be automatically converted to upper case whne pressing enter on screen
    regards
    Nishant

    hi Nishant ,
    <b>The solution to ur problem is breifly explained with a sample module pool program .</b>check it below :
    IN the TOP INCLUDE**********************
    DATA :
           wempid TYPE z7684dp-empid ,   " same name as in the screen declaration
           wname TYPE  z7684dp-name,
           wacc TYPE  z7684dp-account,
           wdesg TYPE  z7684dp-designation,
           ok_code TYPE sy-ucomm ,
           wa_z7684dp TYPE z7684dp,
           t_z7684dp TYPE STANDARD TABLE OF z7684dp,
    *****IN THE PAI OF THE SCREEN 100(for example)***********
    MODULE user_command_0100 INPUT.
      CASE ok_code .
        WHEN 'CRE' .                 " function code for the pushbotton to insert the values
    TRANSLATE wdesg TO LOWER CASE.
    TRANSLATE wempid TO LOWER CASE.
    TRANSLATE wname TO LOWER CASE.
    TRANSLATE wacc TO LOWER CASE.
          wa_z7684dp-empid = wempid .
          wa_z7684dp-name = wname .
          wa_z7684dp-account = wacc .
          wa_z7684dp-designation = wdesg .
          INSERT INTO z7684dp VALUES wa_z7684dp .
          IF sy-subrc EQ 0 .
            MESSAGE 'SUCCESSFUL INSERTION TO TABLE' TYPE 'I' .
          ELSE .
            MESSAGE 'UNSUCCESSFUL INSERTION TO TABLE' TYPE 'I' .
          ENDIF.
          CLEAR: wa_z7684dp , wempid , wname , wacc , wdesg.
    REVERT BACK WITH ANY FURTHUR QUERIES
    <b>DO REWARD WITRH POINTS IF USEFUL :)</b>

  • Refresh the page when you enter, you load, or focuses

    Greetings to the community... 
    The question I have is like to refresh (update) a page when you enter...
    On the "results.php" page data received from a database I have and when I modify them from another page "modify.php" and return to the "results.php" changes are not seen until pulse update
    How can be so it is updated each time that is recharging, you enter, or focuses the page?
    Thanks in advance.

    Hi bregent,
    You can see what happens in the following link, so I think it will be best that you see it that I explain it to you
    I pass him the link, and if you press right on the arrow of any name, it will be forwarded to the page change, when you modify any data and press on "Actualizar Registro" (update record) will see what comment you.
    http://appiva.comyr.com/AppColegio/formularios/informe.php
    Thank you

  • How to call a concurrent program from a Custom JSP page.

    Hi,
    I have a custom JSP page which i have deployed by creating a form function with the path of the JSP Page
    and added the JSP Page to the OA_HTML top.
    Now, i need to call a concurrent program from the JSP Page, i have all the parameters in my page and i am using the standard class as below:
    ConcurrentRequest cr= new ConcurrentRequest(con);
    int requestId= cr.submitRequest("XXINV",programName,null,null,false,vec);
    I have verified my connection object and it is OK but i am getting the exception that user is not set to run the program.
    I tried the below code in my JSP page and getting -1 for all test variables :-
    int userId = wctx.getUserId();
    int respApplId = wctx.getRespApplId();
    int respId = wctx.getRespId();
    I think i need to set the context in JSP page to run the program..
    Pls help ....
    Regards
    Saurabh Jaiswal

    Hi,
    Thanks for the reply,,,
    This is a possible solution but this will allow to run the program anyhow.
    But the procedure which i call thru callable statement will start with
    fnd_global.apps_initialize (3825, 50603, 704);
    fnd_request.submit_request API call.
    Now, the values of user and Responsibilty is required in the program and it changes.
    With this approach we have to hardcode the user and resp.
    The same JSP page is attached to other responsibilities and there the concurrent program would get fired as if fired from the resp Id hardcoded as above.
    Need to capture user Id and RespId.
    How can i set the apps Context in JSP page???
    Regards
    Saurabh Jaiswal

  • How do we translate Custom JSP pages to Multiple languages

    Hi All,
    I have custom JSP pages in my appplication.
    I need to convert them to arabic specific.
    Is there any way out for this as like we do translation for OAF pages.
    Please suggest....
    Thanks,
    Nagu

    Nagu,
    You can use ResourceBundle / FND Messages to retrive the page text in JSP Code instead of hardcoding it.
    HTH.

Maybe you are looking for

  • How can I prevent NULLs from appearing in my HyperTrend graph when restarting DSC engine?

    I am continuously logging data to a citadel database using DSC 7.0. Occasionally I need to restart the DSC engine because of a computer reboot, changes to SCF file, etc. Whenever I do this, and then review the data in HDV or with a HyperTrend graph i

  • MRP Label Printing Issue

    Hi Experts, I am facing an issue while printing MRP Label ,which i am printing using Smartform, the font size which i define in Smartstyles is not at all reflected while print preview , in ECC 604 system. the printer which we are using to print is EP

  • SpinnerNumberModel incorrect decimal values appearing

    Hi, I have created a custom JSpinner using a SpinnerNumberModel which holds values as Doubles but when I use the up and down arrows at some point the double value that is returned looses it's decimal precision. I created the following class: public c

  • Captivate 5 Memory error causes crash as well as unknown exception

    Captivate 5 will randomly crash and it's difficult to determine what will cause it as it seems to be several things. It can crash when I'm manipulating graphics, at times, and other times - because it's Monday.. . Here's the errors from my 2 crashes

  • Please Help - itunes music store error

    I'm trying to authorize my itunes on my new MacBook Pro. I deauthorized all of my computers. When I go to authorize my new one, I get the window that tells me my computer was successfully authorized and I have 1 of 5 computers authorized. So far so g