Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Nuwan Chandrasoma

Hi Peder,

This looks ok for me, try by adding  "struts.objectFactory = spring" into 
struts.properties file and see


Thanks,

Nuwan.

- Original Message - 
From: "Peder Larsen" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Saturday, December 23, 2006 3:31 AM
Subject: Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener 
doesnt work.




Ok my config is:
applicationContext.xml,

http://www.springframework.org/schema/beans";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xmlns:aop="http://www.springframework.org/schema/aop";
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
  http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd";>

   
   
   
   

struts.xml,

http://struts.apache.org/dtds/struts-2.0.dtd";>

   
   
   
 
 
   
   
 
   

   

   
   /ftl/index.ftl
   
   

web.xml,


http://java.sun.com/xml/ns/j2ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

 Test webapp

  
contextConfigLocation
classpath*:applicationContext*.xml
  

   
   action2-cleanup
   org.apache.struts2.dispatcher.ActionContextCleanUp

   
   
   action2
   org.apache.struts2.dispatcher.FilterDispatcher

   
   
   requestContextFilter
   org.springframework.web.filter.RequestContextFilter

   
   
   requestContextFilter
   /*
   
   
   action2-cleanup
   /*
   
   
   action2
   /*
   

   
   
org.springframework.web.context.ContextLoaderListener
   
   
   index.jsp
   


Whew! That is a long listing, i've also tried with the
org.springframework.web.context.request.RequestContextListener listener 
but

run in the same problem.

Also tried what nuwan chandrasoma suggested in the thread above this but
i've already tried that.

So anyone spots whats missing?

Thanks for all help.
On 12/23/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:


On 12/22/06, Peder Larsen <[EMAIL PROTECTED]> wrote:

> I've been trying for some time now to get my basic struts2 test up and
> running. The problem i have is that i need to inject one UserInfo pr
session
> into my FooAction. I want to use spring2 for this since it has better
> "scope" support than spring1.

Are you using the 2.0.1 beta release?

> Anyone know what i might do to fix it?

Post the relevant parts of your configuration files and code, and see
if someone can spot the problem.

--
Wendy

-
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: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Peder Larsen

Ok my config is:
applicationContext.xml,

http://www.springframework.org/schema/beans";
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xmlns:aop="http://www.springframework.org/schema/aop";
  xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
  http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop.xsd";>

   
   
   
   

struts.xml,

http://struts.apache.org/dtds/struts-2.0.dtd";>

   
   
   
 
 
   
   
 
   

   

   
   /ftl/index.ftl
   
   

web.xml,


http://java.sun.com/xml/ns/j2ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

 Test webapp

  
contextConfigLocation
classpath*:applicationContext*.xml
  

   
   action2-cleanup
   org.apache.struts2.dispatcher.ActionContextCleanUp

   
   
   action2
   org.apache.struts2.dispatcher.FilterDispatcher

   
   
   requestContextFilter
   org.springframework.web.filter.RequestContextFilter

   
   
   requestContextFilter
   /*
   
   
   action2-cleanup
   /*
   
   
   action2
   /*
   

   
   
org.springframework.web.context.ContextLoaderListener
   
   
   index.jsp
   


Whew! That is a long listing, i've also tried with the
org.springframework.web.context.request.RequestContextListener listener but
run in the same problem.

Also tried what nuwan chandrasoma suggested in the thread above this but
i've already tried that.

So anyone spots whats missing?

Thanks for all help.
On 12/23/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:


On 12/22/06, Peder Larsen <[EMAIL PROTECTED]> wrote:

> I've been trying for some time now to get my basic struts2 test up and
> running. The problem i have is that i need to inject one UserInfo pr
session
> into my FooAction. I want to use spring2 for this since it has better
> "scope" support than spring1.

Are you using the 2.0.1 beta release?

> Anyone know what i might do to fix it?

Post the relevant parts of your configuration files and code, and see
if someone can spot the problem.

--
Wendy

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




Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Nuwan Chandrasoma

Hi Peder,

I have used spring2 with struts2 for a small example app.., it worked for 
me, i will list you what i have done.


1. I have spring 2.0 jars and struts struts 2.0 jar
2. got hold of the applicationContext.xml for spring 2.0 , which has the DTD
   "http://www.springframework.org/dtd/spring-beans-2.0.dtd";>


3. change the web.xml to use the the new listener that enables the scope 
variable in spring 2.0

   
   
org.springframework.web.context.request.RequestContextListener
   
4. coded my struts action they way it is mentioned in this post
  http://jroller.com/page/TedHusted?entry=struts_2_spring_love_fest

5. add the lines to the applictionContext.xml which i want to inject to my 
action, with socpe attribute speficed.



   
   


6. in my action class i have the setter and getter method and the framework 
will do the necessary things as i have enabled autodetect


   private NumberGen numGen;

   public NumberGen getNumGen() {
   return numGen;
   }

   public void setNumGen(NumberGen numGen) {
   this.numGen = numGen;
   }

This is basically what i have done and its working fine for me.

Thanks,

Nuwan



- Original Message - 
From: "Peder Larsen" <[EMAIL PROTECTED]>

To: 
Sent: Saturday, December 23, 2006 1:22 AM
Subject: Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener 
doesnt work.




Ok,
I think it would be better if some helpful soul which has successfully 
used

struts2 with spring2 to simply add their struts.xml,
applicationContext.xmland maybe also the
pom.xml for the project here so i can have a look at it.

Also maybe if you have the time shorten down the XMLs to only the 
important

parts.

Tried for several days now to get this IoC with session scope working with
no luck, and I'm on the verge of giving it up. I really want to use 
struts2

for my next project, but all this banging against the wall is frustrating.

Again, best regards
Peder Larsen




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



Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Wendy Smoak

On 12/22/06, Peder Larsen <[EMAIL PROTECTED]> wrote:


I've been trying for some time now to get my basic struts2 test up and
running. The problem i have is that i need to inject one UserInfo pr session
into my FooAction. I want to use spring2 for this since it has better
"scope" support than spring1.


Are you using the 2.0.1 beta release?


Anyone know what i might do to fix it?


Post the relevant parts of your configuration files and code, and see
if someone can spot the problem.

--
Wendy

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



Re: Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Peder Larsen

Ok,
I think it would be better if some helpful soul which has successfully used
struts2 with spring2 to simply add their struts.xml,
applicationContext.xmland maybe also the
pom.xml for the project here so i can have a look at it.

Also maybe if you have the time shorten down the XMLs to only the important
parts.

Tried for several days now to get this IoC with session scope working with
no luck, and I'm on the verge of giving it up. I really want to use struts2
for my next project, but all this banging against the wall is frustrating.

Again, best regards
Peder Larsen


[s2] dropdowndatetimepicker

2006-12-22 Thread Dariusz Wojtas

Hi,

I ma trying to use the dropdowndatetimepicker tag but with little success.

My Action defines field
 java.util.Date registrationDate;


And here is my JSP part:



Questions that I's like to ask:
a) how do I force the tag to load initially with a value from the property?
   If I set the property to some non-null value, it is still not displayed.

   The showcase app uses an easy way, it predefines the initial value this way:
 

   Which means the value is already formatted for the tag by hand.
   How to tell the tag to read my value from the property?
   Whatever I do - it displays empty date field when loaded from action.

b) submitting the form with date
   I'd like to display the date in format 'dd-MM-'  (Poland)
   And if I set it to the tag - it works for displaying.
   But it uses the same format to send the data when the field is submitted.
   And this causes an exception because validators cannot parse it:

22:49:53,187 ERROR - Dispatcher - Could not execute action
java.lang.NullPointerException
at 
com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:197)
at 
com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:337)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
at 
com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115)
at 
com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86)
at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
at 
com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
at 
com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
at 
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
at 
com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123)
[...]

Then I thought about using the saveFormat attribute for this purpose
but it still fails.
And here is the GET url generated by the browser for two Date
properties on a form using dropdowndatetimepicker with the settings
shown above:

displayFormat="dd-MM-"
saveFormat="-MM-dd"

/myAction.action?=2006-12-22&date1=22-12-2006&=2006-12-23&date2=23-12-2006

Such request produces stacktrace.
Looks like the datepicker has empty names for the additional
properties containing values in saveFormat.


Using Struts 2.0.2

Dariusz Wojtas

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



Re: I think I want to convert to S2 !

2006-12-22 Thread Ted Husted

The release notes covering migrating from W2 to S2. It's mainly a
matter of renaming classes. Everything that's changed or been removed
since W2 is covered in the notes.

* http://struts.apache.org/2.x/docs/release-notes-200.html
* http://struts.apache.org/2.x/docs/release-notes-201.html
* http://struts.apache.org/2.x/docs/release-notes-202.html

Other WebWork applications have been migrated to Struts 2, and I
expect Carpe Diem would be just as easy. Unfortunately, like
Hibernate, it's under the LGPL, and so we can't make it part of the
project.

-Ted.

On 12/22/06, Rick Schumeyer <[EMAIL PROTECTED]> wrote:

I am aware that S2 comes from (or merged with) WebWork.  I don't have
any idea how S2 differs from WW, or how much of the WW book still
applies to S2.

Does the example from WebWork in Action still work under S2?

If I were to purchase WebWork in Action, can someone explain which parts
still apply to S2, and which parts I should ignore?

Ted Husted wrote:
> The running example in WebWork in Action uses Hibernate. In fact, it's
> a wrapper around the auction example from Hibernate in Action.
>
> -Ted.
>
> On 12/21/06, Rick Schumeyer <[EMAIL PROTECTED]> wrote:
>> I may regret this, but I think I'm reaching the point with S1 where I'm
>> really tempted to give S2 a serious try.  My biggest concern is the
>> current state of documentation.  There are, as far as I know, no S2
>> books yet.  I am aware of the webworks book but earlier comments make me
>> think that book is somewhat out of date.  I have taken a look at the S2
>> mailreader and a couple of tutorials, and some of the docs.  I'm not
>> convinced I could build a real application without having to ask a lot
>> of questions here.
>>
>> One thing that would really help is a more detailed example.  In my
>> case, I would want to use S2 with tiles and hibernate.  I have not yet
>> seen a complete, working S2 app that implements these things.  I was
>> able to get hibernate working with S1, but the solution was not
>> obvious.  And it required me finding the correct recipe either in a book
>> or with the right google search.
>>
>> Does anyone think that a beefier example application would be useful?  I
>> would be willing to develop one if someone wanted to help me with things
>> like getting tiles and hibernate to work.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

--
Rick Schumeyer
Consultant
R. Schumeyer Consulting, LLC
www.schumeyer.com
(302) 893-4083


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





--
HTH, Ted.
* http://www.husted.com/struts/

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



Re: I think I want to convert to S2 !

2006-12-22 Thread Rick Schumeyer
I am aware that S2 comes from (or merged with) WebWork.  I don't have 
any idea how S2 differs from WW, or how much of the WW book still 
applies to S2.


Does the example from WebWork in Action still work under S2?

If I were to purchase WebWork in Action, can someone explain which parts 
still apply to S2, and which parts I should ignore?


Ted Husted wrote:

The running example in WebWork in Action uses Hibernate. In fact, it's
a wrapper around the auction example from Hibernate in Action.

-Ted.

On 12/21/06, Rick Schumeyer <[EMAIL PROTECTED]> wrote:

I may regret this, but I think I'm reaching the point with S1 where I'm
really tempted to give S2 a serious try.  My biggest concern is the
current state of documentation.  There are, as far as I know, no S2
books yet.  I am aware of the webworks book but earlier comments make me
think that book is somewhat out of date.  I have taken a look at the S2
mailreader and a couple of tutorials, and some of the docs.  I'm not
convinced I could build a real application without having to ask a lot
of questions here.

One thing that would really help is a more detailed example.  In my
case, I would want to use S2 with tiles and hibernate.  I have not yet
seen a complete, working S2 app that implements these things.  I was
able to get hibernate working with S1, but the solution was not
obvious.  And it required me finding the correct recipe either in a book
or with the right google search.

Does anyone think that a beefier example application would be useful?  I
would be willing to develop one if someone wanted to help me with things
like getting tiles and hibernate to work.


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



--
Rick Schumeyer
Consultant
R. Schumeyer Consulting, LLC
www.schumeyer.com
(302) 893-4083


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



Re: [S2] s:iterator and s:checkboxlist inside (using 2.0.2 trunk)

2006-12-22 Thread Dariusz Wojtas

I have found a solution after lots of experiments.
I am still not sure what caused the problems (I tried tons of variants
in the JSP) but finally it started to work. No changes in the action
code, only in the JSP block.
It started to work after I added jstl into the game and dropped the
s:iterate tag.



${group.desc}



Can somebody say what caused problems in the previous code I have sent?
Why did it work on the 1st invocation and failed on all other calls?

Dariusz Wojtas


On 12/22/06, Dariusz Wojtas <[EMAIL PROTECTED]> wrote:

Hi,

I have such properties in my action:

private ArrayList extensionGroups = null;
private HashMap> groupedExtensions = null;

The 1st list contains only some 'Extension' elements.
The 2nd map contains other lists of extensions (values) with some
property (treeNo) from the parent used as the key.
Then I have a JSP page with such construct somewhere in it:


${desc}



And here is a strange thing:
When I start the app and run the action for the 1st time I get nice
result AS EXPECTED:

 GROUP1
chk: extension1
chk: extension2
chk: extension3
 GROUP2
chk: extension4
chk: extension5

But after reloading the page (no extra params in the url, just plain
GET), the result is:

chk: GROUP1
chk: GROUP2

Looks like the context of the data beaing displayed is different.
But it's the same page! The same code and the same data.
After restarting the app it is again  the same behaviour.
My debugs in the actions (getters) show that the same data is returned
in all cases.

What am I doing wrong?

Dariusz Wojtas


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



index.action problem

2006-12-22 Thread Wesley Wannemacher
Hello,

I have a small problem and was wondering if anyone else has come across
it.

In Tomcat 5.5 (and possibly other versions), tomcat will check for the
existence of a file and if it doesn't exist send out a 404 before it can
be handled by struts when it comes to welcome-files...

For instance, if I have the following in my web.xml:


index.action


And someone visits a page by hitting the directory (i.e.
http://localhost/context-name/) and a valid mapping exists (maybe taking
them to index.jsp), tomcat will deliver a 404 error. However, if I make
a blank file called 'index.action,' Tomcat will appropriately handle the
request by passing it to struts. 

Has anyone else encountered this? Is there a better solution than making
a blank file called index.action? 

I tried making an index.html file, but I am also learning sitemesh and I
am having a heckuva time figuring out how to get sitemesh not to
decorate the index.html file. 

-Wes
--
Wes Wannemacher
Director of Operations
Double A Trailer Sales, Inc.
[EMAIL PROTECTED]

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



Struts2 and spring2 fails, adding RequestContextFilter/Listener doesnt work.

2006-12-22 Thread Peder Larsen

Hi

I've been trying for some time now to get my basic struts2 test up and
running. The problem i have is that i need to inject one UserInfo pr session
into my FooAction. I want to use spring2 for this since it has better
"scope" support than spring1.

But all my efforts (scamming through forums, beeing googly and downloading
test examples) hasn't resulted in this being fixed.
In the webwork2 docs it says that all i have to do is to add a filter to
web.xml and everything should work nicely.

I've done all detailed under "The Spring 2.0 Way" (adding the filter stuff
and the new xml bean definition (xsd)).
http://www.opensymphony.com/webwork/wikidocs/Spring%20Session%20Components%20Workarounds.html

But all i get in the logs is: "Caused by:
java.lang.IllegalStateException: No thread-bound request found: Are
you referring to request attributes outside of an
actual web request? If you are actually operating within a web request
and still receive this message,your code is probably running outside
of
DispatcherServlet/DispatcherPortlet: In this case, use
RequestContextListener or RequestContextFilter to expose the current
request."

Anyone know what i might do to fix it?

Best regards


Re: Version Question Pre 2.0

2006-12-22 Thread Joseph McGranaghan

I don't really know much about Spring, I never used it.

I use Torque now and haven't needed a change yet.

-Joe

Bruno Melloni wrote:

Struts 1.2.9 is particularly attractive because Spring 2.0 "officially"
supports 1.2.9.  Of course, every report I've heard is that 1.3.5 and
even Struts 2.0.x work well with Spring 2.0, but it's not the
"officially supported" version.

bruno

-Original Message-
From: Joseph McGranaghan [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 22, 2006 8:26 AM

To: Struts Users Mailing List
Subject: Re: Version Question Pre 2.0

Why not 1.3.5 with chains and stuff.

I just successfully upgraded from 1.2.9 with minor headaches.
I also use sslext and many other things.

-Joe

Jim Reynolds wrote:
  

Are there major differences between 1.24 and 1.29? I am having lots of



  
validation problems, and problems with the SSLExt in the 1.29 when I 
am trying to migrate.


I read the docs, but do not see any major changes that would cause


this?
  

Thanks

-
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]



  


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



Re: struts2 how to access a param s:include

2006-12-22 Thread Tim Azzopardi


Tim Azzopardi wrote:
> 
> If I have,
> 
> 
>   
> 
> 
> How do I access param1 in fleetSelect.jsp?
> 
> I've tried a load of combinations and can't get anything to work.
> 
> (Sorry for the dumbass question , i've read and reread the docs - i think
> I'm going snowblind)
> 
> struts-2.0.1
> 

Doh! in value="value2" above the value2 is evaluated as an ONGL expression -
its not a literal string.

If you say




or more simply


value2



then you can access the param in a jsp with:
${param.param1}
or
<%= "param1:" + request.getParameter("param1") %>


(Exactly the same thing applies to the action tag too.)
-- 
View this message in context: 
http://www.nabble.com/struts2-how-to-access-a-param-s%3Ainclude-tf2871075.html#a8027572
Sent from the Struts - User mailing list archive at Nabble.com.


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



Tiles putList question

2006-12-22 Thread Rick Mangi
Hello list,

I am trying to use a putList in tiles to insert a list of pre-defined
tile definitions.















I've tried a number of ways to render the two tiles from the list on my
final page, but I am only able to get the string "details.metatags" and
"details.headerScript" not the actual tiles themselves. Is this
something that is supported? 



Thank you for your help.

Rick Mangi





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



Validation Error

2006-12-22 Thread Jim Reynolds

I am having a bad time moving from Tomcat 4.1 to Tomcat 5.20.

I basically took a webapp and moved it to the new server, and all
functionality works except for validation.

As odd as it may seem, any form that is "required" does not forward
back to the view unless I put bad data into the field. If I put in a
blank field then it does a success and blows this error:
Anyone have any ideas?



INFO http-80-Processor4
org.apache.struts.action.SecureRequestProcessor - processPreprocess
path=/CreateAccount
INFO http-80-Processor4
org.apache.struts.action.SecureRequestProcessor - not null, try ssl
ERROR http-80-Processor4 org.apache.struts.validator.DynaValidatorForm
- org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
o
g.apache.commons.validator.ValidatorAction,
org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages, javax.servlet.http.HttpServl
tRequest)
org.apache.commons.validator.ValidatorException:
org.apache.struts.validator.FieldChecks.validateRequired(java.lang.Object,
org.apache.commons.valida
or.ValidatorAction, org.apache.commons.validator.Field,
org.apache.struts.action.ActionMessages,
javax.servlet.http.HttpServletRequest)
  at 
org.apache.commons.validator.ValidatorAction.loadValidationMethod(ValidatorAction.java:627)
  at 
org.apache.commons.validator.ValidatorAction.executeValidationMethod(ValidatorAction.java:557)
  at org.apache.commons.validator.Field.validateForRule(Field.java:811)
  at org.apache.commons.validator.Field.validate(Field.java:890)
  at org.apache.commons.validator.Form.validate(Form.java:174)
  at org.apache.commons.validator.Validator.validate(Validator.java:367)
  at 
org.apache.struts.validator.DynaValidatorForm.validate(DynaValidatorForm.java:110)
  at 
org.apache.struts.action.RequestProcessor.processValidate(RequestProcessor.java:950)
  at 
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:207)
  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at 
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
  at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
  at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
  at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
  at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
  at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
  at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
  at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
  at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
  at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
  at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
  at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
  at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
  at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
  at java.lang.Thread.run(Unknown Source)

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



struts2 how to access a param s:include

2006-12-22 Thread Tim Azzopardi

If I have,





How do I access param1 in fleetSelect.jsp?

I've tried a load of combinations and can't get anything to work.

(Sorry for the dumbass question , i've read and reread the docs - i think
I'm going snowblind)

struts-2.0.1
-- 
View this message in context: 
http://www.nabble.com/struts2-how-to-access-a-param-s%3Ainclude-tf2871075.html#a8024718
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 Layout Extension Library & Alternatives solutions

2006-12-22 Thread Andrew Martin
The basic renderer for basicCollection automatically adds multiple tables for 
the most basic list.
For example a simple layout:collection may look like this in the JSP






the HTML created contains TWO tables, the inner table containing the collection 
has fixed cellspacing/padding defined! 



  


  
name   
description
  

   
  


Looks ok, but I do not see the reasoning behind the outer table!

I managed to incorporate this structure into an already complicated CSS / HTML 
layout.
It would have been much easier if there was only one table created in the first 
place or by enabling
all attribute of the tables to be defined in the css.

I am still curious to know if there are other alternatives to struts layout 
available.

Andrew







-Oorspronkelijk bericht-
Van: nagesh.kumar [mailto:[EMAIL PROTECTED]
Verzonden: vrijdag 22 december 2006 13:10
Aan: 'Struts Users Mailing List'
Onderwerp: RE: Struts Layout Extension Library & Alternatives solutions


There is no  any hard coded we have implemented Struts:layout 

Ui changes u can done by changing the  DataGrid.css file 
TABLE.DATAGRID {
background-color:#cbe2fa;   /this is for header background
border-width=2px;
border-color: #FF;

}


Try this  

-Original Message-
From: Andrew Martin [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 22, 2006 5:21 PM
To: Struts Users Mailing List
Subject: Struts Layout Extension Library & Alternatives solutions

We are thinking about integrating the Struts Layout Extension Library into
our current struts project. 

At the moment I have the basic functionality working, but I have noticed
that there are some UI restrictions (hardcoded style attributes in the basic
collection table interface) which are annoying.

I am curious if many people have used this extension library, if so how did
you find it. 

Ideally we only want to use certain functionality within the extension
library (navigation, sorting etc) so if there are better alternatives
extensions which can provide the same functionality please let me know.

thanks,

Andrew

-
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: Version Question Pre 2.0

2006-12-22 Thread Bruno Melloni
Struts 1.2.9 is particularly attractive because Spring 2.0 "officially"
supports 1.2.9.  Of course, every report I've heard is that 1.3.5 and
even Struts 2.0.x work well with Spring 2.0, but it's not the
"officially supported" version.

bruno

-Original Message-
From: Joseph McGranaghan [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 22, 2006 8:26 AM
To: Struts Users Mailing List
Subject: Re: Version Question Pre 2.0

Why not 1.3.5 with chains and stuff.

I just successfully upgraded from 1.2.9 with minor headaches.
I also use sslext and many other things.

-Joe

Jim Reynolds wrote:
> Are there major differences between 1.24 and 1.29? I am having lots of

> validation problems, and problems with the SSLExt in the 1.29 when I 
> am trying to migrate.
>
> I read the docs, but do not see any major changes that would cause
this?
>
>
> Thanks
>
> -
> 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: I think I want to convert to S2 !

2006-12-22 Thread Musachy Barroso
I've been playing with S2, Spring and JPA (using Hibernate) on eclipse,  
I thought of writing a  quickstart tutorial and post it on the wiki.


musachy

Rick Schumeyer wrote:
I may regret this, but I think I'm reaching the point with S1 where 
I'm really tempted to give S2 a serious try.  My biggest concern is 
the current state of documentation.  There are, as far as I know, no 
S2 books yet.  I am aware of the webworks book but earlier comments 
make me think that book is somewhat out of date.  I have taken a look 
at the S2 mailreader and a couple of tutorials, and some of the docs.  
I'm not convinced I could build a real application without having to 
ask a lot of questions here.


One thing that would really help is a more detailed example.  In my 
case, I would want to use S2 with tiles and hibernate.  I have not yet 
seen a complete, working S2 app that implements these things.  I was 
able to get hibernate working with S1, but the solution was not 
obvious.  And it required me finding the correct recipe either in a 
book or with the right google search.
Does anyone think that a beefier example application would be useful?  
I would be willing to develop one if someone wanted to help me with 
things like getting tiles and hibernate to work.




-
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]



Form Bean not able to read form rendered from xml/xsl

2006-12-22 Thread Rajeev Kumar Pandey

Hi All,



I am new to this mailing list, so might not be able to pose my question
appropriately. Kindly bear with me.



I am facing an issue with use of form beans in my project to read html
forms rendered through xml/xsl.



When I use 

 UserId

 hidden

 

 



the formbean is not able to pick the value from the form. But in the
other part of the code where I use









the getter and setter method is called for the above parameter. Is there
an equivalent for xsl:element so that my action class can read UserId
from the formbean?



Thanks and Regards

Rajeev Kumar Pandey







 CAUTION - Disclaimer *
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely 
for the use of the addressee(s). If you are not the intended recipient, please 
notify the sender by e-mail and delete the original message. Further, you are 
not to copy, disclose, or distribute this e-mail or its contents to any other 
person and any such actions are unlawful. This e-mail may contain viruses. 
Infosys has taken every reasonable precaution to minimize this risk, but is not 
liable for any damage you may sustain as a result of any virus in this e-mail. 
You should carry out your own virus checks before opening the e-mail or 
attachment. Infosys reserves the right to monitor and review the content of all 
messages sent to or from this e-mail address. Messages sent to or from this 
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS End of Disclaimer INFOSYS***

Re: Version Question Pre 2.0

2006-12-22 Thread Joseph McGranaghan

Why not 1.3.5 with chains and stuff.

I just successfully upgraded from 1.2.9 with minor headaches.
I also use sslext and many other things.

-Joe

Jim Reynolds wrote:

Are there major differences between 1.24 and 1.29? I am having lots of
validation problems, and problems with the SSLExt in the 1.29 when I
am trying to migrate.

I read the docs, but do not see any major changes that would cause this?


Thanks

-
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: I think I want to convert to S2 !

2006-12-22 Thread Ted Husted

The running example in WebWork in Action uses Hibernate. In fact, it's
a wrapper around the auction example from Hibernate in Action.

-Ted.

On 12/21/06, Rick Schumeyer <[EMAIL PROTECTED]> wrote:

I may regret this, but I think I'm reaching the point with S1 where I'm
really tempted to give S2 a serious try.  My biggest concern is the
current state of documentation.  There are, as far as I know, no S2
books yet.  I am aware of the webworks book but earlier comments make me
think that book is somewhat out of date.  I have taken a look at the S2
mailreader and a couple of tutorials, and some of the docs.  I'm not
convinced I could build a real application without having to ask a lot
of questions here.

One thing that would really help is a more detailed example.  In my
case, I would want to use S2 with tiles and hibernate.  I have not yet
seen a complete, working S2 app that implements these things.  I was
able to get hibernate working with S1, but the solution was not
obvious.  And it required me finding the correct recipe either in a book
or with the right google search.

Does anyone think that a beefier example application would be useful?  I
would be willing to develop one if someone wanted to help me with things
like getting tiles and hibernate to work.


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



Re: [S2] Struts 2 GA Release Anytime Soon?

2006-12-22 Thread Ted Husted

Just to clarify my prior post, the only issues are organizational. The
AJAX support in Struts 2.0.2 is better than ever, but we are just
trying to decide whether it belongs in the Core or should be moved to
a plugin. We've already moved a number of other features to plugins,
including the Spring object factory and JSF support. Struts 2 plugins
are self-loading and self-configuring, so it's just a matter of adding
the jar to your build.

Of course, the great thing about AJAX and Struts (1 or 2) is that they
work great together out of the box. Many people have been using AJAX
with both frameworks long before the acronym was invented. :)

The AJAX theme (or plugin) uses AJAX-style JavaScript with some of the
Struts tags, giving developers AJAX enhancements without a learning
curve.

As Craig mentioned, we wear our issues on our sleeves. If there are
any questions about just how stable Struts 2.0.1 is, or Struts 2.0.2
is so far, just browse JIRA and see for yourself. We try to log
everyting through JIRA to simplify creating the release notes.

-Ted.


On 12/22/06, Nagraj Rao <[EMAIL PROTECTED]> wrote:

Hi Ted

Are there any AJAX Tags related issues in S2.0.1?? I'm currently migrating
my project to 2.0.1, so in case there are any issues i'll start backing off.
I got certain postings which were discussing DOJO issues in it to which i'm
not much concerned right now. Overall i dont see any major issues in 2.0.1.
Correct me if i'm wrong.

N

- Original Message -
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Friday, December 22, 2006 1:25 AM
Subject: Re: [S2] Struts 2 GA Release Anytime Soon?


> On 12/21/06, Elie Ciment <[EMAIL PROTECTED]> wrote:
>> The beta tag doesn't sit so well with them up there.
>
> Yes, this is why we release the codebase and then decide on its
> quality. We can make the judgement on actual experience, ratther than
> guestimates. Unless we go back and re-release the XWork bits as a
> stable version, S2.01 is stuck with the beta tag, regardless of the
> quality of the build.
>
> Though, it still could happen any time. The stumbling block is the
> XWork beta/rc tag. Once that is resolved, everything else could be
> wrapped up the first time someone had a free day.
>
> -Ted.
>
> -
> 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]





--
HTH, Ted.
* http://www.husted.com/struts/

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



Re: [FRIDAY] Christmas holidays

2006-12-22 Thread Martin Gainty
for all those from Brooklyn Happy Festivus

Feliz Navidad
Martin--
--- 
This e-mail message (including attachments, if any) is intended for the use of 
the individual or entity to which it is addressed and may contain information 
that is privileged, proprietary , confidential and exempt from disclosure. If 
you are not the intended recipient, you are notified that any dissemination, 
distribution or copying of this communication is strictly prohibited.
--- 
Le présent message électronique (y compris les pièces qui y sont annexées, le 
cas échéant) s'adresse au destinataire indiqué et peut contenir des 
renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le 
destinataire de ce document, nous vous signalons qu'il est strictement interdit 
de le diffuser, de le distribuer ou de le reproduire.
- Original Message - 
From: "Marcello Savino" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Friday, December 22, 2006 8:15 AM
Subject: R: [FRIDAY] Christmas holidays



>P.S. Only one reccomendation: be nice :-)
We are ;-)
Merry Xmas folks !

Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-Messaggio originale-
Da: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Inviato: venerdì 22 dicembre 2006 14.12
A: Struts Users Mailing List
Oggetto: [FRIDAY] Christmas holidays

Hi all
I've managed to get holidays until 1st January, so probably I am not going to 
write/read this mailing list (and I won't read the developers list too, but I 
am too lazy to add a "To:" value to the mail :-) ) I wish you all have a merry 
Christmas and a shining new year.

Antonio

P.S. Only one reccomendation: be nice :-)

-
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]



R: [FRIDAY] Christmas holidays

2006-12-22 Thread Marcello Savino
 
>P.S. Only one reccomendation: be nice :-)
We are ;-)
Merry Xmas folks !

Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-Messaggio originale-
Da: Antonio Petrelli [mailto:[EMAIL PROTECTED] 
Inviato: venerdì 22 dicembre 2006 14.12
A: Struts Users Mailing List
Oggetto: [FRIDAY] Christmas holidays

Hi all
I've managed to get holidays until 1st January, so probably I am not going to 
write/read this mailing list (and I won't read the developers list too, but I 
am too lazy to add a "To:" value to the mail :-) ) I wish you all have a merry 
Christmas and a shining new year.

Antonio

P.S. Only one reccomendation: be nice :-)

-
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]



[FRIDAY] Christmas holidays

2006-12-22 Thread Antonio Petrelli

Hi all
I've managed to get holidays until 1st January, so probably I am not 
going to write/read this mailing list (and I won't read the developers 
list too, but I am too lazy to add a "To:" value to the mail :-) )

I wish you all have a merry Christmas and a shining new year.

Antonio

P.S. Only one reccomendation: be nice :-)

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



[S2] s:iterator and s:checkboxlist inside (using 2.0.2 trunk)

2006-12-22 Thread Dariusz Wojtas

Hi,

I have such properties in my action:

private ArrayList extensionGroups = null;
private HashMap> groupedExtensions = null;

The 1st list contains only some 'Extension' elements.
The 2nd map contains other lists of extensions (values) with some
property (treeNo) from the parent used as the key.
Then I have a JSP page with such construct somewhere in it:


${desc}
   


And here is a strange thing:
When I start the app and run the action for the 1st time I get nice
result AS EXPECTED:

GROUP1
   chk: extension1
   chk: extension2
   chk: extension3
GROUP2
   chk: extension4
   chk: extension5

But after reloading the page (no extra params in the url, just plain
GET), the result is:

   chk: GROUP1
   chk: GROUP2

Looks like the context of the data beaing displayed is different.
But it's the same page! The same code and the same data.
After restarting the app it is again  the same behaviour.
My debugs in the actions (getters) show that the same data is returned
in all cases.

What am I doing wrong?

Dariusz Wojtas

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



RE: Struts Layout Extension Library & Alternatives solutions

2006-12-22 Thread nagesh.kumar
There is no  any hard coded we have implemented Struts:layout 

Ui changes u can done by changing the  DataGrid.css file 
TABLE.DATAGRID {
background-color:#cbe2fa;   /this is for header background
border-width=2px;
border-color: #FF;

}


Try this  

-Original Message-
From: Andrew Martin [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 22, 2006 5:21 PM
To: Struts Users Mailing List
Subject: Struts Layout Extension Library & Alternatives solutions

We are thinking about integrating the Struts Layout Extension Library into
our current struts project. 

At the moment I have the basic functionality working, but I have noticed
that there are some UI restrictions (hardcoded style attributes in the basic
collection table interface) which are annoying.

I am curious if many people have used this extension library, if so how did
you find it. 

Ideally we only want to use certain functionality within the extension
library (navigation, sorting etc) so if there are better alternatives
extensions which can provide the same functionality please let me know.

thanks,

Andrew

-
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 Layout Extension Library & Alternatives solutions

2006-12-22 Thread Andrew Martin
We are thinking about integrating the Struts Layout Extension Library into our 
current struts project. 

At the moment I have the basic functionality working, but I have noticed that 
there are some UI restrictions (hardcoded style attributes in the basic 
collection table interface) which are annoying.

I am curious if many people have used this extension library, if so how did you 
find it. 

Ideally we only want to use certain functionality within the extension library 
(navigation, sorting etc) so if there are better alternatives extensions which 
can provide the same functionality please let me know.

thanks,

Andrew

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