ApplicationException sample

2005-07-18 Thread Rivka Shisman
Hi all, Can someone please attach a sample of an ApplicationException, BaseException & SystemException classes? An example of catching them in an Action class will be very helpful too. Thanks a lot Rivka **

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Craig McClanahan
On 7/18/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Ed Griebel wrote: > > So it seems like you want to a) render untrusted HTML, and b) render > > secure html. Sounds like the basic requirement is at odds? You could > > do something like slashdot and other BB systems do: restrict the > > amount

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Laurie Harper
Ed Griebel wrote: So it seems like you want to a) render untrusted HTML, and b) render secure html. Sounds like the basic requirement is at odds? You could do something like slashdot and other BB systems do: restrict the amount of valid markup to make your parsing job easier. Ultimately, restri

Re: Name of the form

2005-07-18 Thread Ed Griebel
I ran into an issue similar to yours where I had a "search" form and a "results" form. What I did was to use a nested form bean, with one nested form bean being the search parameters, and another nested form bean being the results. Both actions knew that the form was nested (as did the two separate

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Ed Griebel
So it seems like you want to a) render untrusted HTML, and b) render secure html. Sounds like the basic requirement is at odds? You could do something like slashdot and other BB systems do: restrict the amount of valid markup to make your parsing job easier. Another idea, one single regexp won't d

Session-scoped ActionMessage

2005-07-18 Thread Yuniar Setiawan
Is there any way in Struts 1.1 to have session-scoped ActionMessage?

Re: Manually Instantiating Action classes

2005-07-18 Thread Ed Griebel
On 7/18/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I used to do a lot of this back when I wasn't as clear on why Actions > shouldn't contain actual code (this started when I was using a custom > framework my company build that had examples that didn't make it clear > you shouldn't do this).

Re: Copying of properties vs. nested VO

2005-07-18 Thread netsql
Michael Jouravlev wrote: I am not convinced that UI should be *that* different from domain model. +1. Example: You make a html mock up an go to contract, then do ren *.html to *.jsp for prototype. Beased on your approved prototype your most senior desigs a domain model! Domain Model is m

Re: Copying of properties vs. nested VO

2005-07-18 Thread Michael Jouravlev
On 7/18/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > Michael Jouravlev on 18/07/05 20:52, wrote: > > I am not convinced that UI should be *that* different from domain > > model. Do you have examples? > > I'm not sure that I can conjure up something convincing (being a techie > myself!) because you

Re: Manually Instantiating Action classes

2005-07-18 Thread a k
I am going with the helper classes. Thanks to all who replied! On 7/18/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I used to do a lot of this back when I wasn't as clear on why Actions > shouldn't contain actual code (this started when I was using a custom > framework my company build that

Re: Name of the form

2005-07-18 Thread Glen Mazza
If you're doing "request.setAttribute("CLASS_NAME", myActionForm)" to store the form bean you should be able to call "request.getAttribute("CLASS_NAME")" to retrieve the myActionForm from your JSP. However, I am not sure about the cleanest ways to access myActionForm from your JSP in this man

Re: Copying of properties vs. nested VO

2005-07-18 Thread Adam Hardy
Michael Jouravlev on 18/07/05 20:52, wrote: On 7/18/05, Adam Hardy <[EMAIL PROTECTED]> wrote: While the business domain is normally modelled using OO techniques, the view or user interface should be modelled using human behaviour analysis techniques that produce the best interface for users to

Re: Which version of Eclipse does current release of Struts support?

2005-07-18 Thread Dave Newton
Fei Jiangnan wrote: I am newbie to struts, and tried current release of struts with Eclipse 3.1, they seems not working together, coule you please make me some sense from the versions between struts and eclipse? What do you mean by "they don't work together?" Dave

Which version of Eclipse does current release of Struts support?

2005-07-18 Thread Fei Jiangnan
Hi there, I am newbie to struts, and tried current release of struts with Eclipse 3.1, they seems not working together, coule you please make me some sense from the versions between struts and eclipse? thanks in advance. Fei

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Laurie Harper
Frank W. Zammetti wrote: Yeah, wouldn't help you filter on output, but I pointer that out before :) True enough :) Note that it does allow you to specify your own regex, so in reality you can filter for whatever you want. I did this specifically so when someone spots something I didn't thin

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Laurie Harper
Craig McClanahan wrote: While the code in question here might not help you, the concept of a Filter still can. You can use Filters to monitor (and potentially modify) the output stream by providing a wrapper around the HttpServletResponse that the container hands you, with custom implementations

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Rick Reumann
Mike Elliott wrote the following on 7/18/2005 3:18 PM: I came up with another solution which might be worthy of consideration. Instead of using arrays, extend a list with the desired get( int ) method and use that list instead: public class SkillActionForm extends ActionForm { protecte

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Andrew Tomaka
I've stumbled across a similar problem that I'm trying to find the Struts solution for. I have a form which allows users to add a dynamic amount of rows (via a button that says "Add Row") and then submit the form with as little or many rows as they wish. Can a form bean be setup using collections

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Frank W. Zammetti
I have one as part of Java Web Parts (http://javawebparts.sourceforge.net). Let me know if it suits your needs (and if not, let me know the shortcomings so I can expand it!) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, July 18, 200

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Mike Elliott
On 7/18/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > I'm still not totally clear where the problem is, since I'm not sure > what Session has to do with the initial setup of the form. The difference is unobvious, I admit, but this is what I was thinking of: If I use a session bean, I can do some

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Rick Reumann
Andrew Tomaka wrote the following on 7/18/2005 2:13 PM: I have a form which allows users to add a dynamic amount of rows (via a button that says "Add Row") and then submit the form with as little or many rows as they wish. Can a form bean be setup using collections instead of other object types

Re: Manually Instantiating Action classes

2005-07-18 Thread Frank W. Zammetti
I used to do a lot of this back when I wasn't as clear on why Actions shouldn't contain actual code (this started when I was using a custom framework my company build that had examples that didn't make it clear you shouldn't do this). One Action instantiating another I think is sometimes not a

Copying of properties vs. nested VO

2005-07-18 Thread Michael Jouravlev
Anyone in the mood to kick the dead horse again? I decided to compare two approaches to use/update data from Struts. I am obviously biased towards nested VO/BO, so maybe I left something out. [I] Property copying This one seems to be the default and "officially endorsed" Struts practice. 1) Crea

Re: submit form

2005-07-18 Thread Glen Mazza
Still, mnemonics are non-standard for web applications, no? This doesn't seem right. Glen Niall Pemberton escribió: The short and not v.helpful response is you can't submit - its just a JSP tag that renders a HTML element and has nothing to do with the submit process. Some of the Struts ta

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Rick Reumann
Michael Jouravlev wrote the following on 7/18/2005 3:59 PM: ActionForm.reset() for session-scoped forms, ActionForm.ActionForm() for request-scoped forms. I do not remeber, if reset() is called for request-scoped forms. Yes, reset is always called when the form submits. I know I mentioned in

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Frank W. Zammetti
And if you can't find that compression filter in Tomcat, JWP has one too :) Does GZip and Deflate actualy :) Frank Craig McClanahan wrote: On 7/18/05, Laurie Harper <[EMAIL PROTECTED]> wrote: Frank W. Zammetti wrote: Not a problem... http://javawebparts.sourceforge.net/javadocs/index.ht

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Frank W. Zammetti
Yeah, wouldn't help you filter on output, but I pointer that out before :) Note that it does allow you to specify your own regex, so in reality you can filter for whatever you want. I did this specifically so when someone spots something I didn't think of it's easy to make it catch those too.

[OT] Re: Copying of properties vs. nested VO

2005-07-18 Thread Dave Newton
Adam Hardy wrote: Not all users can think like geeks! And the (probably more important!) corollary: Most geeks can't think like users. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Craig McClanahan
On 7/18/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Frank W. Zammetti wrote: > > > Not a problem... > > > > http://javawebparts.sourceforge.net/javadocs/index.html > > > > In the javawebparts.filter package, you should see the > > CrossSiteScriptingFilter. > > > > This will filter any incoming

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Michael Jouravlev
On 7/18/05, Mike Elliott <[EMAIL PROTECTED]> wrote: > If I use a session bean, I can do some sort of setup (from an > Action) on its initial creation, including creating the list of > contained objects. That can't happen if it's in request scope because > there is no chance to invoke the setup bef

AW: Manually Instantiating Action classes

2005-07-18 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 18. Juli 2005 23:36 > An: Struts Users Mailing List > Betreff: Re: Manually Instantiating Action classes > > On 7/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > First choice action

AW: Manually Instantiating Action classes

2005-07-18 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 18. Juli 2005 23:36 > An: Struts Users Mailing List > Betreff: Re: Manually Instantiating Action classes > > On 7/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > First choice action

Re: Copying of properties vs. nested VO

2005-07-18 Thread Adam Hardy
Having a VO/BO with string- & strong-property getters and setters is IMHO a short cut through the UI / business domain interface. While the business domain is normally modelled using OO techniques, the view or user interface should be modelled using human behaviour analysis techniques that pro

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Frank W. Zammetti
Not a problem... http://javawebparts.sourceforge.net/javadocs/index.html In the javawebparts.filter package, you should see the CrossSiteScriptingFilter. This will filter any incoming parameters, and optionally attributes (good for if your forwarding somewhere) for a list of characters (you can

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Rick Reumann
Mike Elliott wrote the following on 7/18/2005 10:55 AM: I've been beating my head against this all weekend to no avail. I understand how to do this in session scope, but don't know if it's even possible in request scope. As I understand things (which may be wrong), when the form is submitted (

Re: Copying of properties vs. nested VO

2005-07-18 Thread Michael Jouravlev
On 7/18/05, Adam Hardy <[EMAIL PROTECTED]> wrote: > While the business domain is normally modelled using OO techniques, the > view or user interface should be modelled using human behaviour analysis > techniques that produce the best interface for users to get their work > done efficiently, reflect

Cancel and Populating...

2005-07-18 Thread Mariano Petrakovsky
I have a Cancel Button in my page... when it's submit, populating error occurs... In jsf, it's solutionated by the immediante attribute to false. How is in struts?... (When Cancel, i want forward to another page... nothing more :) ) -- Mariano G. Petrakovsky Programmer · Software Factory A

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Michael Jouravlev
On 7/18/05, Mike Elliott <[EMAIL PROTECTED]> wrote: > > Well I could see for large forms with nested data it might not be a > > great idea to keep these around in the Session. I 'try' to stick to > > using the Request when I can but I don't bend over backwards like > > some do on this list to a

Re: How do you create a Validator rule to compare 3 fields

2005-07-18 Thread Laurie Harper
Harland, David wrote: I have three checkboxes that can all either be unchecked or only one can be checked. How do I create a Validator rule for this. I don't think it is possible to do this neatly as I think you will always get more than one of the same error message. Can someone please tell me

Re: Manually Instantiating Action classes

2005-07-18 Thread Michael Jouravlev
On 7/18/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > First choice action hierarchy > Second choice helper classes > Or maybe a good combination of both :-) Chaining? ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Mike Elliott
> Well I could see for large forms with nested data it might not be a > great idea to keep these around in the Session. I 'try' to stick to > using the Request when I can but I don't bend over backwards like > some do on this list to avoid the Session.. I'm in "The Session is your > friend" ca

Name of the form

2005-07-18 Thread N G
I need to instantiate a form that is not associated with my particular action and place it on the request before forwarding... Right now I have to hardcode the name of the form as the key into the request scope. I know that you can get the configured name of the form that IS associated with your a

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Laurie Harper
Thanks; I had a quick hunt through the Javadocs but couldn't see anything relevant. Can you give me a push in the right direction? ;-) L. Frank W. Zammetti wrote: I have one as part of Java Web Parts (http://javawebparts.sourceforge.net). Let me know if it suits your needs (and if not, let m

submit form

2005-07-18 Thread Sergey Livanov
How can I submit html:form by pressing CTRL+S ? -- regards, Sergey mailto:[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: submit form

2005-07-18 Thread Martin Gainty
Sergey try "javascript:testKeyCode(evt)" onclick = "javascript:testKeyCode(evt)" />

Re: submit form

2005-07-18 Thread Niall Pemberton
The short and not v.helpful response is you can't submit - its just a JSP tag that renders a HTML element and has nothing to do with the submit process. Some of the Struts tags have the "accesskey" attribute which defines a key that can be used with the accelerator key (usually ALT) to invoke a

Manually Instantiating Action classes

2005-07-18 Thread a k
In the process of writing an Action class, I realized that it needs some application functionality (not general utility kinda functionality) that is already part of a method in a different Action class. So, Action MyAction1 needs to access method myMethod2 in Action MyAction2. Here are the options

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Michael Jouravlev
On 7/18/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Michael Jouravlev wrote the following on 7/18/2005 3:59 PM: > > > ActionForm.reset() for session-scoped forms, ActionForm.ActionForm() > > for request-scoped forms. I do not remeber, if reset() is called for > > request-scoped forms. > > Yes,

Re: [FRIDAY] What technology do you use for authentication and authorization?

2005-07-18 Thread Rick Reumann
Craig McClanahan wrote the following on 7/16/2005 1:03 AM: For maximum positive benefit to the world, please cc your responses both here Asked someone on our team (not on the Struts list) who handles the authentication stuff for our applications and he came up with:

Re: Manually Instantiating Action classes

2005-07-18 Thread Dave Newton
a k wrote: What is a better way in this scenario? In particular, is it bad to manually instantiate Action classes? I don't know if it's "bad" per se, but if it's shared functionality then from an architectural standpoint I would think it'd better to move it into a helper class. Dave --

Re: Manually Instantiating Action classes

2005-07-18 Thread Leon Rosenberg
Agreed with dave, But maybe another point, You said you already have a class all actions extend, right? Is it said somewhere that the actions can extend one class only? I mean, if it's needed by the architecture, you can create a whole action hierarchy... And if you'd need multiple inheritance -

Re: Manually Instantiating Action classes

2005-07-18 Thread Leon Rosenberg
Agreed with dave, But maybe another point, You said you already have a class all actions extend, right? Is it said somewhere that the actions can extend one class only? I mean, if it's needed by the architecture, you can create a whole action hierarchy... And if you'd need multiple inheritance -

[OT] Cross-site scripting filters

2005-07-18 Thread Laurie Harper
Does anyone know of a good, complete implementation of a cross-site scripting filter for pre-processing user entered text that needs to be rendered as HTML? Obviously / ${fn:escapeXml()} / etc. aren't the right solution ;-) but there's nothing in standard JSTL or Struts (that I know of) that i

Re: Cancel and Populating...

2005-07-18 Thread Laurie Harper
Mariano Petrakovsky wrote: I have a Cancel Button in my page... when it's submit, populating error occurs... In jsf, it's solutionated by the immediante attribute to false. How is in struts?... (When Cancel, i want forward to another page... nothing more :) ) What error do you get on sub

Re: Cancel and Populating...

2005-07-18 Thread Martin Gainty
Mariano- I take you have already identified your ActionForwards with something like this in your struts-config.xml? Saludos Cordiales, M- - Original Message - From: "Mariano Petrakovsky" <[EMAIL PROTECTED]> To: "Lista de correo de Struts" Sent: Monday, July 18, 2005 2:52

Re: How do you create a Validator rule to compare 3 fields

2005-07-18 Thread Joe Germuska
At 1:36 PM -0400 7/18/05, Laurie Harper wrote: Harland, David wrote: I have three checkboxes that can all either be unchecked or only one can be checked. How do I create a Validator rule for this. I don't think it is possible to do this neatly as I think you will always get more than one of the

Re: [OT] Cross-site scripting filters

2005-07-18 Thread Laurie Harper
Frank W. Zammetti wrote: Not a problem... http://javawebparts.sourceforge.net/javadocs/index.html In the javawebparts.filter package, you should see the CrossSiteScriptingFilter. This will filter any incoming parameters, and optionally attributes (good for if your forwarding somewhere) for a

Re: instantiation of actionforms in session scope

2005-07-18 Thread BHansard
There could be several poteintal problems. 1) make sure the JSP does not have the session=false page directive set. 2) Make sure you are referencing the form using the same name as you have it defined in the struts config (remember capitalization does count). 3) Make sure you are accessing the

Re: How do you create a Validator rule to compare 3 fields

2005-07-18 Thread Jeff Beal
Have you considered using radio buttons instead of checkboxes? From a UI standpoint, I think that would make more sense. That aside, I do not know of any easy way to do this sort of validation using the Validator plugin. I would override the validate method in my action form for just those prope

Re: saving a DynaForm

2005-07-18 Thread Laurie Harper
Dewitte Rémi wrote: Hello ! I uses LazyDynaForm to gather user results. Now I'd like to save those results. All persisence framework are for POJO, do you know a common solution ? May I create a POJO to make the transition/link ? It all depends on your requirements and what persistence techno

Re: I need help running an example

2005-07-18 Thread Laurie Harper
Stéphane Zuckerman wrote: First of all, you should understand that using JBoss, Tomcat (which implicitly is run under JBoss), or any other application server doesn't change anything. If you embed the right libraries (jar, ear, war, whatever), everything should work fine for your server. Anythin

instantiation of actionforms in session scope

2005-07-18 Thread Martin Morawetz
Hi to all, I use a formbean within session-scope (declared in struts-config.xml). However it behaves like it would be within request-scope. Every new page it gets instantiated again. I checked the sessionid and it is every page the same, so I guess am within the same http-session. Does anyone ha

Re: How do you create a Validator rule to compare 3 fields

2005-07-18 Thread Glen Mazza
Pardon the non-answer (and I would encourage anyone who knows how to validate interdependent checkboxes to respond), but ordinarily using four radio buttons (the fourth being a "none" radio button, selected by default) would be the more standard GUI choice, and one for which you can forgo valid

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Martin Gainty
Good Morning Mike There are a Number of options for implementing with request scope and manual validation explained by Rick Reumann http://www.reumann.net/struts/articles/request_lists.jsp I think its worth noting what Thomas Edison said of weekend warriors "I have not failed. I've just found

Re: basic struts question using a Map in an ActionForm

2005-07-18 Thread Craig McClanahan
On 7/18/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > To me, this is very confusing. Why doesn't the html:property tag perform > the same kind of logic as JSTL does? I would think I should be able to > just do... > > > > and not need to create a new accessor method name and the odd syntax (x) ?

Re: Nested Bean Validation

2005-07-18 Thread Van
On 7/18/05, Scott Purcell <[EMAIL PROTECTED]> wrote: > So my question is as follows: > When using struts, is a nested bean common? And if so, how do you validate > just one bean from the parent? > > eg: Lets say that the bean lets call it "checkout" and inside it has the > users shipping informa

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Niall Pemberton
There are ways to resolve this, see this page on the wiki http://wiki.apache.org/struts/StrutsCatalogLazyList Niall - Original Message - From: "Mike Elliott" <[EMAIL PROTECTED]> Sent: Monday, July 18, 2005 3:55 PM On 7/13/05, Jörg Eichhorn <[EMAIL PROTECTED]> wrote: > thanks for the

Re: basic struts question using a Map in an ActionForm

2005-07-18 Thread Rick Reumann
Rick Reumann wrote the following on 7/14/2005 4:26 PM: Rick Reumann wrote the following on 7/14/2005 4:20 PM: From the FAQ I'm going to try this in my ActionForm.. public Object getStringMapped(String key) { return map.get(key); } public void setStringMapped(String key, Obj

Nested Bean Validation

2005-07-18 Thread Scott Purcell
Hello, I would like some input into the following situation. I am diagraming a bean that will hold data for a checkout. Basically it will be a bean that will hold user_information, shipping_information, etc. So in effect the bean will hold other beans. So my question is as follows: When using

Re: Calling validator rule direct from code

2005-07-18 Thread chhum
Thanks for this. I think I’m going to have to go a bit outside of standard Struts functionality to do what I need to do but the validator is part of commons now of course so I can make code level calls that way. Quoting Martin Gainty <[EMAIL PROTECTED]>: > Good Morning Charles > >From what

Re: Iterate over list in in list in form bean.

2005-07-18 Thread Mike Elliott
On 7/13/05, Jörg Eichhorn <[EMAIL PROTECTED]> wrote: > thanks for the hint and example. I've choosen the nested way to do this, > because i > think this makes the jsp code more readable. > > I there a way to do the same using request scope? > When i do this i get an exception because the collecti

Re: saving a DynaForm

2005-07-18 Thread Martin Gainty
Rémi The Base Class of LazyDynaForm is ActionForm .. to quote the doc on ActionForm ActionForms are JavaBeans, subclasses should also implement Serializable, as required by the JavaBean specification Implementing Serializable interface would effectively 'save' your LazyDynaForm attributes Anyo

Re: Token element wrapped with a div tag

2005-07-18 Thread glenn . deschenes
Thanks Niall for your time and patience. - Glenn "Niall Pemberton" <[EMAIL PROTECTED]> 18/07/2005 10:33 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject Re: Token element wrapped with a div tag Sorry, my reply wasn't very verbose. That bug i

How do you create a Validator rule to compare 3 fields

2005-07-18 Thread Harland, David
I have three checkboxes that can all either be unchecked or only one can be checked. How do I create a Validator rule for this. I don't think it is possible to do this neatly as I think you will always get more than one of the same error message. Can someone please tell me if I am right. Thanks

Re: Token element wrapped with a div tag

2005-07-18 Thread Niall Pemberton
Sorry, my reply wasn't very verbose. That bug is fixed in Version 1.2.7 - which is why you're seeing the elements. Generally we're not very good at actually "closing" bugs - once they're marked as "RESOLVED" they don't generally get any more attention. So if you see "RESOLVED FIXED" then it means

Re: whats new with struts?? no beta for download

2005-07-18 Thread Niall Pemberton
1) Struts 1.2.x == There isn't a current beta to download, but we recently (May 2005) released version 1.2.7 which has been classified as "ga" quality. Details of changes since Version 1.2.4 are available in the release notes: http://struts.apache.org/userGuide/release-notes.html 2) Stru

saving a DynaForm

2005-07-18 Thread Dewitte Rémi
Hello ! I uses LazyDynaForm to gather user results. Now I'd like to save those results. All persisence framework are for POJO, do you know a common solution ? May I create a POJO to make the transition/link ? Thanks - To unsubsc

Re: whats new with struts?? no beta for download

2005-07-18 Thread Martin Gainty
Certainly Struts has a larger production base But as JSF is built on a 'Page Controller Pattern' model instead of 'Action Controller Pattern' (Component Action Handlers are supported) I would encourage you to read Implementing in JSF vs Struts article available from Roland Barcia http://websp

Re: URL Encoding

2005-07-18 Thread Jeff Beal
Have you looked at the html:link tag? (http://struts.apache.org/userGuide/struts-html.html#link) Link text On 7/18/05, Senthilrajan VS <[EMAIL PROTECTED]> wrote: > Hi All, > > I am calling the action directly using the hyper link, for example > /sample.do?table=test. The values for this action

Re: whats new with struts?? no beta for download

2005-07-18 Thread Martin Gainty
- Original Message - From: "Ashish Kulkarni" <[EMAIL PROTECTED]> To: Sent: Monday, July 18, 2005 8:41 AM Subject: whats new with struts?? no beta for download Hello I have been using struts for a while now, i did some upgrade to 1.2.4 few months ago(may be 6 i dont remmember) since

Re: whats new with struts?? no beta for download

2005-07-18 Thread netsql
Ashish Kulkarni wrote: Hello I have been using struts for a while now, when will be the next release of struts I belive that you have been using Struts for a while. That's why you know the answer to you question as to when. You can get any version or variation of Struts using T

ApplicationException sample

2005-07-18 Thread Rivka Shisman
Hi all, Can someone please attach a good sample of an ApplicationException, BaseException & ServiceException classes? An example of catching them in an Action class will be very helpful too. Thanks a lot Rivka

Re: Token element wrapped with a div tag

2005-07-18 Thread glenn . deschenes
Thanks Niall. It did not occur to me to check the ASF Bugzilla for Struts [I will remember for the next time]. I'm not familiar with the Status... since it is not yet closed.. this means that the bug is not yet fixed in version 1.2.7 ? - Glenn "Niall Pemberton" <[EMAIL PROTECTED]> 18/07/20

whats new with struts?? no beta for download

2005-07-18 Thread Ashish Kulkarni
Hello I have been using struts for a while now, i did some upgrade to 1.2.4 few months ago(may be 6 i dont remmember) since then i was busy with some thing else so lost touch with whats happening in struts. I went to http://struts.apache.org to find out more and was surprized to see that there is n

Re: Calling validator rule direct from code

2005-07-18 Thread Martin Gainty
Good Morning Charles From what I can gather there are 4 scenarios to instantiate a form and handle validation http://mail-archives.apache.org/mod_mbox/struts-user/200407.mbox/[EMAIL PROTECTED] If you decide to use option D) DynaValidatorForm then Take a look at Rick Reumann's site for example

Re: Token element wrapped with a div tag

2005-07-18 Thread Niall Pemberton
http://issues.apache.org/bugzilla/show_bug.cgi?id=32016 Niall - Original Message - From: <[EMAIL PROTECTED]> Sent: Thursday, July 14, 2005 4:11 PM > Hi, > > Just curious as to why in the JSP the token is wrapped in a div tag? > > value="383952ea7a0093448e02f3f0d635865b"> > > I'm us

Re: I need help running an example

2005-07-18 Thread Stéphane Zuckerman
Mohamed, First of all, you should understand that using JBoss, Tomcat (which implicitly is run under JBoss), or any other application server doesn't change anything. If you embed the right libraries (jar, ear, war, whatever), everything should work fine for your server. Anything else is a pro

Re: Token element wrapped with a div tag

2005-07-18 Thread glenn . deschenes
This is the JSP code snippet: Here is the HTML source: Here is code in my Action class: // set the synchronization token String token = generateToken(request); httpSession.setAttribute(Globals.TRANSACTION_TOKEN_KEY, token); - Glenn Laurie Harper <[EMAIL PROTECTED]> Sent by:

Re: URL Encoding

2005-07-18 Thread Yoge
Use java.net.URLEncoder.encode method. On 7/18/05, Senthilrajan VS <[EMAIL PROTECTED]> wrote: > Hi All, > > I am calling the action directly using the hyper link, for example > /sample.do?table=test. The values for this action is generated dynamically. I > want to Encode this URL. Is there an

Calling validator rule direct from code

2005-07-18 Thread chhum
Hi, Using Tomcat 5, I have an application which builds a multipage web form based on data from a database and user input. I’d like to be able to use the validtator to it but can’t determine the required fields until run time. I was wondering how I could use the pre-build validator rules in

URL Encoding

2005-07-18 Thread Senthilrajan VS
Hi All, I am calling the action directly using the hyper link, for example /sample.do?table=test. The values for this action is generated dynamically. I want to Encode this URL. Is there any way to encode this URL. Thanks & Regards, SenthilRajan VS

RE: I need help running an example

2005-07-18 Thread Marco Mistroni
Hello, Probably you weren't logged in as 'Administrator' Don't know details of why, since I don' tknow theapplication, but I am Sure the instructions or readme file for the application will tell you What to do.. Regards marco -Original Message- From: Mohamed Fathi [mailto

I need help running an example

2005-07-18 Thread Mohamed Fathi
Hi I am new to Struts framework and I was trying to run a simple example downloaded from "sourceforge" called "car-rental-system" it worked fine on JBOSS except of a single problem. all buttons are disabled when I opened the JSP file containing a submit button I found this piece of code I