Re: Locale Aware Form Objects?

2005-08-15 Thread Dakota Jack
I know how you edit. How do you edit an i18n file? That is something that is a bit of a mystery to me. Don't you see the problem? Imagine doing it. On 8/15/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > Dakota Jack wrote: > > On 8/14/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > [Jack: h

Re: getting a Form from the Session Scope from another Action

2005-08-15 Thread Yuniar Setiawan
it would be like this: Step1Form form1 = (Step1Form) request.getSession ().getAttribute("Step1Form"); On 8/16/05, C.F. Scheidecker Antunes <[EMAIL PROTECTED]> wrote: > > Hello all, > > Say that I have the following situation: > > type="org.apache.struts.actions.ForwardAction" > parameter =

getting a Form from the Session Scope from another Action

2005-08-15 Thread C.F. Scheidecker Antunes
Hello all, Say that I have the following situation: Ok, the first action calls a jsp that, when submited, calls ProcessStep1 action and populates the Step1Form. However on step2 I am doing a file upload so I am declaring the form, which is not Step1Form, to be of request scope not

Re: Error: java.lang.ClassCastException: org.apache.struts.taglib .htm l.MessagesTei

2005-08-15 Thread Nick Heudecker
This error is caused by a jsp-api.jar in your application. On 8/15/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > You said you were using Struts 1.2.7. I'm guessing those 1.1 TLDs are > declaring the TEI class Tomcat's failing to load in the old location. Try > using the TLDs (and other configura

Re: Error: java.lang.ClassCastException: org.apache.struts.taglib .htm l.MessagesTei

2005-08-15 Thread Laurie Harper
You said you were using Struts 1.2.7. I'm guessing those 1.1 TLDs are declaring the TEI class Tomcat's failing to load in the old location. Try using the TLDs (and other configuration files) that correspond to the Struts release you're using. L. Christian Dionne wrote: Hi Laurie, Thanks fo

Re: Struts weaknesses question

2005-08-15 Thread netsql
Frank W. Zammetti wrote: ... these are applications that don't necessarily flow from page to page, instead the user can navigate them at will, more or less. "Events" that occur on the client-side don't automatically have to result in a whole new page being rendered (and this DOES NOT require A

Re: Struts weaknesses question

2005-08-15 Thread Frank W. Zammetti
The latest buzzword being tossed around lately is RIA, Rich Internet Applications. Some of us laugh at the term because we've been doing RIA's for 5+ years now and never thought to attach a special term to it :) But I digress... It's true that Struts doesn't have any built-in provisions for

Re: Struts weaknesses question

2005-08-15 Thread Martin Gainty
Yuniar- You will need an event based model when actions from the client will be /should drive the actions for the webapp instead of http My take and Im no expert is that Microsoft in developed the .NET Platform and allaire developed ColdFusion (later acquired by MacroMedia) when they both reali

Struts weaknesses question

2005-08-15 Thread Yuniar Setiawan
Hi there, I've just read "Struts in Action" and found that one of struts weakness is "no event model", means "Struts is tightly coupled with the request-response model used by HTTP, this can be restricting to developers used to finely grained events" I've found all about this event model in JSF

Re: obtain action path from a forward definition

2005-08-15 Thread Martin Bunen
My problem is that I don't know the path for the second action, but I do know the "forward to second page". I'm trying to implement a custom workflow engine where states are mapped to the definitions. This way I don't hardcode the form action in JSP but rather derive it from the state name. On 8

Re: obtain action path from a forward definition

2005-08-15 Thread Martin Bunen
See, local forward definition (just as I described) does not work. If I call mapping.findForwardConfigs() from inside of my FirstAction.execute() method, I get only locally defined forwards, e.g. "forward to first page". I would like to have a way to get to the SecondPage action mapping from insid

scope="request" attribute in action mapping

2005-08-15 Thread Joe Smith
When I put scope="request" in action mappings, I got the following HTTP 500 error. But if i take it out, then everything is fine. any ideas?? [Servlet Error]-[Cannot find bean logonForm in any scope]: javax.servlet.jsp.JspException: Cannot find bean logonForm in any scope struts-config.xml ===

Re: obtain action path from a forward definition

2005-08-15 Thread Frank W. Zammetti
I think you'd have to know the path for the second action (/SecondPage in this case)... mapping.getModuleConfig().findAcrionConfig("/secondPage").findForwardConfig("forward to second page"); Caveat: I haven't tried this. :) There is also a findForwardConfigs() method of ModuleConfig, so I s

Re: obtain action path from a forward definition

2005-08-15 Thread Dave Newton
Martin Bunen wrote: Assuming I'm currently inside of com.mypkg.FirstAction.execute() method. How can I obtain ActionConfig from the "forward to second page" forward definition? What I mean is that I know the forward name for the SecondPage action mapping. I need to get to the path "/SecondPage"

obtain action path from a forward definition

2005-08-15 Thread Martin Bunen
Hi. Assume I have the following in my struts-config.xml: ... Assuming I'm currently inside of com.mypkg.FirstAction.execute() method. How can I obtain ActionConfig from the "forward to second page" forward definition? What I mean is that I know the forward name for the

Re: Special offer for Struts user groups only

2005-08-15 Thread Dave Newton
david hunter wrote: Until 08/30/2005, you can buy one license of Dreamsource and get another one free from http://www.leeonsoft.com. I just join this mailing list to announce this offer. I think it is good for us. Please don't reply this message. Interesting similarities in language, typical

Special offer for Struts user groups only

2005-08-15 Thread david hunter
Greetings, Until 08/30/2005, you can buy one license of Dreamsource and get another one free from http://www.leeonsoft.com. I just join this mailing list to announce this offer. I think it is good for us. Please don't reply this message. Dreamsource is a user-friendly Java source code genera

Re: Displaying errors for all except one key

2005-08-15 Thread Kishore Senji
I believe the reason that the Validator errors are missing is that Validator keys the errors with the property name of the form field. And so, if you say that just show the errors whose property is "ActionErrors.GLOBAL_ERROR" you would definitely miss out on the Validator errors. It has nothing to

FW: [OT] Struts and Content Management

2005-08-15 Thread João Paulo Martins
Greetings, When in doubt between Content Management System you may what to compare them in the http://www.cmsmatrix.org There exist many free / opensource cms, the difficulty is in choosing one. Compliments, João -Original Message- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Re: Can nested tile layouts be done?

2005-08-15 Thread Daniel Hannum
Thanks, I think this is better. I still must be missing something about how Tiles works internally, though. In my app, the tiles definition for the end user page (the one that defines "body") is called "endUserPage.tiles" and Tiles is smart enough to handle requests for "endUserPage.jsp" in the

Re: How to specify more than 1 datePattern in date validation?

2005-08-15 Thread erikweber
Why don't you just write your own validator plugin? Then you'll have total control over what variables you include in your validation.xml and how your validator uses them. This would take about 15 minutes once you know how to do it. For an example, you can search the Web for Matt Raible's "Valid

Re: rendering output to email or send jsp via emal

2005-08-15 Thread Hubert Rabago
Niall has a solution documented in http://niallp.pwp.blueyonder.co.uk/emailTemplate.html Hubert On 8/15/05, Thomas Hartwig <[EMAIL PROTECTED]> wrote: > I know my subject is already asked in different ways but I think the > answers are not satisfying. One of the main arguments is: Struts is for >

Re: Can nested tile layouts be done?

2005-08-15 Thread BHansard
OK, I see: Your definition would need to extend .sublayout.. /layout/layout /layout/layout2     Daniel Hannum <[EMAIL PROTECTED]> Daniel Hannum <[EMAIL PROTECTED]> 08/15/2005 03:51 PM Please respond to "Struts Users Mailing List" To Struts

Re: rendering output to email or send jsp via emal

2005-08-15 Thread erikweber
Why can't you open an HttpURLConnection (or similar) to your JSP, collect the HTML output, and embed that in a mime message body and then send via JavaMail? Erik -Original Message- From: Thomas Hartwig <[EMAIL PROTECTED]> Sent: Aug 15, 2005 2:19 PM To: user@struts.apache.org Subject: re

Re: Can nested tile layouts be done?

2005-08-15 Thread Daniel Hannum
This still isn't working for me. I need to tweak your example because the value of "body" changes for each page. So if I add one more definition to my tiles-config.xml for an actual end-user page that a user would point a browser to: It's not clear which of your definitions I should extend.

Re: Can nested tile layouts be done?

2005-08-15 Thread BHansard
Yes, this can be done. The VBox example is a good example of this. Basically it is laid out as follows. /layout/layout /layout/layout2         you can then substitute out different components of each section based on what you are doing. Daniel Hannum <[EMAIL PROTECTED]>

rendering output to email or send jsp via emal

2005-08-15 Thread Thomas Hartwig
I know my subject is already asked in different ways but I think the answers are not satisfying. One of the main arguments is: Struts is for the web, not for messaging. I think even this is wrong. Struts follows a MVC model. This does not implies only for web. And I think mostly all web apps have t

Can nested tile layouts be done?

2005-08-15 Thread Daniel Hannum
Hi everyone, I have a question about nesting layouts with Struts tiles. I've seen this sort of thing discussed in the past, but in searching I didn't see an example that I could apply to my situation, nor did I see a good solution. Executive summary: What I want to do is have a simple layout cont

RE: Error: java.lang.ClassCastException: org.apache.struts.taglib .htm l.MessagesTei

2005-08-15 Thread Christian Dionne
Hi Laurie, Thanks for your answer. I did a quick search to find if that was my problem and unfortunately it isn't. I don't have any other copy of struts.jar in any other directory than in my project directory (WEB-INF/lib)... Here is the struts structure I have: WEB-INF/struts-bean-1.1.tld WEB

Re: How to specify more than 1 datePattern in date validation?

2005-08-15 Thread Thai Dang Vu
You're right. RE is not suitable in this case. If we don't specify a pattern, Struts will use SimpleDateFormat's default which is MM/dd/ (I've just read about it in the Struts In Action book from somebody here last week, so I'm not sure if that pattern is the default). One thing I'm sure o

Re: How to specify more than 1 datePattern in date validation?

2005-08-15 Thread Laurie Harper
Thai Dang Vu wrote: If I want to validate a date field, I will put something like this in the validation.xml file datePattern MM/dd/ So, if I want to enable 2 ways of entering a date (MM/dd/yyy and MM-dd-), how should I write in the validation.xml fi

Re: Error: java.lang.ClassCastException: org.apache.struts.taglib.htm l.MessagesTei

2005-08-15 Thread Laurie Harper
You probably have multiple copies of the struts jar on you application's class path. Make sure that struts.jar only exists in your WEB-INF/lib directory and not elsewhere in whatever application server or servlet container you're using. Assuming you're using Tomcat, look for copies of struts.ja

Re: Locale Aware Form Objects?

2005-08-15 Thread Laurie Harper
Dakota Jack wrote: On 8/14/05, Laurie Harper <[EMAIL PROTECTED]> wrote: [Jack: he's not talking about localizing natural language data entered by the user, that's clearly not feasible!] Fair enough! Out of curiosity, how do you "edit" the data without "natural language"? Same as with any o

Re: [shale] - suggestion for shale

2005-08-15 Thread Craig McClanahan
On 8/14/05, David Thielen <[EMAIL PROTECTED]> wrote: > Hi; > > > > This may already be in shale - I'm only using shale's mock objects so far, > not shale itself. > > > > Something I would find VERY useful is for shale to call a backing bean > before rendering a page - where there is a way to

How to specify more than 1 datePattern in date validation?

2005-08-15 Thread Thai Dang Vu
Hi everybody, If I want to validate a date field, I will put something like this in the validation.xml file datePattern MM/dd/ So, if I want to enable 2 ways of entering a date (MM/dd/yyy and MM-dd-), how should I write in the validation.xml file?

Error: java.lang.ClassCastException: org.apache.struts.taglib.htm l.MessagesTei

2005-08-15 Thread Christian Dionne
Hi! I'm using Tomcat 5.5.9 with Struts 1.2.7. I am trying to convert my application that was working fine with Tomcat 5.0.30. I mostly fixed everything except that now I am getting this error. This occurs when parsing a .jsp file that includes a struts .tld. Any idea how to fix this? I saw a

Re: Locale Aware Form Objects?

2005-08-15 Thread Dakota Jack
On 8/14/05, Laurie Harper <[EMAIL PROTECTED]> wrote: [Jack: he's not talking about > localizing natural language data entered by the user, that's clearly not > feasible!] Fair enough! Out of curiosity, how do you "edit" the data without "natural language"? -- "You can lead a horse to water but

Re: null pointer exception

2005-08-15 Thread Michael Rasmussen
Balkan, which line is line 26 in edit action? Can you provide the entire stack trace? Off hand I would guess that your call to request.getAttribute("key") is returning null...I don't see any other likely suspects. Your JSP does this: pageContext.setAttribute("key",key); what is pageContext?

Re: [OT] Reasonable implementation time guesstimates

2005-08-15 Thread Dave Newton
netsql wrote: hth, Thanks; I'm going to digest this off-line--I really appreciate the info. Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

null pointer exception

2005-08-15 Thread Balkan Guler
hello, I have a action form operForm and List operMenus field. operMenu is an other class that has some field. I am listing all of the operMenu objects and their fields. At the end of the each row I have an edit link that sends, its row's primary key to an action. operMenu class has two primary

Re: valuator newbie

2005-08-15 Thread David McReynolds
Problem was the struts jar and validator-rules.xml were out of sync. On 8/12/05, David McReynolds <[EMAIL PROTECTED]> wrote: > My app is throwing a method not found exception. I've run it through > the debugger and verified. The code snippet below is from commons > ValidatorAction. It blows up on

Re: Validation Rules method not found

2005-08-15 Thread David McReynolds
I just fixed this. You have mixed up the versions of the validator-rules.xml and the struts jar. Either go back to struts jar 1.1 or upgrade the validator-rules.xml. On 8/12/05, Doug Thomas <[EMAIL PROTECTED]> wrote: > While implementing struts validation for the first time (yup - I'm a > newbie),

Re: All session variables and their values

2005-08-15 Thread Frank W. Zammetti
Take a look at this: http://javawebparts.sourceforge.net/javadocs/index.html This will do what you want I believe. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Mon, August 15, 2005 12:56 am, C.F. Scheidecker Antunes said: > Hello all,

RE: Displaying errors for all except one key

2005-08-15 Thread Chris Loschen
Does anyone have some ideas for me? Thank you! -Original Message- From: Chris Loschen Sent: Saturday, August 13, 2005 5:48 PM To: Struts Users Mailing List Subject: RE: Displaying errors for all except one key My Google research leads me to believe that I'm using old, deprecated constan

RE: Using JSTL to access form bean properties

2005-08-15 Thread Paul McCulloch
Rather than remember the name of the form bean, I use the following: Note that I uses session scoped form beans - the expression would have to change slightly for request scoped ones. Paul > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: 14 August 2005 19:18

Re: All session variables and their values

2005-08-15 Thread Wendy Smoak
From: "C.F. Scheidecker Antunes" <[EMAIL PROTECTED]> How can I list/print on a JSP all the variables and their values of the current user session? For debugging during development, I keep this JSP around and include it in my overall layout tile so it shows up at the bottom of every page. It

Collection display / save

2005-08-15 Thread Lance Semmens
I'm wanting to display a page with rows (1 for each bean in a collection) with input fields that are saved on submit. I'm pretty new to struts but have a rough idea of what should happen: Display Action 1. Create the ActionForm 2. Populate form collection (database) 3. Save form on session

Multiple file upload

2005-08-15 Thread C.F. Scheidecker Antunes
Hello all, Is there any way to perform multiple file uploads using Jakarta Commons Upload on a Struts application? Is there any howto on this issu? Thanks, C.F. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comma