Author Login
Post Reply
user Digest 4 Aug 2008 19:19:02 -0000 Issue 8177
Topics (messages 189668 through 189691):
Re: [S2] Method dependant validation
189668 by: Andreas Mähler
Struts 1.3.8 problem html:form
189669 by: Alexis Abdel
189670 by: Antonio Petrelli
[S2] Ajax DIV Question
189671 by: Hoying, Ken
[S2] Refactoring Action classes
189672 by: Milan Milanovic
189675 by: Al Sutton
189677 by: Martin Gainty
Re: Retrieve current url value
189673 by: lei.java.gmail.com
189674 by: Chris Pratt
189679 by: lei.java.gmail.com
189683 by: Pawe³ Wielgus
Struts2 and spring plugin - Action class [springManagedProsocActionUpdateEmail] not found
189676 by: doahh
189678 by: Brad A Cupit
189680 by: doahh
189681 by: doahh
189686 by: Brad A Cupit
189688 by: doahh
189690 by: doahh
189691 by: Brad A Cupit
Ajax JSP Tag Library 1.3
189682 by: stanlick
disabled attribute not rendered for Anchor tag
189684 by: Avinash
189685 by: Avinash
Re: non-English chars with <s:a..> tag
189687 by: lei.java.gmail.com
Struts2 tags radio button default select
189689 by: dynamicd
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_189668.ezm (zipped)Andreas Mähler schrieb:
> I know that method dependant processing is possible with the
> PrepareInterceptor (i.e. prepareDoThis, prepareDoThat methods that are
> automatically invoked). I checked the Struts2.1.2 docs[1], but it seems
> that the ValidationInterceptor does not offer this feature. I also can't
> find a way to make annotation based validation method dependant, which
> would also be very useful. (Think of a 'method' parameter that is a
> comma-seperated list of methods for which the validation applies -
> default is all).
>
> [1] http://struts.apache.org/2.1.2/docs/validation-interceptor.html
Silly me!
I confused the ValidationInterceptor with the WorkflowInterceptor ;-)
Sorry for that..
But my second question still applies: Is it somehow possible to use some
kind of method parameter for annotation based validation?
~Andreas

Attachment:
user_189669.ezm (zipped)Hi!
I am using Struts 1.3.8 and when i want to try some of the examples or when i want to develop something
i always have the same error in the line with "html:form."
This is a very simple example:
Inside Web-inf,i have a lib folder with the following libs:
Antlr-2.7.2.jar,commons-beanutils,commons-chain-common-digester,-commons-fileupload,commons-io
commons-loggining,commons-validator,jstl-1.0.6,oro-2.0.8,standar-1.06,struts-core,struts-el,struts-extras,
struts-taglib,struts-tiles.
Struts-config.xml with this Information:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_0.dtd">
<struts-config>
<!-- === Form Bean Definitions -->
<form-beans>
<form-bean name="RegistroForm" type="app.RegistroForm"/>
</form-beans>
<!-- ===Action Mapping Definitions -->
<action-mappings>
<action path="/registro"type="app.RegistroAction"name="RegistroForm"
input="/registro.jsp"/>
<forward name="exito" path="/pages/succes.html"/>
<forward name="fracaso" path="/pages/error.html"/>
<action>
</action-mappings>
</struts-config>
Inside Web-inf-src i have a package "app" with 2 classes.
---------------------------RegistroAction------------------------------
package app;
import
javax.servlet.http.HttpServletRequest;
import javax.servlet.http.*;
import
org.apache.struts.action.Action;
import
org.apache.struts.action.ActionForm;
import
org.apache.struts.action.ActionForward;
import
org.apache.struts.action.ActionMapping;
import org.apache.struts.action.*;
import
java.util.Properties;
import
java.lang.Object;
public class RegistroAction extends Action {
public ActionForward perform(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) {
RegistroForm registroForm = (RegistroForm) form;
String user = registroForm.getUsername();
String pass1 = registroForm.getPassword1();
String pass2 = registroForm.getPassword2();
if (pass1.equals(pass2)) {
return mapping.findForward("sucess");
} else {
return mapping.findForward("error");
}
}
--------------------------------------- RegistroForm------------------------------------
package app;
import
org.apache.struts.action.ActionForm;
public class RegistroForm extends ActionForm{
protected String username;
protected String password1;
protected String password2;
public String getPassword1() {
return password1;
}
public void setPassword1(String password1) {
this.password1 = password1;
}
public String getPassword2() {
return password2;
}
public void setPassword2(String password2) {
this.password2 = password2;
}
public String getUsername() {
return username;
}
public void setUsername(String username) {
this.username = username;
}
}
In a folder call "Pages" i have a 2 .html "error.html" and "succes.html"
And of course i have the index.jsp page,i use this page to
start the application and there is where i have the error.
------------------------------------------index.jsp------------------------------------
<%@(protected)"%>
<%@(protected)" %>
<%@(protected)" %>
<%@(protected)" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Identificación</title>
</head>
<body>
<html:form action="/registro">
Nombre Usuario<html:text property="username" />
Contraseña<html:text property="password1" />
Repetir Contraseña<html:text property="password2" />
<html:submit property="Registro"/>
</html:form>
</body>
</html>
The error is in <html:form action="/registro">
El servidor encontró un error interno () que hizo que no pudiera rellenar este requerimiento.
excepción
That exeption in english it is:
The server found an error,and cant fill this requirement.
org.apache.jasper.JasperException: Exception in JSP: /index.jsp:16
I am using Tomcat 5.5.26
Thanks in advance.
____________________________________________________________________________________
¡Buscá desde tu celular!
Yahoo! oneSEARCH ahora está en Claro
http://ar.mobile.yahoo.com/onesearch

Attachment:
user_189670.ezm (zipped)2008/8/4 Alexis Abdel <alexisq4a@(protected)>:
> <!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
>
> "http://struts.apache.org/dtds/struts-config_1_0.dtd">
Shouldn't it be "1_3"?
Antonio

Attachment:
user_189671.ezm (zipped)I have a tabbed panel. I would like to refresh the contents of this tab
and am able to do so by publishing to the proper topic. However, I
really need to take it a step further and be able to dynamically specify
the formid and href attributes of the Ajax DIV in my JavaScript, before
refreshing it. Is there a way to do this?
If I cannot do this, then I guess my next option would be to use
multiple nested Ajax DIVs. I believe that this would work okay if I
could specify that these DIVs not preload. However, it appears that
this is functionality was not added until 2.1 and I am using 2.0.11.
Would there be another way to accomplish this?
Thanks in advance,
Ken
-----------------------------------------
***Note:The information contained in this message may be privileged
and confidential and protected from disclosure. If the reader of
this message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient,
you are hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify the Sender
immediately by replying to the message and deleting it from your
computer. Thank you. Premier Inc.

Attachment:
user_189672.ezm (zipped)
Dear Al and Dave,
I tried to fix that error with session variable all weekend and I didn't
managed to fix it. When action is defined as redirect action to another
namespace, and when that action is called, another action called method
doesn't see my session variables. I just changed this redirect action to
that another namespace, as standard action (not redirect) and I now see my
variables! I don't have any idea why it doesn't work with redirect action,
but I'm SURE that there is some problem.
I have one question regarding refactoring action classes, is it much to have
20 actions per one namespace/action class ?
--
Regards, Milan
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189675.ezm (zipped)You don't need to have all your actions for a namespace in a single
class, you can use multiple classes.
I usually group methods acting on a common object into a single class
which usually leaves me with the 5 public methods in a class which map
to actions (typically CRUD plus a View method), and multiple classes for
different object types.
Imho 20 is too many, 10 is a lot, 5 is OK (don't forget that's public
action methods, the number of private methods you have will depend on
your app).
Al.
Milan Milanovic wrote:
> Dear Al and Dave,
>
> I tried to fix that error with session variable all weekend and I didn't
> managed to fix it. When action is defined as redirect action to another
> namespace, and when that action is called, another action called method
> doesn't see my session variables. I just changed this redirect action to
> that another namespace, as standard action (not redirect) and I now see my
> variables! I don't have any idea why it doesn't work with redirect action,
> but I'm SURE that there is some problem.
>
> I have one question regarding refactoring action classes, is it much to have
> 20 actions per one namespace/action class ?
>
> --
> Regards, Milan
>
--
--
Al Sutton
W: www.alsutton.com
T: twitter.com/alsutton

Attachment:
user_189677.ezm (zipped)
I've seen it both waysputting all classes into a global kitchen sink package (even when the Actions have completely different functionality and address completely disparate domain objects)
on the other hand i've also seenbanishing (@(protected)
Anyone else?Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission. > Date: Mon, 4 Aug 2008 16:47:24 +0100> From: al.sutton@(protected)>
_________________________________________________________________
Get Windows Live and get whatever you need, wherever you are. Start here.
http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home_082008

Attachment:
user_189673.ezm (zipped)Thanks Wes.
Maybe my question is not clear enough. I'd like to find a way to get
value in address bar which is different from the path to the jsp
rendering current page. Your solutions give us the latter.
e.g., if loginForm.jsp is responsible for rendering page for
login_input.action, ${...requestURI} will display .../loginForm.jsp
but I want to show login_input.action.
Thanks.
On Mon, Aug 4, 2008 at 12:03 AM, Wes Wannemacher <wesw@(protected):
> Depending on how you want it, you can use EL like -
>
> ${request.requestURI}
>
> or, if you are talking OGNL, try -
>
> <s:property
> value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}"/>
>
> -Wes
>
> On Sun, 2008-08-03 at 23:42 -0400, lei.java@(protected):
>> Hi,
>>
>> Is there a way to get current page's url in struts2?
>>
>> e.g. suppose a login page's url is http://.../<context
>> name>/login_input.action, how to get the url in that page?
>>
>> JavaScript is not allowed.
>>
>> Thanks.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189674.ezm (zipped)Try
${request.requestURL}
or
<s:property
value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURL}"/>
Instead.
(*Chris*)
On Mon, Aug 4, 2008 at 8:29 AM, lei.java@(protected)>
wrote:
> Thanks Wes.
>
> Maybe my question is not clear enough. I'd like to find a way to get
> value in address bar which is different from the path to the jsp
> rendering current page. Your solutions give us the latter.
>
> e.g., if loginForm.jsp is responsible for rendering page for
> login_input.action, ${...requestURI} will display .../loginForm.jsp
> but I want to show login_input.action.
>
> Thanks.
>
>
> On Mon, Aug 4, 2008 at 12:03 AM, Wes Wannemacher <wesw@(protected):
> > Depending on how you want it, you can use EL like -
> >
> > ${request.requestURI}
> >
> > or, if you are talking OGNL, try -
> >
> > <s:property
> >
> value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}"/>
> >
> > -Wes
> >
> > On Sun, 2008-08-03 at 23:42 -0400, lei.java@(protected):
> >> Hi,
> >>
> >> Is there a way to get current page's url in struts2?
> >>
> >> e.g. suppose a login page's url is http://.../<context
> >> name>/login_input.action, how to get the url in that page?
> >>
> >> JavaScript is not allowed.
> >>
> >> Thanks.
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
> >> For additional commands, e-mail: user-help@(protected)
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189679.ezm (zipped)Thanks Chris. I got the same value using requestURL as using requestURI.
On Mon, Aug 4, 2008 at 11:45 AM, Chris Pratt <thechrispratt@(protected):
> Try
>
> ${request.requestURL}
>
> or
>
> <s:property
> value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURL}"/>
>
> Instead.
> (*Chris*)
>
>
> On Mon, Aug 4, 2008 at 8:29 AM, lei.java@(protected)>
> wrote:
>
>> Thanks Wes.
>>
>> Maybe my question is not clear enough. I'd like to find a way to get
>> value in address bar which is different from the path to the jsp
>> rendering current page. Your solutions give us the latter.
>>
>> e.g., if loginForm.jsp is responsible for rendering page for
>> login_input.action, ${...requestURI} will display .../loginForm.jsp
>> but I want to show login_input.action.
>>
>> Thanks.
>>
>>
>> On Mon, Aug 4, 2008 at 12:03 AM, Wes Wannemacher <wesw@(protected):
>> > Depending on how you want it, you can use EL like -
>> >
>> > ${request.requestURI}
>> >
>> > or, if you are talking OGNL, try -
>> >
>> > <s:property
>> >
>> value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}"/>
>> >
>> > -Wes
>> >
>> > On Sun, 2008-08-03 at 23:42 -0400, lei.java@(protected):
>> >> Hi,
>> >>
>> >> Is there a way to get current page's url in struts2?
>> >>
>> >> e.g. suppose a login page's url is http://.../<context
>> >> name>/login_input.action, how to get the url in that page?
>> >>
>> >> JavaScript is not allowed.
>> >>
>> >> Thanks.
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> >> For additional commands, e-mail: user-help@(protected)
>> >>
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>> > For additional commands, e-mail: user-help@(protected)
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>> For additional commands, e-mail: user-help@(protected)
>>
>>
>

Attachment:
user_189683.ezm (zipped)Hi,
have You been redirecting to jsp? You can also print uri with <s:url/>
Best greetings,
Paweł Wielgus.
2008/8/4 lei.java@(protected)>:
> Thanks Chris. I got the same value using requestURL as using requestURI.
>
> On Mon, Aug 4, 2008 at 11:45 AM, Chris Pratt <thechrispratt@(protected):
>> Try
>>
>> ${request.requestURL}
>>
>> or
>>
>> <s:property
>> value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURL}"/>
>>
>> Instead.
>> (*Chris*)
>>
>>
>> On Mon, Aug 4, 2008 at 8:29 AM, lei.java@(protected)>
>> wrote:
>>
>>> Thanks Wes.
>>>
>>> Maybe my question is not clear enough. I'd like to find a way to get
>>> value in address bar which is different from the path to the jsp
>>> rendering current page. Your solutions give us the latter.
>>>
>>> e.g., if loginForm.jsp is responsible for rendering page for
>>> login_input.action, ${...requestURI} will display .../loginForm.jsp
>>> but I want to show login_input.action.
>>>
>>> Thanks.
>>>
>>>
>>> On Mon, Aug 4, 2008 at 12:03 AM, Wes Wannemacher <wesw@(protected):
>>> > Depending on how you want it, you can use EL like -
>>> >
>>> > ${request.requestURI}
>>> >
>>> > or, if you are talking OGNL, try -
>>> >
>>> > <s:property
>>> >
>>> value="%{#context['com.opensymphony.xwork2.dispatcher.HttpServletRequest'].requestURI}"/>
>>> >
>>> > -Wes
>>> >
>>> > On Sun, 2008-08-03 at 23:42 -0400, lei.java@(protected):
>>> >> Hi,
>>> >>
>>> >> Is there a way to get current page's url in struts2?
>>> >>
>>> >> e.g. suppose a login page's url is http://.../<context
>>> >> name>/login_input.action, how to get the url in that page?
>>> >>
>>> >> JavaScript is not allowed.
>>> >>
>>> >> Thanks.
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> >> For additional commands, e-mail: user-help@(protected)
>>> >>
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> > For additional commands, e-mail: user-help@(protected)
>>> >
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected)
>>> For additional commands, e-mail: user-help@(protected)
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_189676.ezm (zipped)
I am trying to get spring to manage my Struts2 actions but am getting the
following error:
Action class [springManagedProsocActionUpdateEmail] not found
I have used the http://struts.apache.org/2.x/docs/spring-plugin.html
http://struts.apache.org/2.x/docs/spring-plugin.html as a guide but have
cross referenced that with the book 'Struts 2 In Action' and for me it
doesn't work. These are the things I have done to configure spring with
Struts2.
1) Added the struts2-spring-plugin-2.0.11.1.jar to my lib folder;
2) Added the following to my spring-config file:
<bean id="springManagedProsocActionUpdateEmail"
class="uk.co.prodia.prosoc.struts2.action.ActionUpdateEmail">
<property name="sessionFactory" ref="sessionFactoryProsocForum"/>
</bean>
3) Added the following to my struts.xml file:
<constant name="struts.objectFactory"
value="org.apache.struts2.spring.StrutsSpringObjectFactory" />
4) Modified the action class attribute to point to the id of the bean in the
spring-config file so that it looks like the following:
<action name="update-email!*" class="springManagedProsocActionUpdateEmail"
method="{1}">
<results in here ... ...>
</action>
5) Set the following constant in my struts.xml file:
<constant name="struts.objectFactory.spring.autoWire" value="type" />
6) Set the following property on my spring-config <beans
default-autowire="autodetect"> tag.
Have I been really dense and missed out a step even after going through the
book and the web guide twice each?
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189678.ezm (zipped)I can't say that I see the problem, but I do see a few small issues.
> <bean id="springManagedProsocActionUpdateEmail"
> class="uk.co.prodia.prosoc.struts2.action.ActionUpdateEmail">
> <property name="sessionFactory"
ref="sessionFactoryProsocForum"/>
> </bean>
be sure to add scope="prototype". S2 actions are per-request (since they
have getters and setters with request specific information being set on
them). Basically, they're not thread-safe, so they can't be singletons.
> 5) Set the following constant in my struts.xml file:
>
> <constant name="struts.objectFactory.spring.autoWire" value="type" />
>
> 6) Set the following property on my spring-config <beans
> default-autowire="autodetect"> tag.
Technically those shouldn't be necessary. The struts autowire
capabilities of the spring-struts plugin are a little hard to
understand, but basically, here's how it works.: if the spring-struts
plugin can find an Action with the appropriate name that is managed by
Spring, it will use that one. If it can't, it will instantiate one and
then attempt to 'autowire' it itself. Here's where the autowire settings
come into play.
In your case, you want the first option (where the bean is fully spring
managed) so the struts autowire settings aren't really going to be used.
> 4) Modified the action class attribute to point to the id of the bean
in the
> spring-config file so that it looks like the following:
> <action name="update-email!*"
class="springManagedProsocActionUpdateEmail"
> method="{1}">
> <results in here ... ...>
> </action>
That seems like it should work. Have you tried it without the method
name pattern matching to see if it can find your Spring bean?
By the way, do you have Spring's
org.springframework.web.context.ContextLoaderListener setup as a
listener in web.xml? (it basically starts Spring up)
Brad Cupit
Louisiana State University - UIS

Attachment:
user_189680.ezm (zipped)Hi Brad and thank you for the reply.
I have tried setting the scope="prototype" but it didn't change the error I
am seeing.
I also tried your suggestion of removing the "!*" part of the method name
from the action along with the method="{1}" but again it didn't change
anything.
I have noticed a couple of odd things happening in the logs when the server
(Tomcat) boots up.
1) I can see the spring-struts2 plugin initiliasing in the log:
org.apache.struts2.spring.StrutsSpringObjectFactory - Initializing
Struts-Spring integration
com.opensymphony.xwork2.spring.SpringObjectFactory - Setting autowire
strategy to name
org.apache.struts2.spring.StrutsSpringObjectFactory - ... initialized
Struts-Spring integration successfully
2) When I don't use the id of a spring bean as my struts action class value
I can see the beans from my spring-config being created in the log. However,
if I do use the id of the spring bean as the struts action class then those
beans do not get created, It seems as if the presence of the value of the
spring bean id attribute in the action class attribute is enough to stop
spring creating the beans. As they are not being created, struts2 naturally
fails to find it and throws the error I am seeing.
I am unsure what could be causing this so any suggestions would be welcomed.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189681.ezm (zipped)Hi Brad and thank you for the reply.
I have tried setting the scope="prototype" but it didn't change the error I
am seeing.
I also tried your suggestion of removing the "!*" part of the method name
from the action along with the method="{1}" but again it didn't change
anything.
I have noticed a couple of odd things happening in the logs when the server
(Tomcat) boots up.
1) I can see the spring-struts2 plugin initiliasing in the log:
org.apache.struts2.spring.StrutsSpringObjectFactory - Initializing
Struts-Spring integration
com.opensymphony.xwork2.spring.SpringObjectFactory - Setting autowire
strategy to name
org.apache.struts2.spring.StrutsSpringObjectFactory - ... initialized
Struts-Spring integration successfully
2) When I don't use the id of a spring bean as my struts action class value
I can see the beans from my spring-config being created in the log. However,
if I do use the id of the spring bean as the struts action class then those
beans do not get created, It seems as if the presence of the value of the
spring bean id attribute in the action class attribute is enough to stop
spring creating the beans. As they are not being created, struts2 naturally
fails to find it and throws the error I am seeing.
I am unsure what could be causing this but maybe someone could clarify that
the:
com.opensymphony.xwork2.spring.SpringObjectFactory - Setting autowire
strategy to name
is correct, I though it should be setting it to 'type' but I could be wrong.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189686.ezm (zipped)> I have tried setting the scope="prototype" but it
> didn't change the error I am seeing.
right, that makes sense. This setting will stop you from having big
problems later on though.
> I am unsure what could be causing this but maybe someone could
> clarify that the:
>
>
com.opensymphony.xwork2.spring.SpringObjectFactory - Setting
> autowire strategy to name
>
> is correct, I though it should be setting it to 'type' but I could
> be wrong.
The default is to autowire by name, so if you don't have it set, then
that makes sense. In your original post, it was set though, so it's very
odd. Remember, you're not really going to care about this value, since
your Action is fully Spring managed, but if you telling it to autowire
by 'type' and it's picking 'name', that may be the symptom of something
else.
which version of struts and spring are you using?
Brad Cupit
Louisiana State University - UIS

Attachment:
user_189688.ezm (zipped)Thanks again for replying, I am really stuck on this one at the moment.
I am currently using struts-2.0.11.1 and spring-2.5.4.
Another thing I have noticed on the struts plugin guide page at:
http://struts.apache.org/2.x/docs/spring-plugin.html
http://struts.apache.org/2.x/docs/spring-plugin.html
is that in their struts.xml example at the bottom of the page they have a
bean called 'secure' but it extends="default" and not "struts-default". I
have opened up the struts2-spring-plugin.jar file and see that the
struts-plugin.xml file package name attribute is called "spring-default" and
extends "struts-default". Would you expect that to mean that my package
should be extending the "spring-default" rather than "struts-default"? I
have tried it and it made no difference; it was just an oddity I noticed.
Brad A Cupit wrote:
>
>> I have tried setting the scope="prototype" but it
>> didn't change the error I am seeing.
>
> right, that makes sense. This setting will stop you from having big
> problems later on though.
>
>> I am unsure what could be causing this but maybe someone could
>> clarify that the:
>>
>>
com.opensymphony.xwork2.spring.SpringObjectFactory - Setting
>> autowire strategy to name
>>
>> is correct, I though it should be setting it to 'type' but I could
>> be wrong.
>
> The default is to autowire by name, so if you don't have it set, then
> that makes sense. In your original post, it was set though, so it's very
> odd. Remember, you're not really going to care about this value, since
> your Action is fully Spring managed, but if you telling it to autowire
> by 'type' and it's picking 'name', that may be the symptom of something
> else.
>
> which version of struts and spring are you using?
>
> Brad Cupit
> Louisiana State University - UIS
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189690.ezm (zipped)
Thanks again for replying, I am really stuck on this one at the moment.
I am currently using struts-2.0.11.1 and spring-2.5.4.
Another thing I have noticed on the struts plugin guide page at:
http://struts.apache.org/2.x/docs/spring-plugin.html
http://struts.apache.org/2.x/docs/spring-plugin.html
is that in their struts.xml example at the bottom of the page they have a
bean called 'secure' but it extends="default" and not "struts-default". I
have opened up the struts2-spring-plugin.jar file and see that the
struts-plugin.xml file package name attribute is called "spring-default" and
extends "struts-default". Would you expect that to mean that my package
should be extending the "spring-default" rather than "struts-default"? I
have tried it and it made no difference; it was just an oddity I noticed.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189691.ezm (zipped)> Would you expect that to mean that my package should be
> extending the "spring-default" rather than "struts-default"?
it's good thinking to look at struts-plugin.xml in
struts2-spring-plugin.jar, but you don't need to extend it unless you
intend to use the two interceptors they define there (which shouldn't be
necessary).
by the way, did you know each message is getting sent to the mailing
list twice?
Anyways, the way that I would proceed is to set a breakpoint in
SpringObjectFactory.buildBean() method and see what happens when
beanName = springManagedProsocActionUpdateEmail
Does Spring find and return the bean? Or does it throw a
NoSuchBeanDefinitionException?
If that's not an option in your environment, you could post the relevant
portions of struts.xml, struts.properties (if you have one), your spring
config file, and web.xml.
By relevant, I mean all of struts.xml but only include one Action
definition that you know doesn't work.
Any servlets, listeners, and filters in web.xml
And the Action bean definition in your spring config file.
By the way, if you have a struts.properties file, make sure none of its
settings conflict with what's in struts.xml
Brad Cupit
Louisiana State University - UIS
-----Original Message-----
From: doahh [mailto:gavin@(protected)]
Sent: Monday, August 04, 2008 2:07 PM
To: user@(protected)
Subject: RE: Struts2 and spring plugin - Action class
[springManagedProsocActionUpdateEmail] not found
Thanks again for replying, I am really stuck on this one at the moment.
I am currently using struts-2.0.11.1 and spring-2.5.4.
Another thing I have noticed on the struts plugin guide page at:
http://struts.apache.org/2.x/docs/spring-plugin.html
http://struts.apache.org/2.x/docs/spring-plugin.html
is that in their struts.xml example at the bottom of the page they have
a
bean called 'secure' but it extends="default" and not "struts-default".
I
have opened up the struts2-spring-plugin.jar file and see that the
struts-plugin.xml file package name attribute is called "spring-default"
and
extends "struts-default". Would you expect that to mean that my package
should be extending the "spring-default" rather than "struts-default"? I
have tried it and it made no difference; it was just an oddity I
noticed.
Brad A Cupit wrote:
>
>> I have tried setting the scope="prototype" but it
>> didn't change the error I am seeing.
>
> right, that makes sense. This setting will stop you from having big
> problems later on though.
>
>> I am unsure what could be causing this but maybe someone could
>> clarify that the:
>>
>>
com.opensymphony.xwork2.spring.SpringObjectFactory - Setting
>> autowire strategy to name
>>
>> is correct, I though it should be setting it to 'type' but I could
>> be wrong.
>
> The default is to autowire by name, so if you don't have it set, then
> that makes sense. In your original post, it was set though, so it's
very
> odd. Remember, you're not really going to care about this value, since
> your Action is fully Spring managed, but if you telling it to autowire
> by 'type' and it's picking 'name', that may be the symptom of
something
> else.
>
> which version of struts and spring are you using?
>
> Brad Cupit
> Louisiana State University - UIS
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
--
http://www.nabble.com/Struts2-and-spring-plugin---Action-class--springMa
nagedProsocActionUpdateEmail--not-found-tp18814302p18817604.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_189682.ezm (zipped)
Are any of you using these tags in an S2 project?%-|
Scott
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_189684.ezm (zipped)can anyone please let me know
if there is any issue with disabled attribute of Anchor tag?
Cause i am not getting the expected behaviour out of the tag.
i used
<struts:a href="some_url" disabled="true">Test</struts:a>
and expected 'Test' coming as disabled.
but its not happening.
Thanks,
Avinash

Attachment:
user_189685.ezm (zipped)Forgot to mention, i am using struts-2.0.11.2.
Thanks.

Attachment:
user_189687.ezm (zipped)Hi,
<s:a> tag doesn't render its title attribute value properly if it
contains non-English chars.
Example:
<s:a href=".." title="Français ç">...</s:a>
Html <a> tag does it properly.
How to get around it in using <s:a> tag?
Thanks.

Attachment:
user_189689.ezm (zipped)
Hey
I am trying to create a radio button and I want one of the values selected
by default,
<s:radio label="Chart Type" name="chartType" list="{'Bar Chart','3D Bar
Chart'}" value="Bar Chart"/>
I thought I could use the value to select by default. However Its not
working.
Any help is appreciated.
--
Sent from the Struts - User mailing list archive at Nabble.com.