Validator: Using "<" and ">" in a mask

2004-10-13 Thread Niebert, Tanja
Hi, I want to create a mask validation where I allow alphanumeric characters plus the "<" and ">" signs. Using "\<" and "\>" doesn't work. I get an exception saying, that the XML-File is not well formed. This is how my expression looks like: mask ^[0-9a-zA-Z\<\>]*$ Thanks for your

NewBe : How to use ActionError in Struts1.2.4

2004-10-13 Thread sachin
hi I am a newBe to struts. Will somebody explain how to use ActionErrors and actionMessages in simple steps. Regards, Sachin Hegde - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Validator

2004-10-13 Thread Richard
Thats it . thanks David. I knew this was a newbie error. On Thu, 14 Oct 2004 00:26:17 -0400, David G. Friedman <[EMAIL PROTECTED]> wrote: > Richard, > > According to your previous emails, the form name is "loginForm", not > "LoginForm" starting with an upper case "L". Let us know if that works.

RE: Validator

2004-10-13 Thread David G. Friedman
Richard, According to your previous emails, the form name is "loginForm", not "LoginForm" starting with an upper case "L". Let us know if that works. Regards, David -Original Message- From: Richard [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 11:17 PM To: Susan Bradeen Cc

Re: Using JSTL 1.1 with Struts 1.2.4 and JBoss 3.2.5 or 4.0?

2004-10-13 Thread Satish Talim
Rick, I ain't doing this db stuff in my jsp - I know it's bad practice; I had just put some code here that was there in some jsp test application that did not use Struts. However, I am still unclear. Karr mentioned "The features provided by Struts-EL are all natively provided in the container. " -

Re: Using JSTL 1.1 with Struts 1.2.4 and JBoss 3.2.5 or 4.0?

2004-10-13 Thread Satish Talim
Karr, I am not clear when you say "You use the normal Struts tags, and the EL provided by JSP 2.0. You'd then integrate JSTL 1.1 with this." Could you elaborate or give me a sample? That would really help. Thanks. - Original Message - From: "Karr, David" <[EMAIL PROTECTED]> To: "Struts U

Re: Using JSTL 1.1 with Struts 1.2.4 and JBoss 3.2.5 or 4.0?

2004-10-13 Thread Rick Reumann
Satish Talim wrote the following on 10/13/2004 9:39 PM: Rick, I ain't doing this db stuff in my jsp - I know it's bad practice; I had just put some code here that was there in some jsp test application that did not use Struts. I figured:) I was just being a dork by opening my mouth:) However, I am

Re: Multiple ImageButtonBeans

2004-10-13 Thread Michael McGrady
I should have added that, if you really want the ImageButtonBean, then you can add to the normal code as follows to solve your problem: Change public String getSelected() { if (getCreateButton().isSelected()) { return "create"; } if (getRetrieveButton().isSelected()) { return "retrieve";

Re: sending/maintaning a download link

2004-10-13 Thread Andrew Hill
It wouldnt survive a server restart, but this may well be acceptable if you dont expect the server to restart very often and your token expiry is only a day or two and its easy to get another token if needs be. Im not sure what the deal is with stuff added to servlet context after startup in a

Re: sending/maintaning a download link

2004-10-13 Thread Richard
thanks. On Thu, 14 Oct 2004 11:22:58 +0800, Andrew Hill <[EMAIL PROTECTED]> wrote: > It wouldnt survive a server restart, but this may well be acceptable if > you dont expect the server to restart very often and your token expiry > is only a day or two and its easy to get another token if needs b

Re: Validator

2004-10-13 Thread Richard
Hi Susan / Guys, I receive this error on loading of the login page. If I remove the the error will be gone. here are my action mappings I have no action mapping yet if this form is submitted. Do I need to specify the name="LoginForm" in this tag? Thanks Richard On Wed, 13 Oct 2004 0

Re: sending/maintaning a download link

2004-10-13 Thread Richard
Hi Wiebe, What if im not going to use any database? can I just store this in the servlet context? Thanks Richard On Wed, 13 Oct 2004 10:12:38 -0700, Wiebe de Jong <[EMAIL PROTECTED]> wrote: > The only way to make a link go away is to make it dynamic. That means that > the link you email will ha

Re: Context path

2004-10-13 Thread Andrew Hill
From the stack trace it looks a classloading issue. I presume that your com.tes.HomeForm and HomeAction classes are in your WEB-INF/classes or a jar in WEB-INF/lib? (Confirm that first though given it worked in 1.3 and assuming you changed nothing else it should still be the case!) Where is you

Context path

2004-10-13 Thread Hari Saptoadi
hi all , is there any different reading page context between JDK 1.3 and JDK 1.4 ? i mean i have struts app , and if i call in browser like this http://10.1.9.222:8988/multi/HomeAction.do it work fine in JDK 1.3 but when i upgrade to JDK 1.4 .2, i got this massage The page cannot be displayed HTT

Re: Struts & JSF - CommandButton Actions

2004-10-13 Thread Craig McClanahan
Sorry -- I think your confusion is my fault. You should use immediate="true" on a Cancel button, to bypass the Process Validations and Update Model Values phases. You should use immediate="false" on a Submit button that is intended to actually perform the requested transaction (i.e. save the data

No ActionErrors from Action class

2004-10-13 Thread Toby Saville
Hello, I have been using struts 1.02 for a while now, but have only recently got the html:errors tag working. I have come across the following problem. When I perform validation in my ActionForm class, and an error is raised, this error is correctly displayed in the jsp by using However, whe

Re: i18n and  

2004-10-13 Thread Jason Lea
oh and with JSP2.0 you could use the new replace function ${fn:replace(myBean.property," "," ")} -- Jason Lea - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: i18n and  

2004-10-13 Thread Brian Kuhn
Can you use css instead? I usually just use: message goes here or something like it to accomplish the non-breaking spaces. -Brian On Wed, 13 Oct 2004 18:12:25 -0400, Joe Hertz <[EMAIL PROTECTED]> wrote: > I have a number of property values that will be internationalized and need > non-breakin

RE: i18n and  

2004-10-13 Thread Joe Hertz
I heard that support for this was dicey. Is that not the case? >Could you use the CSS rule >.myStyleClass{ > white-space: nowrap >} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

RE: i18n and  

2004-10-13 Thread Joe Hertz
That's pretty much it In english, this could be the case: propertyname=this is a word Where say in Elbonian: propertyname=GDSH DGHDS DGDSSKD DHDSJ DHDSH HDHDHD If I want the spaces translated as  's I would have to propertyname=this is a word And then explain to the Elbonian translator what

Re: i18n and  

2004-10-13 Thread Jason Lea
I haven't run into this problem yet, but perhaps it depends on where this sort of thing is used. If the whole chunk of text shouldn't be wrapped then you might be able to use CSS to deal with that problem: http://www.w3.org/TR/REC-CSS2/text.html#propdef-white-space text that shouldn't wrap goes

Re: i18n and  

2004-10-13 Thread Joe Germuska
At 6:12 PM -0400 10/13/04, Joe Hertz wrote: I have a number of property values that will be internationalized and need non-breaking spaces between each word in them. I could put   into each space, but that 1) is going to confuse my native language translators who know nothing of HTML. 2 words in en

RE: i18n and  

2004-10-13 Thread Freddy Villalba A.
You're initiative sounds interesting... however, I'm not sure I've fully undestood what you express. Let's see: if what you want to translate are property names, then what's the problem? for a property "X" that reads "Y Z L" in another language, you could perfectly have an entry on each dictionary

i18n and  

2004-10-13 Thread Joe Hertz
I have a number of property values that will be internationalized and need non-breaking spaces between each word in them. I could put   into each space, but that 1) is going to confuse my native language translators who know nothing of HTML. 2 words in english could be 3 in language-x). 2) would

Re: Struts & JSF - CommandButton Actions

2004-10-13 Thread Duncan Mills
I guess I'm confused because in a vanilla JSF page, if a command button calls an Action which updates the backing bean, then the Components referencing that updated attribute will be refreshed with the new value, even if the mode is immediate (using the current version of the RI). In this case

Re: Dynamic Include based on a bean's property.

2004-10-13 Thread David Farrell
The concensus seems to be 'go with tiles' So I've done just that. I had actually pretty much recreated the basic 'tiling engine' I guess - bar the code that dynamically plugs in the jsp but it was very bespoke and its always good to use a 'standard' as opposed to just making it up as you go alon

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Joe Hertz
I'll add my 2 p/cents/yen to this one- I'm in the "outside of the WebApp's file system" crowd (a directory on the same level with WebApp's since Tomcat doesn't know anything else. I could make a link if I had to to some other place more convenient. So unless the server allows for a "/../" in a re

Re: iterate paging

2004-10-13 Thread Zoran Avtarovski
Hi Rick, > Can someone confirm- One of the reasons I didn't like this tag is it > requires your WHOLE list to be in Session. Can you imagine if Google > search results tried to use this tag? I'd rather create a pager based on > first making a query to get the overall search results size then only

Re: Where Is the Best Place To Store Files?

2004-10-13 Thread Michael McGrady
Durham David R Jr Contr 805 CSPTS/SCE wrote: I personally opt to store uploaded files outside of the web-app's file-system altogether. This has to do with how easy it is to serve up content with Java (and other languages, I'm sure) and the need to physically separate the application's persistent d

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Durham David R Jr Contr 805 CSPTS/SCE
> Wendy said that "If you're talking about run-time file > creation or uploads... keep in mind that a webapp can > run unexploded from a .war file... in that case you > can't write to a directory within your webapp, because > it doesn't exist." > > I do upload files from clients' PC and store thos

Re: Where Is the Best Place To Store Files?

2004-10-13 Thread Michael McGrady
Only if you run your application as an "unexploded" war file. Michael McGrady Caroline Jen wrote: Wendy said that "If you're talking about run-time file creation or uploads... keep in mind that a webapp can run unexploded from a .war file... in that case you can't write to a directory within your

Re: Where Is the Best Place To Store Files?

2004-10-13 Thread Michael McGrady
Hi, Dave, The files are accessible via a URL inside WEB-INF, Dave. You just have to use a url that calls the controller, e.g. typically with ".do" in the mix. There is no disadvantage in doing this and there are considerable advantages. Michael McGrady Durham David R Jr Contr 805 CSPTS/SCE wr

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Caroline Jen
Wendy said that "If you're talking about run-time file creation or uploads... keep in mind that a webapp can run unexploded from a .war file... in that case you can't write to a directory within your webapp, because it doesn't exist." I do upload files from clients' PC and store those files. Do

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Durham David R Jr Contr 805 CSPTS/SCE
> If they're inside of WEB-INF, then they aren't accessible via a URL -- > something she wants, I think. I should rephrase this. If the files are stored inside of the WEB-INF, they aren't *directly* accessible via a URL. I personally opt to store uploaded files outside of the web-app's file-syst

Re: Multiple ImageButtonBeans

2004-10-13 Thread Michael McGrady
First, the problem is that you are bloating your system with the ImageButtonBeans in the first place. You don't have to do that. But, once you do it, you have the problems you state. You can use various other simpler and less resource intensive solutions linked to at http://wiki.apache.org/s

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Durham David R Jr Contr 805 CSPTS/SCE
I think she just wants to use a container to serve up the files and not have to worry so much about the details of sending files to a client. If they're inside of WEB-INF then, they aren't accessible via a URL -- something she wants, I think. - Dave > -Original Message- > From: Michael

Multiple ImageButtonBeans

2004-10-13 Thread gdeschen
Greetings, I have searched the lists for some time without any success. I have a Session Form Bean (this is necessay to do a unit of work that spans many pages...) On a page I have 3 ImageButtonBeans. Update, Cancel and Beneficiaries. My problem arises in the Validate method of the Form. In orde

Re: Where Is the Best Place To Store Files?

2004-10-13 Thread Michael McGrady
I know what Dave is saying you can do, and he is right, but .. If you store the files inside WEB-INF, you can still give all users programmic access. The advantage in doing this is that you might find in time that you need in the futrue to give some files limited access. If they are insi

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Durham David R Jr Contr 805 CSPTS/SCE
> If the uploaded files do not have to be protected (any > user can access them), where is the proper location to > store them? In this case, it looks like anywhere in your app except WEB-INF. Keep in mind that if your deployment process involves deleting your web-app and reconstructing (such as

Re: Where Is the Best Place To Store Files?

2004-10-13 Thread Michael McGrady
Unless, of course, you are using something like HSQLdb, in which case, tell him he is a smart-ass. Seriously, there are difficulties with some databases in this respect. Don't know what you are using, and Vic if probably right that your "superior" is "inferior". Michael McGrady Vic Cekvenich

Re: Where Is the Best Place To Store Files?

2004-10-13 Thread Caroline Jen
Those files will be uploaded to the Tomcat container (no Apache involved) when the application is deployed. The database storage is out of the picture at this point of time. If the uploaded files do not have to be protected (any user can access them), where is the proper location to store them? -

Re: Back Button Error

2004-10-13 Thread Martin Gainty
Hello Stup: You need to redirect your Response e.g. Response.Redirect(Request.Url.PathAndQuery) Martin - Original Message - From: "Sudipto Roy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, October 13, 2004 2:23 PM Subject: Back Button Error > >

RE: Newbie never displays errors

2004-10-13 Thread Ricardo Andres Quintero
this is gracefull! On Wed, 13 Oct 2004 13:19:30 -0400, Nadia Kunkov wrote > Nooo... I guess that's it! > I thought you need to call saveErrors only when you create > ActionErrors inside Action and not in Validate... Here is my Action > (I'm using DispatchAction): > > public ActionForward Add (

RE: Newbie never displays errors

2004-10-13 Thread David G. Friedman
Nadia, Are you sure you have the 3 important pieces? A) a struts-config.xml (or module) define message resources file? Mine is the file WEB-INF/classes/application.properties, which contains the line: errors.required={0} is required. My struts-config.xml includes this resource with the line:

RE: Back Button Error

2004-10-13 Thread Hubert Rabago
>How can I resubmit the Page programatically when I click on IE Back Button? > >Is there any way so that the Save,Delete,Update Action in a Page will not be added to IE History Object? I don't know if you'd want to automatically resubmit the page. What you can do instead is, after the save/delete

Re: Back Button Error

2004-10-13 Thread Sean Schofield
How did you originally get to the page you are trying to get back to? It sounds like you are doing an HTML POST. I believe this is standard behavior in IE when you POST something. IE is trying to tell you that the only way it can reproduce the page is to repost the same data that generated i

Back Button Error

2004-10-13 Thread Sudipto Roy
Hi Guys How can I solve this problem when I click on IE Back Button getting this Message as below : Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not

Re: JSF and Struts Integration

2004-10-13 Thread Craig McClanahan
On Wed, 13 Oct 2004 19:36:37 +0200, Matthias Wessendorf <[EMAIL PROTECTED]> wrote: > Craig, > > > > With Creator (which has nice support for consuming web > > services), I used Google's published API for doing searches > > via a SOAP request to build a little demo program -- with the > > text fie

Re: Where Is the Best Place To Store Files?

2004-10-13 Thread Wendy Smoak
From: "Caroline Jen" <[EMAIL PROTECTED]> > I am using the Struts to build a web application. I > am going to store some files (the files can be .doc, > .txt, .pdf, .jpg, whatever) on the server; e.g. > somewhere in my web application. > > Where is the proper and best place to store files? > $TOMCA

Re: Where Is the Best Place To Store Files?

2004-10-13 Thread Vic Cekvenich
Caroline Jen wrote: I am already told by my superior "do not save those files into the database". What should I do? Tell him he is a dumb-ass? ;-) .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Caroline Jen
The files are supposed to be read-only and downloadable. If I store files in the WEB-INF folder, then, the folder won't be an accessible directory from html pages. I have to read the content via streams and send it to the browser. That would be too much overhead. I am already told by my superior

Re: Cannot call more than once!

2004-10-13 Thread Kris Schneider
I'm not sure he actually intended to do multiple forwards, it seems like he just wanted to reuse an action to generate some common output. The fact that Struts is performing an implicit forward in response to each of those imports can be easy to overlook. Mick, if you want a lower-level analogy, t

Re: Disappearing request values

2004-10-13 Thread Lee Harrington
That did the trick. I hadded "redirect=false" to the forward and now all of my request variables are still in the request scope. Thank you VERY much. Lee On Wed, 13 Oct 2004 12:12:58 -0400, David G. Friedman <[EMAIL PROTECTED]> wrote: > Lee, > > Is your actionMapping using 'redirect="true"'?

RE: sending/maintaning a download link

2004-10-13 Thread Wiebe de Jong
The only way to make a link go away is to make it dynamic. That means that the link you email will have to be to an action that returns the file. There have been quite a few threads recently on this mailing list about how to get actions to return files, including .pdf and .csv, so I won't cover tha

RE: JSF and Struts Integration

2004-10-13 Thread Matthias Wessendorf
Craig, > With Creator (which has nice support for consuming web > services), I used Google's published API for doing searches > via a SOAP request to build a little demo program -- with the > text field for the query string, and the results table, on > the same page. I only wanted to display

Re: Struts & JSF - CommandButton Actions

2004-10-13 Thread Craig McClanahan
On Wed, 13 Oct 2004 16:06:07 +0100, Duncan Mills <[EMAIL PROTECTED]> wrote: > I've been experimenting with the Struts + Faces integration library and > have hit one puzzling behavior using a .executing an > "action" in a form-bean > > If I have a page with a StrutsFaces form and > that's associat

Re: JSF and Struts Integration

2004-10-13 Thread Craig McClanahan
On Wed, 13 Oct 2004 09:18:53 -0400, Sean Schofield <[EMAIL PROTECTED]> wrote: > Fair enough. By the way, I'm not bagging on the UI components in any > way. The one that looks the most intriguing to me is the "rendered" > attribute that comes with the various widgets. That attribute combined > w

RE: Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
Nooo... I guess that's it! I thought you need to call saveErrors only when you create ActionErrors inside Action and not in Validate... Here is my Action (I'm using DispatchAction): public ActionForward Add (ActionMapping actionMapping, ActionForm actionForm,

Streaming an attachment from an Action not working with Internet Explorer

2004-10-13 Thread Moynihan, Edward
Hi, Can anyone point me in the right direction with the following problem that I am experiencing. I've written a very simple action that streams back to the client an attachment. So, here is a code snippet from the action to illustrate what I am doing. Assume that the URL to hit the

RE: Newbie never displays errors

2004-10-13 Thread David G. Friedman
Did you call saveErrors() or saveMessages() in your Action to save the messages into the (request) scope for use in the JSP? -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 12:59 PM To: Struts Users Mailing List Subject: RE: Newbie never d

bean:define

2004-10-13 Thread Shabada, Gnaneshwer
Hi, I am using tag to define a conditional attribute to use it somewhere else. So when I am using this id that variable is expecting an "int" value. I have my tag as below. I am using it as below But since defaultsort is expecting an integer,

RE: Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
Yes, here is what I tried: I get an error: can't find bean "error" in any scope :( This drives me nuts. Thanks for helping me. -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, O

RE: Newbie never displays errors

2004-10-13 Thread David G. Friedman
Nadia, The bean:write's name attribute must match the id parameter of the html:messages tag. That's why I suggested your html:messages tag be: This means it should pull the errors from the area "countryName" and present them for the bean:write tag to use as the name "error" (see id=".."). Ha

Problem with struts validator../ Struts 1.2

2004-10-13 Thread Marco Mistroni
Hello all, I am using Struts validator in my webapplication for one of my forms. While I was using Struts 1.1 everything worked fine, but now that I have updated my jars to use Struts 1.2 whenever I run my code I get the following exception: 2004-10-13 17:38:06,797 DEBUG (ContactForm.java:

RE: Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
Here is my jsp: .. . Thanks for your help -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 12:35 PM To: Struts Users Mailing List Subject: RE: Newbie never displays errors Please show your JSP code. I think

Re: Cannot call more than once!

2004-10-13 Thread Rick Reumann
Mick Wever wrote the following on 10/13/2004 11:53 AM: I guess this would be like doing the equivalent of trying to do a forward. On your second loop you'll have already wrote stuff out to the JSP so I don't think you could then do any forwarding. Any reason why you are trying to do fow

Re: Newbie Question: how to implement a "Back" button or link ...?

2004-10-13 Thread Erik Weber
There is more than one way to do it. One way to do it on the server side is to track user navigation by storing the (relative) URL of each page view (or some subset of them) as an HttpSession attribute. Then your "back" button could trigger a Struts action that forwards or redirects the user to

RE: Newbie never displays errors

2004-10-13 Thread David G. Friedman
Try the 2 classes: org.apache.struts.Globals org.apache.struts.action.ActionMessages There shouldn't be any problem using your own name for an error key. This allows you to group messages as you see fit. Now, if you ARE going to save all of your messages under your own key, you should probably

RE: Newbie never displays errors

2004-10-13 Thread David G. Friedman
Please show your JSP code. I think this should have worked: Remember, the "id" is essentially the key you give to the bean:write but the name="" attribute is what messages key to retrieve. That name="" attribute defaults t

RE: The get() Method in the ActionForm

2004-10-13 Thread fzlists
The problem is that you are calling a method of the class itself, which can only be static, instead of calling a method of an INSTANCE of the class. For instance, do this: SelectRecipientsForm myForm = (SelectRecipientsForm)form; where form is the form object passed into your Action's execute

Re: Using JSTL 1.1 with Struts 1.2.4 and JBoss 3.2.5 or 4.0?

2004-10-13 Thread Rick Reumann
A much more important question is why are you doing this db stuff in your JSP! Satish Talim wrote the following on 10/13/2004 2:00 AM: I am using JBoss 4.0 (which I believe is a Servlet 2.4 / JSP 2.0 container) and Struts 1.2.4. I want to use JSTL 1.1 with Struts and JBoss. For example, I would

RE: Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
Thanks Did that and specified the write bean name this time. Now I get an error that bean countryName doesn't exist in any scope. I get a feeling it's something with my message resources. How can I see that the following line works. errors.add("countryName", new ActionError("errors.required","Cou

RE: The get() Method in the ActionForm

2004-10-13 Thread Apte, Dhanashree (Noblestar)
Caroline, It would be the right way or wrong way depending upon where in your class you are calling this method. Could you paste the code for your form as well? -Dhanashree. -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 11:17 AM To: [E

Re: How to read MessageResources.

2004-10-13 Thread Bill Siggelkow
Alan -- I strongly encourage you (if you haven't already) to download the Struts source and use it as you develop. You will be amazed at how much quicker you can grok Struts. -Bill Siggelkow Alan Pocklington wrote: Oh okay, I'll look into that. Thanks for your help. Hubert Rabago <[EMAIL PROT

The get() Method in the ActionForm

2004-10-13 Thread Caroline Jen
I have selectRecipientsForm that extends ActionForm. After the form is populated, I have this: String[] to = SelectRecipientsForm.getSelectedEmailAddresses(); I thought that it was the right way to get something in the populated form; but, the compiler says that the non-static method getSelected

RE: Newbie never displays errors

2004-10-13 Thread Nadia Kunkov
Thanks everyone for the replies. David, I think you are right. I just got an error that bean "error" doesn't exist in any scope. That raises another newbie question: I need to save all these errors under the same key. Can I use something like this: errors.add("countryErrors", new ActionError("

RE: Disappearing request values

2004-10-13 Thread Freddy Villalba A.
Are you redirecting or just forwarding to the second action? -Mensaje original- De: Lee Harrington [mailto:[EMAIL PROTECTED] Enviado el: miercoles, 13 de octubre de 2004 18:06 Para: Struts Users Mailing List Asunto: Disappearing request values I have an action that forwards to a second a

RE: Disappearing request values

2004-10-13 Thread David G. Friedman
Lee, Is your actionMapping using 'redirect="true"'? Try adding (or changing, if you already have it) your forward's redirect parameter to "false". This will make the forward internal so the browser does nothing, struts passes everything internally and loses nothing. Additionally, if you are dis

RE: Newbie never displays errors

2004-10-13 Thread David G. Friedman
Charles, Isn't Nadia saving the messages under the name key "countryCapital", not the global errors key, so shouldn't that html:messages line be: ... etc... Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 11:32 AM T

Newbie Question: how to implement a "Back" button or link ...?

2004-10-13 Thread t t
Hi, all, How to implement a "Back" button or link in the Struts' jsp file? Thanks. ___ Do you Yahoo!? Declare Yourself - Register online to vote today! http://vote.yahoo.com - To unsu

Re: How to read MessageResources.

2004-10-13 Thread Justy
getLocale(::HttpServletRequest) will get locale from session instead of request. On Wed, 13 Oct 2004 15:54:02 + (UTC), Alan Pocklington <[EMAIL PROTECTED]> wrote: > Cheers for pointing that out. As of yet I don't need message arguments > so that'll be fine. > > Was there any reason for havi

Re: Newbie never displays errors

2004-10-13 Thread Bill Siggelkow
Did you specify the "input" attribute on your mapping? Do you have the errors header, footer, prefix and suffix defined in your message resources? -Bill Siggelkow Nadia Kunkov wrote: Hi, I have gone through multiple postings and followed the suggestions about displaying the errors. I just need

Disappearing request values

2004-10-13 Thread Lee Harrington
I have an action that forwards to a second action. I set values in the request scope in the first action, but in the second action the values are null. I solved my immediate need by putting the value in a session. As the value is not needed for more than passing into the second action, I'd prefe

Re: How to read MessageResources.

2004-10-13 Thread Alan Pocklington
Oh okay, I'll look into that. Thanks for your help. Hubert Rabago <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Struts has some special treatment for locales. You'd wanna abide by > that for consistency with what its internal engine uses for the > resource files. > > > On Wed, 13 Oc

Re: The old 'please wait' issue

2004-10-13 Thread Andrew Close
you can easily implement this using CSS (and a little javascript) and have it work with Tiles. in your style sheet add this: (and style it any way you want) div#Processing { font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; position: absolute; text-align: center;

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
Struts has some special treatment for locales. You'd wanna abide by that for consistency with what its internal engine uses for the resource files. On Wed, 13 Oct 2004 15:54:02 + (UTC), Alan Pocklington <[EMAIL PROTECTED]> wrote: > Cheers for pointing that out. As of yet I don't need messag

Cannot call more than once!

2004-10-13 Thread Mick Wever
I think I've got a very annoying "Response has already been committed" problem narrowed down... The follwing jsp code does not work for me: <%@ taglib uri="c.tld" prefix="c" %> Because during the c:import the response is committed, and when the second (or third) c:import

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
Yup, right here: /** * Get the locale that will be used for a conversion operation. */ protected Locale getLocale(HttpServletRequest request) { Locale locale = null; // see if there's a locale present among the session attributes HttpSession session = req

Re: How to read MessageResources.

2004-10-13 Thread Alan Pocklington
Cheers for pointing that out. As of yet I don't need message arguments so that'll be fine. Was there any reason for having a getLocale(request) method? I'm guessing the implementation was different from just request.getLocale(). Hubert Rabago <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
On Wed, 13 Oct 2004 10:38:09 -0500, Hubert Rabago <[EMAIL PROTECTED]> wrote: > Yup, copy/paste from existing code works fast. :) It's also not foolproof. This excerpt was specific to the needs of the class I took it from. Check the getMessage() method -- it can actually accept message arguments

RE: Newbie never displays errors

2004-10-13 Thread Charles . Gouin-Vallerand
Hi Nadia, Use this to write your message : will write error message who are call in your validate method and will check if these message are present. Charles Gouin-Vallerand

Re: Newbie never displays errors

2004-10-13 Thread Ricardo Andres Quintero
it would be nice to have the form's action, and the action mapping of that form's ation. On Wed, 13 Oct 2004 11:10:51 -0400, Nadia Kunkov wrote > Hi, > > I have gone through multiple postings and followed the suggestions > about displaying the errors. I just need another pair of eyes to > look

Re: How to read MessageResources.

2004-10-13 Thread Alan Pocklington
In that case, do you have the existing code for the method getLocale(request)? I haven't got my head around locales yet. Hubert Rabago <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Yup, copy/paste from existing code works fast. :) > > > On Wed, 13 Oct 2004 15:35:24 + (UTC), Al

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Ivan Vasquez
Unless the tomcat server(s) has fileserver capabilities, you can create an NFS mount to a fileserver share and have your code create Files there. Better yet (IMO), store them in the database as BLOBs so all your data lives at a single location. The decision depends on what use is given to those fi

RE: Where Is the Best Place To Store Files?

2004-10-13 Thread Hiran.Chaudhuri
Hi, Caroline. Does your application use a database? If yes, is that capable of storing binary data? I'd go for this, since what you want to store looks like user data, and I'd like to have transactionality and backups for that. If not, you might pick a directory inside your web application, but

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
Yup, copy/paste from existing code works fast. :) On Wed, 13 Oct 2004 15:35:24 + (UTC), Alan Pocklington <[EMAIL PROTECTED]> wrote: > Wow, thanks for the quick reply. Will do! > > Hubert Rabago <[EMAIL PROTECTED]> wrote in > news:[EMAIL PROTECTED]: > > > > > Put this in a util class and

Re: How to read MessageResources.

2004-10-13 Thread Alan Pocklington
Wow, thanks for the quick reply. Will do! Hubert Rabago <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > Put this in a util class and call evaluateMessage(): > > /** > * Evaluate the given message resource key. > * > * @param messageKey the name of the resource entry t

Re: The old 'please wait' issue

2004-10-13 Thread Hubert Rabago
It's common to see "please wait" messages that look different from the rest of the app. You may be able to get away with using a totally different page/layout for this page. If not, you can consider using javascript to do the automatic submission. On Wed, 13 Oct 2004 15:29:31 +, andy wix <[

Where Is the Best Place To Store Files?

2004-10-13 Thread Caroline Jen
I am using the Struts to build a web application. I am going to store some files (the files can be .doc, .txt, .pdf, .jpg, whatever) on the server; e.g. somewhere in my web application. Where is the proper and best place to store files? $TOMCAT\webapps\MyApplication\ Thanks for suggestions.

The old 'please wait' issue

2004-10-13 Thread andy wix
Hi, I am trying to implement a 'please wait' page and have seen the stuff in the archives. The method of choice seems to be: * The Action that is currently doing the work should instead fire off a background thread to do it. It then forwards to a "Please Wait" page. * The background thread d

  1   2   >