Struts/UIX and a messagebox

Hi,
Who can I use
<messageBox automatic="true" dataName="???" dataNamespace="???"/>
to display a ActionErrors in the requestScope.

Hi,
Thank you very much for your help but I reded before.
So let me tell you what I did:
I had LogonAction extends DataAction with a method:
public void prepareModel(DataActionContext dac)
String username = ((LogonBean)dac.getActionForm()).getUser();
String password = ((LogonBean)dac.getActionForm()).getPassword();
if(!"ghassan".equals(username) && !"123".equals(password))
dac.getActionErrors().add(ActionErrors.GLOBAL_ERROR, new ActionError("badnamepassword"));
this.saveErrors(dac.getHttpServletRequest(),dac.getActionErrors());
dac.setActionForward("relogon");
and I had a UIX page :
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns="http://xmlns.oracle.com/uix/controller"
xmlns:ui="http://xmlns.oracle.com/uix/ui"
xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:struts="http://xmlns.oracle.com/uix/struts"
expressionLanguage="el">
<content>
<struts:dataScope xmlns="http://xmlns.oracle.com/uix/ui" xmlns:data="http://xmlns.oracle.com/uix/ui">
<provider>
<!-- Add DataProviders (<data> elements) here -->
</provider>
<contents>
<document>
<metaContainer>
<!-- Set the page title -->
<head title=""/>
</metaContainer>
<contents>
<body>
<contents>
<form destination="logon.do" name="logon" method="POST">
<contents>
<pageLayout>
<about/>
<copyright>
<text text="Copyright 1989 - 2004 Accad institute"/>
</copyright>
<corporateBranding>
<image source="images/otn_logo.gif"/>
</corporateBranding>
<end/>
<globalButtons/>
<pageButtons>
<submitButton text="Enter"/>
</pageButtons>
<pageHeader>
<header text="System Logon" icon="images/login_pagetitle.gif" autoflip="true">
<contents>
<rawText text="Use your user name and the password to enter the system"/>
</contents>
</header>
</pageHeader>
<privacy>
</privacy>
<productBranding/>
<start>
<sideBar>
<contents>
<messageBox automatic="true"/>
</contents>
</sideBar>
</start>
<tabs/>
<contents>
<labeledFieldLayout>
<contents>
<messageTextInput name="username" promptAndAccessKey="&amp;User Name" required="yes"/>
<messageTextInput name="password" promptAndAccessKey="&amp;Password" tip="case sensitive" required="yes"/>
</contents>
</labeledFieldLayout>
</contents>
</pageLayout>
</contents>
</form>
</contents>
</body>
</contents>
</document>
</contents>
</struts:dataScope>
</content>
<handlers>
<!-- Add EventHandlers (<event> elements) here -->
</handlers>
</page>
and when I pressed on the submitButton the page redisplaied with a messagebox have title 'Error'.
So where is the error here
thank you very much for any help.

Similar Messages

  • Oracle ADF UIX and Struts

    Does Oracle ADF UIX use Struts components internally? If yes, Does Oracle Support the issues that arises because this internally used Struts components? (I am using Oracle ADF in my application.
    Thanks,
    Aravind.

    DataForwardAction and DataAction are build on top of struts actions to coordinate ADF databindings and it's life cycle;
    UIX, has xmlns:struts="http://xmlns.oracle.com/uix/struts" this XML namespace has some elements like
    <struts:form> and <struts:messageTextInput> also <struts:dataScope>
    They work like struts jsp tag;
    here a good paper;
    http://download-west.oracle.com/otn_hosted_doc/jdeveloper/904preview/uixhelp/uixdevguide/struts.html
    Marcos Ortega
    Brazil

  • UIX and Struts ActionForm

    Hi,
    Can I use Struts ActionForm and ADF UIX?
    Thanks

    The "Simple Hello World sample using ADF UIX and JDeveloper 10g Preview" application integrates Struts with ADF UIX.
    http://jjacobi.blogspot.com/2003_11_30_jjacobi_archive.html
    Simple ADF UIX User Input Application
    http://www.oracle.com/technology/products/jdev/howtos/10g/adf_uix_userinput_ht/index.html

  • Bug:  Multiple Struts modules and DataPages

    There is a bug with multiple struts config files, and the "DataAction" Struts/UIX component. for example:
    New DataAction, UIX file is at ...app.../portal/Login.uix.
    The DataAction shows "/Login.uix".
    In that form, I get an awful "404" error that has NO description at all.
    If I go into the struts-portal-config.xml, and change the DataAction to have the link of: "/portal/Login.uix", the page works, but the struts-config editor shows and error.

    Is there a bug number registered for this issue? Are there any reasonable workarounds?
    Mihkel Nõges

  • WebToGo BC4J + Struts + UIX application

    Is there any possibility to write a complete BC4J + Struts + UIX web application to run in the Oracle Lite platform??
    The documentation says about implementing a Servlet, but is it possible to install the .jar files of the struts & uix frameworks and register the *.do & *.uix extensions? What is the specification of the HttpServlet to be implemented?
    What about performance? Could this combination run in a WinXP PIV offline Laptop with reasonable performance?
    Where can I find this kind of information??
    Thanks
    Eduardo

    UIX is not supported in 5.0.2.x release. The next release (10g) will have complete UIX support. Beta release of 10g is already out in case you are interested in trying UIX with it.
    For BC4J refer to 'Chapter 6 BC4J Tutorial' of 'Oracle9i Lite Developer’s Guide'
    Limited support for Struts is there in 5.0.2.10.0 release. If you have the handler for .do extension files then you can use following:
    You can add mime handler to Mobile Server for .do extension by using a ini file. Copy following lines in a file called addmime.ini
    [DATABASE]
    TYPE=ORACLE
    [MIMETYPES]
    NAME = do
    VALUE=text/html
    PLUGIN=<handler class name>
    and run this ini file as following
    wsh -c addmime.ini mobileadmin/[email protected]

  • Use UIX and JSP together

    I have some existing jsp application . I want to integrate it with UIX application that is generated from JHeadStart . jsp application is just 10% of whole project.
    I am not sure this is a good way or not . May be We should use JHeadstart to generate JSP more than UIX . but I think it 's more powerful if I use JHeadstart to generate UIX application .
    What do you recommend for this ?
    and if we have to use both together . How dose JSP application pass parameter to UIX application ? and How dose UIX pass parameter to JSP ?. and How UIX use the parameter that 's sent form JSP ?
    thanks in advance

    If JSP is only 10% you might want tpo consider migrating these pages to UIX.
    If this is not an option, you should be able to use both UIX and JSP pages. However, make sure you create separate struts-config.xml files for the JSP-based subsystem and the UIX-based subsystem. This requires two se[parate ViewController projects, that act as one web application. The same setup that has been aplied to Th JHeadstart demo application in Jhs 10.1.2.1. Check out this article from Duncan Mills as well:
    http://www.oracle.com/technology/products/jdev/howtos/10g/StrutsMultiConfigs/struts_multiconfig_howto.html
    One addition to this articel: the source path property of the ViewController projects shopuld be the same as well.
    As far as communication between the pages is concerned: this is no different then between UIX pages. You can pass request parameters around, and since the pages are running in the same web app, they share the same HttpSession.
    Steven Davelaar,
    JHeadstart Team.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Warning Popup - Uncommited Changes (Struts/UIX)

    In the JHeadstart demo, if you have created a new record or edited information and attempt to navigate away from the page before committing, a popup appears warning you of this.
    If you disregard, nothing is updated/inserted, and you can continue on.
    Is their a way to implement this in Struts/UIX simply?

    hello
    I do not believe there is a declarative way to do it, i wish there were. Anyway, my team managed to do by using Java Script event (on-click , on whatever) then the java script can call functions embedded in the data action methodes. One of the functions you create should be one that tests the status of the transaction using getPoststate()==STATE_MODIFIED etc ...
    Then the java script could display a popup warning
    The following shows you how to call a data action method from Java Script,, then you write your own function to test the status of the transaction
    Call DataAction Method within JavaScript Function
    (In the code below, specifically the {'event':'Change'} says that an 'event' called 'Change' is generated)
    You should write OnChange event to handle 'Change'
    onChange(DataActionContext ctx)     
    <script>
    <contents>
    function doChange()
    var confirmation = confirm("Are You Sure You …..");
    if (confirmation == true)
    submitForm('frm',1,{'event':'Change'});
    </contents>
    </script>
    SO this is not straight forward .. if anybody is familar with any other approach, it would be nice to see it
    ammar

  • Struts/UIX/JavaScript Child Windows

    I have seen an example of using JavaScript to execute a Struts action mapping that is implemented using UIX. I would like to know if this will work in UIX.
    HC_doOpenRemote('<html:rewrite forward="item"/>');
    This function would be a simple JavaScript function that would cause a child window to be opened and cause the forward to the Struts action item to be executed resulting in the page being displayed.
    Is this possible in UIX? If so, please outline the steps to do it.
    By the way I got this example out of the book Struts In Action by Ted Husted.

    Thanks Adam for the example. The "event" part of the code helped me to do what I needed. (By the way, if there is a more direct way to do this let me know.)
    The issue for me is that the server does not know when a child window page is opened and this causes the blackhole as far as Struts is concerned. Working with Struts events is important because it provides easy integration with BC4J through the BC4JRequestProcessor.
    So your example suggested that I should implement an UIX page that strictly handles events that are recieved from a page that is opening the child window.
    Each event is named differently and makes a call to a Struts event. (The UIX event handler is the only place that UIX can deal with Struts events.)
    Here is some example code:
    The main.uix page has the following links:
    <link text="Open UIX page (events only), transfer control through Struts event. #1">
    <!-- Let's send a request to open a window with an initial event -->
    <boundAttribute name="onClick">
    <concat>
    <fixed text="openWindow(self, '"/>
    <ctrl:pageURL name="/pages/transferwindow" event="GoToRealPage1"/>
    <fixed text="');return false"/>
    </concat>
    </boundAttribute>
    </link>
    <link text="Open UIX page (events only), transfer control through Struts event. #2">
    <!-- Let's send a request to open a window with an initial event -->
    <boundAttribute name="onClick">
    <concat>
    <fixed text="openWindow(self, '"/>
    <ctrl:pageURL name="/pages/transferwindow" event="GoToRealPage2"/>
    <fixed text="');return false"/>
    </concat>
    </boundAttribute>
    </link>
    The transfer.uix page only handles UIX events passed in from JavaScript:
    <?xml version="1.0" encoding="windows-1252"?>
    <page xmlns="http://xmlns.oracle.com/uix/controller"
    xmlns:ctrl="http://xmlns.oracle.com/uix/controller"
    xmlns:html="http://www.w3.org/TR/REC-html40"
    xmlns:struts="http://xmlns.oracle.com/uix/struts">
    <content>
    <!--
    This is a UIX page that is used only to transfer control to a Struts
    event. This is important to Struts/UIX applications that use child
    windows since the Struts controller is on the server side and child
    windows are launched on the client side.
    -->
    </content>
    <handlers>
    <!-- Add EventHandlers (<event> elements) here -->
    <event name="GoToRealPage1">
    <struts:action path="/realchild1.do"/>
    </event>
    <event name="GoToRealPage2">
    <struts:action path="/realchild2.do"/>
    </event>
    </handlers>
    </page>
    And then the struts-config.xml:
    <action path="/realchild1"
    type="org.apache.struts.actions.ForwardAction"
    parameter="/pages/realwindow1.uix">
    </action>
    <action path="/realchild2"
    type="org.apache.struts.actions.ForwardAction"
    parameter="/pages/realwindow2.uix">
    </action>

  • Jhs10g subapplications with struts / uix

    I have a bit trouble with 2 subapplications (struts and uix) , if i use mvc i got errors in jboss so i use struts
    but now i have a problem how to put this in web.xml
    with mvc it was easy,
    I checked the new jhsdemo and tutorial2 doc
    but i don't get it working with 2 applications
    if i configure it for 1 it works fine
    can something show how it is done in web.xml 2 appl. struts/uix
    thanks edwin

    Now i got a new problem ( I now use only 1 application
    to make it less comlex)
    I made a directory basis in web dir.
    and changed in de application structure file
    the ui pages virtual directory from /uix/ to /basis/uix/
    and copied images / jheadstart and even cabo to the basis dir.
    the generator creates a new struts-config.xml
    and generates the uix views in web\basis\uix
    all goes well
    this is the web.xml
    <servlet>
    <servlet-name>sicmaStrutsController</servlet-name>
    <servlet-class>oracle.jheadstart.controller.struts.JhsActionServlet</servlet-class>
    <init-param>
    <param-name>config/basis</param-name>
    <param-value>/WEB-INF/struts-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>mapping</param-name>
    <param-value>oracle.jheadstart.controller.struts.config.JhsActionMapping</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    now i got the following error,
    500 Internal Server Error
    java.lang.NullPointerException
         oracle.cabo.servlet.xml.PageDescriptionCache oracle.jheadstart.view.uix.JhsUIXPageBroker.getPageDescriptionCache(oracle.cabo.servlet.BajaContext, oracle.cabo.servlet.Page)
              JhsUIXPageBroker.java:96
         oracle.cabo.servlet.PageDescription oracle.cabo.servlet.xml.UIXPageBroker.getPageDescription(oracle.cabo.servlet.BajaContext, oracle.cabo.servlet.Page)
         oracle.cabo.servlet.PageRenderer oracle.cabo.servlet.AbstractPageBroker.getPageRenderer(oracle.cabo.servlet.BajaContext, oracle.cabo.servlet.Page)
         void oracle.cabo.servlet.AbstractPageBroker.renderPage(oracle.cabo.servlet.BajaContext, oracle.cabo.servlet.Page)
         oracle.cabo.servlet.Page oracle.cabo.servlet.PageBrokerHandler.handleRequest(oracle.cabo.servlet.BajaContext)
         void oracle.cabo.servlet.UIXServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              HttpServlet.java:740
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ResourceFilterChain.java:65
         void oracle.security.jazn.oc4j.JAZNFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
              JAZNFilter.java:283
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              EvermindFilterChain.java:16
         void oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
              CharacterEncodingFilter.java:174
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:556
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:209
         void org.apache.struts.action.RequestProcessor.doForward(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RequestProcessor.java:1069
         void org.apache.struts.tiles.TilesRequestProcessor.doForward(java.lang.String, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              TilesRequestProcessor.java:274
         void org.apache.struts.action.RequestProcessor.processForwardConfig(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.config.ForwardConfig)
              RequestProcessor.java:455
         void org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, org.apache.struts.config.ForwardConfig)
              TilesRequestProcessor.java:320
         void org.apache.struts.action.RequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              RequestProcessor.java:279
         void oracle.jheadstart.controller.struts.JhsRequestProcessor.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JhsRequestProcessor.java:588
         void org.apache.struts.action.ActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:1482
         void oracle.jheadstart.controller.struts.JhsActionServlet.process(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              JhsActionServlet.java:115
         void org.apache.struts.action.ActionServlet.doGet(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              ActionServlet.java:507
         void javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
              HttpServlet.java:740
         void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              HttpServlet.java:853
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ResourceFilterChain.java:65
         void oracle.security.jazn.oc4j.JAZNFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
              JAZNFilter.java:283
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindFilterChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              EvermindFilterChain.java:16
         void oracle.jheadstart.controller.CharacterEncodingFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
              CharacterEncodingFilter.java:174
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
              ServletRequestDispatcher.java:556
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(javax.servlet.ServletRequest, javax.servlet.http.HttpServletResponse)
              ServletRequestDispatcher.java:306
         boolean com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.ApplicationServerThread, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletRequest, com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:767
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:259
         void com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run()
              HttpRequestHandler.java:106
         void EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run()
              PooledExecutor.java:797
         void java.lang.Thread.run()
              Thread.java:484
    if i change <param-name>config/basis</param-name> in web.xml to <param-name>config</param-name>
    it works
    but with 2 applications
    <servlet>
    <servlet-name>sicmaStrutsController</servlet-name>
    <servlet-class>oracle.jheadstart.controller.struts.JhsActionServlet</servlet-class>
    <init-param>
    <param-name>config</param-name>
    <param-value>/WEB-INF/struts-basis-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>config/call</param-name>
    <param-value>/WEB-INF/struts-call-config.xml</param-value>
    </init-param>
    <init-param>
    <param-name>mapping</param-name>
    <param-value>oracle.jheadstart.controller.struts.config.JhsActionMapping</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    then gives the second appl. the same error as above

  • How is the processing speed while using struts,spring,and JSF framework

    Hi friends,
    As per earlier technology like Servlets,I mean that there would have much more performance speed than other new technologies like JSP,struts,spring and hibernate framework.Because,in new technologies,flow of processings implicitly via MVC2 basis will probably much more time than older one.
    Total goal is only for attaining MVC2 or any other purpose?
    Please clarify my doubt?
    With Regards,
    Stalin.G

    Home grown applications have a problem in that as more and more features are added, it becomes increasingly impossible to maintain the application and enhance it. This is especially true when the original programmers leave the company. A framework provides a standard design approach that other programmers can hopefully more easily pick up.
    A lot of work has gone into creating these frameworks and they have been used in web sites that have millions of hits from users per day. They have high preformance. Of course, programmers can still write bad code in them that slows down the system. I believe anyone using these frameworks should study them well before using them (such as reading books on them).

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

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

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

  • Struts Actions and events in one jsp?!

    Hello,
    I have a problem with Struts actions and events in a jsp.
    It is a search page and when the user clicks the search button I trigger an event and when the user clicks on a link in the result table (same page) I use an action that opens a new detail jsp. The first search query works well, I get a result, open the detail page, go back (using an action).
    Then I start a new search, but struts tries to open the detail page. While debugging I found out, that struts apparantly has no action or event. Why does it work at first time?
    Any ideas?
    Thanks in advance
    Britta

    Thanks for answer,
    I work with actions AND events. I think that`s the problem. When I go back from detail page to search page I use a custom DataForwardAction class with the following method:
    public void onCancel(DataActionContext ctx)
    DCBindingContainer bc = ctx.getBindingContainer();
    HttpServletRequest request = ctx.getHttpServletRequest();
    WebUtils.setSession(request);
    String ziel = request.getParameter("ziel");
    JUCtrlActionBinding action = (JUCtrlActionBinding) bc.findCtrlBinding("Rollback");
    action.doIt();
    try
    ctx.setActionForward(ziel);
    catch (Exception e)
    ctx.setActionForward("liste_freig");
    Ziel has the correct value ("search") and I think the struts config is also correct:
    <action path="/material" type="view.actions.materialAction" className="oracle.adf.controller.struts.actions.DataActionMapping" parameter="/material.jsp" name="DataForm">
    <set-property property="modelReference" value="generalUIModel"/>
    <forward name="liste_freig" path="/liste_freig.do"/>
    <forward name="liste_angelegt" path="/liste_angelegt.do"/>
    <forward name="list_bewertet" path="/list_bewertet.do"/>
    <forward name="liste_abgelehnt" path="/liste_abgelehnt.do"/>
    <forward name="liste_onhold" path="/liste_onhold.do"/>
    <forward name="search" path="/search.do?action=search"/>
    </action>
    But when I get back from material page to search page (the first time it works). The location pathname is material.do not search.do When start a new search the material page opens, not, as desired, the search page with new results.
    Search Action:
    public class searchAction extends DataForwardAction
    public searchAction()
    protected void prepareModel(DataActionContext ctx) throws Exception
    HttpServletRequest request = ctx.getHttpServletRequest();
    DataActionMapping acmap = ctx.getActionMapping();
    DCBindingContainer bc = ctx.getBindingContainer();
    WebUtils.setSession(request);
    JUCtrlActionBinding action = (JUCtrlActionBinding) bc.findCtrlBinding("delSearchQuery");
    action.doIt();
    String sEvent=null;
    try
    sEvent=request.getParameter("event");
    catch (Exception e)
    sEvent=null;
    if (sEvent==null)
    if (request.getParameter("action") != null)
    if (request.getParameter("action").equals("material"))
    Number mat_no=new Number(request.getParameter("MaterialNumber"));
    Number userId=new Number(WebUtils.getUserId(request));
    bc = ctx.getBindingContainer();
    action = (JUCtrlActionBinding) bc.findCtrlBinding("prepareMaterial");
    ArrayList arrayList= new ArrayList();
    arrayList.add(0,mat_no);
    arrayList.add(1,userId);
    action.setParams(arrayList);
    action.doIt();
    ctx.setActionForward("material");
    if (request.getParameter("action").equals("material_datasheet"))
    ctx.setActionForward("material_datasheet");
    super.prepareModel(ctx);
    public void onSearch(DataActionContext ctx)
    DCBindingContainer bc = ctx.getBindingContainer();
    HttpServletRequest request = ctx.getHttpServletRequest();
    WebUtils.setSession(request);
    ctx.setActionForward("search");
    Struts config:
    <action path="/search" className="oracle.adf.controller.struts.actions.DataActionMapping" type="view.actions.searchAction" name="DataForm" parameter="/search.jsp">
    <set-property property="modelReference" value="searchUIModel"/>
    <forward name="search" path="/search.do?action=search"/>
    <forward name="material" path="/material.do?action=material"/>
    <forward name="material_datasheet" path="/material_datasheet.do?action=material_datasheet"/>
    </action>
    I think it`s a Struts bug. Or is there something I don`t see?

  • Integrating Struts, Tiles, and JavaServer Faces

    I have tried some sample applications in jsf. They are working properly. Basically, our application is based on struts. We fee that that it will be difficult to convert struts based application into jsf. So we plan to integrate jsf components into struts application. I found a site http://www.ibm.com/developerworks/library/j-integrate/ where jsf-struts integration material has been given. For this integaration, struts-faces.jar is required. when i try to start the server after struts-faces-1.3.8.jar placed in Tomcat 5.5\common\lib folder, server is not started properly. I have found struts-faces-1.3.8.jar in struts-1.3.8-lib. Should I user struts-faces.jar? if it is so, Where to find struts-faces.jar Please provide a solution for this problem.

    Wow, Srikanth. What a great contribution! I'm right at the begining of the design phase of a project that will hopefully go live in March and while I had already settled on a Tiles/Struts approach, I was really wanting to bring in JSF as well. I'm glad to see that someone is actively working on the integration components. I hope that the code modifications you propose make it into the Struts-Faces libraries soon.
    One question. While I've been deveolping J2EE webapps for a couple of years now,
    I'm still a little new to the Struts/Tiles arena. After reading your article at IBM developerWorks I wasn't able to ascertain whether or not what you proposed worked with the idea of individual controllers for each tile, which is a pattern that my project will need to adopt (I read about it in the short article here - http://www.theserverside.com/resources/article.jsp?l=Tiles101).
    Can you shed some light on the subject? Will the modifications you proposed allow Tiles to continue to work in that fashion?
    -Matt Welch
    Hi,
    Currently JSF, Struts and Tiles cannot work together
    out of the box.
    Craig McClanahan has come up with Struts-Faces which
    lets you integrate Struts and JSF. This is ideal for
    projects who want to protect their code investment in
    Struts and also want to take advantage of JSF once it
    is final.
    Unfortunately if you are also using Tiles, this is not
    possible because of some showstoppers on your way. I
    started on this venture a while back and ran into the
    same problems and decided to write some code - on top
    of Struts-Faces and was pretty successful.
    I am sharing this knowledge with the rest of you with
    this article of mine on IBM developerWorks
    http://www-106.ibm.com/developerworks/library/j-integra
    e/
    As already pointed out in this forum earlier, this
    article covers the steps to integrate the three and
    provides complete source code and also a working
    example.
    Hope you will find the article and the code useful.
    Thanks,
    Srikanth

  • Struts Diagram and CVS Problems

    We're having a difficult time with the StrutsPageFlow.oxd_struts and CVS. Anytime a developer makes a change to the Struts diagram and commits the struts-config.xml file, the StrutsPageFlow.oxd_struts file also gets committed. When a different developer updates the struts-config.xml file the StrutsPageFlow.oxd_struts file has a conflict on just about every item. We're also encountering this on our *.jpr and bc4j.xcfg files.
    JDeveloper 10g is stealing a lot of our time as we're having to manually work around a lot of CVS conflicts on files that are not shown in the project but associated with project files like the struts-config.
    Anyone else having CVS issues with these "behind-the-scene" files?

    Hi Jason,
    Unfortunately, this is a known issue. The only workaround we can suggest for struts at the moment is using an exclusive editing mode. Whenever a developer needs to modify the struts diagram, he should issue a cvs edit. Other developers should use the "List Editors" functionality in JDev to check whether someone is currently editing the file.
    We're working on resolving these team development issues in the 10.1.3 release.
    Thanks,
    Brian

  • Uploading xml file using ADF UIX and storing in ordsys.orddoc field

    I am using ADF UIX and I am using the messageFileUpload tag to upload an XML file into the database (the file contains special characters like hyphens, apostrophes, $, etc). Once in the database I have a procedure which puts it into a clob field using the dbms_lob package. However, what exactly does ordsys.orddoc do with special characters? If I debug my procedure I see that 1 of 4 hyphens and 3 apostrophes have been turned into a character that looks like a square. Anyone know what is going on?

    It should pass binary information only, no conversion at all.
    The conversion is likely in messageFileUpload or the dbms_lob package you are using. Or you may need to tell DBMS_LOB the character set the XML file is in?
    You may want to upload the file using the interMedia tag library... Using uploadFormData?
    http://www.oracle.com/technology/software/products/intermedia/htdocs/descriptions/tag_library.html
    http://www.oracle.com/technology/products/intermedia/htdocs/jsptaglib/html/toc.htm
    Larry

Maybe you are looking for