Struts (ActionForm beans)

Does anyone have any information on the
public void reset(ActionMapping, HttpServletRequest)
method that ActionForm classes have.
To be more specific at what points will the Struts framework call this method and why?
Basically I have set the ActionForm with a scope of session and implemented the reset method to reset all my form variables.
Yet every time the associated Action class is called the data is reset.
I assumed this would only happen if I had set the scope as request.
Should this be happening or should I not be implementing the reset method in the ActionForm bean?

I checked out the source code and the main ActionServlet calls the ActionForm reset method on each request. I'm not sure what you mean by "set the ActionForm with a scope of session", but ActionServlet does not check anything, it just calls reset() as part of processPopulate().
I think the idea is that the ActionForm reflects whatever is coming in from the request and a bean would perform persistence. If you are using the ActionForm to save across requests, you may need special logic in reset() to determine which elements to reset and when.
Hope this helps. By the way, if you are doing a lot of Struts work, I recommend downloading the source code for research purposes and for customizing.

Similar Messages

  • Struts ActionForm bean retuning null values

    Hello friends,
    I am new to struts framework, I am trying a simple application which gets form details from user store it in ActionForm and showing in a jsp. Now the problem is when i try to get the bean values form the Action form it is returning only null values. but the values i entered in <html:form> is getting stored in the ActionForm.
    I am very much confused with this problem.Your help is greatly appreciated
    regards,
    Muthu

    r035198x wrote:
    I'm not too sure about this but I think struts questions are not all that welcome in this forum.
    Better try the dedicated struts forum at Apache.They're not per definition forbidden here, but it's just merely that you will have more chance to meet real Apache Struts experts at a Apache Struts forum instead of a general Sun Servlet forum, let alone Sun JSP/JSTL or Sun JSF forum.

  • Cannot create a Struts Form bean using jdeveloper 10g

    Hello I'm new to jdeveloper and struts and triying to create a sample login page following this tutorial :http://www.oracle.com/technology/products/jdev/htdocs/handson/struts/strutshandson.html
    But I have a little problem in the 3rd excercice (Building Struts Form Beans and Actions)
    when I follow the instructions "Select File | New > Choose Web-Tier in the Categories, and select Struts > Select ActionForm from the Items > Click OK. "
    there is no ActionForm Item ! the only available item is "Struts Controller page Flow" and I allready used this one to create the struts' project template !
    (same thing : Struts Action in the next tutorial section is not available)
    BTW : I have to use jdeveloper 9.0.5.2 and not a latest version

    1. Take a look at the class diagram for query model http://docs.oracle.com/cd/E17904_01/web.1111/b31973/af_query.htm#BABDGCHI
    2. Also see if this helps you understand http://jobinesh.blogspot.in/2011/03/retrieving-viewcriteria-from-custom.html

  • Struts ActionForm variable values in JSP

    I've tried to get variable values from a Struts ActionForm. I know that I can use Struts's bean tags, but can't figure out correct syntax or may there's some thing else to discover.
    I'm trying something like:
    <bean:define id="atr" name="MyActionForm" property="attribute"/></address>
    <p><%=atr%></p>
    And my struts-config look like:
    <form-bean name="MyActionForm" type="sth.MyActionForm"/>
    And the ActionForm is like:
    private String attribute;
    public String getAttribute() { ... }
    public void setAttribute(String attribute) {...}
    What may be wrong?
    Edited by: aproppon on Sep 26, 2007 9:46 AM

    I've tried with <bean:write... but since I catch exception saying MyActionForm can't be found in any scope. As far as I'm aware I've set request scope like:
    <action input="/jsp/something.jsp" name="MyActionForm" path="/jsp/myAction" scope="request" type="sth.MyAction">
    <forward name="success" path="/jsp/index.jsp"/>
    <forward name="failure" path="/jsp/something.jsp"/>
    </action>
    Edited by: D.A.R. on Sep 26, 2007 12:09 PM

  • Struts ActionForm wizard

    In jdev 9.0.3 you used to be able to select File..New..Struts..ActionForm which would then create a skeleton class extending struts.action.actionform.
    Any way of doing this jdev 10g ???
    I know I can do new..Java class then extend it myself but the previous way was a lot easier.
    Thanks
    Conrad

    Using the Struts Diagram:
    --If you already have the Action element in the Struts diagram, Rt click on the Action element to invoke the context menu and select "Go to Form Bean".
    --A dialog ("Create Struts Form Bean") opens, enter Action Form details and click OK
    --You should see the skeleton class for your action form.
    HTH,
    Prashanth

  • 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

  • Using Struts ActionForm to collect multiline input

    I am trying to build an inventory page that displays a list
    of items on a page and lets you update and items price or
    quantity available. I know how to build a static ActionForm
    that does say username and password. I also know how to build
    an InventoryBean which returns a collection of ItemBean's.
    I can't figure out how to have a dynamic ActionForm. Here
    is what I have so far...
    Here are the struts-config snipets:
    <form-bean name="inventoryForm"
    type="ww.caps.inventory.InventoryForm"/>
    <action path="/inventory"
    type="ww.caps.inventory.InventoryAction"
    name="inventoryForm"
    scope="request"
    input="/inventory.jsp">
    </action>
    here is some of the JSP:
    <html:form action="/inventory">
    <table>
    <logic:iterate id="item" name="invent" property="items">     
    <tr>
    <td align="CENTER" valign="CENTER">
    <bean:write name="item" property="sku"/>
    </td>
    <td align="CENTER" valign="CENTER">
    <html:text name="item" property="priceString" size="6" maxlength="8"/>
    </td>
    </logic:iterate>
    </table>
    </html:form>
    This paints the page with <INPUT>'s just fine but the name of the
    price inputs is NOT indexed so there is no way to capture the data
    back, not to mention matching it with the right row in the database.
    Any examples or hints on how to solve this problem would be greatly
    appreciated.
    Thanks,
    Wayne R. Baldwin

    Use a java Collection (probably an ArrayList) to store your list of items:
    class MyForm extends ActionForm {
      private static ITEM_COUNT = 10;
      private Collection items = new ArrayList();
        for (int i = 0; i < ITEM_COUNT; i++)
          items.add(new Item());
      public Collection getItems() { return items; }
    class Item {
      private String value;
      public void setValue(String data) { value = data; }
      public String getValue() { return value; }
    }When struts sees a parameter like this passed into the POST:
    items[0].value=test
    it will do the same as if you had coded this in Java:
    Collection c = getItems();
    Item i = (Item)c.get(0);
    i.setValue("test");

  • Problems creating Struts ActionForm in JDeveloper 9.0.3.3

    I am very new to JDeveloper, where recently i am learning on how to use the struts technology. The problem occurs when i right-click the project file at the navigator and i choose NEW then at the Web-Tier i choose Struts, and at the item columns i choose ActionForm. The thing is the dialog doesnt prompt and it goes back to the main Window. What's the problem? Any patches that i need to upgrade? I use JDeveloper 9.0.3.3 is because my company doesnt want to migrate to 10g for the time being. So, I have limitation in using 10g instead.
    Regards,
    RoLand
    Java Developer

    Hi Roland.
    Yes, you are right. This does not seem to be working in the 9.0.3.x code base. I checked the 9.0.3.4 release and all the available patches and I don't see it as being fixed.
    It is working in the 9.0.4.x release though and that is not 10g... Would that work for you?
    Alternatively, you can could the action form class manually. Check out the 9.0.4 release on OTN to see what is generating and replicate that your 9.0.3.x product.
    Hope that helps.
    Pete

  • Loading Collections in to DropDownList box using Struts with bean

    Hi folks,
    I am very new to struts.
    I am developing one small web application using struts. I has developed Bussiness Logic, i need to use properly in struts.
    ManufacturerList.java is a Bussiness Logic class using to load all manufacturer from the database. It using by the collection LinkedHashMap.
    I need to use this BL in my struts application.
    GOAL: In sturts application i need to add the car details, one of the property for car is manufacturer.
    When creating the car, it should display all the manufacturer in the new student form.
    Please explain how to create with struts.
    Some of the Code i developed
    {color:#ff0000}<html:form action="/Car?op=saveCar">
    <html:errors/>
    <html:hidden property="op" value="saveCar"/>
    <html:hidden property="carCode"/>
    Car Name <html:text property="model"></html:text> <br>
    Manufacturer
    <!-- Defining the bean for manufacturer list getting from the request-->
    <bean:define id="mfrList" name="ManufacturerList" property="manufacturers"
    scope="request"
    type="java.util.Collection">
    </bean:define>
    <br>
    Manufacturer Year <html:text property="yearOfManufacture"></html:text><br>
    Date of Purchase <html:text property="dateOfPurchase"></html:text> <br>
    <html:submit value="Ok" />
    </html:form>{color}
    This is code is not working properly.... Please explain

    Hi i did like this
    {color:#0000ff}<bean:define id="mfrList" name="ManufacturerList" {color}
    {color:#0000ff}scope="request" {color}
    {color:#0000ff}type="com.icalib.trafficSimulator.ManufacturerList">{color}
    {color:#0000ff}</bean:define>{color}
    {color:#0000ff}<html:select property="make">{color}
    {color:#0000ff}<html:optionsCollection name="mfrList" label="mfrName" value="mfrCode"/>{color}
    {color:#0000ff}</html:select>{color}
    But the error is comming like thisjavax.servlet.ServletException: Cannot create iterator for 1:Honda
    2:Maruti
    3:Hyundai
    4:Toyota
    5:Accord
    6:Test_mfr
    7:test_mfr2
    8:456
    9:again
    10:123
    11:again1
    What to give in the label and value in the optionsCollection                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to use coherence-web with a struts form bean

    We are trying to switch to Glassfish 3.1 but when we switch the persistence-type from "replicated" to "coherence-web" our struts applications start failing.  The first time we try the application the page loads.  But all calls from then on end in error.  The form bean is called FbCustomer.  Any help is greatly appreciated!!  Here is the error....
    WARNING: StandardWrapperValve[action]: PWC1406: Servlet.service() for servlet action threw exception(Wrapped) java.io.IOException: readObject failed: java.lang.ClassNotFoundException: rav.einvoice.web.forms.FbCustomer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:270)
        at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:623)
        at com.tangosol.io.ResolvingObjectInputStream.resolveClass(ResolvingObjectInputStream.java:66)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
        at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2217)
        at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2348)
        at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2746)
        at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:262)
        at com.tangosol.coherence.servlet.OptimizedHolder.deserializeValue(OptimizedHolder.java:233)
        at com.tangosol.coherence.servlet.OptimizedHolder.getValue(OptimizedHolder.java:64)
        at com.tangosol.coherence.servlet.SplittableHolder.getValue(SplittableHolder.java:56)
        at com.tangosol.coherence.servlet.AbstractHttpSessionModel.getAttribute(AbstractHttpSessionModel.java:130)
        at com.tangosol.coherence.servlet.api23.HttpSessionImpl.getAttribute(HttpSessionImpl.java:81)
        at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSession.getAttribute(CoherenceWebSession.java:461)
        at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSessionFacade.getAttribute(CoherenceWebSessionFacade.java:87)
        at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)
        at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:364)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1554)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:280)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
        at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:761)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1050)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:231)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:724)ClassLoader: java.net.URLClassLoader@695f18fe
        at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:266)
        at com.tangosol.coherence.servlet.OptimizedHolder.deserializeValue(OptimizedHolder.java:233)
        at com.tangosol.coherence.servlet.OptimizedHolder.getValue(OptimizedHolder.java:64)
        at com.tangosol.coherence.servlet.SplittableHolder.getValue(SplittableHolder.java:56)
        at com.tangosol.coherence.servlet.AbstractHttpSessionModel.getAttribute(AbstractHttpSessionModel.java:130)
        at com.tangosol.coherence.servlet.api23.HttpSessionImpl.getAttribute(HttpSessionImpl.java:81)
        at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSession.getAttribute(CoherenceWebSession.java:461)
        at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSessionFacade.getAttribute(CoherenceWebSessionFacade.java:87)
        at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)
        at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:364)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1554)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:280)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
        at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:761)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1050)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:231)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:724)Caused by: java.io.IOException: readObject failed: java.lang.ClassNotFoundException: rav.einvoice.web.forms.FbCustomer
        at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:270)
        at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:623)
        at com.tangosol.io.ResolvingObjectInputStream.resolveClass(ResolvingObjectInputStream.java:66)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1610)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1515)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1769)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1348)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
        at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2217)
        at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2348)
        at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2746)
        at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:262)
        at com.tangosol.coherence.servlet.OptimizedHolder.deserializeValue(OptimizedHolder.java:233)
        at com.tangosol.coherence.servlet.OptimizedHolder.getValue(OptimizedHolder.java:64)
        at com.tangosol.coherence.servlet.SplittableHolder.getValue(SplittableHolder.java:56)
        at com.tangosol.coherence.servlet.AbstractHttpSessionModel.getAttribute(AbstractHttpSessionModel.java:130)
        at com.tangosol.coherence.servlet.api23.HttpSessionImpl.getAttribute(HttpSessionImpl.java:81)
        at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSession.getAttribute(CoherenceWebSession.java:461)
        at com.tangosol.coherence.servlet.glassfish31.CoherenceWebSessionFacade.getAttribute(CoherenceWebSessionFacade.java:87)
        at org.apache.struts.util.RequestUtils.createActionForm(RequestUtils.java:777)
        at org.apache.struts.action.RequestProcessor.processActionForm(RequestProcessor.java:364)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:253)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
        at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1554)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:280)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
        at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:331)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
        at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.call(ContainerMapper.java:317)
        at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:195)
        at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:864)
        at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:761)
        at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1050)
        at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:231)
        at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
        at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
        at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
        at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
        at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
        at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
        at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
        at java.lang.Thread.run(Thread.java:724)ClassLoader: java.net.URLClassLoader@695f18fe
        at com.tangosol.util.ExternalizableHelper.readSerializable(ExternalizableHelper.java:2225)
        at com.tangosol.util.ExternalizableHelper.readObjectInternal(ExternalizableHelper.java:2348)
        at com.tangosol.util.ExternalizableHelper.deserializeInternal(ExternalizableHelper.java:2746)
        at com.tangosol.util.ExternalizableHelper.fromBinary(ExternalizableHelper.java:262)    ... 38 more

    Could you share with is the entire stacktrace?
    It seems that your domain classes are not being founded by the classloader, and this could be a consequence of a lot of things, but in general, it is a classloader issue. Your classloader is broken by some reason. Check if dependencies are well solved, and check if there are some NoClassDefFoundErrors in the stacktrace. Sometimes when the classpath is wrong, the entire classloader brokes generating strange behaviors like this.
    Also review the steps necessary to deploy Coherence*Web on GlassFish: http://docs.oracle.com/middleware/1212/coherence/COHCW/glassfish.htm#COHCW357
    Remember for example that, different from WebLogic 12.1.2, you need to deploy coherence.jar and coherence-web.jar at your package deployment.
    Cheers,
    Ricardo Ferreira

  • Newbie Struts ActionForm creation question in JDeveloper

    Hey guys,
    I am playing around with Struts and the JDeveloper functionality for that framework. So I am getting the hang of the diagramatic way of viewing the entire Web application by graphically creating the struts-config.xml file. That is great.
    But now I have a question. Suppose I have a simple Login jsp page and I created it using the Struts html tag library. So I guess I am to have a corresponding ActionForm object for that page. How does one go about creating an ActionForm object corresponding to a particular JSP page diagramatically in struts-config.xml? I hope my question makes sense.

    Hmm, I guess you just specify what ActionForm you are wanting to take the parameter values from by just editing the properties of the Action object itself. I think I figured out the answer guys. Thanks anyway.

  • Struts actionform and checkboxes

    hi!
    I'm having trouble creating an actionform for a jsp that i have. Basically, my jsp lists files which have their corresponding checkboxes. The user can click multiple checkbox representing the files he wants to download. On clicking the download button, it submits it to my DownloadAction.
    My problem is that only the first checkbox is stored in my actionform.
    here's my actionform:
    package mybeans;
    import org.apache.struts.action.ActionForm;
    import java.util.*;
    public class FilesForm extends ActionForm
        Vector files = new Vector();
        String file = null;
        public String getFile() {
             System.out.println( "getting file" );
             return file;
        public void setFile( String string ) {  
             System.out.println( "setting file" );      
             file += string + ",";
             files.add( string );
        public Vector getFiles() {
             return files;
    }my jsp is a bit big. here's the form part:
    <html:form action="/download">
      <table>
        <tr>
          <td><input type="checkbox" name="file" value="someDynamicID"></td>
          <td>filename</td>
        </tr>
      ...more files here...
      </table>
    </html:form>Thanks in advance!

    Make your setter take a String[] argument and your getter return a String[] argument (I think List or Set might also work).

  • Struts Framewrok -- Bean Tag Problem

    Hi all,
    When i want to print uNews.getBody(); (uNews is a bean in request) in my jsp i use this tag,
    <bean:write name="uNews" property="body"/>
    but how can i use this method for writing something like this:
    uNews.getReporter().getID(); that way, using been:write tag, what i already do is:
    <%
              UnapprovedNews uNews = (UnapprovedNews) request.getAttribute("uNews");
              out.println (uNews.getReporter().getUserID());
    %>
    How can i use the struts tags instead of this code?
    Best Regards
    Ehsan

    try this:-
    <bean:define id="reporter" name="uNews" property="reporter"/>
    <bean:write name="reporter" property="userID"/>
    Sumanta Mandal
    ([email protected])

  • Struts ActionForm - Is there a bug?

    Hi,
    I�ve been using the 9.0.3.3 (build 1205) and
    when I try to create a new ActionForm the wizard
    is not displayed...
    Yes, I�ve selected a project in the navigator.
    Does someone have an opinion about that?
    Tks in advance,
    Carlos.

    Problem occurs in JDeveloper 9.0.3.3 Build 1205 and seems to be introduced with the new version of Struts.
    When running jdev.exe instead of jdevw.exe, a stack trace is displayed. Bug 2835622 was logged for that.
    Regards,
    Didier.

  • Struts ActionForm and Model Objects design

    I've managed to make a pretty nice model with persistence managed by hibernate logic encapsulated in DAO's.
    But now Ive reached the web layer and I'm with struts, and I'm kind of stuck so I would love to hear some suggestions.
    How should I create ActionForms without duplicating the model state in ActionForm classes?
    Right now, my model implements ActionForm, which is tight coupling .
    But this increases maintenability.
    Other suggestions?

    It is a very bad idea to have your model implement ActionForm, for the reason you mentioned -- tight coupling. When you do that, you are tied to a web application; and, more specifically, Struts. "Best practice" says you need to duplicate a bit of your model in your ActionForm (Jakarta Commons BeanUtils makes this painless). As you probably know, the ActionForm should correspond to the form being displayed in the browser; each HTML form element should have a corresponding property in your ActionForm class. These properties might come from various parts of your domain model, so this gives you a place to muster them all together. I use an initXXXAction to populate the ActionForm, if needed, before display and a completeXXXAction to process the users input after they submit (although I'm thinking about switching to one of the DispatchAction flavors). Also, if the idea of maintaining the ActomForm classes is a hang-up, I'd suggest looking into the DynaXXX classes.
    Just to re-iterate, having your model implement ActionForm is BAD.

Maybe you are looking for

  • How long is the supplied USB to lightning cable

    What is the length of the supplied USB to lightning cable in the iPad air box?

  • Adding custom code in generated HTML pages?

    Hi We have a customer running Weblogic Portal 8.1 sp3 ia64. They need to add some custom html code like <META ... tags within the <HEAD. How to do that? Best regards Anders Rothman

  • Deploy Problem

    Hi All, I am getting following exception while deploying application . Can anybody point out reason for this. Thank you in advance [#|2007-12-18T10:57:48.499+0000|INFO|sun-appserver-ee8.2|javax.ee.enterprise.system.tools.synchronization|_ThreadID=131

  • Web Start Console :NoClassDefFoundError: javax/jms/JMSException

    HI all, am using JBoss server, J2SE1.4 ,windows XP This my JNLP file : <?xml version="1.0" encoding="UTF-8"?> <jnlp codebase="http://172.25.186.50:8080/JMSClient" href="JmsClient.jnlp"> <information> <title>My JMS Consumer</title> <vendor> System</ve

  • Struggling to understand Service Profiles and jabber-config.xml

    Hi, I am doing my first Jabber 9.1 deployment and am striggling to understand the use of Service Profiles. Lots of documentation I have seen states that the jabber-config.xml file should be manually edited then uploaded to the CUCM TFTP servers. Howe