Java Mailing List Archive

http://www.gg3721.com/

Home » Struts Users Mailing List »

user Digest 19 Mar 2008 14:11:49 -0000 Issue 7935

user-digest-help

2008-03-19


Author LoginPost Reply

user Digest 19 Mar 2008 14:11:49 -0000 Issue 7935

Topics (messages 184442 through 184455):

Re: Strtus 2.0.11 AJAX TabbedPanel with Remote tabs: How to load the result page in another tab
 184442 by: manisha5

Struts 1 vs Struts 2 actionform execution and Struts2 POJO example
 184443 by: bugs_
 184444 by: Dave Newton

Implementing a back button without Javascript
 184445 by: Dimitris Mouchritsas
 184446 by: Antonio Petrelli
 184447 by: Dimitris Mouchritsas
 184448 by: Antonio Petrelli
 184449 by: Jeff Miller

Re: <s:property in <s:*> not interpreted
 184450 by: GF
 184451 by: Randy Burgess
 184452 by: Dave Newton
 184454 by: GF

Re: File Upload problem
 184453 by: David Durham, Jr.

struts 2 jsf plugin problem
 184455 by: Daniel Posirca

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)

----------------------------------------------------------------------

Attachment: user_184442.ezm (zipped)

I found the problem. Its working for me now.
The <s:a> tag did not have theme="ajax".
After adding ajax theme, the result page was loaded in correct tab.

Thanks for the help everyone.




--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_184443.ezm (zipped)

In struts 1. I have basic.jsp page with form:
<html:form action="/basic" >
...
</html:form>
When I open basic.jsp it is autamatically created basicForm (which is
configured at the basic action) And thanks this values in the form are
automatically filled.

Know anybody how to simulate this in Struts 2?
or
Can me anybody give a simple example: How to use an POJO object in Struts 2
(instead of ActionForm)?
--
Sent from the Struts - User mailing list archive at Nabble.com.


Attachment: user_184444.ezm (zipped)
--- bugs_ <bugsmail@(protected):
> Can me anybody give a simple example: How to use an POJO object in Struts 2
> (instead of ActionForm)?

http://struts.apache.org/2.x/docs/hello-world.html

See the form creation/using the form bits.

Dave


Attachment: user_184445.ezm (zipped)
Hi all,
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without using javascript. I've discovered html:cancel
which works nicely for ...canceling. But I couldn't find anything similar
for the back button. Any ideas?
Thanks

Attachment: user_184446.ezm (zipped)
2008/3/19, Dimitris Mouchritsas <dimitris.mouchritsas@(protected)>:
>
> we're using struts 1.2.4 in our project and I'm trying to implement a
> back button for a 3 step registration procedure. The problem is I'd
> like to do it without using javascript. I've discovered html:cancel
> which works nicely for ...canceling. But I couldn't find anything similar
> for the back button. Any ideas?



You need to manage it on the server side. There are many ways to do it, just
to mention a pair:
1) the button points to the previous action;
2) implement a history manager that manages the history of called actions
and, when called "back" (e.g. with a "history action") you go back in the
history.

Ciao
Antonio

Attachment: user_184447.ezm (zipped)
Antonio Petrelli wrote:
> 2008/3/19, Dimitris Mouchritsas <dimitris.mouchritsas@(protected)>:
>  
>> we're using struts 1.2.4 in our project and I'm trying to implement a
>> back button for a 3 step registration procedure. The problem is I'd
>> like to do it without using javascript. I've discovered html:cancel
>> which works nicely for ...canceling. But I couldn't find anything similar
>> for the back button. Any ideas?
>>  
>
>
>
> You need to manage it on the server side. There are many ways to do it, just
> to mention a pair:
> 1) the button points to the previous action;
> 2) implement a history manager that manages the history of called actions
> and, when called "back" (e.g. with a "history action") you go back in the
> history.
>
> Ciao
> Antonio
>
>  
The first case would suit me fine. But how would I do this exactly? Use
a simple button instead of <html:button> and include it in a <a> element?
I'm trying to do this as uniform as possible as with the other buttons
which are <htm:submit>, <html:reset> and <html:cancel>.
My current code looks like this:    
<a href="<%=request.getContextPath()%>/home.do">
<html:button styleClass="button" property="back">
  <bean:message key="prompt.back.button" />
</html:button>
</a>
but I still need to add a back property to the form bean which is not
really needed.


Attachment: user_184448.ezm (zipped)
2008/3/19, Dimitris Mouchritsas <dimitris.mouchritsas@(protected)>:
>
> Antonio Petrelli wrote:
> > 2008/3/19, Dimitris Mouchritsas <dimitris.mouchritsas@(protected)>:
> >
> >> we're using struts 1.2.4 in our project and I'm trying to implement a
> >> back button for a 3 step registration procedure. The problem is I'd
> >> like to do it without using javascript. I've discovered html:cancel
> >> which works nicely for ...canceling. But I couldn't find anything
> similar
> >> for the back button. Any ideas?
> >>
> >
> >
> >
> > You need to manage it on the server side. There are many ways to do it,
> just
> > to mention a pair:
> > 1) the button points to the previous action;
> > 2) implement a history manager that manages the history of called
> actions
> > and, when called "back" (e.g. with a "history action") you go back in
> the
> > history.
> >
> > Ciao
> > Antonio
> >
> >
>
> The first case would suit me fine. But how would I do this exactly? Use
> a simple button instead of <html:button> and include it in a <a> element?
> I'm trying to do this as uniform as possible as with the other buttons
> which are <htm:submit>, <html:reset> and <html:cancel>.
> My current code looks like this:
> <a href="<%=request.getContextPath()%>/home.do">
>  <html:button styleClass="button" property="back">
>   <bean:message key="prompt.back.button" />
>  </html:button>
> </a>
> but I still need to add a back property to the form bean which is not
> really needed.



The way is simpler than you may think :-)
You can create a new *form*, different from the main one, in which there is
an <html:submit> button that triggers the action that takes you "back".

Antonio

Attachment: user_184449.ezm (zipped)
If you don't want to add another form element to the page you could take a look at LookupDispatchAction's getKeyMethodMap() method. Extend LookupDispatchAction in your action class. Override the getKeyMethodMap in which you can map your button's keys to methods you create. You could create a mapping for your "prompt.back.button" to a goBack method. In goBack() you can do whatever processing you might need to "undo" things, then return a forward name that you map for it in your struts-config file.


On 3/19/08 9:02 AM, "Dimitris Mouchritsas" <dimitris.mouchritsas@(protected):

Hi all,
we're using struts 1.2.4 in our project and I'm trying to implement a
back button for a 3 step registration procedure. The problem is I'd
like to do it without using javascript. I've discovered html:cancel
which works nicely for ...canceling. But I couldn't find anything similar
for the back button. Any ideas?
Thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)




Attachment: user_184450.ezm (zipped)
Is this the standard JSP syntax?

On Mon, Mar 17, 2008 at 3:08 PM, Dave Newton <newton.dave@(protected):

> --- GF <ganfab@(protected):
> > > ...unless you use the XML syntax available from JSP 2.0 and later ;-)
> > And in this case, how can you resolve the <div id="<s:property... ?
>
> <div id="${aProperty}"...>
>
> Dave
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment: user_184451.ezm (zipped)
It is standard Expression Language (EL), which is much preferred over
scriptlets.

Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications



> From: GF <ganfab@(protected)>
> Reply-To: Struts Users Mailing List <user@(protected)>
> Date: Wed, 19 Mar 2008 14:44:08 +0100
> To: Struts Users Mailing List <user@(protected)>
> Subject: Re: <s:property in <s:*> not interpreted
>
> Is this the standard JSP syntax?
>
> On Mon, Mar 17, 2008 at 3:08 PM, Dave Newton <newton.dave@(protected):
>
>> --- GF <ganfab@(protected):
>>>> ...unless you use the XML syntax available from JSP 2.0 and later ;-)
>>> And in this case, how can you resolve the <div id="<s:property... ?
>>
>> <div id="${aProperty}"...>
>>
>> Dave
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>



This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege.

Attachment: user_184452.ezm (zipped)
--- GF <ganfab@(protected):
> Is this the standard JSP syntax?

JSP 2.0 EL.

Dave


Attachment: user_184454.ezm (zipped)
I noticed that since some version of Struts2 it is now forbidden inside <s:
> tag attributes.. right?

On Wed, Mar 19, 2008 at 2:54 PM, Dave Newton <newton.dave@(protected):

> --- GF <ganfab@(protected):
> > Is this the standard JSP syntax?
>
> JSP 2.0 EL.
>
> Dave
>

Attachment: user_184453.ezm (zipped)
On Wed, Mar 19, 2008 at 5:19 AM, udaykumar <talktoudaykumar@(protected):
>
> I am using struts and have an upload.jsp and its associated UploadForm.java
> and UploadAction.java. The jsp's form has an enctype=multipart/form-data and
> contains an html:file field to upload a file as well as a bunch of text
> fields for metadata associated with the file. If an error occurs during
> validation, the struts controller servlet forwards to the jsp with error
> messages. The problem is that the filepath the user specified is no longer
> present. Is there a way to restore this value so the user doesn't have to
> complete this field again (the other text fields remain filled in). Thanks
> in advance

The issue is that inputs of type file are read-only to unsigned
javascript programs and of course the value attribute does not apply.
Otherwise, a page could try to hide a file input on a form with a
preset value of /etc/shadow or some other sensitive file, and have a
user unknowingly upload this file.

-Dave

Attachment: user_184455.ezm (zipped)
Hello, i am new to this list. I am trying to develop an application based on
struts 2 + jsf plugin + portlet. I am using struts 2 support for portlet. As
appl server i am using weblogic.
Now i have reached a point were i am getting an error, but i have no idea
how to pass it. I have managed to make the portlet working in weblogic but
when a try to add the jsf support i get stuck. Here are my files :

web.xml

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3
//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="bookmark-portlet">
  <!-- JavaServer Faces Servlet Configuration, not used directly -->
  <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet>
    <servlet-name>JspSupportServlet</servlet-name>
    <servlet-class>org.apache.struts2.views.JspSupportServlet
</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>


  <!-- JavaServer Faces Servlet Mapping, not called directly -->
  <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.action</url-pattern>
  </servlet-mapping>

</web-app>

portlet.xml

<?xml version="1.0" encoding="UTF-8"?>

<portlet-app
  version="1.0"
  xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd
http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
  id="bookmark-portlet">

  <portlet id="HelloPortlet">
    <description>Simple hello world portlet</description>
    <portlet-name>StrutsDocumentPortlet</portlet-name>
    <display-name>StrutsDocumentPortlet</display-name>

    <portlet-class>
org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher</portlet-class>

    <!-- The namespace for the actions configured for view mode -->
    <init-param>
       <name>viewNamespace</name>
       <value>/view</value>
    </init-param>

     <!-- The default action to invoke in view mode. -->
    <init-param>
       <name>defaultViewAction</name>
       <value>index</value>
    </init-param>

    <!-- The namespace for the actions configured for edit mode -->
    <init-param>
       <name>editNamespace</name>
       <value>/edit</value>
    </init-param>

     <!-- The default action to invoke in edit mode. -->
    <init-param>
       <name>defaultEditAction</name>
       <value>index!input</value>
    </init-param>

    <expiration-cache>0</expiration-cache>

    <supports>
       <mime-type>text/html</mime-type>
       <portlet-mode>view</portlet-mode>
       <portlet-mode>edit</portlet-mode>
    </supports>

    <!--<supported-locale>en</supported-locale>-->

    <portlet-info>
       <title>HelloPortlet</title>
       <short-title>HelloPortlet</short-title>
       <keywords>struts 2,portlet,hello,world</keywords>
    </portlet-info>
  </portlet>

</portlet-app>

struts.xml

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
  <include file="struts-jsf.xml"/>
  <package name="default" extends="struts-portlet-default"
namespace="/view">
    <action name="index" class="com.mycompany.HelloAction">
       <interceptor-ref name="basicStack"/>
       <interceptor-ref name="jsfStack"/>
       <result name="success" type="jsf"/>
       <result name="index" type="redirect-action">index</result>
       <result>/WEB-INF/jsp/view/index.jsp</result>
    </action>
  </package>

  <package name="edit" extends="struts-portlet-default" namespace="/edit">

    <action name="index" class="com.mycompany.UpdateNameAction">
       <result type="redirectAction">
          <param name="actionName">index</param>
          <param name="portletMode">view</param>
       </result>
       <result name="input">/WEB-INF/jsp/edit/index.jsp</result>
    </action>
  </package>
</struts>


struts-jsf.xml

<!DOCTYPE struts PUBLIC
  "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
  "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="jsf" extends="jsf-default" namespace="/jsf">

   <result-types>
      <result-type name="jsf" class="org.apache.struts2.jsf.FacesResult"
/>
   </result-types>

  <interceptors>
   <interceptor-stack name="jsfFullStack">
    <interceptor-ref name="params" />
    <interceptor-ref name="basicStack"/>
    <interceptor-ref name="jsfStack"/>
   </interceptor-stack>
  </interceptors>

  <default-interceptor-ref name="jsfFullStack"/>

</package>


</struts>

When i am loading the portlet in browser i get this error (the error is not
thrown into the weblogic console, i see this error in the portlet window).





javax.portlet.PortletException
at com.bea.portlet.container.PortletStub.getPortletInstance(PortletStub.java:645)

at com.bea.portlet.container.PortletStub.init(PortletStub.java:190)
at com.bea.portlet.container.AppContainer.invokeRender(AppContainer.java:637)

at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireRender(
JavaPortletContent.java:208)
at
com.bea.netuix.servlets.controls.content.JavaPortletContent.renderInternal(
JavaPortletContent.java:127)
at com.bea.netuix.servlets.controls.content.JavaPortletContent.beginRender(
JavaPortletContent.java:83)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:483)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:332)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:306)
at com.bea.netuix.nf.UIControl.render(UIControl.java:578)
at com.bea.netuix.servlets.controls.PresentationContext.render(
PresentationContext.java:482)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(RenderToolkit.java:146)

at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(
RenderChild.java:62)
at
jsp_servlet._framework._skeletons._portal.__gridlayout._jspService(__gridlayout.java:301)

at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(
StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)

at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(
ServletStubImpl.java:391)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)

at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(
RequestDispatcherImpl.java:503)
at weblogic.servlet.internal.RequestDispatcherImpl.include(
RequestDispatcherImpl.java:431)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(
JspTools.java:123)
at
com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender
(JspControlRenderer.java:72)
at
com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender
(PresentationControlRenderer.java:65)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:188)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:142)
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:377)

at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:253)
at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:206)
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:191)
at com.bea.netuix.servlets.manager.SingleFileServlet.service(
SingleFileServlet.java:258)
at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:656)

at javax.servlet.http.HttpServlet.service (HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(
StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)

at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(
HttpContextFilter.java:60)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

at com.bea.p13n.servlets.PortalServletFilter.doFilter(
PortalServletFilter.java:315)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

at weblogic.servlet.internal.RequestEventsFilter.doFilter(
RequestEventsFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(
WebAppServletContext.java:3368)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(
WebAppServletContext.java:2117)
at weblogic.servlet.internal.WebAppServletContext.execute(
WebAppServletContext.java:2023)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

Caused by: Unable to load configuration. - action -
file:/C:/srv/bea10/user_projects/domains/domain/autodeploy/portal.ear/portal.war/WEB-INF/classes/struts.xml:10:64


at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
Dispatcher.java:370)
at org.apache.struts2.dispatcher.Dispatcher.init (Dispatcher.java:423)
at org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher.init(
Jsr168Dispatcher.java:198)
at com.bea.portlet.container.PortletStub.getPortletInstance(
PortletStub.java:630) ... 76 more

Caused by: Error building results for action index in namespace /view -
action -
file:/C:/srv/bea10/user_projects/domains/domain/autodeploy/portal.ear/portal.war/WEB-INF/classes/struts.xml:10:64


at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(
XmlConfigurationProvider.java:366)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage
(XmlConfigurationProvider.java:460)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages
(XmlConfigurationProvider.java:268)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(
StrutsXmlConfigurationProvider.java:109)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer
(DefaultConfiguration.java:179)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:55) ... 80 more

Caused by: There is no result type defined for type 'jsf' mapped with name
'success' - result -
file:/C:/srv/bea10/user_projects/domains/domain/autodeploy/portal.ear/portal.war/WEB-INF/classes/struts.xml:13:47


at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults
(XmlConfigurationProvider.java:613)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(
XmlConfigurationProvider.java:364) ...
85 more

Nested Exception is Unable to load configuration. - action -
file:/C:/srv/bea10/user_projects/domains/domain/autodeploy/portal.ear/portal.war/WEB-INF/classes/struts.xml:10:64


at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:58)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(
Dispatcher.java:370)
at org.apache.struts2.dispatcher.Dispatcher.init (Dispatcher.java:423)
at org.apache.struts2.portlet.dispatcher.Jsr168Dispatcher.init(
Jsr168Dispatcher.java:198)
at com.bea.portlet.container.PortletStub.getPortletInstance(
PortletStub.java:630)
at com.bea.portlet.container.PortletStub.init(PortletStub.java:190)
at com.bea.portlet.container.AppContainer.invokeRender(AppContainer.java:637)

at com.bea.netuix.servlets.controls.content.JavaPortletContent.fireRender(
JavaPortletContent.java:208)
at
com.bea.netuix.servlets.controls.content.JavaPortletContent.renderInternal(
JavaPortletContent.java:127)
at com.bea.netuix.servlets.controls.content.JavaPortletContent.beginRender(
JavaPortletContent.java:83)
at com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:483)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:332)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:306)
at com.bea.netuix.nf.UIControl.render(UIControl.java:578)
at com.bea.netuix.servlets.controls.PresentationContext.render(
PresentationContext.java:482)
at com.bea.netuix.servlets.util.RenderToolkit.renderChild(
RenderToolkit.java:146)
at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag(
RenderChild.java:62)
at
jsp_servlet._framework._skeletons._portal.__gridlayout._jspService(__gridlayout.java:301)

at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(
StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)

at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(
ServletStubImpl.java:391)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)

at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)

at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(
RequestDispatcherImpl.java:503)
at weblogic.servlet.internal.RequestDispatcherImpl.include(
RequestDispatcherImpl.java:431)
at com.bea.netuix.servlets.controls.application.laf.JspTools.renderJsp(
JspTools.java:123)
at
com.bea.netuix.servlets.controls.application.laf.JspControlRenderer.beginRender
(JspControlRenderer.java:72)
at
com.bea.netuix.servlets.controls.application.laf.PresentationControlRenderer.beginRender
(PresentationControlRenderer.java:65) at
com.bea.netuix.nf.ControlLifecycle$7.visit(ControlLifecycle.java:479)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:518)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(
ControlTreeWalker.java:529)
at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:220)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:375)
at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:341)
at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:188)
at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:142)
at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java
:377)
at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:253)
at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:206)
at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:191)
at com.bea.netuix.servlets.manager.SingleFileServlet.service(
SingleFileServlet.java:258)
at com.bea.netuix.servlets.manager.PortalServlet.service(PortalServlet.java:656)

at javax.servlet.http.HttpServlet.service (HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(
StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(
StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)

at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

at com.bea.portal.tools.servlet.http.HttpContextFilter.doFilter(
HttpContextFilter.java:60)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

at com.bea.p13n.servlets.PortalServletFilter.doFilter(
PortalServletFilter.java:315)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)

at weblogic.servlet.internal.RequestEventsFilter.doFilter(
RequestEventsFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java
:42)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(
WebAppServletContext.java:3368)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(
AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(
WebAppServletContext.java:2117)
at weblogic.servlet.internal.WebAppServletContext.execute(
WebAppServletContext.java:2023)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)

Caused by: Error building results for action index in namespace /view -
action -
file:/C:/srv/bea10/user_projects/domains/domain/autodeploy/portal.ear/portal.war/WEB-INF/classes/struts.xml:10:64


at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(
XmlConfigurationProvider.java:366)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage
(XmlConfigurationProvider.java:460)
at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages
(XmlConfigurationProvider.java:268)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(
StrutsXmlConfigurationProvider.java:109)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer
(DefaultConfiguration.java:179)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(
ConfigurationManager.java:55) ... 80 more

Caused by: There is no result type defined for type 'jsf' mapped with name
'success' - result -
file:/C:/srv/bea10/user_projects/domains/domain/autodeploy/portal.ear/portal.war/WEB-INF/classes/struts.xml:13:47


at
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.buildResults
(XmlConfigurationProvider.java:613) a
t
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addAction(
XmlConfigurationProvider.java:364) ...

85 more



My libs are :

freemarker-2.3.11.jar
myfaces-api-1.1.2.jar
myfaces-impl-1.1.2.jar
ognl-2.6.11.jar
struts2-core-2.1.1-SNAPSHOT.jar
struts2-jsf-plugin-2.0.11.1.jar
struts2-portlet-plugin-2.1.1-SNAPSHOT.jar
xwork-2.1.1-SNAPSHOT.jar



I hope that this mail is not to big. Thx in advanced, i realy need help with
this issue.
©2008 gg3721.com - Jax Systems, LLC, U.S.A.