RE: Newbie html:errors/ 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: 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 Hi

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: 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 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 is

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

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

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

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

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

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 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

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 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 those

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

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 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: 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

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

i18n and nbsp;

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 nbsp; 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)

RE: i18n and nbsp;

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

Re: i18n and nbsp;

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 nbsp; into each space, but that 1) is going to confuse my native language translators who know nothing of HTML. 2 words

Re: i18n and nbsp;

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 span style=whitespace:

RE: i18n and nbsp;

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 nbsp;'s I would have to propertyname=thisnbsp;isnbsp;anbsp;word And then explain to the Elbonian

RE: i18n and nbsp;

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

Re: i18n and nbsp;

2004-10-13 Thread Brian Kuhn
Can you use css instead? I usually just use: span style=white-space: nowrapmessage goes here/span 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

Re: i18n and nbsp;

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

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 html:errors

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

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 have

Re: Validator

2004-10-13 Thread Richard
Hi Susan / Guys, I receive this error on loading of the login page. If I remove the html:javascript formName=LoginForm dynamicJavascript=true staticJavascript=false/ the error will be gone. here are my action mappings action path=/login

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 be.

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: 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: 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: 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 Users

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: 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. Regards,

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

2004-10-13 Thread Satish Talim
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 like to use something like this: %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=sql

action form extending action form?

2004-10-13 Thread Fedor Smirnoff
Hi, Cant figure this one out. Let's say I have an: ActionForm form1 and Action action1 that persist throughout the application and used by different processes as a final step. Now I got an action2 where I need to process another actionform form2 right before I pass on to the action1 that

action form extending action form?

2004-10-13 Thread Fedor Smirnoff
Hi, Cant figure this one out. Let's say I have an: ActionForm form1 and Action action1 that persist throughout the application and used by different processes as a final step. Now I got an action2 where I need to process another actionform form2 right before I pass on to the action1 that

Arzttermin

2004-10-13 Thread Markus Heck
Hallo Andreas, ich hab um 9:50 Uhr einen Arzttermin; ich meld mich dann noch mal und sag Bescheid, wann und ob ich heute noch komme. Zu MAP: Dein Programm hab ich gestern noch getestet (mit einer Schleife über alle Sätze aus vip_products), ich hab noch eine Änderung eingebaut, dann war's

Tiles Doubt

2004-10-13 Thread babloosony
I have various xml files like tiles-defs.xml, tiles-defs.cards.xml, tiles-defs.cards_en_ca.xml. Under what scenarios tiles-defs.cards.xml file and tiles-defs.cards_en_ca.xml file can be invoked ? - To unsubscribe, e-mail: [EMAIL

Re: Can lazyList help out for indexed arrays in ActionForm?

2004-10-13 Thread Adam Hardy
Not being familiar with lazyList, I thought you didn't have to do anything to get it to populate from the request params (or would that be too lazy?) since you're thinking of coding in the reset() anyway, then you should do a check on the size of the array you need there and size your array

how to send an email

2004-10-13 Thread Richard
hi guys I have a form submitted to an action class and i need the information on the form to be emailed to some email address. how can i do this ? can it be done inside the same action? please help thanks richard - To

RE: how to send an email

2004-10-13 Thread Kailash Vasani
Sending of email can be done from Action class. all you need to know is how to send email using javamail API. start from here http://java.sun.com/products/javamail/ -Original Message- From: Richard [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 1:48 PM To: Struts Users

RE: Dispatch Action called Twice / :-( happened again..

2004-10-13 Thread Marco Mistroni
Hi, Any chance you have submit buttons calling form.submit()? I think I used to do that and it accidentally caused a double submit in some browsers. Yes I do :-( Damn! Thank you very much! Regards Marco Regards, David -Original Message- From: Marco Mistroni [mailto:[EMAIL

Re: how to send an email

2004-10-13 Thread Duncan Mills
Its pretty simple to plug in the JavaMail API - here's a Utility class I call from an Action I use when resetting a User Password: It's quick and dirty but provides an example. The SMTP mail host is read from a properties file in this case, but equally could be passed in from the Appliciation

Re: how to send an email

2004-10-13 Thread Richard
thanks On Wed, 13 Oct 2004 14:16:07 +0530, Kailash Vasani [EMAIL PROTECTED] wrote: Sending of email can be done from Action class. all you need to know is how to send email using javamail API. start from here http://java.sun.com/products/javamail/ -Original Message- From:

Re: how to send an email

2004-10-13 Thread Shinobu Kawai
Hi richard, I have a form submitted to an action class and i need the information on the form to be emailed to some email address. how can i do this ? can it be done inside the same action? Check this out: http://jakarta.apache.org/commons/sandbox/email/ Makes life a lot easier. ;)

Re: how to send an email

2004-10-13 Thread Richard
thanks i guess ill just modify and reuse this. On Wed, 13 Oct 2004 09:43:39 +0100, Duncan Mills [EMAIL PROTECTED] wrote: Its pretty simple to plug in the JavaMail API - here's a Utility class I call from an Action I use when resetting a User Password: It's quick and dirty but provides an

Re: how to send an email

2004-10-13 Thread Richard
thanks i think you're correct with that assesment. On Wed, 13 Oct 2004 17:52:46 +0900, Shinobu Kawai [EMAIL PROTECTED] wrote: Hi richard, I have a form submitted to an action class and i need the information on the form to be emailed to some email address. how can i do this ? can it

Re: How to write Tiles with Struts?

2004-10-13 Thread Arnaud Vandyck
Sat, 9 Oct 2004 22:37:02 +0800, PC Leung [EMAIL PROTECTED] wrote: It is my 1st trial of tiles. http://www.oracle.com/technology/oramag/oracle/04-may/o34dev_struts.html (this one does not work no more as I'm writing this mail -Err500- but maybe it'll be online again later)

sending/maintaning a download link

2004-10-13 Thread Richard
hi guys, how do i do this in struts? i want to send a download link ( via email - resolved ) to a newly registered user and that download link will expire after 24hrs. is there and apache project for this? please help thanks in advance richard

Re: customizing reset() and validate() methods

2004-10-13 Thread gilles
Hi, here is the solution I found for my issue : I have this form-bean and action definitions in the struts-config.xml : form-bean name=formXXX class=default.formClassXXX (...) (...) /form-bean (...) action path=processFormXXX name=formXXX (...) (...) /action

RE: Dispatch Action called Twice / :-( happened again..

2004-10-13 Thread Marco Mistroni
Hello, Looks like it's working :-) Thank you !! Regards marco -Original Message- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: 13 October 2004 00:38 To: Struts Users Mailing List Subject: RE: Dispatch Action called Twice / :-( happened again.. Any chance you have

Tiles Doubt

2004-10-13 Thread babloosony
Hi All, Are there any IDE's available for programming with Tiles and JSF. Basically I am looking for IDE's that show the logic structure of various nested tiles. How do I establish a logical flow of these nested tiles usage like what tiles are used by what. I cannot manually sit down and write

RE: Tiles Doubt

2004-10-13 Thread Sachin Bhutada
try WSAD5.1.2 sachin -Original Message- From: babloosony [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 13, 2004 2:52 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Tiles Doubt Hi All, Are there any IDE's available for programming with Tiles and JSF. Basically I am looking

Condition display of a part of jsp by the presence of errors ??

2004-10-13 Thread ymlaine
Hi all, Is someone know if it's possible to (simply) condition displaying JSP code according to the presence or not of errors ? I have a form that mustn't be displayed entirely if some ActionError are present in my page. On first sight, the only solution I see is to get the ActionErrors directly

Re: Dynamic Fonts: Devolving to Default Dialog

2004-10-13 Thread Kris Schneider
Glad it's working. My initial questions were going to be centered on whether or not the fonts were specific to the app and whether the app needed to make the system fonts available as well as the custom fonts. It sounds like you've moved away from having the app set java.awt.fonts, which I think

Validator

2004-10-13 Thread Richard
hello guys, im trying to use the validator on my login form but im having the error below. any idea why.. thanks in advance richard error === javax.servlet.ServletException: No form found under 'LoginForm' in locale 'en_US'

DynaValidateForms: how to reset() or initialize()

2004-10-13 Thread Ing. Stefano Peruzzi
Hi everybody, I decided to post here, after I searched a solution for three hours or so. Can you post an URL (or an advice, or an example) in which is explained how to override initialize() or reset() DynaActionForm methods? The problem: to set properties of my form, I have to put it in

Re: Validator

2004-10-13 Thread Richard
Hi Guys, I googled this problem and read something at http://www.mail-archive.com/[EMAIL PROTECTED]/msg13067.html im not sure if the problem is related , this can be just a newbie problem. in any case im posting my validation.xml please help. thanks richard validation.xml == ?xml

Re: Condition display of a part of jsp by the presence of errors ??

2004-10-13 Thread Jeff Beal
logic:messagesPresent and/or logic:messagesNotPresent [EMAIL PROTECTED] wrote: Hi all, Is someone know if it's possible to (simply) condition displaying JSP code according to the presence or not of errors ? I have a form that mustn't be displayed entirely if some ActionError are present in my

R: DynaValidateForms: how to reset() or initialize()

2004-10-13 Thread Amleto Di Salle
Hi, Try to extends reset method in DynaActionForm package custom; public class CustomDynaActionForm extends DynaActionForm { public void reset(ActionMapping mapping, HttpServletRequest request) { initialize(mapping); } } And in your struts-config.xml configure the

Re: DynaActionForm FUD (was: DynaValidateForms: how to reset() or initialize())

2004-10-13 Thread Hubert Rabago
On Wed, 13 Oct 2004 14:08:34 +0200, Ing. Stefano Peruzzi snip/ Thanks in advance, S.Peruzzi PS: If you're in early stages of development, try to AVOID DynaActionForms, read this: http://jroller.com/page/javajoe/20040325?catname=Java Some of his points are just plain wrong. See Niall's

RE: Help! Questions about Checkbox and multibox

2004-10-13 Thread Freddy Villalba A.
Hi t, I'm having my own problems with checkboxes / multiboxes. However, I think I can help u a bit with some of those questions. - When you check a box and submit it, the value that gets submitted is the one on the value attribute of that checkbox. - When you check more than one checkbox with

Re: Can lazyList help out for indexed arrays in ActionForm?

2004-10-13 Thread Niall Pemberton
Rick, You should be able to do this in the indexed setter, something like this protected String[] myStringArray; public void setMyString(int index, String myString) { // Allocate the array if (myStringArray == null) { myStringArray = new String[index +

Re: JSF and Struts Together (Easiest possible way)

2004-10-13 Thread Sean Schofield
Craig McClanahan wrote: Yes, this would just work. But it leads to the worst case scenario discussed earlier on the mail thread, where half your navigation is in faces-config.xml and the other half is in struts-config.xml. I wouldn't recommend it as either a migration strategy or as a new

Re: DynaValidateForms: how to reset() or initialize()

2004-10-13 Thread Bill Siggelkow
Mr. Peruzzi, Here's one way using reset() to call initialize() -- this will set the values back to their initial values as set on the form-property elements: = import javax.servlet.http.HttpServletRequest; import

Re: how to send batch emails

2004-10-13 Thread Caroline Jen
I have been using the same utility class (JavaMail API) to send e-mails. The code works OKay. Now, instead of the String toAddress I have String[] toAddress = selectRecipientsForm.getSelectedEmailAddresses(); will the same code works for sending batch e-mails? --- Duncan Mills [EMAIL

Re: how to send batch emails

2004-10-13 Thread Jay Chandran
Hai , Please check the below code which helps u to send batch mails .. import javax.mail.Folder; import javax.mail.Store; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; import javax.mail.Message; import

Re: Can lazyList help out for indexed arrays in ActionForm?

2004-10-13 Thread Rick Reumann
Niall Pemberton wrote the following on 10/13/2004 9:09 AM: You should be able to do this in the indexed setter, something like this protected String[] myStringArray; public void setMyString(int index, String myString) { // Allocate the array if (myStringArray == null) {

Struts JSF - CommandButton Actions

2004-10-13 Thread Duncan Mills
I've been experimenting with the Struts + Faces integration library and have hit one puzzling behavior using a h:commandButton.executing an action in a form-bean If I have a page with a StrutsFaces form s:form action=whatever and that's associated with a Form Bean foo (session scope) So I can

How to read MessageResources.

2004-10-13 Thread Alan Pocklington
Hi, I want my action to read a property from the MessageResources.properties file in the same way that ActionMessages does. What's the simplest code I can use to retreive a particular property's value? Thanks in advance, -

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

2004-10-13 Thread Karr, David
I can answer part of this. If you're using a Servlet 2.4/JSP 2.0 container, you don't use Struts-EL. The features provided by Struts-EL are all natively provided in the container. You use the normal Struts tags, and the EL provided by JSP 2.0. You'd then integrate JSTL 1.1 with this. The

Re: How to read MessageResources.

2004-10-13 Thread Hubert Rabago
Put this in a util class and call evaluateMessage(): /** * pEvaluate the given message resource key./p * * @param messageKey the name of the resource entry to retrieve * @param bundle The key specified in the * codelt;message-resourcesgt;/code element for the *

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

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

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(): /** * pEvaluate the given message resource key./p * * @param messageKey the name of the resource entry to

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 call

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: 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

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), Alan

RE: Newbie html:errors/ never displays errors

2004-10-13 Thread Charles . Gouin-Vallerand
Hi Nadia, Use this to write your message : logic:messagesPresent ul html:messages id=error libean:write name=error//li /html:messages /ul /logic:messagesPresent bean:write will write error message who are call in

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: 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

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 =

Cannot call c:import / 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 % c:forEach items=${listOfNumbers} var=number c:import url=/customAction.do?number=${number}/ br/ /c:forEach

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 message

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 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 Oct 2004

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

Re: Newbie html:errors/ 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

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

RE: Newbie html:errors/ 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: html:messages id=error name=countryCapital ... etc... /html:messages Regards, David -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

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

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

RE: Newbie html:errors/ 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

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

  1   2   >