Re:Re : struts2: resource bundle messages

2009-01-28 Thread Tom Pop
Thanks - and in for example tiles tag? This tag doesn't accept %{getText(...)} and I can't put there s:text.../, I can only put there %= ... % with variable... Tom Původní zpráva Od: François Rouxel rouxe...@yahoo.com Předmět: Re : struts2: resource bundle messages

Re: Converting HTML content to PDF

2009-01-28 Thread Manos Batsis
To the OP: Just try xhtmlrenderer (i.e. The Flying Saucer Project). I once did a servlet filter that intercepted text/html responses (usually from JSPs) and transformed them to PDF on the fly. Don't seem able to figure out where that code is nowadays though. [1]

Re: Converting HTML content to PDF

2009-01-28 Thread Dhiraj Thakur
u can do that on seam framework. http://docs.jboss.org/seam/1.1.5.GA/reference/en/html/mail.html Regards, Dhiraj

Re: Best global parameter aproach for struts2

2009-01-28 Thread Ignacio de Córdoba
Oh yes, I have no problem with EJB3 init parameters. The only thing I am really missing is where to put struts2 actions init paramers. -- View this message in context: http://www.nabble.com/Best-global-parameter-aproach-for-struts2-tp21698744p21702585.html Sent from the Struts - User mailing

Re: [S2] s:action in value stack?

2009-01-28 Thread Alexander Baetz
Hi, are you sure about the tag-action beeing on top of the stack during the execution of its result? i use an action-tag to generate a view component (a little info box on my page) and on one of my pages there is the situation that the tag-action is of the same class as the original action.

Re: Handling JSP exceptions in Struts2

2009-01-28 Thread Adam Hardy
Dave Newton on 26/01/09 21:21, wrote: Andy wrote: it appears that the Exception interceptor will fire after the Result has completed, which would theoretically catch any exceptions thrown by the JSP. It's not that it fires after the result is completed, it's that everything happens

Re: Best global parameter aproach for struts2

2009-01-28 Thread Ralf Fischer
On Wed, Jan 28, 2009 at 10:39 AM, Ignacio de Córdoba icord...@skios.es wrote: Oh yes, I have no problem with EJB3 init parameters. The only thing I am really missing is where to put struts2 actions init paramers. If your parameters are action-specific, you can easily put them into the

Re: [S2] s:action in value stack?

2009-01-28 Thread Musachy Barroso
Yes, during the result of the invoked action, the invoked action will be on the top of the stack, but it is available by name in the stack, only outside the action tag. musachy On Wed, Jan 28, 2009 at 5:40 AM, Alexander Baetz baetz.paderb...@arcor.de wrote: Hi, are you sure about the

[Off-topic,javascript]

2009-01-28 Thread elyes sallem
Hello, i'm looking for a javascript user list,any one has an adress? Thanks Regards Elyes.

Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
org.apache.jasper.JasperException: File /struts-tags not found In struts 2 distribution, I do not see struts-tags or its .tld . Am I missing it or why do I get this error? -- View this message in context: http://www.nabble.com/Struts-tag---tp21707578p21707578.html Sent from the Struts - User

Re: how to redirect error page to struts action

2009-01-28 Thread Nuwan Chandrasoma
Hi All, does this work with jetty?. I couldn't get this working with jetty sometime back :) Thanks, Nuwan ManiKanta G wrote: to which filter mapping? FilterDispatcher's mapping? And could give sample snippet of web.xml using .action for http 404 error? Well I got it... yes, for

Re: Converting HTML content to PDF

2009-01-28 Thread Dave Newton
Dhiraj Thakur wrote: u can do that on seam framework. http://docs.jboss.org/seam/1.1.5.GA/reference/en/html/mail.html The only reference I see to PDF on that page is the link to the previous chapter; can you be more specific? (I mean, we're not talking about using Seam or email, but at

Re: Struts-tag ?

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:09:06 SanJ.SANJAY wrote: org.apache.jasper.JasperException: File /struts-tags not found In struts 2 distribution, I do not see struts-tags or its .tld . Am I missing it or why do I get this error? What version of Tomcat are you using? The TLD is in the JAR

Re: Converting HTML content to PDF

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:20:54 Dave Newton wrote: Dhiraj Thakur wrote: u can do that on seam framework. http://docs.jboss.org/seam/1.1.5.GA/reference/en/html/mail.html The only reference I see to PDF on that page is the link to the previous chapter; can you be more specific? (I

Re: how to redirect error page to struts action

2009-01-28 Thread Nuwan Chandrasoma
Ok, got it working, i was using the convention plugin. but i had to manually define the action which take care of the error in struts.xml Thanks, Nuwan Nuwan Chandrasoma wrote: Hi All, does this work with jetty?. I couldn't get this working with jetty sometime back :) Thanks, Nuwan

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
I am using Jboss 4.0.2. I was running my application on struts 1 and now decided to go with struts 2 in parallel with struts 1. So after putting all the struts 2 jar in lib and shared lib folders, I updated web.xml for filter dispatcher for struts 2. So now I was trying to test some struts 2 JSP

Re: Struts-tag ?

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:28:13 SanJ.SANJAY wrote: I am using Jboss 4.0.2. I was running my application on struts 1 and now decided to go with struts 2 in parallel with struts 1. So after putting all the struts 2 jar in lib and shared lib folders, I updated web.xml for filter dispatcher

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
I dropped all the jars from the /lib folder of distribution which is 2.0.14. Wes Wannemacher wrote: On Wednesday 28 January 2009 10:28:13 SanJ.SANJAY wrote: I am using Jboss 4.0.2. I was running my application on struts 1 and now decided to go with struts 2 in parallel with struts 1. So

RE: Exception while upgrading from S 2.0.11 to 2.1.6

2009-01-28 Thread Andy
fyi I had to add commons-fileupload to my classpath only after upgrading to 2.1.6 from 2.0.14.. Before the upgrade it wasnt required. Date: Tue, 27 Jan 2009 23:11:40 -0500 From: newton.d...@yahoo.com To: user@struts.apache.org Subject: Re: Exception while upgrading from S 2.0.11 to 2.1.6

Dynamic OGNL population question

2009-01-28 Thread Ryan Peterson
Hi guys, I have an object accessible using s:property value=p.myInteger /, which displays an arbitrary integer. Is there a way to dynamically put this into an OGNL method call, something like: s:set name=DynamicCodeType value=@com.whatever.myactioncl...@getcodetype(p.myInteger)'/ Right

Re: NullPointerException when migrating to 2.1.6

2009-01-28 Thread Say Jon
Thanks for replying, Pawel. However, I get the same error message when viewing the config browser. Any ideas? Regards. W.SayJon Email Disclaimer: The information contained in or attached to this email is confidential and solely for the use of the individual or entity to whom it is addressed. If

Re: Struts-tag ?

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:44:02 SanJ.SANJAY wrote: I dropped all the jars from the /lib folder of distribution which is 2.0.14. And you dropped them in WEB-INF/lib of your application and redeployed? I assume you also setup a struts.xml file as well as updated your web.xml to include

Re: How to disable alt part from tooltip

2009-01-28 Thread Emi Lu
I have a question about tooltip. Source code: s:textfield name=username label=Username tooltip=Enter the same username as you login Windows windows / When using Firefox or Konqueror open my page, I always see: alt=Enter the same username as you login Windows

Re: Dynamic OGNL population question

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:50:27 Ryan Peterson wrote: Hi guys, I have an object accessible using s:property value=p.myInteger /, which displays an arbitrary integer. Is there a way to dynamically put this into an OGNL method call, something like: s:set name=DynamicCodeType

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
I can extract the struts-core jar with an error. Also I placed them under WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml file. Could this be the issue? I thought since I wil not be using any action for this case, I did not need it? What do you say? Wes Wannemacher

Re: Struts-tag ?

2009-01-28 Thread SanJ.SANJAY
sorry I mean I can extract struts-core jar without any error. SanJ.SANJAY wrote: I can extract the struts-core jar with an error. Also I placed them under WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml file. Could this be the issue? I thought since I wil not be using

Re: NullPointerException when migrating to 2.1.6

2009-01-28 Thread Say Jon
Apologies, I had my a copy of FilterDispatcher in my source code which was erroneous! Sorry for the inconvenience caused! Regards. W.SayJon Email Disclaimer: The information contained in or attached to this email is confidential and solely for the use of the individual or entity to whom it is

Re: Dynamic OGNL population question

2009-01-28 Thread Ryan Peterson
p is a custom object, say person. So it could be person.age for example. I would use the stackObj.method() way, but the method I need to call is external to the object on the stack. Basically I'm trying to pass the value of person.age into the OGNL static method call to return a result based on

Re: Spring Security method security with struts2 make all request params in action NULL

2009-01-28 Thread dusty
Ah. The reason I ask is I had a similar problem but with the updated StrutsPrepare and StrutsExecute filters. Spring Security modified the request in a way that Struts was not expecting and therefore Struts could not find what it was looking for. You may need to step through Spring Security

Re: Dynamic OGNL population question

2009-01-28 Thread Ralf Fischer
On Wed, Jan 28, 2009 at 5:09 PM, Ryan Peterson rrpeter...@gmail.com wrote: p is a custom object, say person. So it could be person.age for example. I would use the stackObj.method() way, but the method I need to call is external to the object on the stack. Why don't you perform this method

Re: Dynamic OGNL population question

2009-01-28 Thread Musachy Barroso
s:set name=DynamicCodeType value=@com.whatever.myactioncl...@getcodetype(p.myInteger)'/ will work iff, static calls are enabled for OGNL, and p is a field of the object on top of the stack, which I doubt, it should be something like: s:set name=DynamicCodeType

Re: Dynamic OGNL population question

2009-01-28 Thread Ryan Peterson
Thanks Musachy, that was it! I had tried various combinations of 'p.myInt' p.myInt '#p.myint' $(p.myInt), that wouldn't work before. On Wed, Jan 28, 2009 at 9:54 AM, Musachy Barroso musa...@gmail.com wrote: s:set name=DynamicCodeType

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-28 Thread Becky . L . O'Sullivan
Hadn't heard back from anyone about this. I'll go ahead and file a bug report. No one is using action chaining with 2.1.6? Thanks, -B Becky.L.O'Sulliva

Re: [S2] possible bug in 2.1.6 w/ action chaining

2009-01-28 Thread Musachy Barroso
This is the first report I hear, open a jira ticket and describe a test case to replicate the problem. musachy On Wed, Jan 28, 2009 at 12:03 PM, Becky.L.O'sulli...@healthnet.com wrote: Hadn't heard back from anyone about this. I'll go ahead and file a bug report. No one is using action

Re: How to disable alt part from tooltip

2009-01-28 Thread Emi Lu
Source code: s:textfield name=username label=Username tooltip=Enter the same username as you login Windows windows / When using Firefox or Konqueror open my page, I always see: alt=Enter the same username as you login Windows Someone knows how to remove alt=Enter

Re: How to disable alt part from tooltip

2009-01-28 Thread Dave Newton
Emi Lu wrote: (With s:form default theme) Remove alt#... from struts2-core-2.1.6.jar /template/xhtml/tooltip.ftl Note that this will interfere with screen reader/accessibility software that depends on the alt attribute. Dave

Re: How to disable alt part from tooltip

2009-01-28 Thread Musachy Barroso
Yes, there is a bug on tooltip.ftl musachy On Wed, Jan 28, 2009 at 3:53 PM, Emi Lu em...@encs.concordia.ca wrote: Source code: s:textfield name=username label=Username tooltip=Enter the same username as you login Windows windows / When using Firefox or Konqueror open

Re: How to disable alt part from tooltip

2009-01-28 Thread Musachy Barroso
https://issues.apache.org/struts/browse/WW-2966 On Wed, Jan 28, 2009 at 3:56 PM, Dave Newton newton.d...@yahoo.com wrote: Emi Lu wrote: (With s:form default theme) Remove alt#... from struts2-core-2.1.6.jar /template/xhtml/tooltip.ftl Note that this will interfere with screen

Re: How to disable alt part from tooltip

2009-01-28 Thread Dave Newton
Musachy Barroso wrote: https://issues.apache.org/struts/browse/WW-2966 Ah, okay. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: How to disable alt part from tooltip

2009-01-28 Thread Emi Lu
Thank you Musachy! From struts.apache.org/download.cgi, it seems that neither 2.1.7 nor 2.2.x is ready yet :( - Lu Ying Musachy Barroso wrote: Yes, there is a bug on tooltip.ftl musachy On Wed, Jan 28, 2009 at 3:53 PM, Emi Lu em...@encs.concordia.ca wrote: Source code: s:textfield

Re: How to disable alt part from tooltip

2009-01-28 Thread Musachy Barroso
Fixed in trunk. musachy On Wed, Jan 28, 2009 at 4:08 PM, Emi Lu em...@encs.concordia.ca wrote: Thank you Musachy! From struts.apache.org/download.cgi, it seems that neither 2.1.7 nor 2.2.x is ready yet :( - Lu Ying Musachy Barroso wrote: Yes, there is a bug on tooltip.ftl musachy

Re: Exception while upgrading from S 2.0.11 to 2.1.6

2009-01-28 Thread Sergio Gelato
* Andy [2009-01-28 09:48:12 -0600]: fyi I had to add commons-fileupload to my classpath only after upgrading to 2.1.6 from 2.0.14.. Before the upgrade it wasnt required. Same here. If the change is intentional, then someone should update

Re: Exception while upgrading from S 2.0.11 to 2.1.6

2009-01-28 Thread Musachy Barroso
I don't remember any discussion about it. musachy On Wed, Jan 28, 2009 at 4:19 PM, Sergio Gelato sergio.gel...@astro.su.se wrote: * Andy [2009-01-28 09:48:12 -0600]: fyi I had to add commons-fileupload to my classpath only after upgrading to 2.1.6 from 2.0.14.. Before the upgrade it wasnt

Struts 2.1 Rest and Convention Tutorial

2009-01-28 Thread GF
Hello everyone. After the release of Struts 2.1 as GA (in 2.1.6) I decided to write a quite simple tutorial about creating a basic application that uses the features of Struts2 Rest Plugin and some of Convention Plugin. If someone might be interested, here you can read it:

Re: Struts-tag ?

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 10:59:35 SanJ.SANJAY wrote: I can extract the struts-core jar with an error. Was that a mistake? Also I placed them under WEB-INF/lib folder. The only thing I have'nt done yet is struts.xml file. Could this be the issue? I thought since I wil not be using any

Re: Is Spring worth it?

2009-01-28 Thread johnrock
Much Obliged everyone! It can seem overwhelming at first and I guess I have been searching for the burgeoning best practices of Spring 2.5 in a basic web app to help me focus in on where I should think about implementing it first...I have used Struts2 and especially liked the validation framework

Re: Is Spring worth it?

2009-01-28 Thread Dave Newton
johnrock wrote: but is it overkill to think about using Struts2 and Spring2.5? Why would it be? I use Spring 2.5 for DI, AOP, and a few other minor things. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org

Re: struts 2.1.6 conventions plugin questions

2009-01-28 Thread Allen Lee
Thanks for the reply Musachy - has a fix for this been commited to the xwork trunk? I pulled xwork 2.1.3-SNAPSHOT from svn, compiled it and threw it onto our snapshot maven repository but I'm still getting the same error. Could I somehow be subverting the type conversion process by using the

Re: struts 2.1.6 conventions plugin questions

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 19:49:11 Allen Lee wrote: Thanks for the reply Musachy - has a fix for this been commited to the xwork trunk? I pulled xwork 2.1.3-SNAPSHOT from svn, compiled it and threw it onto our snapshot maven repository but I'm still getting the same error. Could I somehow

Re: struts 2.1.6 conventions plugin questions

2009-01-28 Thread Allen Lee
Hi Wes, That is weird that the stack trace is printing out what looks like a String array / object pointer-address instead of the actual String... hmm. I've got nothing fancy in my submitting form, just @s.textfield theme='simple' name='longitudeLatitudeBox.maximumLatitude' id='maxy' size=14 /

Re: Is Spring worth it?

2009-01-28 Thread Guojun Zhu
Well, Spring is a broader tools than Struts. Spring MVC is more like a direct counterpart of Struts, as a web framework. There are other parts in Spring you might find useful. For example, Spring JDBC template, AOP transaction control, or IoC container to manager business logic. In my case,

[s2] rest plugin and rss output with Rome

2009-01-28 Thread Bill Stilwell
Hi all, I'd like to solicit feedback on the best way to support .rss/.atom requests when using the rest plugin. My first thought was to implement a generic ContentTypeHandler for .rss or .atom requests that expects to be passed a Rome SyndFeed object, but that implies that the getModel() method

Re: struts 2.1.6 conventions plugin questions

2009-01-28 Thread Wes Wannemacher
On Wednesday 28 January 2009 20:33:59 you wrote: Hi Wes, That is weird that the stack trace is printing out what looks like a String array / object pointer-address instead of the actual String... hmm. I've got nothing fancy in my submitting form, just @s.textfield theme='simple'

Re: [s2] rest plugin and rss output with Rome

2009-01-28 Thread Dave Newton
Bill Stilwell wrote: I'd like to solicit feedback on the best way to support .rss/.atom requests when using the rest plugin. Have you considered writing a custom content type handler? Content type handlers are chosen based on URL extension. Check the Custom ContentTypeHandlers section:

Re: [s2] rest plugin and rss output with Rome

2009-01-28 Thread Bill Stilwell
Yup, but as mentioned in the original email I'm not sure where to construct the SyndFeed object. Doing it in the content handler doesn't really make sense, as there's no generic way to map objects to an RSS/Atom feed. My basic idea is that the ContentTypeHandler would expect to be passed a

Re: [s2] rest plugin and rss output with Rome

2009-01-28 Thread Dave Newton
Bill Stilwell wrote: The bit I'm having trouble figuring out is how the action would know that the model should be a SyndFeed object - is there a standard way to detect what extension was used when calling the action? (I could parse it from request.getRequestURI(), but that seems a bit

Re: [s2] rest plugin and rss output with Rome

2009-01-28 Thread Bill Stilwell
On Wed, Jan 28, 2009 at 6:45 PM, Dave Newton newton.d...@yahoo.com wrote: The action doesn't need to know; that's the point. The framework serializes the action based on the content type handler (CTH) registered to the URL extension. For example, the json extension uses a JSON serializer

Re: struts 2.1.6 conventions plugin questions

2009-01-28 Thread Musachy Barroso
yes, the conversion problem was fixed in xwork trunk. musachy On Wed, Jan 28, 2009 at 7:49 PM, Allen Lee allen@asu.edu wrote: Thanks for the reply Musachy - has a fix for this been commited to the xwork trunk? I pulled xwork 2.1.3-SNAPSHOT from svn, compiled it and threw it onto our

Re: [s2] rest plugin and rss output with Rome

2009-01-28 Thread Dave Newton
Bill Stilwell wrote: To me, this implies that there needs to be code to map whatever the particular model is to the needs of the RSS feed. Well yeah. I think maybe I'm just completely misunderstanding what your system looks like. The systems I've worked on tend to have a pretty orthogonal

IE ajax theme form data problem

2009-01-28 Thread Robert Dietrick
Hi, I have a page which uses a tabbedPanel with three tabs. In each of the three tabs, I load a separate div: s:tabbedPanel id=profileTabs s:div id=profile_personal label=Personal href=%{viewProfileUrl} theme=ajax cssClass=tab/s:div s:div id=profile_privacy label=Privacy

Re: [s2] rest plugin and rss output with Rome

2009-01-28 Thread Jeromy Evans
On 29/01/2009, at 2:48 PM, Dave Newton wrote: Bill Stilwell wrote: To me, this implies that there needs to be code to map whatever the particular model is to the needs of the RSS feed. Well yeah. I think maybe I'm just completely misunderstanding what your system looks like. The systems

Re: Is Spring worth it?

2009-01-28 Thread Frans Thamura
our member in JUG, have a project that use xwork, spring and JPA injection with no problem to switch and me also Strust2 with Spring and XWork without problem we can utilize spring features if we use spring as ioC f On Thu, Jan 29, 2009 at 8:47 AM, Guojun Zhu zgg...@gmail.com wrote: Well,

Re: IE ajax theme form data problem

2009-01-28 Thread Jeromy Evans
Try turning off the loading text. It's a guess, but it sounds similar to the loadingText bug due to Dojo in IE. If the target div contains the source form and loadingText enabled, the loadingText overwrites the form before the its new values are read. Details are mentioned several times

Problem with Dojo in struts2

2009-01-28 Thread Srikanth Goud
Hi, I am presently working on struts 2.0. Whenever i use strutsUI tags(with theme=ajax) nothing is rendered on page. I have done like this:- In web.xml filter filter-namestruts-cleanup/filter-name