XTag problem

2004-11-23 Thread Nishant
hi to all, i am using Struts in tomcat apache server.. i have a xml data which is stored in a form of string. i am using XTags when i use then it is completely working... but when this xml file i put into string and use <% String xml = (String) request.getAttribute("xmlString"); %> <%= xml %> t

RE: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Matthias Wessendorf
And, see http://incubator.apache.org/myfaces/mailinglists.html as a small starter. Best regards, Matthias > -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 23, 2004 9:08 PM > To: Struts Users Mailing List > Subject: Re: [OT] quick JSF questi

RE: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Matthias Wessendorf
Rick, the yahoo group is hosted here: http://groups.yahoo.com/group/jsf-developers/ -Matthias > -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 23, 2004 9:08 PM > To: Struts Users Mailing List > Subject: Re: [OT] quick JSF question.. can it ha

Re: http://marc.theaimsgroup.com/ down and out?

2004-11-23 Thread Dakota Jack
Anyone know what is up with this? Jack On Tue, 23 Nov 2004 17:04:23 -0400, Derek Broughton <[EMAIL PROTECTED]> wrote: > On Tuesday 23 November 2004 15:46, Dakota Jack wrote: > > I can get to the site, Derek, but searches do not work. Do you get > > searches too? > > > > Ah. No. I can browse t

Re: Populating drop-downs

2004-11-23 Thread Tak Yoshida
I'm not sure what you exactly want to do, with adding value to HashTable as set method, and creating List from the HashTable as get method. Anyway, if you want to acces that Form you created via poppulate method, I guess you just write Struts tag with name attribute as the name you set in sesison,

Re: Problem downloading file

2004-11-23 Thread Struts User
Here is a good article related to the problem: http://www.javaworld.com/javatips/jw-javatip94_p.html Lee On Tue, 23 Nov 2004 18:38:30 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > > > Dakota Jack wrote: > > >Weber, you're the best. Thanks a million. > > > >Jack > > > > > > You're quite we

Re: [OT] Plug for Geary's JSF book

2004-11-23 Thread Erik Weber
I haven't read this book yet, but I can vouch for these authors (as an avid reader of text books and specs). They've each written some good stuff on their own, so I can't wait to see what they've written together. Also, recently I looked at the latest Struts documentation for the first time. I

Re: html:option problem

2004-11-23 Thread Richard Bywater
As Tim pointed out, I believe you'll need to make the html prefix reference /WEB-INF/struts-html-el.tld Richard. On Tue, 23 Nov 2004 15:09:14 -0600, Dave Bender <[EMAIL PROTECTED]> wrote: > It references "/WEB-INF/struts-html.tld" > > -Original Message- > From: Slattery, Tim - BLS [mail

Re: Problem downloading file

2004-11-23 Thread Erik Weber
Dakota Jack wrote: Weber, you're the best. Thanks a million. Jack You're quite welcome. P.S. Would you like a gmail invite? Why, thank you. But, I already have a gmail account. Unfortunately, my main email address long has been posted all over the Web (I didn't know any better), so wh

Re: [OT] Plug for Geary's JSF book

2004-11-23 Thread Simon Coles
On Tue, 23 Nov 2004 18:33:03 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > Sorry if this hits the list twice. I think my works outgoing server > pegged it as Spam.. > > If you are Struts person thinking about learning what JSF is all about, > go to your bookstore or favorite online store and pi

[OT] Plug for Geary's JSF book

2004-11-23 Thread Rick Reumann
Sorry if this hits the list twice. I think my works outgoing server pegged it as Spam.. If you are Struts person thinking about learning what JSF is all about, go to your bookstore or favorite online store and pick up Core Java Server Faces by David Geary and Cay Horstmann. It's so refreshing t

RE: html:option problem

2004-11-23 Thread Dave Bender
No, it's terminated. It's got an end tag . The body of the tag becomes the value. -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 3:27 PM To: 'Struts Users Mailing List' Subject: RE: html:option problem > This: > > produces

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Mark Lowe
You basically wrap the list in s ListDataModel and you can pullthe row you need out with getWrappedData() . You can just use List but you can bind datamodels to teh binding attribute. This side of JSF is really cool. You want a HtmlInputText in a panelGrid (table in struts/jstl speak) you just do

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Rick Reumann
Mark Lowe wrote the following on 11/23/2004 4:56 PM: Sure.. "someHandleToAnIndexInLoop" .. where would you get that from? You could do want you want. I was just saying that there's not the same need to drill through lists using the indices. Look at the javadocs on ListDataModel. You'll see what i

Re: Problem downloading file

2004-11-23 Thread Dakota Jack
Weber, you're the best. Thanks a million. Jack P.S. Would you like a gmail invite? On Tue, 23 Nov 2004 13:31:54 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > > > Morales de Frías wrote: > > >Hi¡ > > > >I already know that this problem have been resolved before, but i can't find > >the

Re: I18n and Locale

2004-11-23 Thread Hubert Rabago
IIRC, this logic is spread through several areas. I remember reading in a bug report months ago that there were even some tags that might've been adding the Locale to the session. This might've already changed, though. I suggest you open up Struts source code in your favorite IDE and run a usage

RE: nullpointer in struts-tag

2004-11-23 Thread David G. Friedman
Wolfgang, Can you post some of your validation file's form definition for "TAform"? Any change your validation file's form isn't exactly spelled "TAform" (small "F"?)? Regards, David -Original Message- From: Rinnert, Wolfgang [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 11:

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Mark Lowe
Sure.. "someHandleToAnIndexInLoop" .. where would you get that from? You could do want you want. I was just saying that there's not the same need to drill through lists using the indices. Look at the javadocs on ListDataModel. You'll see what i mean when you start using it, but you'll find less

Re: I18n and Locale

2004-11-23 Thread Hubert Rabago
Yes, it's org.apache.struts.Globals.LOCALE_KEY: /** * The session attributes key under which the user's selected * java.util.Locale is stored, if any. If no such * attribute is found, the system default locale * will be used when retrieving internationalized messages. If

I18n and Locale

2004-11-23 Thread Mulligan, Scott H
I have a Struts application that has (for failover reasons) implemented its own SessionFacade to serialize session information to a database. I am trying to figure out if Struts requires the Locale to be saved in the HttpSession or if I can save it in my SessionFacade. Is there any place in the Str

RE: html:option problem

2004-11-23 Thread Slattery, Tim - BLS
> This: > > produces this: > > instead of this: > OK, so now I look at this a bit more closely. You haven't terminated the tag. It should read: I would have expected an error message from that but what do I know? -- Tim Slattery [EMAIL PROTECTED]

Problem with forwarding a page

2004-11-23 Thread admin
Hello everyone, i need some help with a redirection. The problem is whem a user session becomes expired and he trys to do something i need to redirect them to a Logon page outside of a frameset. It is something like but the does't have the target attribute. How can i do that?

RE: html:option problem

2004-11-23 Thread Dave Bender
It references "/WEB-INF/struts-html.tld" -Original Message- From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 2:44 PM To: 'Struts Users Mailing List' Subject: RE: html:option problem > This: > > produces this: > > instead of this: > A

Re: http://marc.theaimsgroup.com/ down and out?

2004-11-23 Thread Derek Broughton
On Tuesday 23 November 2004 15:46, Dakota Jack wrote: > I can get to the site, Derek, but searches do not work. Do you get > searches too? > Ah. No. I can browse the messages but a "Search" (for any of Subject, Author or Body) results in: "An unexpected error has occurred. Details of this trans

RE: html:option problem

2004-11-23 Thread Slattery, Tim - BLS
> This: > > produces this: > > instead of this: > Are you sure the "html" prefix references the EL version of the taglib? -- Tim Slattery [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

File upload.

2004-11-23 Thread Kesavan, Malini
Hi, I am trying to implement file upload using struts. I added the following to Dyna Validator Form: Can anybody please let me know how can I get InputStream in my Action class. Also, what do I need to import? This is what I tried doing: FormFile myFil

html:option problem

2004-11-23 Thread Dave Bender
Can anybody help me spot what I'm missing in creating an HTML SELECT box with the html:option tag? I'm iterating through a list of objects that have IDs and Names, plunking the ids in for the value and the name for the name. But the tag seems to insist that the bean isn't there and just prints m

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Rick Reumann
Mark Lowe wrote the following on 11/23/2004 2:18 PM: You'd probably want to do the work in your backing beans rather than dealing with it in you JSP. Not sure exactly what you mean by the above. But in answer to your question yes you can nest beans, but the beans are more than just value holders a

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Rick Reumann
Craig McClanahan wrote the following on 11/23/2004 2:32 PM: I'm not a huge fan of web forums either, but that's what JSF has to deal with :-). (Free registration required) http://forum.java.sun.com/forum.jspa?forumID=427 Cool. Joining today. I notice there is a yahoo group maybe we could build t

Re: Bean not found error for an existing bean

2004-11-23 Thread Derek Broughton
On Tuesday 23 November 2004 12:59, Alpay Ozturk wrote: > Below jsp code causes the "org.apache.jasper.JasperException: Cannot > find bean mmBoxBean in scope request" exception to be thrown. How can > this happen? > > > That closing / shouldn't be there... > > > > messageId in mmBoxBean is n

Re: Problem downloading file

2004-11-23 Thread Erik Weber
Morales de Frías wrote: Hi¡ I already know that this problem have been resolved before, but i can't find the solution searching in this post. (Or solutions founded don't help me). I have an action that generates pdf files, and zip them. And i want to download it... but i have two problems: --> F

Re: http://marc.theaimsgroup.com/ down and out?

2004-11-23 Thread Dakota Jack
I can get to the site, Derek, but searches do not work. Do you get searches too? Jack On Tue, 23 Nov 2004 15:24:19 -0400, Derek Broughton <[EMAIL PROTECTED]> wrote: > On Tuesday 23 November 2004 15:12, Dakota Jack wrote: > > Anyone know what is up with http://marc.theaimsgroup.com/ struts list

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Craig McClanahan
On Tue, 23 Nov 2004 13:45:37 -0500, Rick Reumann <[EMAIL PROTECTED]> wrote: > First off, Craig if you are reading this, how come no one has started a > jsf-users mailing list? I hate using web forums. yuk:) Seems like I'm not a huge fan of web forums either, but that's what JSF has to deal with :-

Re: http://marc.theaimsgroup.com/ down and out?

2004-11-23 Thread Derek Broughton
On Tuesday 23 November 2004 15:12, Dakota Jack wrote: > Anyone know what is up with http://marc.theaimsgroup.com/ struts list > server? They have been down for days now. > It must be at your end. Works for me. -- derek - To un

Re: Populating drop-downs

2004-11-23 Thread Rick Reumann
Santosh Kumar Panda wrote the following on 11/22/2004 5:07 AM: I have been facing problems populating drop-downs using dummy stub classes .I have used a function to populate the page containing the drop-down and thrown the Action Form type object into the session. Well you didn't create a functio

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Mark Lowe
Rick Things are a bit different, with JSF. I had a good go with it, and I'm looking at returning to using it now I've found solutions to some irritating problems I couldn't solve at the time. You'd probably want to do the work in your backing beans rather than dealing with it in you JSP. ListDa

http://marc.theaimsgroup.com/ down and out?

2004-11-23 Thread Dakota Jack
Anyone know what is up with http://marc.theaimsgroup.com/ struts list server? They have been down for days now. Jack -- "You can't wake a person who is pretending to be asleep." ~Native Proverb~ "Each man is good in His sight. It is not necessary for eagles to be crows." ~Hunkesni (Sitting

Re: Problem downloading file

2004-11-23 Thread Dakota Jack
When you do this, Radu, how does the file show up in the client? Is it downloaded to a directory the client user chooses or is it displayed in the client browser? Thanks. Jack On Tue, 23 Nov 2004 20:24:59 +0200, Radu Badita <[EMAIL PROTECTED]> wrote: > I have the same problem trying to do the

Re: [OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Vic
Rick Reumann wrote: how come no one has started a jsf-users mailing list? http://www.marinschek.com/myfaces/tiki/tiki-index.php?page=MailingLists An Apache Sister project to Struts is MyFaces , and has a mail list, consider that. .V -

Re: [OT] Ant question

2004-11-23 Thread Mark Lowe
Mark On Tue, 23 Nov 2004 10:30:44 -0800 (PST), Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > I have a ant script which creates a war file, every > thing works well but it does not copy empty directory > in the war file, i need one directory which is empty, > it is under WEB-INF and at run ti

RE: [OT] Ant question

2004-11-23 Thread Daniel Perry
No idea if ant can do this, but i tend to put a 0 byte 'ignoreme' file in the directory. This stops these problems happening with more than just ant! Daniel. > -Original Message- > From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] > Sent: 23 November 2004 18:31 > To: [EMAIL PROTECTED] > Su

[OT] quick JSF question.. can it handle nested VOs easily?

2004-11-23 Thread Rick Reumann
First off, Craig if you are reading this, how come no one has started a jsf-users mailing list? I hate using web forums. yuk:) Seems like First, let me frame my question in light of real life terms that we have to deal with. We have some complex nested value objects that return from the backend

Re: [OT] Ant question

2004-11-23 Thread sachin . s . zope
Hi, You can create a directory on the fly using java code. First you can check if the directory exists. If it doesn't, then create one. Thanks Sachin Zope Preclinical IT Sr. Java Developer 610-270-5863 (Work) 610-269-2243 (Home) 412-656-8343 (Cell) "Ashish Kulkarni" <[EMAIL PROTECTED]> 23-N

[OT] Ant question

2004-11-23 Thread Ashish Kulkarni
Hi I have a ant script which creates a war file, every thing works well but it does not copy empty directory in the war file, i need one directory which is empty, it is under WEB-INF and at run time xml files are created in it, My web application expects this empty folder and crashes if not found,

Re: Problem downloading file

2004-11-23 Thread Radu Badita
I have the same problem trying to do the same as Morales... To overcome this, i've made a JSP (just because i was too lazy to write a Servlet :) where I get the OutputStream from the response, set the content type and content-disposintion: response.setContentType("application/octet-stream");

Re: validator form not working

2004-11-23 Thread Erik Weber
Somewhere along the line I learned that arg1 has to go with minlength, and arg2 has to go with maxlength. I could be wrong, but, I have success using it this way. Here is an example of minlength and maxlength: minlength 8

Re: Multi-Page Wizard Validation Problem

2004-11-23 Thread Jeff Smith
Problem Solved. I just needed to explicitly set the validation-rules.xml file in both of my struts-config.xml files. Thanks David and Niall for all your help. -jeff On Nov 23, 2004, at 6:13 AM, Jeff Smith wrote: Setting the form bean type to DynaValidatorForm seems to trigger validation. Tha

error params in html taglib

2004-11-23 Thread Daniel Perry
I've just noticed in the html taglib documentation that various fields: errorKey, errorStyle, etc have appeared. Can anyone point me to any documentation on how these work? ie. errorStyle "CSS styles to be applied to this HTML element if an error exists for it. " But how do i specify that the

Re: [OT] Re: ActionErros ok but ActionMessages fail

2004-11-23 Thread Matt Bathje
Joe Germuska wrote: This is totally off topic - but did Joe reply to you personally, or was the message on the list? I didn't see any message from him get posted here. I actually haven't seen any messages from him here or on dev for the past few days, but have seen people respond to him. I'm makin

Struts training

2004-11-23 Thread Shyam Anand
Hi, Could somebody recommend a good, advanced Struts classroom training course in the US,that covers topics like Tiles/JSTL, JSF et al? Thanks, Shyam __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yaho

Re: DynaValidatorForm 'forgets' request-attribute on redisplay after validation

2004-11-23 Thread Alexander Czernay
The problem is, that the given form actually edits the categories-tree and as it is presented to the user after editing it, it should be updated after the form is submitted. Alexander Joe Germuska wrote: Your action isn't executed if validation fails. However, the validation is performed on a

Bean not found error for an existing bean

2004-11-23 Thread Alpay Ozturk
Below jsp code causes the "org.apache.jasper.JasperException: Cannot find bean mmBoxBean in scope request" exception to be thrown. How can this happen? messageId in mmBoxBean is null but logic:present says that it is not. ---

AW: nullpointer in struts-tag

2004-11-23 Thread Rinnert, Wolfgang
Ok, I have switched to 1.2.6. The result is better insofar as my starter, index.jsp, which failed with 1.2.4, now shows (as it did with 1.1). index.jsp uses . But TA.jsp still fails. Any ideas where to check for problems are welcome. Mit freundlichen Grüßen Wolfgang Rinnert -Ursprüngliche

AW: nullpointer in struts-tag

2004-11-23 Thread Rinnert, Wolfgang
On my previous posting I missed the fact that the error happens in JavascriptValidatorTag, which was my issue all along. It made me upgrade from Struts 1.1 to 1.2.4 in the first place. java.lang.NullPointerException at org.apache.struts.taglib.html.JavascriptValidatorTag.renderJavascript(J

Re: dynabean and jstl

2004-11-23 Thread Mario Neè
If i want to use standart tag in jsp what i have to do ? On Tuesday 23 November 2004 17:14, Duncan Mills wrote: > It works with org.apache.struts.action.DynaActionForm which exposes a > getMap() method > > Regards > > > Duncan Mills > http://www.goundside.com/blog > > Mario Neè wrote: > >this is

RE: [OT] Re: ActionErros ok but ActionMessages fail

2004-11-23 Thread Joe Germuska
This is totally off topic - but did Joe reply to you personally, or was the message on the list? I didn't see any message from him get posted here. I actually haven't seen any messages from him here or on dev for the past few days, but have seen people respond to him. I'm making it through to the a

Re: Problem downloading file

2004-11-23 Thread Dakota Jack
What do you mean by "dialog"? Do you want to download this file to display it? Or do you want to download it to keep? The return null for the ActionForward is used to display resources and is called after the response is committed. The call is part and parcel of the content of the response. Ja

Re: Tiles and file download

2004-11-23 Thread Dakota Jack
Perhaps a bit of "theory" is what you need. When you return a resource such as a file from an Action with a null as the value of the ActionFoward, you do so because the action is called FROM the response or the page which has already been committed and presented to the client. The call to the act

Re: dynabean and jstl

2004-11-23 Thread Mario Neè
ok. thanx. On Tuesday 23 November 2004 17:19, Mario Neè wrote: > javax.servlet.ServletException: An error occurred while evaluating custom > action attribute "value" with value "${cart.map['id']}": Unable to find a > value for "map" in object of class > "org.apache.commons.beanutils.BasicDynaBean"

Re: dynabean and jstl

2004-11-23 Thread Mario Neè
javax.servlet.ServletException: An error occurred while evaluating custom action attribute "value" with value "${cart.map['id']}": Unable to find a value for "map" in object of class "org.apache.commons.beanutils.BasicDynaBean" using operator "." (null) at org.apache.jasper.runtime.PageContext

Re: dynabean and jstl

2004-11-23 Thread Duncan Mills
It works with org.apache.struts.action.DynaActionForm which exposes a getMap() method Regards Duncan Mills http://www.goundside.com/blog Mario Neè wrote: this is the error Unable to find a value for "map" in object of class "org.apache.commons.beanutils.BasicDynaBean" using operator "." (null)

Re: dynabean and jstl

2004-11-23 Thread Bill Siggelkow
DynaActionForm, which implements DynaBean, contains a getMap() method; however, DynaBean does not expose the backing Map in a public property. To use a DynaBean with JSTL, you could create your own extension that exposed the protected 'values' HashMap using a public getter method. -Bill Siggelk

Re: Tiles and file download

2004-11-23 Thread Dakota Jack
As you no doubt see, Paul's solution is for viewing in the browser and Matt's is for downloading to the client. You can do both if you like. Just make the file in the browser per Paul the button for downloading the file to the client per Matt. You can have the button do a popup which then shows

Re: Struts and Role specific Action Forwarding: Overview Answer

2004-11-23 Thread Dakota Jack
Rajesh, Just to complement Eddie Bush's assistance. The Struts controller setup in the MVC does some data mining the ActionForm and then passes off to different actions for different business logic and to different ActionForwards for different presentation. Thus, if you are clear about what each

Re: dynabean and jstl

2004-11-23 Thread Matt Bathje
Mario Neè wrote: this is the error Unable to find a value for "map" in object of class "org.apache.commons.beanutils.BasicDynaBean" using operator "." (null) Mario - we would need to see your (relevant) code in order to help with this. Also, a copy of the stack trace for the error never hurts.

RE: [OT] Re: ActionErros ok but ActionMessages fail

2004-11-23 Thread Alpay Ozturk
Yes, it was on the list. -Original Message- From: Matt Bathje [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 5:41 PM To: Struts Users Mailing List Subject: [OT] Re: ActionErros ok but ActionMessages fail This is totally off topic - but did Joe reply to you personally, or was

Problem downloading file

2004-11-23 Thread Morales de Frías, David
Hi¡ I already know that this problem have been resolved before, but i can't find the solution searching in this post. (Or solutions founded don't help me). I have an action that generates pdf files, and zip them. And i want to download it... but i have two problems: --> File that appears in di

RE: dynabean and jstl

2004-11-23 Thread Robert Taylor
JSTL is not "DynaBean-aware" but can work with Maps. However, you can use DynaForms because they implement a getMap() which you can then use with JSTL as such: robert > -Original Message- > From: Mario Nee [mailto:[EMAIL PROTECTED] > Sent: Tuesday, November 23, 2004 9:20 AM > To

Re: Tiles and file download

2004-11-23 Thread Matt Bathje
My only problem with doing it this way is it changes the mime-type of the file sometimes, which makes it harder for users to download. Depending on the userbase you may or may not have this problem. Matt Paul McCulloch wrote: Your action could read the log file, & store the contents into a requ

RE: Tiles and file download

2004-11-23 Thread Paul McCulloch
Your action could read the log file, & store the contents into a request scoped attribute. The contents of this attribute can then be displayed in the relevant tile. Paul > -Original Message- > From: Matt Bathje [mailto:[EMAIL PROTECTED] > Sent: 23 November 2004 14:40 > To: Struts Users M

Re: dynabean and jstl

2004-11-23 Thread Mario Neè
this is the error Unable to find a value for "map" in object of class "org.apache.commons.beanutils.BasicDynaBean" using operator "." (null) On Tuesday 23 November 2004 15:36, Duncan Mills wrote: > Sure, with a Dynaform called dynaLogonForm and a of > "email" you would use somethng like: > >

Re: ActionErros ok but ActionMessages fail

2004-11-23 Thread Matt Bathje
Alpay Ozturk wrote: Hi All, I am having a problem with ActionMessages. When I create an ActionMessages instance in my action and add ActionMessage objects to it, it is not displayed in my result jsp. But when I create an ActionErrors instance and add ActionMessage ojects to it, it is displayed. Bel

Re: DynaValidatorForm 'forgets' request-attribute on redisplay after validation

2004-11-23 Thread Matt Bathje
Alexander Czernay wrote: I have a simple DynaValidatorForm that is called whtin an action that inserts so data into the request inside its execute method public ActionForward execute( ActionMapping mapping,

Re: Simple indexed properties (String[]) and validation.xml

2004-11-23 Thread Matt Bathje
Paul Hepworth wrote: Hi, I have a form-property like so: Which is populated by the following in my jsp page: :   This works fine as I get the 5 html:selects on the page. However, I want to validate this and ch

Re: nullpointer in struts-tag

2004-11-23 Thread Juan Salazar
i think this bug was fixed on release 1.2.6 (release date 22/nov). Check it out. El mar, 23-11-2004 a las 15:55 +0100, Rinnert, Wolfgang escribiÃ: > Hi All, > I have difficulties to get my webapp running. > This is my first attempt to do more than training apps. > I use Struts 1.2.4, Tomcat 4.

nullpointer in struts-tag

2004-11-23 Thread Rinnert, Wolfgang
Hi All, I have difficulties to get my webapp running. This is my first attempt to do more than training apps. I use Struts 1.2.4, Tomcat 4.1.30, Linux. The following exception occurs when calling TA.jsp directly, before anything is visible on the screen: - java.lang.NullPointerExce

Re: box not getting populated from ActionForm.

2004-11-23 Thread Peter Vennel
Thanks Corey. I found out what I had missed. I had to add this line before calling mapping.findForwarding(). httpServletRequest.setAttribute(actionMapping.getAttribute(), bForm); Santosh, I hope this will work for you too. Peter. --- Corey Scott <[EMAIL PROTECTED]> wrote: > Peter and Santos

Re: box not getting populated from ActionForm.

2004-11-23 Thread Peter Vennel
Thanks Corey. I found out what I had missed. I had to add this line before calling mapping.findForwarding(). httpServletRequest.setAttribute(actionMapping.getAttribute(), bForm); Santosh, I hope this will work for you too. Peter. --- Corey Scott <[EMAIL PROTECTED]> wrote: > Peter and Santos

Re: Tiles and file download

2004-11-23 Thread Matt Bathje
andy wix wrote: Hi, I have a requirement to allow the user to view log files in the main body tile when they click a certain menu item in the 'menu tile'. I see on the archives that the normal way to do this is to stream the file to the response and then return null from the action. What's the

Re: dynabean and jstl

2004-11-23 Thread Duncan Mills
Sure, with a Dynaform called dynaLogonForm and a of "email" you would use somethng like: Duncan Regards Duncan Mills http://www.goundside.com/blog Mario Neè wrote: Hello, can i use dynabean inside a jsp using jstl ? i'm using struts 1.2.4 ---

Re: ActionErros ok but ActionMessages fail

2004-11-23 Thread Joe Germuska
At 4:20 PM +0200 11/23/04, Alpay Ozturk wrote: Hi All, I am having a problem with ActionMessages. When I create an ActionMessages instance in my action and add ActionMessage objects to it, it is not displayed in my result jsp. But when I create an ActionErrors instance and add ActionMessage ojects

ActionErros ok but ActionMessages fail

2004-11-23 Thread Alpay Ozturk
Hi All, I am having a problem with ActionMessages. When I create an ActionMessages instance in my action and add ActionMessage objects to it, it is not displayed in my result jsp. But when I create an ActionErrors instance and add ActionMessage ojects to it, it is displayed. Below are the action a

Re: DynaValidatorForm 'forgets' request-attribute on redisplay after validation

2004-11-23 Thread Joe Germuska
Your action isn't executed if validation fails. However, the validation is performed on a second request, so the object placed into the scope before the form was presented is no longer there. If your categories are really relatively static, consider managing them in Application scope rather th

dynabean and jstl

2004-11-23 Thread Mario Neè
Hello, can i use dynabean inside a jsp using jstl ? i'm using struts 1.2.4 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

DynaValidatorForm 'forgets' request-attribute on redisplay after validation

2004-11-23 Thread Alexander Czernay
I have a simple DynaValidatorForm that is called whtin an action that inserts so data into the request inside its execute method public ActionForward execute( ActionMapping mapping, ActionForm form,

Re: Multi-Page Wizard Validation Problem

2004-11-23 Thread Niall Pemberton
Yoour missing the "validator-rules.xml" in your strus-config - something like... Niall - Original Message - From: "Jeff Smith" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, November 23, 2004 1:13 PM Subject: Re: Multi-Page Wizard Validation

Re: Multi-Page Wizard Validation Problem

2004-11-23 Thread Jeff Smith
Setting the form bean type to DynaValidatorForm seems to trigger validation. Thanks much. In the logs I'm now seeing: [java] 06:08:42,407 ERROR [DynaValidatorForm] No ValidatorAction named required found for field firstName [java] org.apache.commons.validator.ValidatorException: No

Re: Multi-Page Wizard Validation Problem

2004-11-23 Thread Jeff Smith
RegistrationAction extends WizardAction which extends LookupDispatchAction. I'm not overriding validate anywhere in my code. WizardAction is just a simple abstract LookupDispatchAction that handles things like next and previous. -jeff On Nov 22, 2004, at 9:55 PM, David G. Friedman wrote: Jef

Simple indexed properties (String[]) and validation.xml

2004-11-23 Thread Paul Hepworth
Hi, I have a form-property like so: Which is populated by the following in my jsp page: :   This works fine as I get the 5 html:selects on the page. However, I want to validate this and check that at least

RES: tiles wilcard?

2004-11-23 Thread Julio Cesar C Neto
Thank you Nicolas! -Mensagem original- De: Nicolas De Loof [mailto:[EMAIL PROTECTED] Enviada em: terça-feira, 23 de novembro de 2004 07:22 Para: Struts Users Mailing List Assunto: Re: tiles wilcard? Here I am ! I submited a patch for this in http://issues.apache.org/bugzilla/show_bu

Re: tiles wilcard?

2004-11-23 Thread Nicolas De Loof
Here I am ! I submited a patch for this in http://issues.apache.org/bugzilla/show_bug.cgi?id=31034 They're is no *pretty* doc on this (tutorial or sample) but you can look at bugzilla comments for simple usage : wildcard in struts-config.xml : wildcard in tiles-defs.xml : -

Tiles and file download

2004-11-23 Thread andy wix
Hi, I have a requirement to allow the user to view log files in the main body tile when they click a certain menu item in the 'menu tile'. I see on the archives that the normal way to do this is to stream the file to the response and then return null from the action. What's the approach taken

RES: tiles wilcard?

2004-11-23 Thread Julio Cesar C Neto
Yeah , I know and that´s exactly what would like to have with tiles. I´ve been searching the old messages and found that once Nicolas de loof developed such a patch but it does not come with *any* documentation. Hey, Nicolas, are you there? Julio Cesar -Mensagem original- De: news [m

Re: XSL in JSP

2004-11-23 Thread gilles
have a look at the xtag library (it's well documented) : http://jakarta.apache.org/taglibs/doc/xtags-doc/index.html Le Mardi 23 Novembre 2004 06:41, Nishant a écrit : > hi to all, > i am using tomcat apache with struts... > in my java beans i am storing the xml information in String. > now i ha

RE: XSL in JSP

2004-11-23 Thread Mark Benussi
Well... you shouldn't really combine the two. There is an overhead of an XSL transformation (Even when you cache the template). If you really want to do something then you would do the transfomation and place the result in the request for the JSP to retrieve and present. --

Re: Multi-Page Wizard Validation Problem

2004-11-23 Thread Niall Pemberton
Looking at the original post, where you showed your struts-config.xml and validation.xml - you're using the wrong flavour of Dyna form... 1) DynaValidatorActionForm validates according to the Action Mapping's path So in your validation.xml you would have three forms as follows...