Re: Release Date Of Struts 2.1 ??? Is it Reliable ?????

2008-06-11 Thread Laurie Harper

Dave Newton wrote:

--- On Wed, 6/11/08, nani2ratna <[EMAIL PROTECTED]> wrote:

can any body tell me what is the release date of struts 2.1


Probably not: there are, in general, no scheduled releases.


So that i can get struts-dojo-tags.tld, if this tld file is
already available please send me the link.


If you want to use S2.1 you need to get either a test release or build it from source. 


Or use the new beta release, 2.1.2 :-)

L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Struts 2+ Spring 2 + JPA + Ajax

2008-06-11 Thread Jeromy Evans

nani2ratna wrote:

org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]:
Constructor threw exception; nested exception is
java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
at
  


Don't be put off by the ridiculously long stacktraces as the answer is 
usually in the there.  In this case it can't find a class, which means 
you're missing a hibernate jar.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Determining an Action's class

2008-06-11 Thread David Evans
If I understand your question correctly, what you are looking for is in
the ActionProxy:
http://struts.apache.org/2.0.11.1/struts2-core/apidocs/com/opensymphony/xwork2/ActionProxy.html

It has getAction and getMethod methods.

I'm not sure how to easily get ahold of the ActionProxy within a jsp.
this works on my tomcat set up, using the jsp expression language:
${requestScope['struts.valueStack'].context['com.opensymphony.xwork2.ActionContext.actionInvocation'].proxy}

Not very pretty, I'd guess there is a more graceful way, anyone know?

Dave



On Wed, 2008-06-11 at 12:50 +0200, Kiesewetter S., ITSC Bonn, RV, EF,
extern wrote:
> > yes you can,
> >  
> > you can even define different actions for each method in class 
> 
> Thx for the answer, but you didn't understand the question. I defined
> several actions. Now i want to determine the class+method of an action
> inside of a jsp page or inside of one of the tags of my own taglib.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Release Date Of Struts 2.1 ??? Is it Reliable ?????

2008-06-11 Thread nani2ratna

Hi Dave,
I solved the problem.
I dont what happened.
I just redeployed the war file.
Thanks for your help.

Thanks and Regards
Ratna


nani2ratna wrote:
> 
> Hi,
> 
> But its giving error like 
> 
> FreeMarker template error!
> 
> 
> 
> Expression parameters.parseContent is undefined on line 45, column 28 in
> template/ajax/head.ftl.
> The problematic instruction:
> --
> ==> ${parameters.parseContent?string} [on line 45, column 26 in
> template/ajax/head.ftl]
> --
> 
> Java backtrace for programmers:
> --
> freemarker.core.InvalidReferenceException: Expression
> parameters.parseContent is undefined on line 45, column 28 in
> template/ajax/head.ftl.
>   at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
>   at
> freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
>   at 
> freemarker.core.BuiltIn$stringBI._getAsTemplateModel(BuiltIn.java:358)
>   at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
>   at freemarker.core.Expression.getStringValue(Expression.java:93)
>   at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
>   at freemarker.core.Environment.visit(Environment.java:208)
>   at freemarker.core.MixedContent.accept(MixedContent.java:92)
>   at freemarker.core.Environment.visit(Environment.java:208)
>   at freemarker.core.Environment.process(Environment.java:188)
>   at freemarker.template.Template.process(Template.java:237)
>   at
> org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:185)
> 
> I dont what is freemarker also.
> I am using all new jar files downloaded from struts-2.1.2-lib.zip from the
> downloaded page which is under Beta release.
> How to resolve this error.
> 
> Thanks and Regards
> RAtna
> 
> 
> 
> 
> 
> 
> newton.dave wrote:
>> 
>> --- On Wed, 6/11/08, nani2ratna <[EMAIL PROTECTED]> wrote:
>>> can any body tell me what is the release date of struts 2.1
>> 
>> Probably not: there are, in general, no scheduled releases.
>> 
>>> So that i can get struts-dojo-tags.tld, if this tld file is
>>> already available please send me the link.
>> 
>> If you want to use S2.1 you need to get either a test release or build it
>> from source. 
>> 
>> Whether or not it's appropriate for your application is something only
>> you can answer; I've found it to be fine, but there are edge cases that
>> might be significant depending on your environment, usage, etc.
>> 
>> Dave
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Release-Date-Of-Struts-2.1-Is-it-Reliable---tp17787281p17788393.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Release Date Of Struts 2.1 ??? Is it Reliable ?????

2008-06-11 Thread nani2ratna

Hi,

But its giving error like 

FreeMarker template error!



Expression parameters.parseContent is undefined on line 45, column 28 in
template/ajax/head.ftl.
The problematic instruction:
--
==> ${parameters.parseContent?string} [on line 45, column 26 in
template/ajax/head.ftl]
--

Java backtrace for programmers:
--
freemarker.core.InvalidReferenceException: Expression
parameters.parseContent is undefined on line 45, column 28 in
template/ajax/head.ftl.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
at 
freemarker.core.BuiltIn$stringBI._getAsTemplateModel(BuiltIn.java:358)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at
org.apache.struts2.components.template.FreemarkerTemplateEngine.renderTemplate(FreemarkerTemplateEngine.java:185)

I dont what is freemarker also.
I am using all new jar files downloaded from struts-2.1.2-lib.zip from the
downloaded page which is under Beta release.
How to resolve this error.

Thanks and Regards
RAtna






newton.dave wrote:
> 
> --- On Wed, 6/11/08, nani2ratna <[EMAIL PROTECTED]> wrote:
>> can any body tell me what is the release date of struts 2.1
> 
> Probably not: there are, in general, no scheduled releases.
> 
>> So that i can get struts-dojo-tags.tld, if this tld file is
>> already available please send me the link.
> 
> If you want to use S2.1 you need to get either a test release or build it
> from source. 
> 
> Whether or not it's appropriate for your application is something only you
> can answer; I've found it to be fine, but there are edge cases that might
> be significant depending on your environment, usage, etc.
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Release-Date-Of-Struts-2.1-Is-it-Reliable---tp17787281p17788328.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts Excel download using POI... throwing java.lang.IllegalStateException

2008-06-11 Thread Chris Pratt
You can either send the excel file or redirect the user, not both.
You're getting the error because once you've sent the excel file,
you're trying to send the redirect but the stream has already been
used.
  (*Chris*)

On Wed, Jun 11, 2008 at 2:37 PM,  <[EMAIL PROTECTED]> wrote:
> I have a button on jsp on clicl of which the request goes to the Struts 
> action where I am trying to use POI to create a excel file . It goes back to 
> the right jsp as per the "forward" but no download option. I keep getting the 
> following exception...
>
> Appreciate if anyone can help me with this..
> java.lang.IllegalStateException
> [6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
> com.ibm.wps.pe.pc.legacy.impl.PortletResponseImpl.setHeader(PortletResponseImpl.java:450)
> [6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
> javax.servlet.http.HttpServletResponseWrapper.setHeader(HttpServletResponseWrapper.java:194)
> [6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
> com.strykercorp.e3s.stellent.actions.SearchResultsAction.execute(SearchResultsAction.java:275)
> [6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
> com.ibm.wps.portlets.struts.WpsRequestProcessor.processActionPerform(WpsRequestProcessor.java:344)
> [6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
> [6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
> com.ibm.wps.portlets.struts.WpsRequestProcessor.processNewActionUri(WpsRequestProcessor.java:863)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts Excel download using POI... throwing java.lang.IllegalStateException

2008-06-11 Thread gec_anita
I have a button on jsp on clicl of which the request goes to the Struts action 
where I am trying to use POI to create a excel file . It goes back to the right 
jsp as per the "forward" but no download option. I keep getting the following 
exception...

Appreciate if anyone can help me with this..
java.lang.IllegalStateException
[6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
com.ibm.wps.pe.pc.legacy.impl.PortletResponseImpl.setHeader(PortletResponseImpl.java:450)
[6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
javax.servlet.http.HttpServletResponseWrapper.setHeader(HttpServletResponseWrapper.java:194)
[6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
com.strykercorp.e3s.stellent.actions.SearchResultsAction.execute(SearchResultsAction.java:275)
[6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
com.ibm.wps.portlets.struts.WpsRequestProcessor.processActionPerform(WpsRequestProcessor.java:344)
[6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
[6/11/08 12:16:16:839 PDT] 6f09c13b SystemErr R at 
com.ibm.wps.portlets.struts.WpsRequestProcessor.processNewActionUri(WpsRequestProcessor.java:863)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Release Date Of Struts 2.1 ??? Is it Reliable ?????

2008-06-11 Thread Dave Newton
--- On Wed, 6/11/08, nani2ratna <[EMAIL PROTECTED]> wrote:
> can any body tell me what is the release date of struts 2.1

Probably not: there are, in general, no scheduled releases.

> So that i can get struts-dojo-tags.tld, if this tld file is
> already available please send me the link.

If you want to use S2.1 you need to get either a test release or build it from 
source. 

Whether or not it's appropriate for your application is something only you can 
answer; I've found it to be fine, but there are edge cases that might be 
significant depending on your environment, usage, etc.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Release Date Of Struts 2.1 ??? Is it Reliable ?????

2008-06-11 Thread nani2ratna

Hi,


can any body tell me what is the release date of struts 2.1
So that i can get struts-dojo-tags.tld, if this tld file is already
available please send me the link.
And is it reliable, because in struts-dojo-tags plugin only i saw 44 issues.
I am starting my project now, which one i have to use, either struts 2.1
/struts 2.0.
PLease guide me, so that i can set up one framework for my company and i
will start my work.

Thanks and Regards
RAtna
-- 
View this message in context: 
http://www.nabble.com/Release-Date-Of-Struts-2.1-Is-it-Reliable---tp17787281p17787281.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with action-redirect

2008-06-11 Thread Dave Newton
That's a warning issued because params may be set either the action or on a 
result. It may go away if you turn devMode off; I don't recall what the current 
status of this issue is.

Dave

--- On Wed, 6/11/08, Felipe Lorenz <[EMAIL PROTECTED]> wrote:

> From: Felipe Lorenz <[EMAIL PROTECTED]>
> Subject: Re: Problems with action-redirect
> To: "Struts Users Mailing List" , [EMAIL PROTECTED]
> Date: Wednesday, June 11, 2008, 4:03 PM
> oooppps.. my bad
> 
> And i use struts 2.0.11
> 
> WARNING: Caught OgnlException while setting property
> 'candidatoExt.codIdFeder' on type
> 'org.apache.struts2.dispatcher.ServletActionRedirectResult'.
> ognl.NoSuchPropertyException:
> org.apache.struts2.dispatcher.ServletActionRedirectResult.candidatoExt
> at
> ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
> at
> com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.getProperty(OgnlValueStack.java:58)
> at
> ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1643)
> at
> ognl.ASTProperty.getValueBody(ASTProperty.java:92)
> at
> ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
> at ognl.SimpleNode.getValue(SimpleNode.java:210)
> at ognl.ASTChain.setValueBody(ASTChain.java:168)
> at
> ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
> at ognl.SimpleNode.setValue(SimpleNode.java:246)
> at ognl.Ognl.setValue(Ognl.java:476)
> at
> com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
> at
> com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(OgnlUtil.java:360)
> at
> com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76)
> at
> com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49)
> at
> org.apache.struts2.impl.StrutsObjectFactory.buildResult(StrutsObjectFactory.java:95)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:195)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:342)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
> at
> com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
> at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
> at
> com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
> at
> org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
> at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
> at
> com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
> at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
> at
> com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:167)
> at
> com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
> at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
> at
> com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
> at
> com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
> at
> com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
> at
> com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept

Re: select tag list listKey and listValue usage

2008-06-11 Thread Dave Newton
Here's a thought experiment:

If you did a "view source" on your page what do you want to appear as the value 
in the option tag? In other words, what would be where the "XXX" is below?

A name from the list

The "only" thing HTTP will send is a string. S2's type conversion can be used 
to convert the string to something else (like, say, an Integer or a Long, or 
anything else if you have appropriate type conversion in place).

This value may be *used* to instantiate an object of the desired type, but it 
will be instantiated using whatever string value is sent as the value of the 
.

The shorter answer is "you can't do that, that's not how web apps work".

Dave

--- On Wed, 6/11/08, akash agrawal <[EMAIL PROTECTED]> wrote:
> From: akash agrawal <[EMAIL PROTECTED]>
> Subject: Re: select tag list listKey and listValue usage
> To: "Struts Users Mailing List" 
> Date: Wednesday, June 11, 2008, 3:59 PM
> In the value attribute I am expecting to see the name (name
> is a property on my bean) and I get that correctly by
> specifying listValue="name". In the listKey, I
> would like to set the object itself instead of another
> property. 
> 
> Further when this form is submitted the whole object is set
> on the action.
> 
> Does this clarify?
> 
> Thx.
> 
> 
> --- On Wed, 6/11/08, Dave Newton
> <[EMAIL PROTECTED]> wrote:
> 
> > From: Dave Newton <[EMAIL PROTECTED]>
> > Subject: Re: select tag list listKey and listValue
> usage
> > To: "Struts Users Mailing List"
> 
> > Date: Wednesday, June 11, 2008, 12:52 PM
> > --- On Wed, 6/11/08, akash agrawal
> > <[EMAIL PROTECTED]> wrote:
> > > How do I populate listKey with the object itself?
> > 
> > What would that mean? What are you expecting to see in
> the
> > "value" attribute of the HTML
> 
> > element?
> > 
> > Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: select tag list listKey and listValue usage

2008-06-11 Thread Michael Gagnon
I'm not sure that makes sense. At the end, the client is just getting some
html with a regular 'option' tag in it. The best you can do is set pass some
unique id for the key and then fetch the object back when the form is
submitted with the unique key

-Original Message-
From: akash agrawal [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2008 3:59 PM
To: Struts Users Mailing List
Subject: Re: select tag list listKey and listValue usage

In the value attribute I am expecting to see the name (name is a property on
my bean) and I get that correctly by specifying listValue="name". In the
listKey, I would like to set the object itself instead of another property. 

Further when this form is submitted the whole object is set on the action.

Does this clarify?

Thx.


--- On Wed, 6/11/08, Dave Newton <[EMAIL PROTECTED]> wrote:

> From: Dave Newton <[EMAIL PROTECTED]>
> Subject: Re: select tag list listKey and listValue usage
> To: "Struts Users Mailing List" 
> Date: Wednesday, June 11, 2008, 12:52 PM
> --- On Wed, 6/11/08, akash agrawal
> <[EMAIL PROTECTED]> wrote:
> > How do I populate listKey with the object itself?
> 
> What would that mean? What are you expecting to see in the
> "value" attribute of the HTML 
> element?
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with action-redirect

2008-06-11 Thread Felipe Lorenz
oooppps.. my bad

And i use struts 2.0.11

WARNING: Caught OgnlException while setting property
'candidatoExt.codIdFeder' on type
'org.apache.struts2.dispatcher.ServletActionRedirectResult'.
ognl.NoSuchPropertyException:
org.apache.struts2.dispatcher.ServletActionRedirectResult.candidatoExt
at
ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
at
com.opensymphony.xwork2.util.OgnlValueStack$ObjectAccessor.getProperty(OgnlValueStack.java:58)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1643)
at ognl.ASTProperty.getValueBody(ASTProperty.java:92)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170)
at ognl.SimpleNode.getValue(SimpleNode.java:210)
at ognl.ASTChain.setValueBody(ASTChain.java:168)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:177)
at ognl.SimpleNode.setValue(SimpleNode.java:246)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork2.util.OgnlUtil.setValue(OgnlUtil.java:186)
at
com.opensymphony.xwork2.util.OgnlUtil.internalSetProperty(OgnlUtil.java:360)
at
com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:76)
at
com.opensymphony.xwork2.util.OgnlUtil.setProperties(OgnlUtil.java:49)
at
org.apache.struts2.impl.StrutsObjectFactory.buildResult(StrutsObjectFactory.java:95)
at
com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:195)
at
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:342)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:253)
at
com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:221)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:150)
at
org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:48)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:167)
at
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:105)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:224)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:223)
at
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
at
org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:83)
at
com.opensymphony.xwork2.DefaultActionInvocation$2.doPro

Re: select tag list listKey and listValue usage

2008-06-11 Thread akash agrawal
In the value attribute I am expecting to see the name (name is a property on my 
bean) and I get that correctly by specifying listValue="name". In the listKey, 
I would like to set the object itself instead of another property. 

Further when this form is submitted the whole object is set on the action.

Does this clarify?

Thx.


--- On Wed, 6/11/08, Dave Newton <[EMAIL PROTECTED]> wrote:

> From: Dave Newton <[EMAIL PROTECTED]>
> Subject: Re: select tag list listKey and listValue usage
> To: "Struts Users Mailing List" 
> Date: Wednesday, June 11, 2008, 12:52 PM
> --- On Wed, 6/11/08, akash agrawal
> <[EMAIL PROTECTED]> wrote:
> > How do I populate listKey with the object itself?
> 
> What would that mean? What are you expecting to see in the
> "value" attribute of the HTML 
> element?
> 
> Dave
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]


  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problems with action-redirect

2008-06-11 Thread Dave Newton
--- On Wed, 6/11/08, Felipe Lorenz <[EMAIL PROTECTED]> wrote:
> Im did try a action-redirect, but it throw a exception.
> And i dont know why, cause i use it in other action-redirect 
> and work. What can be?
> 
You didn't even say what the exception was or provide any information about 
under what circumstances the exception was thrown.

So to answer your question it could be just about anything, as I don't see 
anything obviously wrong with your configuration.

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: select tag list listKey and listValue usage

2008-06-11 Thread Dave Newton
--- On Wed, 6/11/08, akash agrawal <[EMAIL PROTECTED]> wrote:
> How do I populate listKey with the object itself?

What would that mean? What are you expecting to see in the "value" attribute of 
the HTML  element?

Dave


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problems with action-redirect

2008-06-11 Thread Felipe Lorenz
Hi folks...

Im did try a action-redirect, but it throw a exception.
And i dont know why, cause i use it in other action-redirect and work. What
can be?

Here is my action-redirect work:



/load_dadosPessoais
true
${cpf}

/TH_Login.jsp
/TH_Login.jsp


And here dont work:



/load_endereco
true
222

/TH_DadosPessoais.jsp
/TH_DadosPessoais.jsp


And here is my struts.xml:







/load_dadosPessoais
true
${cpf}

/TH_Login.jsp
/TH_Login.jsp




/load_endereco
true
222

/TH_DadosPessoais.jsp
/TH_DadosPessoais.jsp


/TH_DadosPessoais.jsp
/TH_DadosPessoais.jsp
/TH_DadosPessoais.jsp



/TH_FormAcademic.jsp
/TH_Endereco.jsp
/TH_Endereco.jsp


/TH_Endereco.jsp
/TH_Endereco.jsp
/TH_Endereco.jsp



/TH_ExpProfissional.jsp
/TH_FormAcademic.jsp
/TH_FormAcademic.jsp


/finish.jsp
/TH_ExpProfissional.jsp
/TH_ExpProfissional.jsp




/index.html


/index.html


/index.html


/TH_FormAcademicCursoSelect.jsp


/index.html


/TH_FormAcademicCurso.jsp


/TH_FormAcademicCurso.jsp


/TH_ExpProfiEnder.jsp


/TH_ExpProfisionais.jsp


/TH_ExpProfisionais.jsp



/TH_ExpProfissional.jsp
/TH_Documentos.jsp
/TH_Documentos.jsp




And my ActionsClass have all get and set methods

Thanks advice.

Felipe A. Lorenz
www.idealogic.com.br


select tag list listKey and listValue usage

2008-06-11 Thread akash agrawal
Hi,

1. I have a list of objects which I use to populate select tag (using list 
attribute)
2. Use a property on that object for the listValue.

How do I populate listKey with the object itself?

Thx,

-Akash



  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Confused about s:include

2008-06-11 Thread Jim Kiley
I guess I could just use , huh?  It's amazing how these insights
reach me five minutes after I send mail to the list.

jk

On Wed, Jun 11, 2008 at 3:01 PM, Jim Kiley <[EMAIL PROTECTED]> wrote:

> Hey gang,
>
> *Struts 2 In Action* suggests that I can use the name of an action in the
> 'value' attribute of the  tag.  However, when I try  value="myAction"/> or  or even
>  I get bupkus (in fact, the
> including page doesn't even render).  The tag works fine if I feed it a
> JSP's name instead of an action name.
>
> Can anyone point me in the right direction here?
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com




-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com


Confused about s:include

2008-06-11 Thread Jim Kiley
Hey gang,

*Struts 2 In Action* suggests that I can use the name of an action in the
'value' attribute of the  tag.  However, when I try  or  or even
 I get bupkus (in fact, the
including page doesn't even render).  The tag works fine if I feed it a
JSP's name instead of an action name.

Can anyone point me in the right direction here?

-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com


Re: Problem with Struts 2+ Spring 2 + JPA + Ajax

2008-06-11 Thread nani2ratna

Hi,

This problem was occured because, i upload some jar file from spring
framework.
I have deleted them, and because i am using Sql Server 2005.
My datasource settings in applicationContext.xml is 









Now another error casunig,
that is 

SEVERE: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'personService': Injection of persistence methods failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in ServletContext
resource [/WEB-INF/applicationContext.xml]: Cannot create inner bean
'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#170bea5' of
type [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter] while
setting bean property 'jpaVendorAdapter'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name
'org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter#170bea5'
defined in ServletContext resource [/WEB-INF/applicationContext.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter]:
Constructor threw exception; nested exception is
java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:324)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:996)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:470)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:729)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381)
at
org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at
org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at
org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
at 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
at 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'entityManagerFactory' defined in ServletContext
resource [/WEB-INF/applicationContext.xml]: Cannot create inner bean
'org.springframework.orm.jpa.v

Re: Problem with Struts 2+ Spring 2 + JPA + Ajax

2008-06-11 Thread nani2ratna

Hi thanks for your reply.
It solved that problem but giving another problem

this time exception is

SEVERE: Exception sending context initialized event to listener instance of
class org.springframework.web.context.ContextLoaderListener
java.lang.NoSuchMethodError:
org.springframework.util.ReflectionUtils.makeAccessible(Ljava/lang/reflect/Constructor;)V


Thanks
Ratna

Jeromy Evans - Blue Sky Minds wrote:
> 
> nani2ratna wrote:
>> Hi,
>>
>>
>> SEVERE: Context initialization failed
>> org.springframework.beans.factory.BeanDefinitionStoreException: Line 11
>> in
>> XML document from ServletContext resource
>> [/WEB-INF/applicationContext.xml]
>> is invalid; nested exception is org.xml.sax.SAXParseException: Document
>> root
>> element "beans", must match DOCTYPE root "null".
>> org.xml.sax.SAXParseException: Document root element "beans", must match
>> DOCTYPE root "null".
>>   
> 
> This problem is commonly caused by including a spring 1.x jar in your 
> application instead of/as well as a spring 2.  Have a look at the jars 
> in WEB-INF/lib and ensure spring 1.x isn't there.  If it is, find the 
> source and remove it.
> 
> Hope that helps,
>  Jeromy Evans
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-Struts-2%2B-Spring-2-%2B-JPA-%2B-Ajax-tp1018p17780219.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Dave Belfer-Shevett

Lukasz Lenart wrote:

My understanding is that the webwork API for ApplicationAware means that the
interceptor will have it's setApplication(Map applicationData); triggered
when the interceptor is run, thereby giving me access to the
applicationcontext.


ApplicationAware should be used with Actions not with interceptors, to
access application just use

public String intercept(ActionInvocation invocation)  {
Map appScope = invocation.getInvocationContext().getApplication();
}


That's done it, thank you very much.  I was really stymied.

-dbs

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Jeromy Evans

Dave Belfer-Shevett wrote:
Hi folks - i'm trying to write an interceptor in struts2 that has 
access to the ApplicationMap in the application context.


My understanding is that the webwork API for ApplicationAware means 
that the interceptor will have it's setApplication(Map 
applicationData); triggered when the interceptor is run, thereby 
giving me access to the applicationcontext.




The ApplicationAware interface only applies to actions.  It's actually a 
feature of the ServletConfigInterceptor.  That interceptor inspects the 
target action for the interface and injects the Map if present.


XWork's dependency injection uses the @Inject annotation on properties 
and constructions.  It can inject beans it knows of, however the 
application context is not one of them.


The simplest way to access the application context in your interceptor 
is via the ActionInvocation argument:


ie. Map applicationContext = 
actionInvocation.getIncovationContext().getApplication();


You can also inject beans directly into you interceptor via spring or 
guice if you're using one of those DI frameworks.


Hope that helps,
Jeromy Evans


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts s:head theme=Ajax

2008-06-11 Thread Jeromy Evans

Onur Idrisoglu wrote:

Cédric,
thanks, i read the mail archive, maybe copying all javascript files to
the struts folder would help, but i dont wanna do that...
Actually it was working in my own tomcat application, but i deployed
it to a shared tomcat, and now js files cannot be found...
If i could change a parameter and tell struts to look at x folder
instead of struts, it would help..
I dunno..
  


In your shared installation, it's possible that apache is in front of 
tomcat and is setup to apache serve the javascript files instead of tomcat.


In struts 2.0.x, if struts 2 is serving the static files from the jar 
they must be located in /struts/


If you wish to serve them from somewhere else you can do so by:
 [1] setting the baseRelativePath attribute of the head tag so a 
different value; or
 [2] change the template of the head tag to provide different settings 
to dojo.


You will need to ensure the scripts are available at the alternate path.

The performance improvement by serving static files from apache instead 
of tomcat is significant.


[1] http://struts.apache.org/2.0.11.1/docs/dojo-head.html
[2] http://struts.apache.org/2.0.11.1/docs/themes-and-templates.html


Hope that helps,
Jeromy Evans

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Lukasz Lenart
> My understanding is that the webwork API for ApplicationAware means that the
> interceptor will have it's setApplication(Map applicationData); triggered
> when the interceptor is run, thereby giving me access to the
> applicationcontext.

ApplicationAware should be used with Actions not with interceptors, to
access application just use

public String intercept(ActionInvocation invocation)  {
Map appScope = invocation.getInvocationContext().getApplication();
}


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to debug Struts2 tag runtime problems ?

2008-06-11 Thread Ralf Fischer
Hi,

On Wed, Jun 11, 2008 at 12:55 PM, Eddie Lau TO <[EMAIL PROTECTED]> wrote:
> For example,
> using 
> if the value supplied into list attribute is wrong,
> the translated page start from the position of  tag will be blank.
>
> How to get more information of tag-related problem for troubleshooting ?

Is the box "really" empty or did just the listKey/listValue
expressions on each item of the list fail?

When the select box is "really" empty and you (want) fill it with a
value from either your action or your model, most likely the OGNL
expression is wrong. Thus it would help to increase the log level of
OGNL, as it evaluates the expression handed as list and will then
report the error. IIRC this can be done by configuring some log4j
log4j appenders, but you'll have to look up the correct
categories/loggers which will do the trick.

If this gives no viable insights you always can get the
struts/xwork/ognl code involed, attatch it to your project and debug
the code directly in your container using the shared memory or remote
debugging interface of your JVM. Most likely it will suffice to break
in the struts component class which is invoked by the tag, then check
the list expression which was set into it and try to find the object
yourself by hand by inspecting the ValueStack object in the struts
component. The errorrous part of the expression should become obvious
then.

My 2 cents, hope they help.

Bye,
-Ralf

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



ApplicationAware not triggering setApplication? Or, how best to reference a Connection pool?

2008-06-11 Thread Dave Belfer-Shevett
Hi folks - i'm trying to write an interceptor in struts2 that has access 
to the ApplicationMap in the application context.


My understanding is that the webwork API for ApplicationAware means that 
the interceptor will have it's setApplication(Map applicationData); 
triggered when the interceptor is run, thereby giving me access to the 
applicationcontext.


Problem is, it isn't :)

Here's the relevant parts...

public class DBInterceptor extends AbstractInterceptor implements 
ApplicationAware {


...

@Override
public void setApplication(Map arg0) {
logger.info("Receiving applicationMap...");
this.applicationMap = arg0;
}

That logger is never triggered, 'applicationMap' is always null.

My struts.xml is:

	class="com.stonekeep.congo.interceptors.DBInterceptor" />







(The goal here is to store a c3p0 connection pool object in the 
application context, so that I can get a connection from it on every hit 
- I assume this is the proper way to do this?)


Thanks, any help would be appreciated...

-dbs

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Struts 2+ Spring 2 + JPA + Ajax

2008-06-11 Thread Jeromy Evans

nani2ratna wrote:

Hi,


SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Line 11 in
XML document from ServletContext resource [/WEB-INF/applicationContext.xml]
is invalid; nested exception is org.xml.sax.SAXParseException: Document root
element "beans", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "beans", must match
DOCTYPE root "null".
  


This problem is commonly caused by including a spring 1.x jar in your 
application instead of/as well as a spring 2.  Have a look at the jars 
in WEB-INF/lib and ensure spring 1.x isn't there.  If it is, find the 
source and remove it.


Hope that helps,
Jeromy Evans

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Determining an Action's class

2008-06-11 Thread Onur Idrisoglu
yep, it took me hours to learn how to turn it on:)

On Wed, Jun 11, 2008 at 4:02 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> Unless dynamic method invocation is turned off.
>
>
> --- On Wed, 6/11/08, Onur Idrisoglu <[EMAIL PROTECTED]> wrote:
>
>> From: Onur Idrisoglu <[EMAIL PROTECTED]>
>> Subject: Re: Determining an Action's class
>> To: "Struts Users Mailing List" 
>> Date: Wednesday, June 11, 2008, 7:28 AM
>> while calling the action in for,
>> use this format : action!method
>>
>>
>> On Wed, Jun 11, 2008 at 1:50 PM, Kiesewetter S., ITSC Bonn,
>> RV, EF,
>> extern <[EMAIL PROTECTED]> wrote:
>> >> yes you can,
>> >>  > method="method" class="class"/>
>> >> you can even define different actions for each
>> method in class
>> >
>> > Thx for the answer, but you didn't understand the
>> question. I defined
>> > several actions. Now i want to determine the
>> class+method of an action
>> > inside of a jsp page or inside of one of the tags of
>> my own taglib.
>> >
>> >
>> -
>> > To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> > For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> >
>> >
>>
>>
>>
>> --
>> -- --
>> Onur Idrisoglu
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
-- --
Onur Idrisoglu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple Struts2 WAR in a single EAR

2008-06-11 Thread Marc Ende
In general it isn't a good idea to put those custom libs (like 
struts.jar, spring.jar) etc. in classloaders of the main
appserver. They should be in the applications-classloader so you can 
avoid classloader-issues like leaks.


If you've got the first error it sounds to me that you've got the xwork 
libs on ear level. If it's in web-inf/lib it shouldn't "see"
each other. The classloaders _should_ be seperated. I'm not sure if 
glassfish handles it correctly but I would think so.
May be you've got another xwork.jar somewhere else, which is loaded at 
first (such thing can happen if you build using maven and forgets to run 
a clean before final build.)


If you've got two identically xwork.jars (or struts.jars) in the 
classpath or in parent classpaths they will be considered as two
different types/versions. So I would think that you'll have a xwork.jar 
somewhere in your parent classpath.


The second error occures if the loaded classes from lib/ext didn't find 
the dependent classes within the current and in one of the parent 
classloaders (up to the bootclassloader). If the javax.servlet.Filter is 
loaded by a seperate classloader (which might be a child of the 
classloader (which loads the classes from lib/ext) it wouldn't  be found 
by the lib/ext classes.



Hugo de Paix de Coeur schrieb:

In fact, this was my second question, so I ask it now :)

I have had problems with deploying *struts*.jar in this special
configuration (2 war in an ear).
- I tries to put them in each .war WEB-INF/lib
  => "Error : xwork...ObjectFactory already loaded in bean projectA" at 
projectB deployment.
- I tries to put them in glassfish domain lib/ext
  => "Error : ClassLoader : Can't find javax.servlet.Filter"

So, they are for now in the glassfish "main" lib.. but there are
problems too .. at runtime.

What is the correct installation scheme for struts.jar with this
configuration ?

Thx...

On Wed, Jun 11, 2008 at 02:31:13PM +0200, Marc Ende wrote:
  

Hello,

do you deploy the struts.jar in the ear or in the WEB-INF/lib folders of 
the war-files?

if they're in the WEB-INF/lib folders they should be seperate.

Marc


Hugo de Paix de Coeur schrieb:


Hello,

I'm currently trying to deploy two Struts2 enabled .war in a single
.ear on Glassfish.

My problem is : I've no isolation between the 2 projects at the action
dispatcher level.


Project A WAR struts.xml : 






/jsp/index.jsp




Project B WAR struts.xml : 






/jsp/index.jsp



/jsp/login.jsp






1- I can call 'http://localhost:8080/ProjectA/Login.action' and this is 
the 'com.web.projectB.Login' class that is executed (even if no Login 
action is specified in Project A) because they share the namespace '/'.


2- If I call 'http://localhost:8080/ProjectA/Index.action', this is the 
'com.web.projectB.Index' class that is executed (last struts.xml to be 
parsed ?)


I've no clues to resolve this problem (the use of different namespaces 
doesn't resolve the problem either)

Any idea ?

 
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Radio button in Iterator

2008-06-11 Thread ashley_in

I want to display the information in following format:

user name   add to group  address
jack  O   blah blah
jimO   some address 
-- 
View this message in context: 
http://www.nabble.com/Radio-button-in-Iterator-tp17776089p1138.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Determining an Action's class

2008-06-11 Thread Dave Newton
Unless dynamic method invocation is turned off.


--- On Wed, 6/11/08, Onur Idrisoglu <[EMAIL PROTECTED]> wrote:

> From: Onur Idrisoglu <[EMAIL PROTECTED]>
> Subject: Re: Determining an Action's class
> To: "Struts Users Mailing List" 
> Date: Wednesday, June 11, 2008, 7:28 AM
> while calling the action in for,
> use this format : action!method
> 
> 
> On Wed, Jun 11, 2008 at 1:50 PM, Kiesewetter S., ITSC Bonn,
> RV, EF,
> extern <[EMAIL PROTECTED]> wrote:
> >> yes you can,
> >>   method="method" class="class"/>
> >> you can even define different actions for each
> method in class
> >
> > Thx for the answer, but you didn't understand the
> question. I defined
> > several actions. Now i want to determine the
> class+method of an action
> > inside of a jsp page or inside of one of the tags of
> my own taglib.
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 
> 
> 
> -- 
> -- --
> Onur Idrisoglu
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Struts 2+ Spring 2 + JPA + Ajax

2008-06-11 Thread nani2ratna

Hi,
I want to use Spring 2 + Struts 2.
I am trying to do an example given in 
http://struts.apache.org/2.0.11.1/docs/struts-2-spring-2-jpa-ajax.html
http://struts.apache.org/2.0.11.1/docs/struts-2-spring-2-jpa-ajax.html 
I followed each and every step given in "Doing it yourself".
I have done exactly what he specified.I am using Tomcat 5.5 and java 1.5
I copied all the jars. But instead of mysql i am using sql server 2005. But
i copied the jar file for db connection. I am starting the server from
eclipse only. Now i am getting error like.

SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Line 11 in
XML document from ServletContext resource [/WEB-INF/applicationContext.xml]
is invalid; nested exception is org.xml.sax.SAXParseException: Document root
element "beans", must match DOCTYPE root "null".
org.xml.sax.SAXParseException: Document root element "beans", must match
DOCTYPE root "null".

And in eclipse, its showing error message called
The prefix "tx" for element "tx:annotation-driven" is not bound..
To solve this i copied http://www.springframework.org/schema/tx 
   http://www.springframework.org/schema/tx/spring-tx-2.0.xsd
in the beans tag-- attribute called  xsi:schemaLocation.
Even i am not getting index.jsp also.
What is the problem.
Are there any body who tried this previously.

Thanks and Regards
Ratna

-- 
View this message in context: 
http://www.nabble.com/Problem-with-Struts-2%2B-Spring-2-%2B-JPA-%2B-Ajax-tp1018p1018.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Radio button in Iterator

2008-06-11 Thread ashley_in

My entries in the iterator are value objects and I need to display all
information in my value object with radio on each row of table on my html
page.

-- 
View this message in context: 
http://www.nabble.com/Radio-button-in-Iterator-tp17776089p17776917.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Multiple Struts2 WAR in a single EAR

2008-06-11 Thread Hugo de Paix de Coeur
In fact, this was my second question, so I ask it now :)

I have had problems with deploying *struts*.jar in this special
configuration (2 war in an ear).
- I tries to put them in each .war WEB-INF/lib
  => "Error : xwork...ObjectFactory already loaded in bean projectA" at 
projectB deployment.
- I tries to put them in glassfish domain lib/ext
  => "Error : ClassLoader : Can't find javax.servlet.Filter"

So, they are for now in the glassfish "main" lib.. but there are
problems too .. at runtime.

What is the correct installation scheme for struts.jar with this
configuration ?

Thx...

On Wed, Jun 11, 2008 at 02:31:13PM +0200, Marc Ende wrote:
> Hello,
> 
> do you deploy the struts.jar in the ear or in the WEB-INF/lib folders of 
> the war-files?
> if they're in the WEB-INF/lib folders they should be seperate.
> 
> Marc
> 
> 
> Hugo de Paix de Coeur schrieb:
> >Hello,
> >
> >I'm currently trying to deploy two Struts2 enabled .war in a single
> >.ear on Glassfish.
> >
> >My problem is : I've no isolation between the 2 projects at the action
> >dispatcher level.
> >
> >
> >Project A WAR struts.xml : 
> >
> >
> >
> >
> > 
> > /jsp/index.jsp
> > 
> > 
> >
> >
> >Project B WAR struts.xml : 
> >
> >
> >
> >
> > 
> > /jsp/index.jsp
> > 
> > 
> > 
> > /jsp/login.jsp
> > 
> > 
> >
> >
> >
> >
> >1- I can call 'http://localhost:8080/ProjectA/Login.action' and this is 
> >the 'com.web.projectB.Login' class that is executed (even if no Login 
> >action is specified in Project A) because they share the namespace '/'.
> >
> >2- If I call 'http://localhost:8080/ProjectA/Index.action', this is the 
> >'com.web.projectB.Index' class that is executed (last struts.xml to be 
> >parsed ?)
> >
> >I've no clues to resolve this problem (the use of different namespaces 
> >doesn't resolve the problem either)
> >Any idea ?
> >
> >  
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
Hugo de Paix de Coeur [Kabhal] 
Contacts: http://www.kabhal.org/~hugo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Radio button in Iterator

2008-06-11 Thread Jim Kiley
You don't need to use the  tag to accomplish this; you can use
the  tag.  Just put the list of options in the "list" attribute of
 (http://cwiki.apache.org/WW/radio.html has more details).

If you don't want the label displayed against the radio button, consider
changing the theme from "simple" to "xhtml."  If you don't like the way that
one works, it is remarkably easy to customize tags for your own use.  See
http://cwiki.apache.org/WW/extending-themes.html for details on that.

jk

On Wed, Jun 11, 2008 at 8:13 AM, ashley_in <[EMAIL PROTECTED]> wrote:

>
> I am newbie and need to display radio button for per entry in the iterator.
> Also, I need one of the option selected based on the attribute value in the
> entry of the iterator and I don't want the label displayed against radio
> button. How can I accomplish this using Struts2 tags? Please help
> --
> View this message in context:
> http://www.nabble.com/Radio-button-in-Iterator-tp17776089p17776089.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com


Re: Multiple Struts2 WAR in a single EAR

2008-06-11 Thread Marc Ende

Hello,

do you deploy the struts.jar in the ear or in the WEB-INF/lib folders of 
the war-files?

if they're in the WEB-INF/lib folders they should be seperate.

Marc


Hugo de Paix de Coeur schrieb:

Hello,

I'm currently trying to deploy two Struts2 enabled .war in a single
.ear on Glassfish.

My problem is : I've no isolation between the 2 projects at the action
dispatcher level.


Project A WAR struts.xml : 






/jsp/index.jsp




Project B WAR struts.xml : 






/jsp/index.jsp



/jsp/login.jsp






1- I can call 'http://localhost:8080/ProjectA/Login.action' and this is the 
'com.web.projectB.Login' class that is executed (even if no Login action is 
specified in Project A) because they share the namespace '/'.

2- If I call 'http://localhost:8080/ProjectA/Index.action', this is the 
'com.web.projectB.Index' class that is executed (last struts.xml to be parsed ?)

I've no clues to resolve this problem (the use of different namespaces doesn't 
resolve the problem either)
Any idea ?

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multiple Struts2 WAR in a single EAR

2008-06-11 Thread Hugo de Paix de Coeur
Hello,

I'm currently trying to deploy two Struts2 enabled .war in a single
.ear on Glassfish.

My problem is : I've no isolation between the 2 projects at the action
dispatcher level.


Project A WAR struts.xml : 





/jsp/index.jsp




Project B WAR struts.xml : 





/jsp/index.jsp



/jsp/login.jsp






1- I can call 'http://localhost:8080/ProjectA/Login.action' and this is the 
'com.web.projectB.Login' class that is executed (even if no Login action is 
specified in Project A) because they share the namespace '/'.

2- If I call 'http://localhost:8080/ProjectA/Index.action', this is the 
'com.web.projectB.Index' class that is executed (last struts.xml to be parsed ?)

I've no clues to resolve this problem (the use of different namespaces doesn't 
resolve the problem either)
Any idea ?

-- 
Kab

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: ajax file upload in iframe

2008-06-11 Thread nuria

Martin thanks for your replay,
I know it could be a simple error for you but I am new in ajax, struts... 
"nouInforme" is the form created in the jsp loaded in di "aplicacion". Once
submited I want the response in the same div "aplicacion". Them are there.
The library is in the correct place.
The firebug console is given an error: (but I have not idea if is other kind
of error):
event has no properties
 fixEvent(undefined)common.js (line 54)
 handleEvent(undefined)common.js (line 39)
 initz()()wz_dragdrop.js (line 391)
[Break on this error] event.preventDefault = fixEvent.preventDefault;

-- 
View this message in context: 
http://www.nabble.com/ajax-file-upload-in-iframe-tp17758498p17776093.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Radio button in Iterator

2008-06-11 Thread ashley_in

I am newbie and need to display radio button for per entry in the iterator.
Also, I need one of the option selected based on the attribute value in the
entry of the iterator and I don't want the label displayed against radio
button. How can I accomplish this using Struts2 tags? Please help
-- 
View this message in context: 
http://www.nabble.com/Radio-button-in-Iterator-tp17776089p17776089.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts s:head theme=Ajax

2008-06-11 Thread Onur Idrisoglu
Cédric,
thanks, i read the mail archive, maybe copying all javascript files to
the struts folder would help, but i dont wanna do that...
Actually it was working in my own tomcat application, but i deployed
it to a shared tomcat, and now js files cannot be found...
If i could change a parameter and tell struts to look at x folder
instead of struts, it would help..
I dunno..

On Wed, Jun 11, 2008 at 12:00 PM, Craftyman <[EMAIL PROTECTED]> wrote:
> The dojo files are located in struts-core jar (Struts 2.0.x)
> The neceesary import files are automatically done by struts
>
> You can also consult this thread :
> http://www.mail-archive.com/user@struts.apache.org/msg76807.html
> I hope i response to your answer
>
> Cédric
>
> 2008/6/11 Onur Idrisoglu <[EMAIL PROTECTED]>:
>
>> Hi everyone,
>> When s:head tag is used with theme=ajax, the necessary javascript
>> files are imported, like
>>
>> >src="/application/struts/CommonFunctions.js">
>>
>> What I would like to ask is, can we define where to look for this
>> files, or are they in a jar file?
>> Cos my server cannot find these files.
>>
>> Thanks.
>> Onur Idrisoglu
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>



-- 
-- --
Onur Idrisoglu


Re: Determining an Action's class

2008-06-11 Thread Onur Idrisoglu
while calling the action in for,
use this format : action!method


On Wed, Jun 11, 2008 at 1:50 PM, Kiesewetter S., ITSC Bonn, RV, EF,
extern <[EMAIL PROTECTED]> wrote:
>> yes you can,
>>  
>> you can even define different actions for each method in class
>
> Thx for the answer, but you didn't understand the question. I defined
> several actions. Now i want to determine the class+method of an action
> inside of a jsp page or inside of one of the tags of my own taglib.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
-- --
Onur Idrisoglu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Determining an Action's class

2008-06-11 Thread Joakim von Brandis
Kiesewetter S., ITSC Bonn, RV, EF, extern wrote:
>> yes you can,
>>  
>> you can even define different actions for each method in class 
>> 
>
> Thx for the answer, but you didn't understand the question. I defined
> several actions. Now i want to determine the class+method of an action
> inside of a jsp page or inside of one of the tags of my own taglib.
>   
I guess you mean you want to dynamically determine the action to go to next?

In that case, how about going to one action, and in that action
determine next-step.
Then, in the struts.xml, define a chain to the correct action based on
the output.




   action1


   action2

...



(sorry for typos in xml example here, I just outline my suggestion)

Joakim

begin:vcard
fn:Joakim von Brandis
n:von Brandis;Joakim
org:mnemonic as;MSS
adr:;;Wergelandsvegen 25;Oslo;;0167;Norway
email;internet:[EMAIL PROTECTED]
title:Group leader - Managed Network Services
tel;work:+47 23 204 729
tel;cell:+47 986 69 038
url:http://www.mnemonic.no
version:2.1
end:vcard



signature.asc
Description: OpenPGP digital signature


Re: Help required on Struts-Datagrid

2008-06-11 Thread mukul.object

Hi Himanshu,
I have tried the solution suggested , it worked fine too.
But I observed having two tables to show the datagrid have one prime
difficiency:
When headers are shown in different table, it fixes the header/column-name
width also , 
When we actually represent the data in to datagrid inside second table, the
width of datagrid columns is different than the widht of column name. I mean
the width of column name and width of column content are different and hence
beneath the Nth column , it shows the data/content of N+1 coulmn.

Could you please suggest me any solution to this ?
OR 
Can you please guide me how to implement pagiantion in Struts DataGrid?

Regards
-Mukul





Himanshu Rathore wrote:
> 
> Hi Mukul,
> 
> Here is sample code. I had mentioned incorrect steps in my previous email.
> 
> 
>  
>   
> cellpadding="0" >
> 
>  
>  
> 
>
>   
>  
>  
>   
>
>  model="datagrid"
> selectionAllowed="false">
>  
>  
> 
>
>   
>  
> 
> 
> In second table wherein you will display data, I have set *title = ""*.
> 
> Hope this will solve your problem.
> 
> On 6/9/08, mukul.object <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello All,
>> I am seeking for suggestions on how can we fix the header/column-names in
>> Struts-Datagrid.
>>
>> In my jsp , I have implemented struts-datagrid and showing many rows at a
>> time.
>> While scrolling the page , the column-names/header of the datagrid also
>> scroll up and down and do not remain visible to the user.
>>
>> Is there any way to fix the column-name/header to the top of datagrid?
>>
>> Kindly suggest any solution.
>>
>> Thanks
>> -Mukul
>> --
>> View this message in context:
>> http://www.nabble.com/Help-required-on-Struts-Datagrid-tp17730148p17730148.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> 
> Regards,
> Himanshu Rathore
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help-required-on-Struts-Datagrid-tp17730148p17774885.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Determining an Action's class

2008-06-11 Thread suprie
how about   tag ??  you can define namespace, action , and
the method also

On Wed, 2008-06-11 at 12:50 +0200, Kiesewetter S., ITSC Bonn, RV, EF,
extern wrote:

> > yes you can,
> >  
> > you can even define different actions for each method in class 
> 
> Thx for the answer, but you didn't understand the question. I defined
> several actions. Now i want to determine the class+method of an action
> inside of a jsp page or inside of one of the tags of my own taglib.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


How to debug Struts2 tag runtime problems ?

2008-06-11 Thread Eddie Lau TO
For example, 
using  tag will be 
blank.

How to get more information of tag-related problem for troubleshooting ?

Thanks in advance!



Regards,
Eddie Lau



  Yahoo! Mail具備一流的網上安全保護功能,請前往 http://hk.antispam.yahoo.com/ 了解更多相關資訊!

AW: Determining an Action's class

2008-06-11 Thread Kiesewetter S., ITSC Bonn, RV, EF, extern
> yes you can,
>  
> you can even define different actions for each method in class 

Thx for the answer, but you didn't understand the question. I defined
several actions. Now i want to determine the class+method of an action
inside of a jsp page or inside of one of the tags of my own taglib.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Determining an Action's class

2008-06-11 Thread Onur Idrisoglu
yes you can,
 
you can even define different actions for each method in class


On Wed, Jun 11, 2008 at 12:47 PM, Kiesewetter S., ITSC Bonn, RV, EF,
extern <[EMAIL PROTECTED]> wrote:
> Hello there,
>
> i want to determine an action's class and method using the action's
> namespace and name. I found nothing using the documentation :-(
>
> How may i to this?
>
> Thx, Sven
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
-- --
Onur Idrisoglu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: login problem

2008-06-11 Thread Anet
Hi;
Thank you Laurie.
It works if I take out the saveToken / isTokenValid 
stuff? The login process works correctly and it comes to my action class.
But I won't be able to control duplicate submission. 
 
Anet.

--- On Tue, 6/3/08, Laurie Harper <[EMAIL PROTECTED]> wrote:

From: Laurie Harper <[EMAIL PROTECTED]>
Subject: Re: login problem
To: user@struts.apache.org
Date: Tuesday, June 3, 2008, 12:16 PM

Anet wrote:
> Hi
> I have a problem with "security-constraint" in tomcat 5.5. I use
struts 1.2.
> when we used tomcat 4.1.29, there were no problem with pages needed login.
> with tomcat 5.5.17, I had to put role-names into my web.xml file to solve
login problem.
> But now I have another problem. 
> I have a form... needs login to be accessed.
> the user logins successfully.the form is shown to him.
> (in the code, saveToken() called )
> now he fills the form,but leaves his work,=>his session expired...
> the user comes back.puts the submit button and redirects to login page.
> he logins...and the process of submit should be done.
> (in the code, isTokenValid(Request) called and returns false)
> it is expected to continue the process...
> I didn't have this problem while using tomcat 4.1 .
> Would you mind help me for it? I have no idea...

If I understand you correctly, you are using container managed security 
and seeing an inconsistency in behaviour between Tomcat 4.1.29 and 
5.5.17. Struts is not involved in CMS processing in any way, so I would 
suspect a Tomcat and/or configuration problem.

Does it work as you expect if you take out the saveToken / isTokenValid 
stuff? If that fixes the problem, there may be Struts-related issue 
here. Otherwise, you should probably pursue this on the Tomcat forums.

L.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  

Determining an Action's class

2008-06-11 Thread Kiesewetter S., ITSC Bonn, RV, EF, extern
Hello there,

i want to determine an action's class and method using the action's
namespace and name. I found nothing using the documentation :-(

How may i to this?

Thx, Sven

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help required on Struts-Datagrid

2008-06-11 Thread mukul.object

Thanks a lot Mr. Himanshu. I shall try the same and update you.
Regards
-Mukul


Himanshu Rathore wrote:
> 
> Hi Mukul,
> 
> Here is sample code. I had mentioned incorrect steps in my previous email.
> 
> 
>  
>   
> cellpadding="0" >
> 
>  
>  
> 
>
>   
>  
>  
>   
>
>  model="datagrid"
> selectionAllowed="false">
>  
>  
> 
>
>   
>  
> 
> 
> In second table wherein you will display data, I have set *title = ""*.
> 
> Hope this will solve your problem.
> 
> On 6/9/08, mukul.object <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hello All,
>> I am seeking for suggestions on how can we fix the header/column-names in
>> Struts-Datagrid.
>>
>> In my jsp , I have implemented struts-datagrid and showing many rows at a
>> time.
>> While scrolling the page , the column-names/header of the datagrid also
>> scroll up and down and do not remain visible to the user.
>>
>> Is there any way to fix the column-name/header to the top of datagrid?
>>
>> Kindly suggest any solution.
>>
>> Thanks
>> -Mukul
>> --
>> View this message in context:
>> http://www.nabble.com/Help-required-on-Struts-Datagrid-tp17730148p17730148.html
>> Sent from the Struts - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 
> -- 
> 
> Regards,
> Himanshu Rathore
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help-required-on-Struts-Datagrid-tp17730148p17773419.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts s:head theme=Ajax

2008-06-11 Thread Craftyman
The dojo files are located in struts-core jar (Struts 2.0.x)
The neceesary import files are automatically done by struts

You can also consult this thread :
http://www.mail-archive.com/user@struts.apache.org/msg76807.html
I hope i response to your answer

Cédric

2008/6/11 Onur Idrisoglu <[EMAIL PROTECTED]>:

> Hi everyone,
> When s:head tag is used with theme=ajax, the necessary javascript
> files are imported, like
>
> src="/application/struts/CommonFunctions.js">
>
> What I would like to ask is, can we define where to look for this
> files, or are they in a jar file?
> Cos my server cannot find these files.
>
> Thanks.
> Onur Idrisoglu
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: struts 2.0, spring and GWT

2008-06-11 Thread nani2ratna

Hi Chris,
Thanks a lot.
And the info you have given helps me a lot.
I got confidence.
And here i found the place where encouraging the people who has less
experience to develop a frameowrk on theri own.
I am feeling very gr8 abt ur reply.
Can you give me your mail id so that in future if i have a doubt i can
contact you.
And another doubt is did you follow any material to wire spring and struts.
Can you explain about your business layer.

Thanks in Advance.
Ratna Sekhar


We are developing a large scale application using Spring, String 2, &
Tiles.  They were very easy to wire together and have been performing
quite well under load.  We have not yet needed the Ajax support, nor
any GWT/DWR/JSON libraries.  Hope that helps.
  (*Chris*)

-- 
View this message in context: 
http://www.nabble.com/struts-2.0%2C-spring-and-GWT-tp17760951p17773070.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts s:head theme=Ajax

2008-06-11 Thread Onur Idrisoglu
Hi everyone,
When s:head tag is used with theme=ajax, the necessary javascript
files are imported, like



What I would like to ask is, can we define where to look for this
files, or are they in a jar file?
Cos my server cannot find these files.

Thanks.
Onur Idrisoglu

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]