Re: tiles2 with struts1

2007-04-18 Thread Antonio Petrelli
2007/4/19, "André Henke" <[EMAIL PROTECTED]>: hi, is there a way to get struts1 work with tiles2? I'm migrating my application to struts2/tiles2 but there is still struts1 code using tiles forwards which must be supported. The Struts 1 - Tiles 2 integration code is in the trunk of the Subver

Re: RE [S2] How to have validation message using localization ?

2007-04-18 Thread MLENEVEUT
Yes the good properties would be login.login.required= The field "${getText(login.login)}" is required ! But I would like to do it automatically with a generic error message : errors.required= The field "${getText(???)}" is required ! and the ??? is replaced with the "label" of the input, to get

tiles2 with struts1

2007-04-18 Thread André Henke
hi, is there a way to get struts1 work with tiles2? I'm migrating my application to struts2/tiles2 but there is still struts1 code using tiles forwards which must be supported. So i have to share the tiles.xml with struts1 TilesPlugin and struts2 StrutsTilesListener. web.xml

Need help in client side validation in Struts 2.0

2007-04-18 Thread arunabh
hi, If somebody have some information about client side validation in Stutrs2. 0 then send me .I am in a desperate need of the same . thanks Arunabh -- View this message in context: http://www.nabble.com/Need-help-in-client-side-validation-in-Struts-2.0-tf3605223.html#a10072395 Sent from the

How to get original query string after more than two forwards

2007-04-18 Thread Deep Blue Li
Hi, I'm currently using an app. server that is using servlet 2.4. I cannot get the original query string after doing more than two request forward. Here is the scenario: 1. Enter the URL in the browser : http://xxx/xxx.do?search=abc 2. Go to validator, validation failed 3. Validator forwards the

Re: [s2]Would like each action to go throught my parent class

2007-04-18 Thread Drew Kutcharian
A little suggestion. Inside the interceptor, you can also put the User in the ActionContext or your own custom ThreadLocal so you can use that all over the stack for permissions/roles/etc as an alternative to say Acegi. Cheers, Drew Kutcharian Venarc Inc. www.venarc.com - Original Mess

How do i populate the form bean with a list of variable number of enteries.?

2007-04-18 Thread Chaitanya Deshpande
hi, I wanted to know if there is any way to populate a form bean with a list which is variable in number. For example : If i need to read the names of all the students in class. On page 1 i read the number of students (= n) and on the next page based on this number i display "n" number of tes

Re: Load an .xml file when server start up

2007-04-18 Thread Niall Pemberton
I've never actually used it but I think the DigestingPlugIn might do this for you http://tinyurl.com/2kzh8b Having said that probably the best plan would be to create your own ServletContextListener to do this which would be independant of Struts http://java.sun.com/products/servlet/2.3/javado

Re: Validatoin not working

2007-04-18 Thread Niall Pemberton
For ValidatorForm it uses the "attribute" value for the key to the validation - in your case thats "LogonForm" - but your validation.xml uses the form "name" of "logonForm". So either change the key in the validation.xml or the attribute on your action mapping. You don't actually have to specify

Re: Using jsps from another context

2007-04-18 Thread Laurie Harper
Rajesh Gupta wrote: Hi All, I have several common jsp's in a common webapp, which will be shared by all other web applications. I use tag to include jsp's from this common webapp. I can include jsp's , if they do not contain any struts specific things. But when i try to include a jsp with s

Re: [s2]How to customize the errors prefix, suffix, ... ?

2007-04-18 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Hi all, I tried to customize the errors.prefix, suffix, header and footer, but they are not taken into account. How to do in Struts 2 ? I just put this in my package.properties : errors.footer= errors.header= errors.prefix= errors.suffix= Not taken into account by

Re: JSTL versus Struts tags

2007-04-18 Thread Laurie Harper
It's not a case of 'which is better'; they aren't directly equivalent. Some of the functionality in the Struts 1 tag libs overlaps some of the functionality in the JSTL tag libs. Both sets of tags have capabilities that are not available in the other. In general, it's recommended to use the JS

Re: Would like to read more about "Flexible Cancel Buttons - Go directly to a different action on cancel."

2007-04-18 Thread Laurie Harper
Vlad2006 wrote: Hi, On the Struts 2 start page one statement reads: "Flexible Cancel Buttons - Go directly to a different action on cancel." Could anybody point me to a page where this statement is explained? My guess is that this refers to the ability of the s:submit tag to specify a target

Re: newbie alert: forward to a php script

2007-04-18 Thread Laurie Harper
I'm not really clear on what you're trying to achieve, but it sounds like you just need to read the HTTP response from the request you make through HttpClient. Since you're making that request from your action and, therefore, will have the response available there too, you don't need to 'direct

Load an .xml file when server start up

2007-04-18 Thread Zhang, Larry \(L.\)
I need to load an .xml file when Websphere server starts up. I am using Struts ActionServlet as the only servlet in the app and I do have a CustomProcessor extending TilesRequestProcessor. I am trying to load the .xml file when the server starts up. I configured to load ActionServlet when server st

Validatoin not working

2007-04-18 Thread Kirthi
I am using Struts Validator Frame work to do both Client and Serverside Validation. I am using Struts 1.2 My Validator is not triggring at all. I am trying to figure out the mistake from the last two days, but no luck. I am extending the ValidatorForm Class. Can anyone help me with this one. t

Re: shopping cart advise

2007-04-18 Thread Felipe Rodrigues
I think it is better to use session. You can do that by using ActionForm, but it is not recommended. Best, Felipe john lee-15 wrote: > > Hi everyone, > > In regular jsp, just use session + vector to build shopping cart, > > how about for the struts 1.3.* ? use same concept or use

Two New Tutorials

2007-04-18 Thread Mark Menard
I've written up two new Struts 2 tutorials: Post and Redirect in Struts 2 http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect Creating a Login Interceptor in Struts 2 http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor Take care, Mark -- Mark Menard Business:

Re: [s2]Would like each action to go throught my parent class

2007-04-18 Thread Mark Menard
On 4/18/07 11:11 AM, "Mark Menard" <[EMAIL PROTECTED]> wrote: > Now, with that example shown, I wouldn't use it. Look at an interceptor to > do this. I'm working on exactly this right now, a login interceptor. Stay > tuned for a write up when I get done. As promised here's a fairly complete write

Re: Targets vs ActionContext weird

2007-04-18 Thread Musachy Barroso
yeah, the notifyTopics is a "catch all" attribute, for 2.1 we will have "beforeNotifyTopics", "afterNotifyTopics" and "errorNotifyTopics" musachy On 4/18/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: yeah, I imagined the 2 submits. So, I'll have to use javascript to workaround that until do

Re: Targets vs ActionContext weird

2007-04-18 Thread Felipe Rodrigues
yeah, I imagined the 2 submits. So, I'll have to use javascript to workaround that until don't get the 2.1 ready. Best Regards, Felipe Dave Newton-4 wrote: > > --- Musachy Barroso <[EMAIL PROTECTED]> wrote: >> The topics are submitted twice, once before and one >> after the request. >> Check

Re: Targets vs ActionContext weird

2007-04-18 Thread Dave Newton
--- Musachy Barroso <[EMAIL PROTECTED]> wrote: > The topics are submitted twice, once before and one > after the request. > Check: > > http://struts.apache.org/2.x/docs/ajax-tags.html > > for details. One of the parameters passed to the > topic is either "before" or > "load". Just as a heads up,

shopping cart advise

2007-04-18 Thread john lee
Hi everyone, In regular jsp, just use session + vector to build shopping cart, how about for the struts 1.3.* ? use same concept or use Actionform bean? pls advise. tks in advance john - Ahhh...imagining that irresistible "new c

Re: Targets vs ActionContext weird

2007-04-18 Thread Musachy Barroso
The topics are submitted twice, once before and one after the request. Check: http://struts.apache.org/2.x/docs/ajax-tags.html for details. One of the parameters passed to the topic is either "before" or "load". Just as a heads up, 2 separate topics were added to the ajax tags for 2.1 to make th

Re: Problem with form action mapping

2007-04-18 Thread meeboo
Oddly enough I checked out the code to continue my work from home and it suddenly started working. I'm gonna take a look at this inconsistency tomorrow, might be something else than S2 which is causing it. And yes, I'm using the cleanup filter. Thanks anyway! Dave Newton-4 wrote: > > It may not

Re: RE [S2] How to have validation message using localization ?

2007-04-18 Thread Felipe Rodrigues
Just to make sure, did you tried %{getText('login.login')} ? because fieldName you give you the fieldName, that is loginInput. Best, Felipe MLENEVEUT wrote: > > Anyone ? :( > > > Michaël > > > > > Hi all, > > With Struts 2.0.6, I try to have validation message with localization. > > F

Targets vs ActionContext weird

2007-04-18 Thread Felipe Rodrigues
Hy Guys, I made a form that must be submited and refreshed to get the new values from DB. The problem is, when I use notifyTopics, I got 2 requests, and form refresh 2 times. when I use the targets attribute of submit button, when I submit again, my ActionContext.getContext( ).getParameters( ) r

Re: JSTL versus Struts

2007-04-18 Thread Dave Newton
--- Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]> wrote: > When I search information about the best practice > for programing in Struts. I find: You should to use > JSTL before the struts tags. Why? For S1, because JSTL is "more standard" and duplicates functionality found in the "less standard" Str

Re: [S2]: Which way would you present dynamically generated block of text?

2007-04-18 Thread Skip Hollowell
Definitely ResourceBundle.I'll let the Action build the text based on the variables and the text in the bundle, drop it on the ActionStack (in a prop called script) and then display it that way. Skip Hollowell wrote: My app is progressing happily (With no small thanks to you all) and I ha

JSTL versus Struts

2007-04-18 Thread Heidy Gutiérrez Guzmán
When I search information about the best practice for programing in Struts. I find: You should to use JSTL before the struts tags.Why?

Maven Jetty plugin error

2007-04-18 Thread LAMY Olivier
Hi, I have a strange error when using the maven-jetty-plugin. At the of the stack : Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with the name xwork has already been loaded by bean - jar:file:/local/olamy/projets/DatabaseOnTheWeb/dotw-webapp-trans/target/ webappdir/dotw-trans/WE

RE [S2] How to have validation message using localization ?

2007-04-18 Thread MLENEVEUT
Anyone ? :( Michaël Hi all, With Struts 2.0.6, I try to have validation message with localization. For example, I have a "login" form, with a "loginInput" input text : I have a validation on it : And the "errors.required" is in my package.prop

RE: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2007-04-18 Thread Frank Russo
That's cool. I never thought of that... -Original Message- From: Lance [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 10:56 AM To: Struts Users Mailing List Subject: Re: How to make a SELECT list readonly? If set disabled, loses the value when submit. Another option is to mak

Re: [s2]Would like each action to go throught my parent class

2007-04-18 Thread Drew Kutcharian
You probably need to write a custom Interceptor. Struts 2 has a very nice feature called interceptors which is sort of like AOP which is great for cross-cutting problems e.g authentication. http://struts.apache.org/2.x/docs/interceptors.html Cheers, Drew Kutcharian Venarc Inc. www.venarc.c

Re: S2: Autocompleter and focus

2007-04-18 Thread Musachy Barroso
One has the ${name} you entered in the name attribute, and it will have the value entered on the visible input. The one with the name ${name}Key has the key for the selected value, and the visible one (the one with no name) is for typing. Why not use the visible one as the one holding the value?

Re: Problem with form action mapping

2007-04-18 Thread Dave Newton
It may not solve your problem, but are you using the action context cleanup filter? d. --- meeboo <[EMAIL PROTECTED]> wrote: > > Quick note, it seems as if I am reaching the > uploadFile method when not > specifying a file to upload. The movieTitle is then > read in the action > class. But if I

Re: Problem with form action mapping

2007-04-18 Thread meeboo
Quick note, it seems as if I am reaching the uploadFile method when not specifying a file to upload. The movieTitle is then read in the action class. But if I also choose to upload a file alongside with it the method will not be reached. I'm stumped! :( meeboo wrote: > > Hey all > > I've been

S2: Autocompleter and focus

2007-04-18 Thread Scott Nesbitt
I am having trouble setting the focus on an autocompleter field. When I print out all the fields in my overlay, I see three for the sports team autocompleter: sportsTeam sportsTeamKey (one with no name) (why does it have no name?) Here is how it is declared: In my onbodyload() function

Re: [s2]Would like each action to go throught my parent class

2007-04-18 Thread Mark Menard
On 4/18/07 4:10 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > How could I do ? Parent action: Public abstract class MyParentAction extends ActionSupport { public String execute () throws Exception { // do your security stuff. String result = this.myExecute ();

Problem with form action mapping

2007-04-18 Thread meeboo
Hey all I've been trying to solve this problem for a couple of hours but to no prevail... struts.xml /uploadMovie.jsp /index.jsp /uploadMovie.jsp uploadMovie.jsp UploadMovie.java public String uploadFile() { if(movieTitle != null && uploadedMovie !=null)

Re: newbie alert: forward to a php script

2007-04-18 Thread Chris Pat
Hi Laurie Thank you for continuing to help my naivete. I saw two problems: one I didnt know how to format and send a forward out of the struts framework, two the response will only come back on the port and without any context so I cant direct it to an Action(possibly even the same as the pre-p

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2007-04-18 Thread Lance
Another option is to make a disabled style in your css and blur onfocus : Using a hidden element with the same name is slightly dodgy in that form.elements["id"] will return a different value depending if the hidden element is placed before or after the select. Megani wrote: Hey, i was ha

Re: How to make a SELECT list readonly? If set disabled, loses the value when submit.

2007-04-18 Thread Megani
Hey, i was having the same problem... i needed a (...) works fine ;) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[S2/S1] Missing Applocation web.xml - redeploy fails

2007-04-18 Thread Harring Figueiredo
Folks, I am having problems redeploying my web app on tomcat 5.0.28/30. It is giving me the error: "Missing Applocation web.xml" I have searched for archives on tomcat and I found several discussions that point to a file locking problem under windows. http://www.javaworld.com/javaforums/showfla

Re: Tools for I18n

2007-04-18 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Puchacz, puchacz wrote: > Do You know some tools for helping in Internationalization in web project? Recently, I found a great tool for doing localizations (translations) called Attesoro. You can find it here: http://attesoro.org/ As for internation

Re: Which way would you present dynamically generated block of text?

2007-04-18 Thread Martin Gainty
Good Morning Skip- If your webapp's strings wont change (essentially all message strings are static) I would implement a internationalised webapp with struts internationalization http://www.allapplabs.com/struts/struts_internationalization.htm If the strings are dynamic I would look using a D

[S2]: Which way would you present dynamically generated block of text?

2007-04-18 Thread Skip Hollowell
My app is progressing happily (With no small thanks to you all) and I have reached a point where I need to make a decision on something. The app will present a customized script to be read, verbatim, to a customer, based upon amounts paid, owed, dates, outstanding balances, and what not. If y

Re: fail to run struts tutorial

2007-04-18 Thread nicolas de loof
struts2-archetype-starter-2.0.5-20070212.050844-2.jar thats seems to be the latest available... 2007/4/18, Musachy Barroso <[EMAIL PROTECTED]>: Are you using the latest version of the archetype? I think I had this same problem with an older version. musachy On 4/18/07, nicolas de loof <[EMAI

Tools for I18n

2007-04-18 Thread puchacz
Do You know some tools for helping in Internationalization in web project? Thnx -- View this message in context: http://www.nabble.com/Tools-for-I18n-tf3600761.html#a10057872 Sent from the Struts - User mailing list archive at Nabble.com. --

Re: fail to run struts tutorial

2007-04-18 Thread Musachy Barroso
Are you using the latest version of the archetype? I think I had this same problem with an older version. musachy On 4/18/07, nicolas de loof <[EMAIL PROTECTED]> wrote: Hello I've followed struts tutorial and cannot run the archetype webapp in jetty : WARN: failed action2 java.lang.NoClassD

Re: JSTL versus Struts tags

2007-04-18 Thread Caroline Jen
In comparison of the two; namely, JSTL and Struts2 tags, which one is better? In between JSTL and Struts1 tags, I prefer JSTL. When using JSTL, I feel that I am programming. I would like to gather some opinions. Thank you. --- Dave Newton <[EMAIL PROTECTED]> wrote: > --- Heidy Gutiérrez Guzmán

Re: Nesting a in a

2007-04-18 Thread meeboo
Yeah it works, I tried > value="#session.user.username" />/"/> >> >> Are there other ways of including session values >> without nesting S2 components? > > Does using OGNL EL in the action attribute not work? > (It's never been entirely clear to me where I'm > allowed to use it.) > > d. > >

Re: Nesting a in a

2007-04-18 Thread Dave Newton
--- Alexis Pigeon <[EMAIL PROTECTED]> wrote: > On 18/04/07, meeboo <[EMAIL PROTECTED]> wrote: >> I am trying to include a session property in a >> component, but get the following error: >> >> "Unterminated > >> /"/> >> > According to the error message, I would say its due > to the fa

Re: Nesting a in a

2007-04-18 Thread Alexis Pigeon
Hi, On 18/04/07, meeboo <[EMAIL PROTECTED]> wrote: Hey all I am trying to include a session property in a component, but get the following error: "Unterminated According to the error message, I would say its due to the fact you are nesting double-quoted expression. Try t

Re: Nesting a in a

2007-04-18 Thread Dave Newton
--- meeboo <[EMAIL PROTECTED]> wrote: > /"/> > > Are there other ways of including session values > without nesting S2 components? Does using OGNL EL in the action attribute not work? (It's never been entirely clear to me where I'm allowed to use it.) d. ___

Nesting a in a

2007-04-18 Thread meeboo
Hey all I am trying to include a session property in a component, but get the following error: "Unterminated Are there other ways of including session values without nesting S2 components? -- View this message in context: http://www.nabble.com/Nesting-a-%3Cs%3Aproperty%3E-i

Re: [s2]Would like each action to go throught my parent class

2007-04-18 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I was talking about a "dynamic" mecanism. In Struts > 1, I never called super.dispathMethod() : the > CRMAction.dispatchMethod() was first called by > Struts, then my "return super.dispatchMethod()" was > returning the ActionForward returned by my called > Action.

runtime parameters for

2007-04-18 Thread Darryl Culverwell
Hi, I am new to struts2 an am putting together a simple framework to inspect user beans and display a generic edit screen based on the type of object presented. Is it possible to populate the various attributes of this tag at run time depending on the field ? the list obj.{#field.name} returns

[s2] ultimate convention (no configuration at all)

2007-04-18 Thread wiradikusuma
I'm currently playing with codebehind and zero conf in Struts 2. My objective is to make CRUD application easy: you don't have to create Action, you don't have to wire them using XML stuff or Annotation (and you don't have to create DAOs and Managers and tables, just domain models) Codebehind's b

Exception starting filter Struts

2007-04-18 Thread sowjanya
I loaded my sample struts application and run the tomcat IT gave me the following error. Can anyone help me ASAP ? Scanning for classes in [/D:/projects/ifnd/GPSReceiver/GPSReceiver/WebContent/WEB-INF/classes/com/ifnd/UserMgmtApp/] matching criteria: [EMAIL PROTECTED] Apr 18, 2007 2:42:29

fail to run struts tutorial

2007-04-18 Thread nicolas de loof
Hello I've followed struts tutorial and cannot run the archetype webapp in jetty : WARN: failed action2 java.lang.NoClassDefFoundError: org/apache/velocity/app/VelocityEngine ... adding velocity 1.5 and velocty-tools-view 1.2 as dependency solve this, but this looks strange to me. Isn't veloci

Re: [s2]Would like each action to go throught my parent class

2007-04-18 Thread MLENEVEUT
I was talking about a "dynamic" mecanism. In Struts 1, I never called super.dispathMethod() : the CRMAction.dispatchMethod() was first called by Struts, then my "return super.dispatchMethod()" was returning the ActionForward returned by my called Action. public class CRMAction extends DispatchA

Re: [s2]Would like each action to go throught my parent class

2007-04-18 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > My parent Action : > public class CRMAction extends ActionSupport > @Override > public String execute() throws Exception { > //do all tests (user logged, ...) > //... > return super.execute(); >

Using jsps from another context

2007-04-18 Thread Rajesh Gupta
Hi All, I have several common jsp's in a common webapp, which will be shared by all other web applications. I use tag to include jsp's from this common webapp. I can include jsp's , if they do not contain any struts specific things. But when i try to include a jsp with struts action (ex: ) ,

[s2]Would like each action to go throught my parent class

2007-04-18 Thread MLENEVEUT
Hi all, I would like to do as in Struts 1 with DispathAction : create a parent Action, which each other action extends, and each request/action passes by this parent action, and I could so add there the generic validations (user logged, etc...) How could I do ? I tried this : My parent Actio

Re: Struts2, Tiles, Velocity

2007-04-18 Thread Antonio Petrelli
2007/4/18, Charlie Rehor <[EMAIL PROTECTED]>: So, the question is, can you use Struts2, Velocity, and Tiles together right now? Struts 2 uses Tiles 2, but currently there is no support for Velocity templates with Tiles 2, I am sorry. Antonio ---

Re: FW: Tiles refresh

2007-04-18 Thread Antonio Petrelli
2007/4/17, Hehl, Thomas <[EMAIL PROTECTED]>: When the user clicks a button, I change the value in C, but sometimes I want to refresh B as well since it needs to re-run code to pick up the current state. I can't figure out how to do this for the specific screens of C that I want. Does anyone have

[s2]How to customize the errors prefix, suffix, ... ?

2007-04-18 Thread MLENEVEUT
Hi all, I tried to customize the errors.prefix, suffix, header and footer, but they are not taken into account. How to do in Struts 2 ? I just put this in my package.properties : errors.footer= errors.header= errors.prefix= errors.suffix= Thanks, Regards, Michaël.

How to Dereference/Clear the ValueStack object in JSP

2007-04-18 Thread arunabh
I want to dereference/clear the Value Stack object in "JSP" on a button click . Is there a tag for that or some other way can i do that . If yes please send me the systex for the same . with regards Arunabh -- View this message in context: http://www.nabble.com/How-to-Dereference-Clear-the-Va

Re: JSTL and the Value Stack

2007-04-18 Thread Guillaume Carré
2007/4/18, Ray Clough <[EMAIL PROTECTED]>: This page perfectly illustrates my point on the difficulty of the JSTL tags working nicely with S2. The page works perfectly if the object is explicitly placed into the HttpRequest. If the 'getExporter()' is the way in which the Exporter is exposed, th