problem with checking checkbox before jsp page

2005-12-05 Thread Stanislav
Before jsp page i have action that connects to db and gettering some data. On values of this data depends checking checkbox. How can i do this? I dont know how to have jsp page with some of checked checkbox.. Tnx, Stanislav -

RE: problem with checking checkbox before jsp page

2005-12-05 Thread Murugesan, Kathiresan \(Cognizant\)
In ur JSP, you might have given some value to your check box. Set the same value in your action class for the respective field in the FormBean. Ex: html:checkbox property=abc value=y/ Then in your action class: setAbc(y); Regards Kathir. From: Stanislav

RE: problem with checking checkbox before jsp page

2005-12-05 Thread Stanislav
In ur JSP, you might have given some value to your check box. Set the same value in your action class for the respective field in the FormBean. Ex: html:checkbox property=abc value=y/ Then in your action class: setAbc(y); Tnx for your answer, but i tried to do that and or get error or

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Ted Husted
On 12/3/05, Adam Hardy [EMAIL PROTECTED] wrote: Ted Husted on 02/12/05 04:29, wrote: We have two because JSF is fundamentally incompatible with action-orientated frameworks. (As stated on the Struts home page.) But, that will not be the case for Ti. We plan to create a clear and

Re: Preserving the query string while validating a form using dynamic initialization with DynaAction

2005-12-05 Thread Martin Gainty
Passing a date thru a static mechanism such as struts-config.xml would of course prevent the web application and the operator from manipulating the static date variable to properly formatted and well-formed date The solution i gave you will work with a static variable introduced via the

how to set token after an exception occurs ?

2005-12-05 Thread Nicolas De Loof
Hello, I'm using token to avoid multiple submits in this flow : /commande.do creates an empty form-bean, saves a token and forwards to tile:commande.new /commande/create.do checks for token and creates datas in the database. If an exception occurs, an exceptionHandler is used to display an

R: how to set token after an exception occurs ?

2005-12-05 Thread Amleto Di Salle
Hi, the token is associated to user session and it is stored in the session. So you can save the token before to execute the business logic and reset the token if an exception occured. I have solved the problem in the following way: BR /Amleto public abstract class TokenFormBaseAction extends

How to change URL to 'https'

2005-12-05 Thread Jim Reynolds
In a project I am working on, I have the need to change some of my html:link and html:actions to go to https pages. Since I usually just call action forwards to something like success path=/jsp/mypage.jsp for the view, I am confused how to change the url to https? I could use security constraints

Re: how to set token after an exception occurs ?

2005-12-05 Thread Joe Germuska
At 3:03 PM +0100 12/5/05, Nicolas De Loof wrote: Hello, I'm using token to avoid multiple submits in this flow : /commande.do creates an empty form-bean, saves a token and forwards to tile:commande.new /commande/create.do checks for token and creates datas in the database. If an exception

Re: struts and JSTL

2005-12-05 Thread fea jabi
I am using Servlet engine 2.4. What will be the different advice? My web.xml looks something like this !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app ... /web-app is it right

Re: [Shale] Clay - Links not working

2005-12-05 Thread Alexandre Poitras
Something maybe that should improved is when the symbol value is null instead of getting a nullpointer exception maybe do like Tiles does. On 12/2/05, Gary VanMatre [EMAIL PROTECTED] wrote: Anyway, I now have a Template application which functionally behaves like it was built with

Re: struts and JSTL

2005-12-05 Thread Rahul Akolkar
On 12/5/05, fea jabi [EMAIL PROTECTED] wrote: I am using Servlet engine 2.4. What will be the different advice? My web.xml looks something like this !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app

Re: struts and JSTL

2005-12-05 Thread Wendy Smoak
On 12/5/05, fea jabi [EMAIL PROTECTED] wrote: I am using Servlet engine 2.4. What will be the different advice? My web.xml looks something like this !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; Does your

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Dakota Jack
A framework, according to the GoF, is a set of cooperating classes that make up a reusable design for a specific class of software. A toolkit, according to the GoF, is a set of related and reusable classes designed to provide useful general purpose functionality. Essentially, struts has decided

ActionErrors and ActionMessages

2005-12-05 Thread burnayev
I'm trying to validate a sign in form with 2 fileds: email and password. I'm using standard required and email validators to check the validity of the email. As far as I can tell from the debugger output all the errors are added under org.apache.struts.action.ERROR key like this:

Re: [Shale] Clay - Links not working

2005-12-05 Thread Gary VanMatre
Something maybe that should improved is when the symbol value is null instead of getting a nullpointer exception maybe do like Tiles does. Clay's behavior handling symbol replacement should be as follows: If a symbol is null, it will be replaced as an empty string within the token if the

RE: Integrating Struts in DWR??

2005-12-05 Thread Pilgrim, Peter
WOW!! -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: 03 December 2005 22:12 To: Struts Users Mailing List Subject: Re: Integrating Struts in DWR?? Some of the questions you ask here are really more for you to decide... there aren't any canned

RE: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Pilgrim, Peter
-Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: 05 December 2005 12:55 To: Struts Users Mailing List Subject: Re: [FRIDAY] Struts 1.x is Struts Classic after all On 12/3/05, Adam Hardy [EMAIL PROTECTED] wrote: Ted Husted on 02/12/05 04:29, wrote: We have

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Nicolas Bizard
Hi everyone. I have a strange problem with checkboxes in a formBean : The form initializes (action /init) I validate, get my results I get back, asking /init, everything is fine, the form shows me my previous selections but when i uncheck or check one of the boxes and validate again, it does

RE: Integrating Struts in DWR??

2005-12-05 Thread Frank W. Zammetti
On Mon, December 5, 2005 12:11 pm, Pilgrim, Peter said: Right, If I understand what Frank is saying then this is a HTTP Servlet that just parsing the input request, which is XML and generates a response which is also XML. To my understanding, that's precisely what DWR is. DWR is a form of

Re: [Shale] Clay - Links not working

2005-12-05 Thread Alexandre Poitras
Ok, in my application I followed your directions to implement Tiles features using Clay. I have the following component declared in the global clay config : component jsfid=baseLayout extends=clay attributes set name=clayJsfid value=/gabarit/gabarit.html/ /attributes

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Michael Jouravlev
On 12/5/05, Pilgrim, Peter [EMAIL PROTECTED] wrote: There are two web application architecture out there co-existing and competing 1) Component-Oriented 2) Action-Oriented If you can bridge these two then you're probably onto a winner, but it is very unlikely Depends on your definition

Re: how to set token after an exception occurs ?

2005-12-05 Thread Michael Jouravlev
On 12/5/05, Nicolas De Loof [EMAIL PROTECTED] wrote: Hello, I'm using token to avoid multiple submits in this flow : /commande.do creates an empty form-bean, saves a token and forwards to tile:commande.new /commande/create.do checks for token and creates datas in the database. If an

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Frank W. Zammetti
I agree with Michael. The component-oriented approach is in no way that I can see incompatible with the action-oriented model of things. In fact, grafting at least the basics of a component model onto Struts wouldn't even be especially difficult. Especially with Struts 1.3, adding a command or

Re: [Shale] Clay - Links not working

2005-12-05 Thread Gary VanMatre
Ok, that's a bug. Before the HTML templates existed, the jsfid was a required attribute of the JSP tag. We need to add a better exception. Please create a bugzilla ticket with this information so that we don't loose site of it. http://issues.apache.org/bugzilla/enter_bug.cgi?product=Struts

[shale] Clay - java.lang.StackOverflowError

2005-12-05 Thread Alexandre Poitras
Hi, I am using Clay to make a Tile-like template with a deep of 2 levels and I get a java.lang.StackOverflowError. Should I increase it size by using the max stack memory size parameter of the jre? Have you someone else got this error before ? -- Alexandre Poitras Québec, Canada

Re: [shale] Clay - java.lang.StackOverflowError

2005-12-05 Thread Alexandre Poitras
Ok I got it, I had a recursive component. Sorry about that! On 12/5/05, Alexandre Poitras [EMAIL PROTECTED] wrote: Hi, I am using Clay to make a Tile-like template with a deep of 2 levels and I get a java.lang.StackOverflowError. Should I increase it size by using the max stack memory size

Re: [shale] Clay - java.lang.StackOverflowError

2005-12-05 Thread Gary VanMatre
I think your problem is that you are using a template that includes the outer template. Clay will look for circular reference but if the jsfid or clayJsfid is a symbol, the replacement happens after the validation. What does your page/config look like? Gary -- Original message

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Michael Jouravlev
On 12/5/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: I agree with Michael. The component-oriented approach is in no way that I can see incompatible with the action-oriented model of things. ... Frankly, an enterprising person or two could create a rather robust component model layer on top

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Frank W. Zammetti
On Mon, December 5, 2005 1:58 pm, Michael Jouravlev said: Frank, I believe that you understand differencies between JSF component tree and Struts Dialogs component model. Yep, I do understand the difference, I was just trying to make the larger point of component-based vs. action-based :) One

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Michael Jouravlev
Ok, I guess I have to fix the statement about JSF quickly, before Craig did that :-) So, according to this: http://www.icesoft.com/developer_guides/icefaces/htmlguide/keyConcepts5.html it is possible to plug into JSF lifecycle with Ajax requests and to do partial updates. So I want to retract my

Re: [shale] Clay - java.lang.StackOverflowError

2005-12-05 Thread Alexandre Poitras
I was using a symbol your right. The first page was loading the component page via a symbol. The component page was looking like this : component.xml div jsfid=clay clayJsfId=@component / where component=/component.xml. On 12/5/05, Gary VanMatre [EMAIL PROTECTED] wrote: I think your problem

Re: [shale] Clay - java.lang.StackOverflowError

2005-12-05 Thread Alexandre Poitras
By the way, a nice enhancement would be to be able to declare components in a XML view. Something like that : view component jsfid=contenuSelectServices extends=baseContenuLayout symbols set name=navigation value=/gabarit/contenu/navigation.html / set

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Rick Reumann
Dakota Jack wrote the following on 12/3/2005 8:26 PM: We are not doofuses. Hey! Speak for yourself! I'm proud of my doofusness. -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Preventing struts Page Caching

2005-12-05 Thread sma3har
When i submit the page and hit the back button i can submit the page again. The browser is caching the jsp page. I have tried adding this code : response.setHeader(Cache-Control,no-store); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, 0); to my jsp page but did not

[shale][tomahawk] user-role

2005-12-05 Thread Garner, Shawn
I saw that some of the tags in the tomahawk use a user-role property. I was wondering how you would set this user-role field for a person in a java class when they log in? I couldn't find any documentation on this field. Shawn

Re: [shale] Clay - java.lang.StackOverflowError

2005-12-05 Thread Gary VanMatre
By the way, a nice enhancement would be to be able to declare components in a XML view. Something like that : view component jsfid=contenuSelectServices extends=baseContenuLayout symbols set name=navigation value=/gabarit/contenu/navigation.html / set

checkbox behavior hard to control?

2005-12-05 Thread Nicolas Bizard
Hi everyone. My question is : I have a strange problem with checkboxes in a formBean : The form initializes (action /init) I validate, get my results I get back, asking /init, everything is fine, the form shows me my previous selections but when i uncheck or check one of the boxes and

Re: [struts-faces] weird JSPException converting Tiles layout

2005-12-05 Thread Laurie Harper
It's a tag supplied by the struts-faces integration library, providing a JSF-aware equivalent of the html:html tag supplied with 'standard' Struts. L. Yujun Liang wrote: I don't know JSF, but I just want to know what is /s:html? On 12/5/05, Laurie Harper [EMAIL PROTECTED] wrote: Anyone have

Re: [shale] Clay - Logic components?

2005-12-05 Thread Alexandre Poitras
Guess what? I need an if component now (to change some visual attributes). Of course, I could code the component but I really prefer to do it in a declarative way à la JSTL. Tags file weren't invented for nothing afterall so I guess Shale should follow this direction too. I'll probably try to

Re: Problem with validations

2005-12-05 Thread Laurie Harper
I was going to say 'yes, you can do that,' but I don't think you can express field length constraints with validwhen unfortunately :-( L. Deepa Khetan wrote: Actually, i need to implement a if{} else{} condition in validation framework.. if(field1=='usr1'){ field property=password

Re: Problem with LocaleAction (bug)

2005-12-05 Thread Laurie Harper
Paul Benedict wrote: I wonder if anyone has encountered this. This might be a bug (highly likely) and I'd like to find out. The LocaleAction can receive a page parameter which redirects it to the specified URL after setting the locale. Well I made myself a DynaActionForm which contained this

Re: problem with checking checkbox before jsp page

2005-12-05 Thread Laurie Harper
Stanislav wrote: In ur JSP, you might have given some value to your check box. Set the same value in your action class for the respective field in the FormBean. Ex: html:checkbox property=abc value=y/ Then in your action class: setAbc(y); Tnx for your answer, but i tried to do that and or

Re: checkbox behavior hard to control?

2005-12-05 Thread Laurie Harper
Nicolas Bizard wrote: Hi everyone. My question is : I have a strange problem with checkboxes in a formBean : The form initializes (action /init) I validate, get my results I get back, asking /init, everything is fine, the form shows me my previous selections but when i uncheck or check one

Re: problem with checking checkbox before jsp page

2005-12-05 Thread Michael Jouravlev
On 12/5/05, Stanislav [EMAIL PROTECTED] wrote: Before jsp page i have action that connects to db and gettering some data. On values of this data depends checking checkbox. How can i do this? I dont know how to have jsp page with some of checked checkbox.. In Struts JSP is used for

Re: ActionErrors and ActionMessages

2005-12-05 Thread Laurie Harper
burnayev wrote: I'm trying to validate a sign in form with 2 fileds: email and password. I'm using standard required and email validators to check the validity of the email. As far as I can tell from the debugger output all the errors are added under org.apache.struts.action.ERROR key like

Re: [shale] Clay - Logic components?

2005-12-05 Thread Gary VanMatre
You will probably need to look at using the rendered attribute of the component. This is the JSF way of changing the visibility dynamically. rendered=#{mybean.isSomethingVisible} set name=rendered value=#{mybean.isSomethingVisible}/ Gary -- Original message -- Guess

Struts with DWR - Please help

2005-12-05 Thread Sonali Kulkarni
I am trying to use Ajax (DWR framework) within Struts Framework. Per DWR Documentation, they have added StrutsCreator in current version to support struts framework. I just do not know how to use / integrate it. I am new to AJAX. Can anyone please help me out. When I try to make a dwr call on

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Craig McClanahan
On 12/5/05, Michael Jouravlev [EMAIL PROTECTED] wrote: Ok, I guess I have to fix the statement about JSF quickly, before Craig did that :-) :-) So, according to this: http://www.icesoft.com/developer_guides/icefaces/htmlguide/keyConcepts5.html it is possible to plug into JSF lifecycle

Re: [shale][tomahawk] user-role

2005-12-05 Thread Craig McClanahan
On 12/5/05, Garner, Shawn [EMAIL PROTECTED] wrote: I saw that some of the tags in the tomahawk use a user-role property. I was wondering how you would set this user-role field for a person in a java class when they log in? I couldn't find any documentation on this field. Are you talking

Re: Struts with DWR - Please help

2005-12-05 Thread Joe Germuska
At 3:29 PM -0600 12/5/05, Sonali Kulkarni wrote: I am trying to use Ajax (DWR framework) within Struts Framework. Per DWR Documentation, they have added StrutsCreator in current version to support struts framework. I just do not know how to use / integrate it. I am new to AJAX. Can anyone

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Preston CRAWFORD
[EMAIL PROTECTED] 12/3/2005 6:06:27 AM On 12/2/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: You may not be marketing anything, Ted. But those of us out in the field that work with the decision makers and who help in the decision making have to think about these things. It's the reality of

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Craig McClanahan
On 12/5/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: Of course. Never meant to imply you were in an ivory tower. Just that whether Struts has a marketing arm or not, the reality is that for many of us, what technology we can choose for X job in part hinges on the *perception* of Struts. So

Re: checkbox behavior hard to control?

2005-12-05 Thread Nicolas Bizard
I am not sure what clear the state means? I'm also not sure about what to put in reset(), and when it is executed... should i include a code like this : reset(){ this.setCheckedField(false); } It seems that the problem is specific to checkboxes : when unchecked, the state is not updated to the

RE: [shale][tomahawk] user-role

2005-12-05 Thread Garner, Shawn
I see how the Filter and Wrapper work roughly but how do I apply them to my requests? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wendy Smoak Sent: Monday, December 05, 2005 4:11 PM To: Garner, Shawn Subject: Re: [shale][tomahawk] user-role [offlist]

Re: [shale] Clay - Logic components?

2005-12-05 Thread Alexandre Poitras
I know about rendered but it's not about changing the visibility but changing the style class. In fact I want to add 'active' to the value of a menu element style class, depending of wich one is activated. I think I could do it with rendered but my concern is to end up with a lot of non desired

Re: [shale] Clay - Logic components?

2005-12-05 Thread Craig McClanahan
On 12/5/05, Alexandre Poitras [EMAIL PROTECTED] wrote: I know about rendered but it's not about changing the visibility but changing the style class. In fact I want to add 'active' to the value of a menu element style class, depending of wich one is activated. I think I could do it with

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Preston CRAWFORD
I think that's part of the confusion, though. Correct me if I'm wrong, but this is how I see it after this discussion. Struts = Legacy Struts 1.2.x - Action based architecture Struts Shale = Framework that leans on JSF and has a compatability layer written so it can support 1.x Struts apps See

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Joe Germuska
Struts = Legacy Struts 1.2.x - Action based architecture Struts Shale = Framework that leans on JSF and has a compatability layer written so it can support 1.x Struts apps This is not correct. Struts Shale does not have a compatibility layer for Struts 1.x apps. There is struts-faces, a

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Craig McClanahan
On 12/5/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: I think that's part of the confusion, though. Correct me if I'm wrong, but this is how I see it after this discussion. Struts = Legacy Struts 1.2.x - Action based architecture Struts Shale = Framework that leans on JSF and has a

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Michael Jouravlev
On 12/5/05, Preston CRAWFORD [EMAIL PROTECTED] wrote: So given the current state of Struts it would do some good to clarify and simplify the direction Struts is headed. Maybe make sure that X version of Struts is component-based, Y version is action based, etc. Again, these two things are not

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread netsql
I think this would help you: http://wiki.apache.org/struts/SnapshotGuide11 .V Preston CRAWFORD wrote: I think that's part of the confusion, though. Struts = Legacy Struts 1.2.x - Action based architecture Struts Shale = Framework that leans on JSF and has a compatability layer written so it

[shale] View Controller methods

2005-12-05 Thread Garner, Shawn
Can somebody elaborate on more uses of these? init() preprocess() prerender() destroy() I currently have a start and save struts (in a struts 1.1) methods that populate the form bean values from a session object for the start and save the values from the form bean into a session

Re: checkbox behavior hard to control?

2005-12-05 Thread Michael Jouravlev
On 12/5/05, Nicolas Bizard [EMAIL PROTECTED] wrote: I am not sure what clear the state means? I'm also not sure about what to put in reset(), and when it is executed... Is this a question? It seems that the problem is specific to checkboxes : when unchecked, the state is not updated to the

Re: [shale][tomahawk] user-role

2005-12-05 Thread Wendy Smoak
On 12/5/05, Garner, Shawn [EMAIL PROTECTED] wrote: I see how the Filter and Wrapper work roughly but how do I apply them to my requests? By mapping the Filter in web.xml, at which point it will kick in and wrap those requests. I added that to the bottom of the Wiki page...

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Adam Hardy
Ted Husted on 05/12/05 12:54, wrote: IMHO, I don't see the engineering value-add of a one size fits all framework. A framework is a semi-complete application, and action/page applications are built differently than event/component frameworks. Since the applications are different, the frameworks

Re: [shale] View Controller methods

2005-12-05 Thread Craig McClanahan
On 12/5/05, Garner, Shawn [EMAIL PROTECTED] wrote: Can somebody elaborate on more uses of these? init() preprocess() prerender() destroy() Feature description of the View Controller feature: http://struts.apache.org/struts-shale/features-view-controller.html The javadocs for

Re: [shale] View Controller methods

2005-12-05 Thread Alexandre Poitras
Good news for you! You don't have to populate any beans or forms in JSF. You use value and method binding properties so the framework can populate them itself. Those methods are there when you need some page level functionalities. For example, I use init() usually when I need to load some data

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Preston CRAWFORD
I can see the roof analogy. I just thought, branding wise, it was confusing. You already have one layer with it being an Apache project. So really Shale is Apache Struts Shale (formerly a Jakarta project that still uses lots of Jakarta components). :-) I don't know. I think the way things are

RE: Parameter of ActionMessage...

2005-12-05 Thread Garner, Shawn
I use the RequestUtils class in the struts 1.1 framework. I think they moved it though. You can look up the message and then pass it into your ActionMessage. -Original Message- From: Gaet [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 30, 2005 5:15 AM To: Mailing List Struts

RE: Multiple Servlet contexts

2005-12-05 Thread Garner, Shawn
Put your Jar in your web server's lib instead of your web app. So in my case for JRun I put it in the JRun4/servers/lib directory instead of my webapp/WEB-INF/lib directory. For apache I think they have a commons/lib or something for the server. I think that will work. Shawn -Original

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Paul Benedict
Hm. Is it untidy that the Apache Software foundation has at least three web application frameworks? Should they be untethered from the Apache name and allowed to ride off... ? For that matter, why does Apache clutter itself with anything other than the original httpd? Joe, I like your

RE: How do you prepopulate a form bean with arguments from a hype rlink?

2005-12-05 Thread Garner, Shawn
There is a limit to the size of data you can do this way. Might want to figure out a way to post the data instead. You can send much more data that way. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 29, 2005 2:37 PM To:

RE: help using validate inside ActionForm

2005-12-05 Thread Garner, Shawn
Use the parameter attribute in the struts-config.xml file and then use the request.getParameter() in the form or action. Shawn -Original Message- From: Sun Shine [mailto:[EMAIL PROTECTED] Sent: Sunday, December 04, 2005 5:20 PM To: user@struts.apache.org Subject: help using validate

RE: [QA]Does STRUTS v1.1 work well under J2SE_1.5?

2005-12-05 Thread Garner, Shawn
I would think it would as long as you have the right jars in the classpath. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, December 04, 2005 7:34 PM To: user@struts.apache.org Subject: [QA]Does STRUTS v1.1 work well under J2SE_1.5? Hi All, I want to

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Preston CRAWFORD
Exactly. Or back to my example. Apache Jakarta Struts Shale. Preston [EMAIL PROTECTED] 12/5/2005 3:12:00 PM Hm. Is it untidy that the Apache Software foundation has at least three web application frameworks? Should they be untethered from the Apache name and allowed to ride off... ? For that

Re: Parameter of ActionMessage...

2005-12-05 Thread Yujun Liang
It can be done in ActionForm. I assume you are building the ActionErrors when validate()ing the ActionForm, you have access to request object, you can use a Singleton ResourceManager to locate the locale aware ResourceBundle, or MessageResources in Struts term. Regards On 12/2/05, Laurie Harper

Re: Preventing struts Page Caching

2005-12-05 Thread Laurie Harper
sma3har wrote: When i submit the page and hit the back button i can submit the page again. The browser is caching the jsp page. I have tried adding this code : response.setHeader(Cache-Control,no-store); response.setHeader(Pragma,no-cache); response.setDateHeader (Expires, 0); to my jsp

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Joe Germuska
At 3:12 PM -0800 12/5/05, Paul Benedict wrote: Hm. Is it untidy that the Apache Software foundation has at least three web application frameworks? Should they be untethered from the Apache name and allowed to ride off... ? For that matter, why does Apache clutter itself with anything other

Re: How to change URL to 'https'

2005-12-05 Thread Wendy Smoak
On 12/5/05, Jim Reynolds [EMAIL PROTECTED] wrote: In a project I am working on, I have the need to change some of my html:link and html:actions to go to https pages. Since I usually just call action forwards to something like success path=/jsp/mypage.jsp for the view, I am confused how to

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread netsql
It's happened before: Appache HTTP server. Or Apache Commons? Just Appache means the server... or ASF? Realy, it's no big deal. A rose by any other name! .V Preston CRAWFORD wrote: Or back to my example. Apache Jakarta Struts Shale.

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Paul Benedict
That's not true; there are other committers who have done work under Shale. This is probably my fault, but that's not what I meant. :) When I said it has nothing to do with the Struts community, minus the creator, I am not talking about the people, but the architecture. As far as I can tell,

Re: Preventing struts Page Caching

2005-12-05 Thread Michael Jouravlev
On 12/5/05, sma3har [EMAIL PROTECTED] wrote: When i submit the page and hit the back button i can submit the page again. The browser is caching the jsp page. I have tried adding this code : response.setHeader(Cache-Control,no-store); response.setHeader(Pragma,no-cache);

Re: How do you prepopulate a form bean with arguments from a hype rlink?

2005-12-05 Thread Yujun Liang
If you define the form bean based on Struts User Guide, the same form bean can be used for both http post and get method. http://struts.apache.org/struts-action/userGuide/building_controller.html#dyna_action_form_classes Regards On 12/6/05, Garner, Shawn [EMAIL PROTECTED] wrote: There is a

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Dakota Jack
Component approach is one thing, page based controllers are another. On 12/5/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: I agree with Michael. The component-oriented approach is in no way that I can see incompatible with the action-oriented model of things. In fact, grafting at least the

Re: [FRIDAY] Struts 1.x is Struts Classic after all

2005-12-05 Thread Dakota Jack
LOL I forgot about you, Rick. My apologies. I am also proud of your pretended doofusnessity. On 12/5/05, Rick Reumann [EMAIL PROTECTED] wrote: Dakota Jack wrote the following on 12/3/2005 8:26 PM: We are not doofuses. Hey! Speak for yourself! I'm proud of my doofusness. -- Rick

Re: URL in struts

2005-12-05 Thread Michael Jouravlev
On 12/5/05, Deepa Khetan [EMAIL PROTECTED] wrote: Hi, Just a bit of a question. Can i do some thing in Struts, which will enable me to show the same URL all the time, for my aplication?? i mean i do not want to show in the URL which action mapping i am calling, as in, https://IpAddress

Re: Problem with validations

2005-12-05 Thread Raghu Kanchustambham
Just wondering Laurie ... why cant I use other validation rules along with validwhen? I dont see any fundamental reason why I need to resort to regular expressions when I use validwhen tag. For example, it would be great if I could say .. validwhen (some test) .. use the date validation! Is there

Re: Problem with validations

2005-12-05 Thread Laurie Harper
Well, you can use multiple validations, (including validwhen) together, but if you do they all have to pass. So you can't, for example, use validwhen to say a field can be empty if some other field isn't set, but must pass the 'date' validation otherwise. Not sure if that made sense or not...

Re: URL in struts

2005-12-05 Thread Laurie Harper
Michael Jouravlev wrote: On 12/5/05, Deepa Khetan [EMAIL PROTECTED] wrote: Hi, Just a bit of a question. Can i do some thing in Struts, which will enable me to show the same URL all the time, for my aplication?? i mean i do not want to show in the URL which action mapping i am calling, as in,

Help required in logic:html

2005-12-05 Thread senthil Kumar
Hi All., I have a following statements. Here validStatus is the String[] property. It contains the value of a,b,c,d. I am used Stringtokenizer. once executing this statement logic:iterate name=ProjectListForm id=abcd property='%= projectListValue[+ctr+].validStatus %' bean:write

Re: Problem with validations

2005-12-05 Thread Raghu Kanchustambham
That is correct .. but what would be more interesting and more useful is to say this should be in a date format when that text box is filled or something of that sort. What I think validation f/w supports is validwhen co-exists with other validation rules... but they are kind of independent. I

Re: URL in struts

2005-12-05 Thread Michael Jouravlev
Got mistake to fix. Instead this: Michael Jouravlev wrote: You can go with a more elaborate path to avoid problems with Back button and implicit resubmits on page refresh. In this case you accept an initial request, no matter GET or POST. Then you redirect to a particular action processing

Re: [QA]Does STRUTS v1.1 work well under J2SE_1.5?

2005-12-05 Thread anson
Thanks for your answer. Would you please tell me which the difference between STRUTS1.1 and STRUTS1.2.x? Best Regards. - Original Message - From: Raghu Kanchustambham [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, December 05, 2005 1:47 PM

Re: URL in struts

2005-12-05 Thread Deepa Khetan
In Fact, I have made the application in the way in which, back and refresh buttons cannot be used. If the user at any point on time clicks back or refresh, he is logged out and his session expires!! Also, since i am maintaining session and security for the site, bookmarking of pages is not

Re: Help required in logic:html

2005-12-05 Thread Laurie Harper
senthil Kumar wrote: Hi All., I have a following statements. Here validStatus is the String[] property. It contains the value of a,b,c,d. I am used Stringtokenizer. Do you mean validStatus is an array of the Strings a, b, c and d, or a string array with one entry a,b,c,d? I'll assume

Re: [QA]Does STRUTS v1.1 work well under J2SE_1.5?

2005-12-05 Thread Niall Pemberton
On 12/6/05, anson [EMAIL PROTECTED] wrote: Thanks for your answer. Would you please tell me which the difference between STRUTS1.1 and STRUTS1.2.x? Check out the release notes: http://struts.apache.org/struts-doc-1.2.8/userGuide/release-notes.html

Re: URL in struts

2005-12-05 Thread Laurie Harper
Michael Jouravlev wrote: On 12/5/05, Laurie Harper [EMAIL PROTECTED] wrote: Or the fourth option is to use framesets. Of course if you do this, with any of these approaches, you'll be causing your users pain in that there will be no way they can bookmark pages and the browser's Refresh option

Re: Problem with validations

2005-12-05 Thread Laurie Harper
So you're proposing a way for a 'validwhen' rule to be able to invoke other validation rules (or control which of the validations specified by the 'depends' value is actually enforced)? I actually think that could be quite useful in some cases, but probably not very many. Can you think of any

Re: URL in struts

2005-12-05 Thread Frank W. Zammetti
Not *entirely* true about bookmarking either, although admittedly it is more work... I had one frame-based site that required bookmarkability (is that a word?) on every page. To accomplish that, I had a Bookmark This Page link that fired a Javascript function to add the appropriate URL. I

  1   2   >