Resetting a view w/struts

Hello
This is a problem I am having w/ struts. I have a page, results_list1.jsp that has an href that calls, add1.jsp. Add1.jsp is the view for the data fields of the object. Add1.jsp has a submit that calls Add1Action. I have an Add1Form w/ Reset method, that is the configured form bean for the Add1Action in the struts-config.xml. The problem is if I attempt to make a second entry off results_list1.jsp with the add1.jsp, the old values are still there. The first time through should not the Add1Form bean have reset the values so the second time add1.jsp comes up they are all blank or their default from the Reset method? How do I make either add1.jsp, Add1Action or Add1Form, clear the values after completion so the second + invocation of add1.jsp is blank on all fields and ready for new input? Sorry for the loquaciousness.

Are you using "request" or "session" for the scope of your form in the struts-config.xml file?

Similar Messages

  • HELP...I can't reset default views...how do I set "designer view" to default that shipped with product.

    Help...how do I reset "Designer View" to what shipped with product.  I was using a tutorial and totally messed up the designer default view, and cannot restore it by going to workspace "Designer View" reset...it just resets it to the same corrupted view.  I seem to be stuck in live mode with no buttons to come out of live mode.

    While in the Designer space, have you tried choosing Windows > Workspace Layouts > Reset 'Designer' ? If that doesn't work, you may have accidentally overwritten the default Designer workspace with the one you see now. If that's the case, one (pretty drastic) alternative is to reinstall. Another less drastic approach, is to replace the Designer.xml in your user Configuration > Workspace folder with the one I've attached.
    Let me know if you need help finding your user Configuration folder.
    Best - Joe
    Joseph Lowery
    Author, Dreamweaver CS4 Bible

  • Quick way to reset rotate view in Photoshop CS4?

    Is there a quick way to reset rotate view [via keyboard shortcut, etc.]? I know I can double click on the tool icon and click the "reset view" button, but is there another convenient way?

    thanks!

  • Reset dirty view state

    Hi All,
    By any chance anybody knows solution to this little problem:
    I have ActionListener that is activated when user click on the breadcrumb and perform some clean up in the views.
    private void rollBackChanges(String selectedIterator) {
    FacesContext fc = getFacesContext();
    ValueBinding vb = fc.getApplication().createValueBinding("#{bindings}");
    DCBindingContainer bc = (DCBindingContainer) vb.getValue(fc);
    DCIteratorBinding iterator = bc.findIteratorBinding(selectedIterator);
    if (iterator != null) {
    ViewObjectImpl vo = (ViewObjectImpl) iterator.getViewObject();
    doCleanViewLinks(vo.getViewLinks());
    doCleanCurrentRow(vo);
    vo.clearCache();
    //Commit here because on the UI alert for changes are coming up in spite of removing all changes
    //vo.getDBTransaction().commit();
    if(vo.getDBTransaction().isDirty()){
    throw new RuntimeException("Transaction is Dirty");
    private void doCleanViewLinks(ViewLink[] links) {
    for (ViewLink vl: links) {
    ViewObjectImpl vol = (ViewObjectImpl) vl.getDestination();
    doCleanCurrentRow(vol);
    vol.clearCache();
    private void doCleanCurrentRow(ViewObjectImpl view) {
    ViewRowImpl row = (ViewRowImpl) view.getCurrentRow();
    if (row != null) {
    row.refresh(Row.REFRESH_UNDO_CHANGES | Row.REFRESH_REMOVE_NEW_ROWS);
    I do not have dirty transaction on the views but on the UI pop up message warns me about uncommitted changes, so how do I reset this view or synchronize it's state to views.
    Thanks in advance,
    Alex

    Hi Frank,
    I am on
    ADF Business Components     10.1.3.40.66
    Java™ Platform     1.5.0_06
    Oracle IDE     10.1.3.40.66
    Uncommitted data warning come from java script that check page for modification but transaction is not dirty.
    Alex
    Edited by: user10597392 on Jul 17, 2009 6:28 AM

  • Issue in converting Struts view to JSF view using struts-faces integration

    Hi All,
    I am facing a issue in my Sruts to JSF conversion application using struts-faces.jar integration library.
    Need expert's help desperately as I am not able to use <s:form> tag in my new jsf page to call a struts action.
    I want to call a struts action from my web page designed using JSF,
    but it seems impossible without using <s:form> tag from struts-faces integration library.
    Please suggest how to resolve this...
    I am using WSAD 5.1 IDE with inbuilt Test environment WebSphere server
    JSF Version: Sun's RI 1.1
    Struts framework: 1.2.6
    Struts-Faces Integration Library version: 1.0
    I have configured a controller element in struts-config.xml file as has been suggested by different online
    documents I studied:
    <controller>
    <set-property property="processorClass"
    value="org.apache.struts.faces.application.FacesRequestProcessor"/>
    </controller>
    But configuring a controller does not allow my test server to start up properly and due to errors the ActionServlet also becomes unavailable.
    If I comment the controller and start the test server it starts fine but then I cannot access the converted jsf page which contains the <s:form action="/xxxxx.do"> tag.
    If now I get back to <h:form> tag instead of <s:form> tag with a <h:commandButton action="xxxx.do"/> for form submission in my jsf page, I see the html page generated with all components but now checking the html source generated I see
    <form action="/contextName/jspFolder/sameDisplayedPage.jsf"> which is not valid and never gets called successfully.
    I think someways I need to use the <s:form> tag with the controller configured properly to use the struts-faces integration library's request processor, to get things working. But HOW???
    Following is the error I get if I use the <controller> tag element in struts-config.xml file and start the server.
    This error appears on starting the server without accessing any application's jsp web page
    [6/12/06 15:31:14:109 IST] 3e311815 ActionServlet E org.apache.struts.action.ActionServlet Unable to initialize Struts ActionServlet due to an unexpected exception or error thrown, so marking the servlet as unavailable. Most likely, this is due to an incorrect or missing library dependency.
    [6/12/06 15:31:14:109 IST] 3e311815 ActionServlet E org.apache.struts.action.ActionServlet TRAS0014I: The following exception was logged java.lang.IllegalAccessError: org.apache.commons.digester.SetPropertyRule tried to access method org/apache/commons/beanutils/BeanUtils.setProperty(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
    at org.apache.commons.digester.SetPropertyRule.begin(SetPropertyRule.java:198)
    at org.apache.commons.digester.Rule.begin(Rule.java:200)
    at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown Source)
    at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digester.java:1548)
    at org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:736)
    at org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:685)
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:331)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
    at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
    at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1277)
    at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
    at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:387)
    at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209)
    at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:987)
    at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
    at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:418)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:787)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:575)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)
    at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
    at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
    at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
    at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
    at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
    at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
    at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
    at java.lang.reflect.Method.invoke(Method.java:386)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
    [6/12/06 15:31:14:188 IST] 3e311815 WebGroup E SRVE0020E: [Servlet Error]-[ActionServlet]: Failed to load servlet: javax.servlet.UnavailableException: org.apache.commons.digester.SetPropertyRule tried to access method org/apache/commons/beanutils/BeanUtils.setProperty(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Object;)V
    at org.apache.struts.action.ActionServlet.init(ActionServlet.java:366)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doInit(StrictServletInstance.java:82)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._init(StrictLifecycleServlet.java:147)
    at com.ibm.ws.webcontainer.servlet.PreInitializedServletState.init(StrictLifecycleServlet.java:270)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.init(StrictLifecycleServlet.java:113)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.init(ServletInstance.java:189)
    at javax.servlet.GenericServlet.init(GenericServlet.java:258)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManager.addServlet(WebAppServletManager.java:870)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadServlet(WebAppServletManager.java:224)
    at com.ibm.ws.webcontainer.webapp.WebAppServletManager.loadAutoLoadServlets(WebAppServletManager.java:542)
    at com.ibm.ws.webcontainer.webapp.WebApp.loadServletManager(WebApp.java:1277)
    at com.ibm.ws.webcontainer.webapp.WebApp.init(WebApp.java:283)
    at com.ibm.ws.webcontainer.srt.WebGroup.loadWebApp(WebGroup.java:387)
    at com.ibm.ws.webcontainer.srt.WebGroup.init(WebGroup.java:209)
    at com.ibm.ws.webcontainer.WebContainer.addWebApplication(WebContainer.java:987)
    at com.ibm.ws.runtime.component.WebContainerImpl.install(WebContainerImpl.java:136)
    at com.ibm.ws.runtime.component.WebContainerImpl.start(WebContainerImpl.java:356)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:418)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:787)
    at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:354)
    at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:575)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:271)
    at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:249)
    at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
    at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
    at com.ibm.ws.runtime.component.ApplicationServerImpl.start(ApplicationServerImpl.java:125)
    at com.ibm.ws.runtime.component.ContainerImpl.startComponents(ContainerImpl.java:536)
    at com.ibm.ws.runtime.component.ContainerImpl.start(ContainerImpl.java:413)
    at com.ibm.ws.runtime.component.ServerImpl.start(ServerImpl.java:183)
    at com.ibm.ws.runtime.WsServer.start(WsServer.java:128)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:225)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:41)
    at java.lang.reflect.Method.invoke(Method.java:386)
    at com.ibm.ws.bootstrap.WSLauncher.main(WSLauncher.java:94)
    at com.ibm.etools.websphere.tools.runner.api.ServerRunnerV5$1.run(ServerRunnerV5.java:97)
    (same error message re-iterates/repeats itself... and finally -
    Error 503: Failed to load target servlet [ActionServlet] comes in web-browser
    Following is the error which I get if I comment the <controller> element in the struts-config.xml file
    and use a <s:form action="xxxxx.do"> in the struts converted jsf page. The web-server starts fine, but
    accessing the jsf page givers error as:
    [6/12/06 15:38:00:781 IST] 696f19de WebGroup I SRVE0180I: [Sample Struts-JSF integration application] [training2] [Servlet.LOG]: /jsp/welcomeF.jsp: init
    [6/12/06 15:38:01:219 IST] 696f19de WebGroup E SRVE0026E: [Servlet Error]-[]: java.lang.NullPointerException
    at org.apache.struts.faces.renderer.FormRenderer.encodeBegin(FormRenderer.java:114)
    at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
    at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591)
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:478)
    at org.apache.jsp._welcomeF._jspService(_welcomeF.java:207)
    at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:344)
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:662)
    at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    at org.apache.struts.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1054)
    at org.apache.struts.action.RequestProcessor.internalModuleRelativeForward(RequestProcessor.java:992)
    at org.apache.struts.action.RequestProcessor.processForward(RequestProcessor.java:551)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:209)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1192)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:412)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
    at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
    at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
    at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
    at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
    at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:974)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:555)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
    at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
    at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
    at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
    at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
    at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
    at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
    at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)
    Finally if I change my <s:form action="xxxxx.do"> tag to
    <h:form>
    <h:commandButton id="submit" action="xxxx.do" value="Submit" />
    I see the webpage coming up in the browser (no controller element used in struts-config.xml file this time)
    But in the html source of this html created from jsf I see
    <form id="_id2" method="post" action="/training2/jsp/welcomeF.faces" enctype="application/x-www-form-urlencoded">
    here form's action attribute is pointing to the same displayed page with the context name prefixed. I
    assume it is because jsf could not resolve the "xxxx.do" action to anything so set it to the same displayed page.
    May be I am wrong as usual...
    Below is the simple struts jsp page which I need to convert to jsf page as I am converting only the View part of application.
    I want to use the same struts beans and application logic at the back-end. At front-end I need UIComponents from JSF to be used.
    Following is the struts jsp page
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
    <%@ taglib prefix="html" uri="/WEB-INF/lib/struts-html.tld" %>
    <%@ taglib prefix="bean" uri="/WEB-INF/lib/struts-bean.tld" %>
    <html:html>
    <html:base/>
    <html:messages id="messages" />
    <font style="color:red; font=weight:italic; font-family: century gothic">
    <html:errors/>
    </font>
    <BODY>
    <P>Sample Struts and JSF integration example</P>
    <P>This one is being displayed via Struts specific tags</P>
    <html:form action="validateUser.do">
    <bean:message key="label.name" /> : <html:text property="name" />
    <bean:message key="label.password" /> : <html:password property="password" />
    <bean:message key="label.age" /> : <html:text property="age" />
    <bean:message key="label.city" /> : <html:text property="city" />
    <bean:message key="label.address" /> : <html:text property="address" />
    <html:submit property="submit" value="Show info via Struts" />
    </html:form>
    </BODY>
    </html:html>
    I have converted it into the following jsf page
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://struts.apache.org/tags-faces" prefix="s" %>
    <f:view>
    <HTML><BODY>
    <f:verbatim><P>Sample Struts and JSF integration example</P></f:verbatim>
    <f:verbatim><P>This one is being displayed via JSF tags</P></f:verbatim>
    <h:form> <!-- Want to use s:form tag instead of this h:form tag -->
    <h:inputText id="name" value="#{userForm.name}" /><f:verbatim>
    </f:verbatim>
    <h:inputSecret id="password" value="#{userForm.password}" /><f:verbatim>
    </f:verbatim>
    <h:inputText id="age" value="#{userForm.age}" /><f:verbatim>
    </f:verbatim>
    <h:inputText id="city" value="#{userForm.city}" /><f:verbatim>
    </f:verbatim>
    <h:inputText id="address" value="#{userForm.address}" /><f:verbatim>
    </f:verbatim>
    <h:commandButton id="submit" action="#{user.facesAction}" value="Show info via Struts" />
    </h:form>
    </BODY></HTML>
    </f:view>
    I am very hopeful of some answer from respected group experts, please help me.
    I am in urgency of course but would not push for immed. response like other, just want some help for sure that is going to
    be extremely valuable to me. Anticipating a helping hand...
    Thanks and Regards
    Vishal Sharm
    Time's fun when you're having flies � Kermit, the Frog
    -------------------------------------------------------------------------

    I've managed to get this working Ok from JDeveloper:
    See:
    http://www.groundside.com/blog/content/DuncanMills/J2EE+Development/?permalink=573FDB6F8D918B9704907899635CABB1.txt
    http://www.groundside.com/blog/content/DuncanMills/J2EE+Development/?permalink=2B04ACE99A6437EDED775F15553D1DED.txt
    Basically you just have to fiddle around with Library settings to get this working OK.
    As to how useful this is, well that's up to you - I'd not regard Faces + Struts as a must use combination, rather it's a can mix if you really need to. Look at Faces and Faces navigation first and see if that actually gives you enough before you start to look at mixing.

  • What is the best technique for resetting a view?

    I was wondering what is the best technique for resetting the initial state of a view?
    I am creating a form and want to provide a reset button for the user.  I could write an initialize() method that my action handler calls, but I am wondering if the framework already provides this functionality in a more elegant way.
    If I write an initialize method, then I have to manually populate my fields with my context mappings in my initialize() code to mimic what happens automatically by the framework the first time the view is called.  This seems prone to error since this is duplicating the mapping logic.
    Michael

    Hi,
    Even though it boils down to the same logic, for consistency sake it is good to have the initialization logic coded in the inbound plug method and then to call the outbound plug on reset.This make more sense when you have multiple navigation possible to the same view through multiple inbound plugs.
    Else, have an initialization method.
    PS: check whether the reset() method of IWDContext make sense. This is helpful when you have remove dynamically added nodes and attributes.
    Thanks and Regards,
    Sam Mathew

  • Ticks in Model Tree are reset on View change

    How to avoid reseting ticks in the Model Tree when the user changes View of the model? I understand that this behavior is on purpose but I would like to turn it off.
    I have tried to add the ticks check into CameraEventHandler but it seems that CameraEventHandler is called after the ticks got reseted. Thus I do not have any state to revert to. Any idea (best practice) how to implement that?

    I have received an email from the author of media9 Latex package stating:
    In the next version I'll include `PARTATTRS=restore|keep' to be used in a VIEW section.
    which will solve the problem.

  • Edit/View Details (Struts)

    Hello,
    Sorry, I know this is not the place to ask a Struts quesiton. I've got a page with a link for view details and one for edit details. I use the same form-bean and a single action class for both. When I click on View first the details are displayed correctly. After that if I click on Edit details the same values appear in boxes with the submit button. If I then go back and click on the View details link again the same page as 'Edit' details gets displayed again. This should not be the case as in the View details screen the values should not be editable. This has got me going around in circles. Any ideas anyone? Regards

    I presume you have two different JSPs one which is editable, one which is not?
    How are you deciding which one to show - ie how do you know to display "edit" page or "view" page?
    Using the same form is fine.
    Same action - sounds ok to me.
    What does the struts-config for this entry look like?

  • How can I delete/reset ALV views?

    Hi,
    I have a problem when opening ALV in a WD application for my user (it works for other user). A short dump appears with the following message: "Could not find attribute SALV_WD_COL_CV_00001".
    I think the reason is the default view which is set for the ALV. Is it possbile to reset the default view to the standard view or delete the default view? But I'm not sure if this is really the reason for the dump (but it's strange that it works for other user).
    Thank in advance!
    Alex

    Hi Alex,
    I know one way to delete the Personalization data of a user but i thought it won't be correct. I was waiting if somebody replies with prpper solution.
    User personilzation data is stored in below 4 tables
    WDY_CONF_UDEF
    WDY_CONF_USER
    WDY_CONF_USERT
    WDY_CONF_USERT2
    Delete the entries related to your IDs configurations from above 4 tables.
    Caution: This may affect personalization data of other user. So write appropriate queries to delete only your entries.
    Thanks,
    Feroz

  • Dock + Remote apple in the ipod 3g reset while viewing videos

    Hello.
    I have the following problem is my ipod nano 3g 1.1.3 connected to the dock of apple and driving with the remote apple.
    The problem is that the iPod is reset when you press forward or play / pause while playing videos, I have tested with the podcast "Apple Special Event, October 2008", the reset is random.
    Any idea? in support of apple I have sent this url, but I have not managed to solve the problem http://support.apple.com/kb/TS1517?viewlocale=es_E
    the iPod is connected to the apple tv composite video
    Os the functional dock + apple + remote video components with the iPod nano 3g, when playing videos? are you reset the ipod?
    Thank you very much.

    This rather depends on whether it broke because it was faulty - in which case it would be covered - or it broke because it was damaged - in which case it most likely wouldn't be.
    In any event the best thing would be to deal with Apple directly. Please see this page:
    http://www.apple.com/support/ipod/service/faq/#repair2
    and please particularly note the caveats in section 3 about not retaining the data and the possibilty of a replacement having a later OS.
    Also please note http://www.apple.com/support/ipod/service/faq/#warranty5

  • 2G iPod nano "resets" when viewing photos

    I have been loading my daughter's new 8GB nano with music and pictures to give it to her for Christmas. The nano has "reset" twice while showing pictures: The screen goes to the black Apple screen for a moment and then goes to the main menu. Has anyone else had this problem? Do you know what causes it? I haven't had any trouble when listening to music ... yet.
    iPod nano 8GB black   Windows XP   Using photo album

    Also since this iPod is new it will have already be
    uptodate on the new software.
    That's not necessarily true. Some iPods in some retailer purchased today may still be on the original iPod firmware update. Depends on how fast that retailer is moving product and reshelving. Also, just like you choose not to update your firmware, this poster may be the same way. A double edged sword. Although some people are complaining about issues or problems arising after an update I don't think it's something that the majority of users are experiencing. Also, consider the people that had problems actually go away after updating their firmware (like myself). Since Apple reccomends repeatedly on their support pages to have the latest "up-to-date" firmware on your iPod it's probably the best thing to do in the long run.

  • Reset folder views after iTunes library damaged

    Went to open iTunes this morning, and it spent ages importing the xml library. Took a good couple of hours. Then it said that my iTunes library was damaged, and that it would make a backup and then import from the backup.
    Imported fine. Had to re-do what things were (e.g. set TV Shows from Movies to TV Shows, set Audiobooks from Music to Audiobooks etc). But otherwise, all my music/movies/tvshows seem to be there, including all my playlists.
    The problem I'm having is that all my playlists are organised into folder. My top level folders are Audiobooks, Books, Music and Video. Then within Video, I have Movies, Music Videos and TV Shows. If I go through the folders and click on a playlist, everything is listed as normal. But if I click on a folder, it shows what appears to be my entire iTunes library. For example, if I click on the Movies folder, it should only show me everything from the movies playlists within the folder, but it shows all my music, tv shows etc.
    Is there a way of resetting what the folders display when they're selected? My books folder has little in it, so I removed everything on the playlists in it, then re-added them. Now when I click on the Books folder I only see the books in the playlists within it, rather than my entire library. I don't want to have to do this with each individual playlist though. We're talking about 2TB of stuff :S
    Message was edited by: chirhodesign

    Please forgive me, but I'm nearly pleased to hear that, because this means that the problem doesn't come from me.

  • How can I reset the view to include the panel at the bottom of the list of messages?

    When the inbox displays the list of messages, I used to have a panel at the bottom of the pane which had a "delete" button, so I could scroll through the display quickly and delete the ones I did not need to read in full, or did not wish to read in full. That panel has disappeared and I would like to get it back.
    Thanks in advance for your help

    F8 turns on/off the preview panel at the bottom. When it is on, there is a 'Delete' button for the message.

  • ITunes 11 annoyance-when in music library and change views (clicking on Movies or iTunes Store, etc.) then go back to Music, it always resets me back to top of my Music library rather than the artist I was looking at prior.

    For example, I am looking at Slash's Apocalyptic Love and click the arrow to Show in iTunes Store.  I then click back on my Music Library and instead of seeing Slash's album still, iTunes has reset my view and I will now be back in the letter A's.  I then have to scroll down or hit "S" to get back down in my list to find the Slash album again and return to what I was doing.  Minor inconvenience, but an annoying quirk.
    Previous versions of iTunes kept your place and remembered where you were in the music list.
    Anyone experience this or have a solution that I'm missing?

    I complained about this the day iTunes 11 came out, they clearly don't give a hoot. It's super annoying, cause I get a lot of free music and then I listen to it in one playlist, look for it in my library to delete it, when I switch back, I have to scroll all the way down again again.  And god forbid you are in your library when it switches songs while you're looking at something, cause it automatically switches to the song playing, and then you have to scroll back to where you were. Seems to me if it's a feature it used to have, it shouldn't be too hard to add it to an update...

  • View Settings Resetting

    Ref: Windows 7 Pro SP1 and current version of iTunes
    I launch itunes; sometimes I get the window that request you acknowleged the use of the software; Then when itunes opens
    NO memu bar; No view settings
    So I go to the little window Icon in the uppper left hand corner; and select "Show Menu Bar"
    Then I go to View and select "Show Status Bar"
    Then i go to View again and select "Show Side Bar"
    Then I go to View for third time and Select "Show up next"
    Now I am ready to use itunes...No problems using the applications.
    Note: All the items in the Side Bar; i.e. Library; Playlists etc. are retained.
    Upon completion of the session, I close itunes....
    Next session...open itunes now maybe or maybe not itunes has saved my view settings; if settings are not saved, I have to go thur the view process again! I have found this behaviour is hit and miss and bloody annoying!
    I MAY expect this behaviour if a new version was downloaded; but you would think they could keep a file in itunes that retains these settings. I have been unable to find any consistance in this behaviour .
    Question:
    Is the resetting of view settings, as I have indicated above, normal behaviour?
    Is there somewhere in this application that I can save these settings?

    Hi,
     A view is a hidden message in your PST file. Try to repair your PST file using scanpst.exe:
    Click Start, and then point to Find or to
    Search, depending upon your operating system.
    In the Search for files or folders named box, type scanpst.exe
    Double click the Scanpst.exe file to open the Inbox Repair Tool.
    Type the path and the file name of the personal folders (.pst) file or click
    Browse to locate the file by using the Windows file system.
    Click Start.
    If the problem persists, we may try to create a new PST file. When creating a new Outlook profile, a new pst is created for Inbox. So, create a new Outlook profile
    to test the results. For detailed steps, refer to:
    http://support.microsoft.com/kb/829918
    Sincerely
    Harry

Maybe you are looking for

  • Printing is mirrored on Brother MFC-210; no print settings in Print Dialog

    I recently purchased a new iMac. I transfered the contents of my Powerbook to the iMac. When I try to print to my Brother MFC-210 printer from any application, the result is reversed (mirrored). On my Powerbook, the Print Dialog box for the MFC-210C

  • Unable to save Excel file with RMS feature enabled.

    We have a client who is unable to save a protected workbook. If he disables RMS he is able to save. I have tested this and it is not system wide. I have included a few errors he was getting. This user has Office 2010 running on Windows 7. He has veri

  • Get Max no of Threads allowed by OS

    Is there a way in java to programatically get the maximum number of threads that are allowed to be created by an operating system? Thru my readings on forums, I gather that though there is no such limit for green-type of java threads (I am not sure w

  • How to use case when in Select qry?

    Hi Friends, I want to use Case when in Select qry, my situation is like this SELECT bmatnr blgort bj_3asiz bmat_kdauf b~mat_kdpos        SUM( ( case when bshkzg = 'S' then bmenge else 0 END ) -         ( case when bshkzg = 'H' then bmenge else 0 END

  • Skinning Cell Renderer for ComboBox

    How does one change styles for the CellRenderer of a ComboBox? Flash help gives a nice example on how to skin CellRenderer styles for Datagrid and TileList components, but doesn't mention anything on how to do the same for a ComboBox. The code exampl