[S2] apply i18n on java entity from DB

2008-12-19 Thread Steven Yang
HI If this question has been asked, please refer me. Thanks in advance I am currently using Struts2 with Spring. Basically I have struts action backed by "Service" and "DAO" injected by Spring. I may be getting a java entity from the Service, for example a "Product". And the product object has at

Jasper Struts2 plugin

2008-12-19 Thread Mel Rosenberg
Does anyone know where I can get the plugin? The link from Struts2 guide doesn’t go there. Thanks Mel

Bean Properties are lost

2008-12-19 Thread Richa Pandharikar
I have a User Object that I am using as a Bean in an Action. User Object has following properties – firstName lastName username password collection roles projects Roles data is no where displayed on the JSP page. Project data is displayed but I am using the plain ids to render the select tag.

Re: [Struts2] String Comparison using s:if tag

2008-12-19 Thread Raghu
Thanks Dave... On Fri, Dec 19, 2008 at 4:22 PM, Dave Newton wrote: > > http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html > > --- On Fri, 12/19/08, Raghu wrote: > > From: Raghu > Subject: [Struts2] String Comparison using s:if tag > To: "Struts Users Mailing

Re: Christmas Riddle

2008-12-19 Thread Musachy Barroso
all properties (that are common) are copied from the source action to the target action. musachy On Fri, Dec 19, 2008 at 3:04 PM, Dirk Forchel wrote: > > This result type invokes an entire other action, complete with it's own > interceptor stack and result. As you can read here > (http://struts.

RE: [Struts2] String Comparison using s:if tag

2008-12-19 Thread Biesbrock, Kevin
Shoot. I'm gonna stop trying :P Beez ( 4961 -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Friday, December 19, 2008 4:22 PM To: Struts Users Mailing List Subject: Re: [Struts2] String Comparison using s:if tag http://struts.apache.org/2.x/docs/why-won

RE: [Struts2] String Comparison using s:if tag

2008-12-19 Thread Biesbrock, Kevin
Try: user.sex.equals('M') Beez ( 4961 -Original Message- From: Raghu [mailto:techhel...@gmail.com] Sent: Friday, December 19, 2008 4:20 PM To: Struts Users Mailing List Subject: [Struts2] String Comparison using s:if tag Hi, I am trying to do String comparison in s:if tag as below b

Re: [Struts2] String Comparison using s:if tag

2008-12-19 Thread Dave Newton
http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html --- On Fri, 12/19/08, Raghu wrote: From: Raghu Subject: [Struts2] String Comparison using s:if tag To: "Struts Users Mailing List" Date: Friday, December 19, 2008, 4:20 PM -Inline Attachment Follows

[Struts2] String Comparison using s:if tag

2008-12-19 Thread Raghu
Hi, I am trying to do String comparison in s:if tag as below but getting number format exceptionLooks like some problem with expression... Any idea how to compare String values in s:if? Male Female [WRITE4SMILE] WARN [2008/12/16 14:57:22] | Caught an exception while evaluating expressi

Re: Christmas Riddle

2008-12-19 Thread Dirk Forchel
This result type invokes an entire other action, complete with it's own interceptor stack and result. As you can read here (http://struts.apache.org/2.x/docs/action-chaining.html), it is not recommended. I need the dispatcher result to forward to another action with the same interceptor stack (if

Struts tags browser support

2008-12-19 Thread Mir Ali
Hi All, What browsers do struts2 tag libraries support? IE 6 IE 7 IE 8 Firefox 2.x Firefox 3.x and What HTML or XHTML standards do they support? Thanks, Mir

Re: Global exception handling prevents logging

2008-12-19 Thread Marsman
Paul Benedict-2 wrote: > > If you want both, create a logger in your handler and log the > exception given to you. > Which "handler" do you mean? I've configured a global-exception-mapping and a JSP will be directly shown to the user, if any not handled exception occurs. Titus -- View this

Re: Global exception handling prevents logging

2008-12-19 Thread Marsman
Paul Benedict-2 wrote: > > If you want both, create a logger in your handler and log the > exception given to you. > Which "handler" do you mean? I've configured a global-exception-mapping and a JSP will be directly shown to the user, if any not handled exception occurs. Titus -- View this

RE: S1: Nocache and SSL

2008-12-19 Thread Givler, Eric
Yes. I was just wondering if it's an issue to move the location of the nocache handler since I really need access to the ActionMapping which isn't populated until a later step? Here's what I have in struts-config.xml: ... Web.xml points to the updated

Re: Christmas Riddle

2008-12-19 Thread Nils-Helge Garli Hegvik
In that case, I'm out of ideas. If referrer always is an action, have you tried using the chain result type instead? Probably needs a bit more parsing of the action and namespace (or look it up from the action invocation) though. Nils-H On Fri, Dec 19, 2008 at 11:59 AM, Dirk Forchel wrote: > > G

Re: Christmas Riddle

2008-12-19 Thread Dirk Forchel
Good guess. I've added both attributes to my web.xml. But it doesn't work either. If the context path (Tomcat server.xml) of my webapp is "" the result is HTTP Status 404 - /welcome.action type Status report message /welcome.action description The requested resource (/welcome.action) is not avail

Re: Christmas Riddle

2008-12-19 Thread Nils-Helge Garli Hegvik
I think the error is in your web.xml. Try adding REQUEST FORWARD in the filter mapping configuration for the struts 2 filter. Nils-H On Fri, Dec 19, 2008 at 10:38 AM, Dirk Forchel wrote: > > Here is my riddle: Why does a dispatch forward to an absolute URL-path e.g. > "http://localhost:9001/we

Christmas Riddle

2008-12-19 Thread Dirk Forchel
Here is my riddle: Why does a dispatch forward to an absolute URL-path e.g. "http://localhost:9001/welcome.action"; not work. Using a relative URL like "/welcome.action" doesn't work either. Only something dispatch forwards like "/jsp/pages/welcome.jsp" or similiar (a relative URL with a JSP resou