Re: weird thing with xwork 2.0.3

2007-07-02 Thread alex xander
thx alot, u solve my problem. that's work Zoran Avtarovski <[EMAIL PROTECTED]> wrote: I got caught out on this as well. You have to add the DTD statement to your validators.xml file like this: "-//OpenSymphony Group//XWork Validator Config 1.0//EN" "http://www.opensymphony.com/xwor

Re: weird thing with xwork 2.0.3

2007-07-02 Thread Zoran Avtarovski
I got caught out on this as well. You have to add the DTD statement to your validators.xml file like this: http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd";> 2.0.1 didn't need it, but 2.0.8 does. Z. > i use struts 2.0.8 and tomcat 6.0.10 as server > i want to upgrade from xw

weird thing with xwork 2.0.3

2007-07-02 Thread alex xander
i use struts 2.0.8 and tomcat 6.0.10 as server i want to upgrade from xwork 2.0.1 to 2.0.3. everything work fine with xwork 2.0.1 but with xwork 2.0.3 i find some weird thing i got error just when i run com.bba.security.Login.java, but when i put it on another package for example com.bba.test.Logi

Struts integration with (JBoss) Login Modules

2007-07-02 Thread Krish Palaniappan
Folks, If there is a simple working example someplace, could you please point me to it? I am trying to migrate a Struts application to use JAAS and JBoss Login Modules. I assume I don't need to implement any JAAS callback handlers if I used either one of the OOTB JBoss login modules or implemente

Re: My struts1 app with sslext used. How to upgrade it to struts2?

2007-07-02 Thread Jeromy Evans
There is no standard convention in S2 yet AFAIK, but this is what you need to do: 1. setup your web.xml security constraints 2. split your s2 actions into packages, with a namespace matching the url for the security constraint for the protected pages 3. Avoid hardcoding the URL's in your jsp. A

Re: [S2] Validation alias

2007-07-02 Thread Jeromy Evans
Crocker, Patrick wrote: Unfortunately, I can't get that (MySpringAction-crudsave-validation.xml) to work. The validation never fires. Am I missing something, or just barking up the wrong tree all-together? The last time I checked you had to use the wildcard approach to call methods in your

Re: [S2] Do AJAX features work?

2007-07-02 Thread Jeromy Evans
The submit won't work because "div1" doesn't exist. The should work though. I don't recognise the error messages you're getting. If you're installed an copy of Dojo, remove it and use the version shipped within struts. You can't use the struts tags with dojo 0.9. The basic examples on

Re: My struts1 app with sslext used. How to upgrade it to struts2?

2007-07-02 Thread peter lee
Hello, Does anyone use http switch in struts2? It seems nobody answers my question. please help. Thanks, peter c. peter lee <[EMAIL PROTECTED]> wrote: Hello, My struts1 app is using sslext for https switch. How to upgrade it to struts2? Thanks, peter ---

[S2] Validation alias

2007-07-02 Thread Crocker, Patrick
I'm using Struts-2.0.8 and the XWork validation xml files (Example: MyActionClass-validation.xml). I know that you can restrict the execution of the validation by following the XWork alias naming convention: MyActionClass-crud-validation.xml This works just fine, and the validation only occurs f

Re: javascript and logic:forward

2007-07-02 Thread thenameless20
Ok, I've got it working much better. What I did was use JavaScript to redirect, setting window.location. I've read that logic:forward is a server-side redirect, and I did not try using sendRedirect yet. thenameless20 wrote: > > What comes firsta documents > > or > > > > Is this browser

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Dale Newfield
tom tom wrote: because I got if statements and logic inside, it is not merely diplaying the value. You can always refer to the current iteration value as "top" -Dale - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Dynamically rendering image - Servlet/Action

2007-07-02 Thread Stjepan Brbot
- Original Message - From: "Niall Pemberton" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: 2. srpanj 2007 16:49 Subject: Re: Dynamically rendering image - Servlet/Action There is just such a DownLoad action designed to help with this - you just need to return "null" from th

Re: Dynamically rendering image - Servlet/Action

2007-07-02 Thread Stjepan Brbot
Actually I can do that (make database connection from servlet rendering an image) but I'd like to avoid that and I'll explain why. I'm working on one small dashboard. On this dashboard I have one select into database for retrieving 10-20 rows, each row data is represented by one gauge widget (

Re: Configuring Tiles in S2

2007-07-02 Thread Chris Pratt
You may need to include the context-param to define your tiles-config.xmlfile for the listener. tiles-definitions /WEB-INF/tiles-config.xml (*Chris*) On 7/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: i have done the following configuration struts.xml --

RE: [S2] Why is it so difficult ?

2007-07-02 Thread Luciano Costa
I didn't know about Type Conversion. I found the response here: http://www.opensymphony.com/webwork/wikidocs/Type%20Conversion.html It's great! Thanks! Att, Luciano -Mensagem original- De: Luciano Costa [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 2 de julho de 2007 12:08 Par

Re: [S2] Do AJAX features work?

2007-07-02 Thread Musachy Barroso
On 2.0 you would be stuck with Dojo(which seems to be the source of your problems), for 2.1 Dojo will be on it's own plugin so you won't have to carry it around. As for using other libraries, you just need to stay away from the ajax theme, and include the javascript files in your app. Some work i

[S2] Do AJAX features work?

2007-07-02 Thread Kenton
Struts: 2.0.8 Browser: Firefox 2.0.0.4 App Server: Glassfish v2 beta 2 OS: Windows XP SP2 I'm trying to add some simple AJAX functionality to my Struts 2 application. I've copy/pasted a few snippets from the Struts 2 documentation. I've tried several variations on this:

RE: handle set of list of objects

2007-07-02 Thread prafull.jain
--- Begin Message --- Hi, I did same thing but I am not getting any values. its showing null value but value is already there. please give me any other solution. Thanks & Regards, Prafull Jain J From: Vikash Manoranjan [mailto:[EMAIL PROTECTED] Sent: Mon 02/

Re: Setting an interceptor across all actions

2007-07-02 Thread Session A Mwamufiya
Thanks, that answers my question. Session > --- Session A Mwamufiya wrote: >> I've been doing some readin on interceptors, and am wondering whether >> there's a way to declare a login type of interceptor only once and have >> it apply across my entire app. I'm looking for something other than >

Re: Configuring Tiles in S2

2007-07-02 Thread Manoj . Gupta
i have done the following configuration struts.xml -- selectProduct web.xml tiles org.apache.tiles.servlet.TilesServlet definitions-config /WEB-INF/tiles-config.xml 1

Re: Configuring Tiles in S2

2007-07-02 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > 16:46:17,171 ERROR [BasicTilesContainer] Error > rendering tile > > can anyone advise of what we're doing wrong? That's... perhaps not enough information to go on. d. Get your

Re: Configuring Tiles in S2

2007-07-02 Thread Manoj . Gupta
We've done as the tiles plugin page describes but are getting a null pointer 16:46:16,796 INFO [ActionValidatorManagerFactory] Detected AnnotationActionVali datorManager, initializing it... 16:46:17,171 ERROR [BasicTilesContainer] Error rendering tile can anyone advise of what we're doing wrong?

Re: Configuring Tiles in S2

2007-07-02 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Has anyone tried plugging in tiles in Struts 2 > application. Sample configuration code can be of > great help. The tiles plugin page [1] gives the basics. Tiles2 was in a bit of flux when I used it for a previous application so my code may not be up-to-date; I'd ch

Configuring Tiles in S2

2007-07-02 Thread Manoj . Gupta
Hi, Has anyone tried plugging in tiles in Struts 2 application. Sample configuration code can be of great help. Thanks. Manoj. This e-mail is intended to be confidential to the recipient. If you receive a copy in error, please inform the sender and then delete this message. Virgin Money do no

RE: Over 100 site URLs to redirect: interceptor or action mappings?

2007-07-02 Thread AntonyJB
Sure I'm already using an HTTP redirect filter that precedes Struts' own but out of principle I wanted to explore the possibility of the redirect being engaged by an action to record "near correct URLs". I then run some metrics on these near misses and handle them. I can still do that with a filt

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Musachy Barroso
I logged : https://issues.apache.org/struts/browse/WW-2024 just to help my memory :) musachy On 7/2/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Musachy Barroso <[EMAIL PROTECTED]> wrote: > Yeah, I was writing about that now, dumb me, I spent > half an hour when I noticed that :) The only

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > Yeah, I was writing about that now, dumb me, I spent > half an hour when I noticed that :) The only reason I can say "I hate it when that happens" is 'cuz I always do stuff like that and I hate it when that happens. > I'm testing to see if nothing

Re: validwhen returns is required error msg

2007-07-02 Thread Niall Pemberton
On 7/2/07, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote: Thanks a lot :) Do you think this required a documentation update because I don't find your information here: http://struts.apache.org/1.3.8/faqs/validator.html On that page it says: "he default error message for a pluggable validator

Re: Dynamically rendering image - Servlet/Action

2007-07-02 Thread Larry Meadors
If it's in request scope, I'm assuming it is transient data, so why not pass the key to the database row to the servlet? /ImageServlet?rowKey=123 Or if you want to be more clever, even: /ImageServlet/123 /ImageServlet/123/file.png I've done that before to deal with stupid browsers that seem to

Re: validwhen returns is required error msg

2007-07-02 Thread Xavier Vanderstukken
Thanks a lot :) Do you think this required a documentation update because I don't find your information here: http://struts.apache.org/1.3.8/faqs/validator.html 2007/7/2, Niall Pemberton <[EMAIL PROTECTED]>: On 7/2/07, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote: > I have the following vali

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Musachy Barroso
Yeah, I was writing about that now, dumb me, I spent half an hour when I noticed that :) if ((id != null) && (currentValue != null)) { //pageContext.setAttribute(id, currentValue); //pageContext.setAttribute(id, currentValue, PageContext.REQUEST_SCOPE); stack.getContext().put(id, currentValue)

Re: validwhen returns is required error msg

2007-07-02 Thread Niall Pemberton
On 7/2/07, Xavier Vanderstukken <[EMAIL PROTECTED]> wrote: I have the following validation rule : test (*this* == newPassword) In my ressource file: errors.required={0} is required. errors.i

[S2] Why is it so difficult ?

2007-07-02 Thread Luciano Costa
Hi all, I'm still trying to get binded these "poll.pollOptions[]" in my Action: I think this should be easy.. but I'm suffering to get this working.. <@s.textfield name="poll.name" id="poll.name" /> <#assign rowIndex = 0> <@s.iterator value="poll.pollOptions" > <@s.textfield name="poll.p

Re: Dynamically rendering image - Servlet/Action

2007-07-02 Thread Niall Pemberton
On 7/1/07, Stjepan Brbot <[EMAIL PROTECTED]> wrote: Hi, I have one classic HttpServlet for dynamically rendering an image from given (database retrieved) data. Actually this servlet takes data from session (previously retrieved from database and put inside session) and renders the image. Since t

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > findValue is returning an Array with an extra > element at the end, null, which is causing the extra > iteration, I think. I'm not really sure why OGNL > is doing that. To be continued ... It's not returning an extra element, the element is there--

Re: Struts 1.3.8 Error on multiple servers Geronimo 1.1, Tomcat 5.5 and Sun App 8.2

2007-07-02 Thread Niall Pemberton
On 6/30/07, Andrew Burger <[EMAIL PROTECTED]> wrote: I am trying to use Struts 1.3.8 on Geronimo 1.1, Tomcat 5.5 and Sun App 8.2 I am getting the same error. on all 3. I thought at first it was my struts-config.xml but the struts-blank-1.3.8.war is give my the same error. I tried struts-blank-1.3

Re: Issues with migration from struts 1.1. to 1.2.9

2007-07-02 Thread Niall Pemberton
On 6/30/07, pavan reddy <[EMAIL PROTECTED]> wrote: Thanks Wendy But I followed the struts upgrade steps The problem here is with tiles plugin this my code in struts-config.xml //even tried making this attribute false and in tiles-def.xml the doc type is http://struts.apache.org/dtds/ti

S2: Redirect question

2007-07-02 Thread Scott Nesbitt
We have the following: Select.jsp …… ……… Lineup History … Struts.xml globalUserInformation userDetailsBean true /html/lineup-history.jsp Upon clicking on the url d

Re: Has anyone tried this in S2 - THIS LOOKS A BUG

2007-07-02 Thread Musachy Barroso
I was digging into this, and the problem doesn't seem to be on the iterator tag itself, when this line is executed (on IteratorComponent): iterator = MakeIterator.convert(findValue(value)); findValue is returning an Array with an extra element at the end, null, which is causing the extra iterati

RE: Struts 2 - redirect to secure page

2007-07-02 Thread Al Sutton
The only way (so far) I've found of doing this is to split the parts you want to secure into their own package in under their own path in the URL (e.g. https://machine/myapp/secure/) and then use the security-constraint tag in web.xml to require SSL for the url-pattern by specifying CONFIDENTIAL fo

Struts 2 - redirect to secure page

2007-07-02 Thread Manoj . Gupta
Hi, In struts 2 how can we redirect to a secure page. Unlike struts 1.x there is no secure property in the action tag of struts.xml file. On the form submission I want to go to a secured jsp page. Thanks, Manoj Gupta. This e-mail is intended to be confidential to the recipient. If you receive

RE: Over 100 site URLs to redirect: interceptor or action mappings?

2007-07-02 Thread Al Sutton
Any reason you're not using your web servers or app servers configuration to send a redirect back for requests to these URLs? -Original Message- From: AntonyJB [mailto:[EMAIL PROTECTED] Sent: 02 July 2007 13:57 To: user@struts.apache.org Subject: Over 100 site URLs to redirect: intercept

Re: Problem in JSP. help me pls

2007-07-02 Thread Li
Hi, You got this error is because when tomcat is processing your servlet, it was unable to cast to an AnnotationProcessor, see the section below (From StandardWrapper): try { ... if (getParent() instanceof StandardContext) { ((StandardContext)getParent()).getAnnotationProcessor().processAnn

validwhen returns is required error msg

2007-07-02 Thread Xavier Vanderstukken
I have the following validation rule : test (*this* == newPassword) In my ressource file: errors.required={0} is required. errors.invalid={0} is invalid. valid.confirmnewpassword=Confirm new passwo

Over 100 site URLs to redirect: interceptor or action mappings?

2007-07-02 Thread AntonyJB
Hi, I searched for similar situations but haven't come across anything - an easy one I'm sure though. Issue: Our site contains a large amount of marketing URLs which redirect to a small number of actual actions. E.g.: www.mysite.com/offer1 www.mysite.com/offeragain www.mysite.com/GreatOff

Re: [SOLVED] Validator throws exception

2007-07-02 Thread Amulya
Probably you had new libraries(new version of struts) but old validation-rules.xml file before Michael Jouravlev wrote: > > On 7/14/05, James Mitchell <[EMAIL PROTECTED]> wrote: >> I see a stack trace below, but what is the actual error you got? > > Hmm, it works on another machine, with d

Re: Setting an interceptor across all actions

2007-07-02 Thread Dave Newton
--- Session A Mwamufiya wrote: > I've been doing some readin on interceptors, and am > wondering whether there's a way to declare a login > type of interceptor only once and have it apply > across my entire app. I'm looking for something > other than having every package extend the one in > which

RE: handle set of list of objects

2007-07-02 Thread Vikash Manoranjan
As you are picking value from set. And while fetching value from set, it gives reference of the object. Therefore whatever change you will do with the value will updating the set object too. No need to set the Set explicitly. Now u need to set the Set object back to FormBean. Since u have the objec

Cross Field Validation

2007-07-02 Thread Petzsch, Martin
Hi, I'm looking for an example of cross-field validation; preferably using annotations. I have the following on my action: @Validations( expressions={ @ExpressionValidator(expression="data.key eq 'd'",message="DNE") }

RE: handle set of list of objects

2007-07-02 Thread Vikash Manoranjan
Your all text fields are disabled. Then I do not understand of what u want to hold?? Thanks and Regards, Vikash Manoranjan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 02 July 2007 16:57 To: user@struts.apache.org Subject: RE: handle set of list of object

RE: handle set of list of objects

2007-07-02 Thread prafull.jain
Thanks & Regards, Prafull Jain J From: Prafull Jain (WT01 - SECURITIES) Sent: Mon 02/07/2007 4:47 PM To: Struts Users Mailing List; 'Struts Users Mailing List' Subject: RE: handle set of list of objects Hi Vikash, I want to do this using actionForm. I a

RE: handle set of list of objects

2007-07-02 Thread prafull.jain
Hi Vikash, I want to do this using actionForm. I am using struts - jsp tag. Every fields are releated to my actionForm. but I am able to set properties of fields which are getting set of list of objects values, in my actionForm. I have only 2 question. 1) how to set properties of fields whic

RE: handle set of list of objects

2007-07-02 Thread Vikash Manoranjan
Put the set object into session and retrive it from session in your action class and after retrivial remove it from session. Thanks and Regards, Vikash Manoranjan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 02 July 2007 16:26 To: user@struts.apache.org

handle set of list of objects

2007-07-02 Thread prafull.jain
Hi, In my struts application, I am getting results from database, based on my search query. In result, I am getting set of list of objects mean set contain lists and list contain objects. I am passing these values from my action class to jsp page using one bean class. Now I want to pas

Problem in JSP. help me pls

2007-07-02 Thread bindhu
while opening my browser i get this error msg in my browser. this is the error msg. HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from

Changing the "target" html window for an interceptor's result

2007-07-02 Thread Session A Mwamufiya
Hi, I'm using frames in my app; my login page is not within a frame, but it goes to a page with frames once a user is authenticated. I have 2 frames: a control frame on the left and a display frame on the right. Going from my login to the main page (with frames) is not an issue, but I'm also

Setting an interceptor across all actions

2007-07-02 Thread Session A Mwamufiya
Hi, I've been doing some readin on interceptors, and am wondering whether there's a way to declare a login type of interceptor only once and have it apply across my entire app. I'm looking for something other than having every package extend the one in which the interceptor is defined. Thanks

Validation of @SessionScoped Actions

2007-07-02 Thread Petzsch, Martin
Hi, I have an action which is annotated with @SessionScoped (using Guice as the object factory). When I attach validation to the fields, a validation message is added to the action each time I submit which means that I end up with multiple error messages appearing for each field. I unders

Re: Struts 2 EventDispatcherAction ?

2007-07-02 Thread Nuwan Chandrasoma
Hi, http://struts.apache.org/2.x/docs/action-configuration.html#ActionConfiguration-WildcardMethod Thanks, Nuwan - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, July 02, 2007 8:14 AM Subject: Struts 2 EventDispatcherAction ? HI, Is t

Re: JAAS authorization with Struts

2007-07-02 Thread wild_oscar
Oh, nice, I'll try to implement this then. I have read a lot about authorization and authentication and am trying to decide the best alternative for my struts based application (which can hopefully become my standard in web app development). Thank you for the tip, I'll report to say how it is go

Re: Problem in JSP. help me pls

2007-07-02 Thread bindhu
hi, thank u so much fro ur reply. i have formtag class in my directory. i hope i didnt miss any thing in my directory. Session A Mwamufiya wrote: > > Hi, > > I'm still a newbie here, but I've encountered this type of errors before. > From my limited experience, it seems to me that you are m

Struts 2 EventDispatcherAction ?

2007-07-02 Thread Manoj . Gupta
HI, Is there is any interface similar to EventDispatcherAction(in struts 1.2.9) in struts 2 by which I could invoke different action methods based on the parameters Manoj. This e-mail is intended to be confidential to the recipient. If you receive a copy in error, please inform the sender and

The -tag - how to use properly?

2007-07-02 Thread Toni Lyytikäinen
I'm trying to make a simple page like the one in the struts showcase app that displays a tree, and when the user clicks a node, the page will display information about that node. The problem is however, that the documentation on the tree-tag is scarce and the example in the showcase app (version 2

Re: [OT] Re: Problem in JSP. help me pls

2007-07-02 Thread Li
It's not necessary at all to add all jars into classpath to make it your struts application work. Jeromy is right that the problem may caused by wrong syntax on classpath. Again, Tomcat classloaders will find class for you if your jars placed at right place. You dont even have to put jars in comm

Re: Spring Injected Preparer

2007-07-02 Thread Antonio Petrelli
2007/6/28, stanlick <[EMAIL PROTECTED]>: Does this work with Struts 2? Mmm... I don't think so... Controller is a concept of Struts-Tiles. Antonio

migration tutorial for JSF to S2 migration

2007-07-02 Thread java_user
please provide some good migration tutorial for JSF to S2 migration ? -- View this message in context: http://www.nabble.com/migration-tutorial-for-JSF-to-S2-migration-tf4010280.html#a11388754 Sent from the Struts - User mailing list archive at Nabble.com. -