Re: newbie and hidden field

2009-05-11 Thread Nils-Helge Garli Hegvik
Um... I don't think those are Struts tags. Could this be what you're using? http://www.common-controls.com/en/index.php If yes, then you should ask your question here: http://www.common-controls.com/bbs/?loc=en Nils-H On Mon, May 11, 2009 at 7:32 AM, pam pam.withn...@ecngroup.com.au wrote: Hi,

Re: Using session object in JSP page

2009-05-11 Thread Nils-Helge Garli Hegvik
That depends on how you want to use it. The tag reference should give you the information you need. http://struts.apache.org/2.1.6/docs/tag-developers-guide.html http://struts.apache.org/2.1.6/docs/ognl.html http://struts.apache.org/2.1.6/docs/tag-syntax.html Nils-H On Mon, May 11, 2009 at 7:57

RE: newbie and hidden field

2009-05-11 Thread pam
yes -Original Message- From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] Sent: Monday, 11 May 2009 4:05 PM To: Struts Users Mailing List Subject: Re: newbie and hidden field Um... I don't think those are Struts tags. Could this be what you're using?

Locale specific stringlength validation, how?

2009-05-11 Thread Qunhuan Mei
Hi, Characters from one language often carry more information than another (e.g. Chinese vs. English). To express a word/phrase/sentence string, different locale may need different string length. I was wondering if it is possible to have locale specific stringlength validation using

Integrate JasperReports into a Struts2 web application

2009-05-11 Thread Yanto
Hi, What's the most common way people used to call the JasperReport when used Struts 2 framework ? I've read Bruce Phillips Blog, http://www.brucephillips.name/blog/index.cfm/2008/7/12/Using-The-JasperReports-Struts2-Plugin-A-Main-Report-And-A-Subreport just want to know, whether most of people

Re: Integrate JasperReports into a Struts2 web application

2009-05-11 Thread wild_oscar
Hi, I don't think the plugin was available when I used Jasper with an application. I simply passed some Collections into the report and created them. You can have a look at the code: Movement mov = movementManger.findById(movementId); ListMovement list = new

Re: action call getting skiped

2009-05-11 Thread srinivasa_v .
My problem got resolved its network issue ,DNS IP cache . and thx JK On Tue, May 5, 2009 at 2:28 AM, Martin Gainty mgai...@hotmail.com wrote: have the admin of the prod box display for us the following details: all jsp source code for all ActionClasses web.xml all .tld configurations

Re: Dynamic property names

2009-05-11 Thread mitch gorman
Jon Pearson wrote: Well, I didn't get any responses to this, but luckily I managed to figure it out from the OGNL documentation (http://www.opensymphony.com/ognl/html/LanguageGuide/basicExpressions.ht ml): Under the 'Expression Evaluation' section, it describes how you can write this:

Re: How to invoke annotation validation manually

2009-05-11 Thread Dave Newton
joea88 wrote: I've an action class like below. I put the skipvalidation annotation because I don't want strut to validate all annotated fields. My problem is that I still want to do the validation for 'name' field. So.. is there a way to manually invoke only certain fields' annotation

Not able to locate the file stored using Struts 2 file upload interceptor

2009-05-11 Thread HariniKaushik
Hi all, I'm trying to upload the file using file upload interceptor. I have defined the setters and getters for upload,uploadcontenttype,uploadfilename. Once tats done the success page displays the path,contenttype and file name. File path :

Re: Not able to locate the file stored using Struts 2 file upload interceptor

2009-05-11 Thread Nils-Helge Garli Hegvik
The FileUploadInterceptor doesn't really store the file for you. It just makes it available to your action so you can process it. After the request has finished, the file is deleted. It should all be described here: http://struts.apache.org/2.1.6/docs/file-upload.html Nils-H On Mon, May 11, 2009

Converter trying to set String on int field

2009-05-11 Thread Richard Sayre
I have a bunch of check boxes called userId. In my action I have int userId[] and setUserId(int[] ids) When I select a checkbox the conversion works normally. When I dont check any boxes on the form and submit, I get the following: 2009-05-11 10:54:28,606 [http-8080-6] DEBUG []: - Property:

Retrieving instance of XWorkConverter in 2.1.x

2009-05-11 Thread Bob Jacoby
I'm trying to migrate code from webwork to 2.1.6 and am not sure about how to get a reference to the XWorkConverter singleton. The XWorkConverter.getInstance() method was removed in 2.1.x (existed in 2.0.x) and the constructor is protected. The code I'm trying to migrate is: //'from' is some

Help with JSP expression

2009-05-11 Thread Security Management
I have an expression that I want to evaluate to the following: getProvider().hasAccessRight(getRequestFor(), [0]) Where [0] is an item in a list that is being iterated over. s:if test=provider.hasAccessRight(requestFor, [0]) I've tried loads of different stuff, and am looking at the struts

Re: Retrieving instance of XWorkConverter in 2.1.x

2009-05-11 Thread Musachy Barroso
If your action is instantiated by the default object factory, do this: @Inject public void setConverter(XWorkConverter converter) {.} if you are using a different object factory (I think injection still happens with the Spring factory, but I am not 100% sure):

Re: Converter trying to set String on int field

2009-05-11 Thread Richard Sayre
After some further investigation I found that any array type that has no values from the form on submit will call setXXX(String). I checked the source of com.opensymphony.xwork2.util.XWorkBasicConverter and this is the first thing it does: if (value == null ||

Re: Converter trying to set String on int field

2009-05-11 Thread musomesa
I bet it has something to do with a null not being assignable to an int. Chris -Original Message- From: Richard Sayre richardsa...@gmail.com To: Struts Users Mailing List user@struts.apache.org Sent: Mon, 11 May 2009 11:44 am Subject: Re: Converter trying to set String on int

tag action

2009-05-11 Thread PEGASUS84
good evening, I've a trouble: I would pass a parameter using tag s:action and i would that the action result send a its result to a jsp page. should I use the request or I could use a vaiable String? -- View this message in context: http://www.nabble.com/tag-action-tp23487099p23487099.html

Re: Converter trying to set String on int field

2009-05-11 Thread Richard Sayre
It is also happening in a Date field I have. If no dates are entered in the text box then I get the same error. If I provide a date then the conversion works. I am currently moving through the XWork and OGNL source to see what is causing this. On Mon, May 11, 2009 at 1:48 PM,

How to fix redirect OGNL error, Unable to set param?

2009-05-11 Thread Roy
I am not sure if this is me or if this is a bug. I got the following error -- 11:52:01,623 ERROR ObjectFactory:27 - Unable to set parameter [dest] in result of type [org.apache.struts2.dispatcher.ServletRedirectResult] Caught OgnlException while setting property 'dest' on type

RE: Radio button grouping in Struts 2

2009-05-11 Thread jdt.me.uk
Hi Radu. Many thanks for your reply, and sorry for not responding sooner as I've only just got around to looking at your link. It definitely helped and I've got it working now. It's slightly different and doesn't rely on Preparable: class Question { long id; String name; } public

Re: S2 - s:submit method=value has to be hard-coded?

2009-05-11 Thread cm132005
Yes and that's why I think the DispatchAction was better in Struts 1. musomesa wrote: There is bound to be some logic that determines what method the button would invoke. Why not put that logic in the action method and have it call appropriate helper methods? In other words move the

Access to ValueStack from JSPs

2009-05-11 Thread cm132005
http://struts.apache.org/2.x/docs/access-to-valuestack-from-jsps.html has an example on how to access the ValueStack from JSP. I am not able to get the tag/tld working in this example. s:set name=a value={ 1, 2, 3, 4 } scope=request/ 1. a[0] = s:property

Re: Access to ValueStack from JSPs

2009-05-11 Thread Chris Pratt
As far as #1 is concerned, you can't use JSTL EL (${}) in OGNL tags (s:) any longer. That was changed quite a while ago as a security precaution. You would have to change those to OGNL EL (%{}) for them to work. #2 seems to be working as it should with the JSTL Tag. #3 #4 seems to indicate you

Re: Access to ValueStack from JSPs

2009-05-11 Thread cm132005
Thanks for your quick response, Chris. I am just trying to figure out how is the tag in the example on http://struts.apache.org/2.x/docs/access-to-valuestack-from-jsps.html working. I am trying to implement a custom tag which should evaluate for both JSTL and OGNL expressions. Thanks. Chris

Re: Access to ValueStack from JSPs

2009-05-11 Thread Chris Pratt
The security problem with the earlier Struts tags was that it was a two pass system. The Container made the first pass through, converting all the JSTL EL references, then the Struts tags got a chance to process the OGNL. So a clever thief could conceivably put something in the system where the

Re: Help with JSP expression

2009-05-11 Thread Dave Newton
Security Management wrote: I have an expression that I want to evaluate to the following: getProvider().hasAccessRight(getRequestFor(), [0]) Where [0] is an item in a list that is being iterated over. s:if test=provider.hasAccessRight(requestFor, [0]) I've tried loads of different stuff, and

Re: S2 - s:submit method=value has to be hard-coded?

2009-05-11 Thread Dave Newton
cm132005 wrote: Yes and that's why I think the DispatchAction was better in Struts 1. I don't see how--it's essentially the exact same thing, but not tied to the framework. Dave - To unsubscribe, e-mail:

Removing default mappings in Convention plugin [SEC=UNCLASSIFIED]

2009-05-11 Thread Crombie, Joe - BRS
Hi All, I'm currently switching to 2.1.6 and the Convention plugin for configuration. I tend to use POJOs for my Action classes, and map actions to methods. My problem is that when I extend ActionSupport, Convention generates a default mapping to the execute method (which I generally don't

JAAS not working

2009-05-11 Thread Dan C.
Hi, I have an application we migrated to struts 2. We originally had oracle OAM for authentication but now we are going back to JAAS. We used JAAS on struts 1 and it work fine. I've added everything I need to in the web.xml but anytime I use a link that requires authentication I get a blank page

Re: How to invoke annotation validation manually

2009-05-11 Thread joea88
Thanks for the reply Dave. My example was a simple one, but sometime annotations are in entity level and you dont want to write different actions to handle different situations where you could have just done with different methods. Anyway, I found the solution. AnnotationActionValidatorManager

Re: Integrate JasperReports into a Struts2 web application

2009-05-11 Thread Yanto
Hi Oscar, thanks alot for the code, will try it :) On Mon, May 11, 2009 at 6:59 PM, wild_oscar mig...@almeida.at wrote: Hi, I don't think the plugin was available when I used Jasper with an application. I simply passed some Collections into the report and created them. You can have a look