Action calling action cause page expires?:

Hi
I am using struts with titles. My problem is when I press the back button in the internet explorer my page expires. I tried nocache property set it as both a way in jsp.
Note: my application design is every time an action calls another action that action only brings the page.
Is this the problem? If so what is the solution.

Is id the property of the sessionBean you're interested in?
Following the About the Application Model Tutorial,
To set properties I use:
getSessionBean1().set<propertyName>(<object>)
getSessionBean1().setID(new Integer(problemRowSet.getInt("ID")To get properties I use:
getSessionBean1().get<propertyName>()
getSessionBean1().getID()As for the button action event, I'd right click it in the designer to let Creator generate the function. If I fill it in myself sometimes Creator acts like it wasn't there. :(

Similar Messages

  • How to call a struts action from a JSF page

    I am working on a small POC that has to do with struts-faces. I need to know how to call a struts ".do" action from a JSF page..
    Sameer Jaffer

    is it not possible to call a action from the faces submit button and/or the navigation?
    This a simple POC using struts-faces exmaples.
    Here is my struts-config and faces-config file.
    <struts-config>
    <data-sources/>
    <form-beans>
      <form-bean name="GetNameForm" type="demo.GetNameForm"/>
    </form-beans>
    <global-exceptions/>
    <global-forwards>
      <forward name="getName" path="/pages/inputname.jsp"/>
    </global-forwards>
    <action-mappings>
      <action name="GetNameForm" path="/greeting" scope="request" type="demo.GreetingAction">
       <forward name="sayhello" path="/pages/greeting.jsp"/>
      </action>
    </action-mappings>
    <controller>
        <set-property property="inputForward" value="true"/>
        <set-property property="processorClass"
                value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    </struts-config>faces-config
    <faces-config>
    <managed-bean>
      <managed-bean-name>calculate</managed-bean-name>
      <managed-bean-class>com.jsftest.Calculate</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <managed-bean>
      <managed-bean-name>GetNameForm</managed-bean-name>
      <managed-bean-class>demo.GetNameForm</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
      <from-view-id>/calculate.jsp</from-view-id>
      <navigation-case>
       <from-outcome>success</from-outcome>
       <to-view-id>/success.jsp</to-view-id>
      </navigation-case>
      <navigation-case>
       <from-outcome>failure</from-outcome>
       <to-view-id>/failure.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    <navigation-rule>
      <from-view-id>/inputNameJSF.jsp</from-view-id>
      <navigation-case>
       <to-view-id>/pages/greeting.jsp</to-view-id>
      </navigation-case>
    </navigation-rule>
    </faces-config>in my inputNameJSF.jsp (faces page)
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
    <%@ taglib prefix="s" uri="http://struts.apache.org/tags-faces" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Say Hello!!</title>
    </head>
    <body>
    Input Name
    <f:view>
         <h:form >
              <h:inputText value="#{GetNameForm.name}" id = "name" />
              <br>
              <h:commandButton id="submit"  action="/greeting.do" value="   Say Hello!   " />
         </h:form>
    </f:view>
    </body>
    </html>I want to be able to call the struts action invoking the Action method in the that returns the name
    package demo;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import org.apache.struts.action.ActionForm;
    import org.apache.struts.action.ActionForward;
    import org.apache.struts.action.ActionMapping;
    public class GreetingAction extends org.apache.struts.action.Action {
        // Global Forwards
        public static final String GLOBAL_FORWARD_getName = "getName";
        // Local Forwards
        private static final String FORWARD_sayhello = "sayhello";
        public GreetingAction() {
        public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
            String name = ((demo.GetNameForm)form).getName();
            String greeting = "Hello, "+name+"!";
            request.setAttribute("greeting", greeting);
            return mapping.findForward(FORWARD_sayhello);
    }Edited by: sijaffer on Aug 11, 2009 12:03 PM

  • After applying full scroll bar to the page including header and footer, Text editor ribbon actions cause page to automatically scroll down (while applying formatting)

    After applying full scroll bar to the page including header and footer, I have provided content to
    the page more than 100 lines and try to format the text from ribbon actions(format text area). On mouse over of font or fore color, the control jumps to the highlighted content area and not able to select the color. The page scrolls down and not able to click
    on any action.
    Consider this scenario also.
    A content editor web part is added toward the bottom of the page.
    Text is added to this (direct in the web part, not via a 'content link')
    You highlight some text and go to the Markup Style dropdown...
    Everything is fine until you hover over the "Paragraph" markup style, and suddenly the page scrolls to the web part you are editing, and you didn't have a chance
    to click and apply the "Paragraph" formatting
    I have tried testing this with text typed directly into the Content Editor, text pasted in from somewhere else, and text pasted in from somewhere else using "Paste as
    Plaintext" option in the ribbon.  In each scenario, I get the same results.
    Furthermore, I have also tested this in both IE8 and IE9 and get the same results.
    I can get it to occur most regularly with trying to apply the Paragraph "Markup Style" but
    I've also seen this happen with Font Size (any font size).  It's very frustrating since you aren't able to actually apply the formatting you need because the page jumps before you can click.  Has anyone experienced this before. Any feedback would
    help.

    Hi,
    According to your post, my understanding is that after applying full scroll bar to the page including header and footer, Text editor ribbon actions cause page to automatically scroll down (while applying formatting).
    I try to apply full scroll bar to the page including header and footer, the ribbon is missing after I scroll down to the web part. And I cannot apply the "Paragraph" markup style to the content.
    I recommend to use the SharePoint core styles to preserve the native functionality and GUI.
    By design in SharePoint, the ribbon is always at the top. When you select the content, you can apply the "Paragraph" markup style in the ribbon.
    Thanks,
    Linda Li
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Calling action on navigation bean skips setters on form bb

    Hi,
    I'm new to these forums so please bare me out :)
    I'm trying to always save the current form on a navigation event. Using facelets, so the navigation is general over all pages. I'm using t:panelNavigation2 for this (tomahawk) with commandNavigation2 items. The current form is always defined in an ui:define block.
    I'm trying to always call the save action on the current page before handling navigation. The way I was thinking is this:
    I put an updateActionListener in all the commandNavigation2 tags, which set the next navigation-rule outcome on my HistoryManager. Then in another manager I call an action handleNavigation, which sorts out the current bean and calls save on it. The problem is that at the time handleNavigation is called, the properties i defined in my bean are not set yet. Normally when I call some sort of action on the pages backing bean, all properties are set first.
    Is there some way to force this? To make myself a little clearer (I hope) here's my code:
    public class ApplicationManager {
       private HistoryManager historyManager;
       private String nextBean;
       public String handleNavigation() throws BeanNotFoundException {
          Map requestMap = FacesUtils.getExternalContext().getRequestMap();
          FormBaseBb bean = (FormBaseBb) requestMap.get(historyManager.getCurrentForm());
          bean.save();
          historyManager.setCurrentForm(nextBean);
          return nextBean.substring(0, nextBean.length() - 2);
       public void setNextBean(String nextBean) {
          this.nextBean = nextBean;
       public HistoryManager getHistoryManager() {
          return historyManager;
       public void setHistoryManager(HistoryManager historyManager) {
          this.historyManager = historyManager;
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:t="http://myfaces.apache.org/tomahawk">
    <f:loadBundle var="general_msg"
         basename="nl.tempel.tipharma.logic.jsf.resource.general_messages" />
    <f:loadBundle var="admin_msg"
         basename="nl.tempel.tipharma.logic.jsf.resource.admin_messages" />
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title><ui:insert name="window_title">TI Pharma</ui:insert></title>
    <style type="text/css" media="all">
              /* <![CDATA[ */
                   @import url(css/layout_common.css);
                   @import url(css/layout_complex.css);
                   @import url(css/navigation_left.css);
                   @import url(css/content.css);
              /* ]]> */
         </style>
    </head>
    <body>
    <div id="master_container"><h:form id="f">
         <div id="master_header">&#xA0;</div>
         <div id="top_navigation"><ui:insert name="top_navigation">
              <div class="top_link_active">Form</div>
              <div class="top_link_inactive"><h:commandLink
                   action="information" styleClass="top_link" value="Information" /></div>
              <div class="top_link_inactive"><h:commandLink
                   action="#{authenticationBb.logout}" styleClass="top_link"
                   value="Log Out" /></div>
         </ui:insert></div>
         <div id="nav_line">&#xA0;</div>
         <div id="main_wrapper">
         <div id="navigation_wrapper"><t:panelNavigation2
              id="panel_navigation" layout="list" styleClass="navigation_list"
              itemClass="item" activeItemClass="active_item"
              openItemClass="open_item">
              <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                   activeOnViewIds="/form_general.xhtml" value="1. General data"
                   immediate="false">
                   <h:outputText value="1. General data" />
                   <t:updateActionListener property="#{applicationManager.nextBean}"
                        value="#{formGeneralBb.beanName}" />
              </t:commandNavigation2>
              <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                   value="2. Project content" immediate="false">
                   <h:outputText value="2. Project content" />
                   <t:updateActionListener property="#{applicationManager.nextBean}"
                        value="#{formSummaryAndGoalsBb.beanName}" />
                   <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                        activeOnViewIds="/form_summary_and_goals.xhtml"
                        value="a. Summary and goals" immediate="false">
                        <h:outputText value="a. Summary and goals" />
                        <t:updateActionListener property="#{applicationManager.nextBean}"
                             value="#{formSummaryAndGoalsBb.beanName}" />
                   </t:commandNavigation2>
                   <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                        activeOnViewIds="/form_milestones.xhtml" value="b. Milestones"
                        immediate="false">
                        <h:outputText value="b. Milestones" />
                        <t:updateActionListener property="#{applicationManager.nextBean}"
                             value="#{formMilestonesBb.beanName}" />
                   </t:commandNavigation2>
                   <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                        activeOnViewIds="/form_characterization.xhtml"
                        value="c. Characterization" immediate="false">
                        <h:outputText value="c. Characterization" />
                        <t:updateActionListener property="#{applicationManager.nextBean}"
                             value="#{formCharacterizationBb.beanName}" />
                   </t:commandNavigation2>
                   <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                        activeOnViewIds="/form_publications.xhtml" value="d. Publications"
                        immediate="false">
                        <h:outputText value="d. Publications" />
                        <t:updateActionListener property="#{applicationManager.nextBean}"
                             value="#{formPublicationsBb.beanName}" />
                   </t:commandNavigation2>
              </t:commandNavigation2>
              <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                   value="3. Project budget" immediate="false">
                   <h:outputText value="3. Project budget" />
                   <t:updateActionListener property="#{applicationManager.nextBean}"
                        value="#{formCostsResearchersBb.beanName}" />
                   <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                        activeOnViewIds="/form_costs_researchers.xhtml"
                        value="a. Costs researchers" immediate="false">
                        <h:outputText value="a. Costs researchers" />
                        <t:updateActionListener property="#{applicationManager.nextBean}"
                             value="#{formCostsResearchersBb.beanName}" />
                   </t:commandNavigation2>
                   <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                        activeOnViewIds="/form_costs_materials.xhtml"
                        value="b. Costs materials & Supplies" immediate="false">
                        <h:outputText value="b. Costs materials & Supplies" />
                        <t:updateActionListener property="#{applicationManager.nextBean}"
                             value="#{formCostsMaterialsBb.beanName}" />
                   </t:commandNavigation2>
                   <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                        activeOnViewIds="/form_investments.xhtml" value="c. Investments"
                        immediate="false">
                        <h:outputText value="c. Investments" />
                        <t:updateActionListener property="#{applicationManager.nextBean}"
                             value="#{formInvestmentsBb.beanName}" />
                   </t:commandNavigation2>
                   <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                        activeOnViewIds="form_partner_contribution.xhtml"
                        value="d. Partner contribution" immediate="false">
                        <h:outputText value="d. Partner contribution" />
                        <t:updateActionListener property="#{applicationManager.nextBean}"
                             value="#{formPartnerContributionBb.beanName}" />
                   </t:commandNavigation2>
                   <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                        activeOnViewIds="/form_external_grants.xhtml"
                        value="e. External grants" immediate="false">
                        <h:outputText value="e. External grants" />
                        <t:updateActionListener property="#{applicationManager.nextBean}"
                             value="#{formExternalGrantsBb.beanName}" />
                   </t:commandNavigation2>
              </t:commandNavigation2>
              <t:commandNavigation2 action="#{applicationManager.handleNavigation}"
                   activeOnViewIds="/form_submission.xhtml" value="4. Submission"
                   immediate="false">
                   <h:outputText value="4. Submission" />
                   <t:updateActionListener property="#{applicationManager.nextBean}"
                        value="#{formSubmissionBb.beanName}" />
              </t:commandNavigation2>
         </t:panelNavigation2></div>
         <div id="content_wrapper">
         <div id="page_title"><ui:insert name="page_title">INSERT PAGE TITLE</ui:insert>
         </div>
         <div id="page_content"><ui:insert name="page_content">INSERT CONTENT</ui:insert>
         </div>
         <div id="page_footer"><ui:insert name="page_footer" /></div>
         </div>
         </div>
    </h:form></div>
    </body>
    </html>And then i have some form where i call properties in some form backing bean. They just aren't set before this action gets called.
    The only thing I can think of as a workaround right now is to define the navigation in every page and implement a custom EL function to handle navigation. This just seems like much of a hassle and I can't imagine there's not another soultion to this problem.
    Any help would be greatly appreciated! Thanks in advance.
    Regards,
    Jan

    After some further investigation I think this is a definite bug. All works fine when I use a commandButton or commandLink to accomplish the same. When I debug this in eclipse i notice that in the apply model values phase properties get set to null, although the form fields have some data in them.
    It looks like the apply model values phase or even the apply request values phase is completely skipped.
    Message was edited by:
    jteb

  • Looking for an idea to call action listner or other way to call java code

    Hi
    I'm building some project on JSF2
    I'm Looking for an idea to call action listner or other way to call java code from link(not commandlink)
    and i got a sign out button which i want to invalidate the session when its clicked...
    i cant do a redirect to a jsp... its a "special" link that does the log out , so i cant use the link for the session invalidation
    I dont want to use commandLink cause i need to put it into a form, and i don't to make my code uglier...
    any ideas?
    Im using JSF 2 (new to it)

    Under the constraints you have given the only thing I can think of is some kind of "pretty url" technique combined with JSF. Google can help you out. (Although that might be overkill for what you need.)
    Other than that I think you are looking at straight Java or JSP solutions that do not involve JSF.

  • Is there any way to call 'Action' in web.xml ?

    Dear All,
    My requirement is like, in my Deployement descriptior (web.xml) I would like to call "action" instead of calling welcome page(*.jsp).
    Iam using JBOSS with Jetty5.0 Servlet Container.Is there any way to call action in my deployment descriptor?
    Thanx in advance

    You can, but you have change your server configuration file. I am using Sun App server where we have a default-web.xml file in the config directory where it specifies which default file will be loaded, instead of calling the welcome.jsp. In Sun App server there is a parameter called <welcome-file-list> where you can specifiy which one to be loaded. I strongly believe there must be something like that in JBoss. Check out all the xml files in the JBoss config directory where you can find a solution to it.

  • Get Action name and corresponding page inside Filter, how?

    I develop the module, which collects the statistics of the visit the pages. It`s realized by filter. The address of the page rs so:
    ((HttpServletRequest)servletRequest).getPathInfo()
    However, if transition on pages is realized not on GoURL component, but through action, getPathInfo() gives the address of the old page. Prompt, what define the name of action, whitch was caused and what define corresponding page to this actionname?

    Hi,
    if you set all your navigation cases - I assume you use JSF - to redirect=true then the URL you see is always the correct one
    Frank

  • Can I add Action button on each page of my pdf document

    I have created  many power point slides with an action button on each slide that allows the user to click to display a video clip.   I would like to create a pdf document of this and replace each of my action button in ppt with an action button that works in Acrobat.
    I noticed that action buttons can be added to forms, but I want to be able to add an Action Button on each of my ppt slides to start playing a video clip (each slide will have a different video).
    I would like to do this using any coding method (i.e. Javascript, VBA, C , etc).   I think acrobat uses Javascript.
    The reason, is that I want to display my power point slides on an IPad and they don't support hyperlink in power point.   I believe IPad does suppport the full acrobat capabilities.
    Can this be done ??  
    Any suggestions where to start ??
    Thank You,
    G

    NO problem creating the buttons and then playing this back in Acrobat. Works great.
    However, unfortunately, none of the PDF viewers for the iPad support playing movies.   So playing it there won't work :(.
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Sat, 28 Jan 2012 11:00:47 -0800
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: Can I add Action button on each page of my pdf document
    Can I add Action button on each page of my pdf document
    created by gw70115<http://forums.adobe.com/people/gw70115> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/4171109#4171109

  • Unable to expand DG is Lync client - Cannot perform this action, and the cause is unknown.

    Hi,
    I have a user in our Hong Kong office that is unable to open a distribution group she has added to her Groups. She gets the error message "Cannot perform this action, and the cause is unknown. Contact your support team to investigate."
    I can add the group and expand it, so can some of her colleague, and some cannot. Her colleagues who can have the same client and global policy settings as she does. 
    I read in a similar thread that this could be resolved by confirming the server times on Lync, AD (domain controller checked and Exchange but they were all correct and in sync. 
    The global policy is set to 250 max contacts - but does a DL count as 1 contact, or does it count all the people within the DG? I am getting HK to confirm she does not have too many contacts but I dont think this is the issue. 
    Anyone else come across this issue?
    Phil

    You can run the command Test-CsGroupExpansion to test the ability of a user to employ group expansion.
    For the usage of the command, you can check
     http://technet.microsoft.com/en-us/library/gg399009.aspx
    Lisa Zheng
    TechNet Community Support

  • Hyperlink with an action 'Go to a page in another document' in IE browser.

    When the PDF Document is opened in IE, Clicking on a Hyperlink with an action 'Go to a page in another document' is not navigating to the proper destination page.
    This happens when the destination document is already opened in IE once and cached.

    Hi Vinayaka,
    I am unable to replicate this at my end. I am using Acrobat 11.0.10 on Windows 7 and IE11
    Below are the steps I followed :
    Create a link and select the "Custom link" option, click "Next",  select the "Options" tab, select "Go to page view", click the "Add: button, open the file to the page you want to link to, click the "Set link" button.
    Regards,
    Rave

  • Determine the outcome of an action in the jsp page?

    can i determine the outcome of an action in the jsp page?
    for example:
    i create a jsp file that contains two links, that play the role of tabs....
    the action is different for the two links say "action1" and "action2" but the result page is the same original page...
    can i determine what whas the action the user clicked?( so that i can display different things, according to action )

    you can use the <f:param> component with your commandLink and set a different value for each of your link. Then, in your jsp, you should be able to retrieve the value of the parameter in the request.

  • Acrobat X Standard Bookmarks - How do I make the Zoom Level action default to "Fit Page" when combining to one pdf?

    Acrobat X Standard Bookmarks - How do I make the Zoom Level action default to "Fit Page"?
    When I combine multiple pdf files into a single binder, Acrobat creates a bookmark for each file.  In the properties for each bookmark, there is an action created to go to the page in the document and has the zoom level at "fit width".  Question is, how do I change this apparent default zoom level to "fit page" when Acrobat creates the bookmarks when combining the pdf files?

    Is there a way to do it in one step instead of individually on each bookmark?  This gets VERY cumbersome when I have upwards of a hundred bookmarks to change.

  • SharePoint 2013 Designer Workflow Cannot find Action - Call Http web service

    Hi All,
    I Do not see the option in the workflow where i can add the action "Call HTTP Webservice.
    Am I doing something wrong.
    Thanks

    Hi Nick,
    Is only this action "Call HTTP Webservice" missing from SharePoint 2013 workflow?
    If other actions are also missing, you can reinstall and reconfigure workflow for SharePoint 2013.
    Please double check and make sure you create the SharePoint 2013 workflow platform .
    http://technet.microsoft.com/en-us/library/jj658588(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/jj164026(v=office.15).aspx
    Thanks
    Daniel Yang
    TechNet Community Support

  • EJB is not throwing exception to calling Action class in Unix environment

    Hi
    We are using Weblogic Server 9.2.3.0.
    One of our EJB is not throwing exception to calling Action class in Unix environment. Its working fine in Windows.
    Somehow the EJB is swallowing the exception.
    any idea? I suspect it may be environmental issue?
    thank you

    Hi
    We are using Weblogic Server 9.2.3.0.
    One of our EJB is not throwing exception to calling Action class in Unix environment. Its working fine in Windows.
    Somehow the EJB is swallowing the exception.
    any idea? I suspect it may be environmental issue?
    thank you

  • KNOWN BUG????  data action changing to data page when reload of JDev

    Hi All,
    i'm using jdev 10.1.2, adf bc's, struts, jsp's.
    I have a data action on my struts page which is bound to a method in the app module. I created a class for this data action which overrides the initialMethodParameters() method and gets the arguments for the method in the app module.
    it all works perfectly fine, until i shut down JDev and load it up again. The data action has now turned into a data page. if i dbl click on it i get the create page dialog, instead of the data action class. obviously when i try run this data action, i get cannot display this page error.
    I'm assuming/hoping that this is a bug. can anyone shed any light??
    Thanks in advance,
    Liz

    Hi,
    did you open this in the same version of JDeveloper 10.1.2? I remember that there was a change in Struts between JDeveloper versions
    Frank

Maybe you are looking for