Re: Problem in JSP. help me pls

2007-07-02 Thread gundakiran
If you see your classpath, you have two different versions of servlet-api.jar.. and moreover in the systems classpath, I suggest not to keep any tomcat or any specific jar files except your JDK/JRE jar files.. and whe n you deploy your web-app and if you have all jars included in your web-inf/lib

Why this inconsistency

2007-07-02 Thread tom tom
Hi, I have the following iterator s:iterator value=#session.testDTOs id=testObj s:url id=testUrl action=testView s:param name=testId value=#testObj.scholarshipId/s:param /s:url above expression get evaluated correctly but in the same iterator I got the following but this

Re: Problem in JSP. help me pls

2007-07-02 Thread Li
Hi bindu, you dont have to put your tomcat\lib, and your jre\lib onto your classpath, when tomcat load up your JSP, its classloader will checkout libs that are needed ... also, it is a very bad idea to export same jar from different location ... Clean up your classpath, it should work. Regards

Re: Problem in JSP. help me pls

2007-07-02 Thread bindhu
hi, thank u . i removed what u said so now my classpath looks like this CLASSPATH=C:\Program Files\Java\jdk1.6.0_01\lib\servlet-api.jar;C:\struts1.3.8\l ib\*;C:\apache-tomcat-6.0.13\lib\*;C:\Program Files\Java\jre1.6.0_01\lib\* but i face the same problem. i dont use any IDE right now.

Re: Problem in JSP. help me pls

2007-07-02 Thread Li
try to clean up all in your classpath make sure your JAVA_HOME and CATALINA_HOME is available. On 7/2/07, bindhu [EMAIL PROTECTED] wrote: hi, thank u . i removed what u said so now my classpath looks like this CLASSPATH=C:\Program

Re: Problem in JSP. help me pls

2007-07-02 Thread gundakiran
Hi.. Remove servlet-api and struts lib and apache tomcat libe jar files from the classpath... bindhu wrote: hi, thank u . i removed what u said so now my classpath looks like this CLASSPATH=C:\Program Files\Java\jdk1.6.0_01\lib\servlet-api.jar;C:\struts1.3.8\l

Re: Problem in JSP. help me pls

2007-07-02 Thread bindhu
hi, i hv done what u said n now my calsspath is CLASSPATH=C:\Program Files\Java\jre1.6.0_01\lib\* still i face the error. bindhu wrote: hai, when trying to open my jsp page in browser i get this error. can anyone plas help me. type Exception report message description

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

2007-07-02 Thread Jeromy Evans
Guys, please read a classpath tutorial. There's a decent one here: http://www.kevinboone.com/classpath.html The following section is especially relevant that I've copied from that page for you: quote JARs on the classpath The java compiler and run-time can search for classes not only

using same field name for data posting and getting data using array in action is not working FF

2007-07-02 Thread dhilip mandava
hi i have station form and in the same form i have station addresses , these are adding dynamically, depending on necessity.i mean , station may contains multiple address, in the same form. when i submitting the form stationAddress as filed name, i am getting array out index problem in Fire

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.

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

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

The s:tree -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

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

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

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

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 user@struts.apache.org Sent: Monday, July 02, 2007 8:14 AM Subject: Struts 2

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

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.

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

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

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

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:

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

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

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

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 the

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

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

validwhen returns is required error msg

2007-07-02 Thread Xavier Vanderstukken
I have the following validation rule : field property=newPasswordConfirm depends=validwhen arg position=0 key=valid.confirmnewpassword/ var var-nametest/var-name var-value(*this* == newPassword)/var-value

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) {

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:

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

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

S2: Redirect question

2007-07-02 Thread Scott Nesbitt
We have the following: Select.jsp …… s:head theme=ajax debug=true/ ……… s:url id=historyUrl action=LineupHistory/ s:a href=%{historyUrl} theme=ajax formId=selectedDataLineup History/s:a … Struts.xml action name=LineupHistory class=com.mycompany.action.LineupHistoryAction

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 plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config

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

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--it's

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

[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

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 : field property=newPasswordConfirm depends=validwhen arg position=0 key=valid.confirmnewpassword/ var var-nametest/var-name

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

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

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: 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 else

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

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

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

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

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
i have done the following configuration struts.xml -- result-types result-type name=tiles class=org.apache.struts2.views.tiles.TilesResult/ /result-types action name=selectProduct result type=tilesselectProduct/result /action web.xml

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 having

RE: handle set of list of objects

2007-07-02 Thread prafull.jain
---BeginMessage--- 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

[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: head

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

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

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. context-param param-nametiles-definitions/param-name param-value/WEB-INF/tiles-config.xml/param-value /context-param (*Chris*) On 7/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i

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: Dynamically rendering image - Servlet/Action

2007-07-02 Thread Stjepan Brbot
- Original Message - From: Niall Pemberton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org 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

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: 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 body onload=function(...) or

[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

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

Re: [S2] Do AJAX features work?

2007-07-02 Thread Jeromy Evans
s:submit type=button theme=ajax targets=div1 label=Submit Button/ The submit won't work because div1 doesn't exist. The s:a 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.

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

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.

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

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

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: !DOCTYPE validators PUBLIC -//OpenSymphony Group//XWork Validator Config 1.0//EN http://www.opensymphony.com/xwork/xwork-validator-config-1.0.dtd; 2.0.1 didn't need it, but