Checkboxes
Hi, I have the following problem: I have a list of 71 Checkboxes and want to have one checkbox to select all of them at once. This works fine but I cannot uncheck this checkbox if it was checked once in order to uncheck all other checkboxes. Can anybody help me on this. Any code samples would be very helpful. Thanks in advance, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Session expired
My problem is, that I already have something around 60 jsps. Now it would be nice to have a workaround so that i don't have to adapt all my jsps and actions. > -Original Message- > From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 19, 2003 12:58 PM > To: Struts Users Mailing List > Subject: Re: Session expired > > > What if you check from your action before redirecting to a jsp ? > > > Filip Polsakiewicz wrote: > > >Hi, > >is there any way to redirect y user to a jsp if the session is expired > >without checking for an expired session within each single jsp? > > > >Thanks, Filip > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Session expired
Hi, is there any way to redirect y user to a jsp if the session is expired without checking for an expired session within each single jsp? Thanks, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: commons-fileupload.jar
Thanks alot. This worked out fine. Greetz, Filip > -Original Message- > From: Reinhard Nagele [mailto:[EMAIL PROTECTED] > Sent: Friday, August 08, 2003 8:59 AM > To: Struts Users Mailing List > Subject: Re: commons-fileupload.jar > > > Download Struts 1.1 again. I think they packaged a wrong jar when Struts > 1.1 was released, which was fixed later. DiskFileUpload is definitely > included in my Struts 1.1 distribution. > > Reinhard > > > Filip Polsakiewicz wrote: > > >Hi everybody, > > > >i found that the commons-fileupload.jar shipped with struts is > not complete > >compared to the original commans-fileupload.jar > >In our project we need e.g. the class DiskFileUpload which is > not included > >in the struts version. On the other hand i cannot take the "original" > >version since then struts fileupload doesn't work. Is there any full > >featured version of fileupload.jar for struts? ... or how can i > get struts > >to work with the original jar? > > > >Thank Filip > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Changes between commons-fileupload.jar (original) and commons-fileupload struts
Hi, i have a problem with my struts app. When i use the original commons-fileupload and not the one shipped with struts i get exceptions. But we in our project need some features of the FileUpload (e.g. DiskFileUpload.class) that are not included in the struts version. What do I have to change so we can use the "original" fileupload jar? Thanks, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Retrieve all messages ever sent to this list
Hi, is there a way to retrieve all messages which have been sent to this mailinglist until now? I'd like to save all messages on my Laptop as a kind of reference. Thanks, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
commons-fileupload.jar
Hi everybody, i found that the commons-fileupload.jar shipped with struts is not complete compared to the original commans-fileupload.jar In our project we need e.g. the class DiskFileUpload which is not included in the struts version. On the other hand i cannot take the "original" version since then struts fileupload doesn't work. Is there any full featured version of fileupload.jar for struts? ... or how can i get struts to work with the original jar? Thank Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: commons-fileupload.jar
> -Original Message- > From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 05, 2003 8:05 AM > To: Struts Users Mailing List > Subject: Re: commons-fileupload.jar > > > Maybe you can replace the version by downloading the new one from the > commons home page ? Then I get the following exception when using the html:file element java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload.setSizeMax(I)V > > > Filip Polsakiewicz wrote: > > >Hi everybody, > > > >i found that the commons-fileupload.jar shipped with struts is > not complete > >compared to the original commans-fileupload.jar > >In our project we need e.g. the class DiskFileUpload which is > not included > >in the struts version. On the other hand i cannot take the "original" > >version since then struts fileupload doesn't work. Is there any full > >featured version of fileupload.jar for struts? ... or how can i > get struts > >to work with the original jar? > > > >Thank Filip > > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using html:file and commons-fileupload
I just put the fileupload jar into my webapp lib directory. But it still does not work. Actually in our project we use the fileupload package at another point too, but there we have an own servlet to handle that. Why doesn't it work with struts??? > -Original Message- > From: Alen Ribic [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2003 4:26 PM > To: Struts Users Mailing List > Subject: Re: using html:file and commons-fileupload > > > > Does the Action which handles the form have to extends some specific > class? > no. > Just extend Action. > > --Alen > > > - Original Message - > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Monday, August 04, 2003 4:22 PM > Subject: RE: using html:file and commons-fileupload > > > > > > -Original Message- > > > From: message message [mailto:[EMAIL PROTECTED] > > > Sent: Monday, August 04, 2003 3:38 PM > > > To: [EMAIL PROTECTED] > > > Subject: RE: using html:file and commons-fileupload > > > > > > > > > > > > Here is a copy of the code from the struts-upload example (upload.jsp) > > > > > enctype="multipart/form-data"> > > > It works with out any errors. > > > > > > >From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > > > >Reply-To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > > > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > >Subject: RE: using html:file and commons-fileupload > > > >Date: Mon, 4 Aug 2003 15:15:14 +0200 > > > > > > > >I use commons-fileupload-1.0.jar > > > > > > > >here the html:code > > > > > > > > > > >enctype="multipart/form-data"> > > > > > > > > submit > > > > > > > > > > > > > -Original Message- > > > > > From: Alen Ribic [mailto:[EMAIL PROTECTED] > > > > > Sent: Monday, August 04, 2003 3:09 PM > > > > > To: Struts Users Mailing List > > > > > Subject: Re: using html:file and commons-fileupload > > > > > > > > > > > > > > > Of top of my head: > > > > > Are you using a version of upload commons that came with > > > Struts or...? > > > > > > > > > > Also, you got some code for clues? > > > > > > > > > > --Alen > > > > > > > > > > > > > > > - Original Message - > > > > > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > > > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > > > Sent: Monday, August 04, 2003 2:44 PM > > > > > Subject: RE: using html:file and commons-fileupload > > > > > > > > > > > > > > > > Hi, > > > > > > changing the type to FormFile didn't solve the problem. > Any other > > > >ideas? > > > > > > > > > > > > > > > > > > > -Original Message- > > > > > > > From: Alen Ribic [mailto:[EMAIL PROTECTED] > > > > > > > Sent: Monday, August 04, 2003 2:28 PM > > > > > > > To: Struts Users Mailing List > > > > > > > Subject: Re: using html:file and commons-fileupload > > > > > > > > > > > > > > > > > > > > > > > > > > > > - Original Message - > > > > > > > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > > > > > > > To: "Struts Users Mailinglist" > <[EMAIL PROTECTED]> > > > > > > > Sent: Monday, August 04, 2003 2:24 PM > > > > > > > Subject: using html:file and commons-fileupload > > > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > i have the following problem. I use a element to > > > > > > > choose a file > > > > > > > > and want it to be uploaded using commons-fileupload. > > > > > > > > When i submit my form i get the following exception: > > > > > > > > > > > > > > > > java.lang.NoSuchMethod
RE: using html:file and commons-fileupload
Does the Action which handles the form have to extends some specific class? > -Original Message- > From: message message [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2003 3:38 PM > To: [EMAIL PROTECTED] > Subject: RE: using html:file and commons-fileupload > > > > Here is a copy of the code from the struts-upload example (upload.jsp) > enctype="multipart/form-data"> > It works with out any errors. > > >From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > >Subject: RE: using html:file and commons-fileupload > >Date: Mon, 4 Aug 2003 15:15:14 +0200 > > > >I use commons-fileupload-1.0.jar > > > >here the html:code > > > > >enctype="multipart/form-data"> > > > > submit > > > > > > > -Original Message- > > > From: Alen Ribic [mailto:[EMAIL PROTECTED] > > > Sent: Monday, August 04, 2003 3:09 PM > > > To: Struts Users Mailing List > > > Subject: Re: using html:file and commons-fileupload > > > > > > > > > Of top of my head: > > > Are you using a version of upload commons that came with > Struts or...? > > > > > > Also, you got some code for clues? > > > > > > --Alen > > > > > > > > > - Original Message - > > > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Monday, August 04, 2003 2:44 PM > > > Subject: RE: using html:file and commons-fileupload > > > > > > > > > > Hi, > > > > changing the type to FormFile didn't solve the problem. Any other > >ideas? > > > > > > > > > > > > > -Original Message- > > > > > From: Alen Ribic [mailto:[EMAIL PROTECTED] > > > > > Sent: Monday, August 04, 2003 2:28 PM > > > > > To: Struts Users Mailing List > > > > > Subject: Re: using html:file and commons-fileupload > > > > > > > > > > > > > > > > > > > > - Original Message - > > > > > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > > > > > To: "Struts Users Mailinglist" <[EMAIL PROTECTED]> > > > > > Sent: Monday, August 04, 2003 2:24 PM > > > > > Subject: using html:file and commons-fileupload > > > > > > > > > > > > > > > > Hi, > > > > > > i have the following problem. I use a element to > > > > > choose a file > > > > > > and want it to be uploaded using commons-fileupload. > > > > > > When i submit my form i get the following exception: > > > > > > > > > > > > java.lang.NoSuchMethodError: > > > > > > org.apache.commons.fileupload.FileUpload.setSizeMax(I)V > > > > > > > > > > > > my code looks something like > > > > > > > > > > > > > > > > > enctype="multipart/form-data"> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > By the way: which datatype does the property have to be of? > > > > > > > > > > As far as I can remember it should be of type: > > > > > org.apache.struts.upload.FormFile. > > > > > > > > > > > My Action is not even called -> the exception comes before the > > > > > excute-Method > > > > > > is called > > > > > > > > > > > > Help please. > > > > > > > > > > > > Filip > > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > > > > For additional commands, e-mail: > >[EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > > >- > > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > _ > The new MSN 8: smart spam protection and 2 months FREE* > http://join.msn.com/?page=features/junkmail > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using html:file and commons-fileupload
I use commons-fileupload-1.0.jar here the html:code submit > -Original Message- > From: Alen Ribic [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2003 3:09 PM > To: Struts Users Mailing List > Subject: Re: using html:file and commons-fileupload > > > Of top of my head: > Are you using a version of upload commons that came with Struts or...? > > Also, you got some code for clues? > > --Alen > > > - Original Message - > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Monday, August 04, 2003 2:44 PM > Subject: RE: using html:file and commons-fileupload > > > > Hi, > > changing the type to FormFile didn't solve the problem. Any other ideas? > > > > > > > -Original Message- > > > From: Alen Ribic [mailto:[EMAIL PROTECTED] > > > Sent: Monday, August 04, 2003 2:28 PM > > > To: Struts Users Mailing List > > > Subject: Re: using html:file and commons-fileupload > > > > > > > > > > > > - Original Message - > > > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailinglist" <[EMAIL PROTECTED]> > > > Sent: Monday, August 04, 2003 2:24 PM > > > Subject: using html:file and commons-fileupload > > > > > > > > > > Hi, > > > > i have the following problem. I use a element to > > > choose a file > > > > and want it to be uploaded using commons-fileupload. > > > > When i submit my form i get the following exception: > > > > > > > > java.lang.NoSuchMethodError: > > > > org.apache.commons.fileupload.FileUpload.setSizeMax(I)V > > > > > > > > my code looks something like > > > > > > > > > > > enctype="multipart/form-data"> > > > > > > > > > > > > > > > > > > > By the way: which datatype does the property have to be of? > > > > > > As far as I can remember it should be of type: > > > org.apache.struts.upload.FormFile. > > > > > > > My Action is not even called -> the exception comes before the > > > excute-Method > > > > is called > > > > > > > > Help please. > > > > > > > > Filip > > > > > > > > > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using html:file and commons-fileupload
Hi, changing the type to FormFile didn't solve the problem. Any other ideas? > -Original Message- > From: Alen Ribic [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2003 2:28 PM > To: Struts Users Mailing List > Subject: Re: using html:file and commons-fileupload > > > > - Original Message - > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > To: "Struts Users Mailinglist" <[EMAIL PROTECTED]> > Sent: Monday, August 04, 2003 2:24 PM > Subject: using html:file and commons-fileupload > > > > Hi, > > i have the following problem. I use a element to > choose a file > > and want it to be uploaded using commons-fileupload. > > When i submit my form i get the following exception: > > > > java.lang.NoSuchMethodError: > > org.apache.commons.fileupload.FileUpload.setSizeMax(I)V > > > > my code looks something like > > > > > enctype="multipart/form-data"> > > > > > > > > > By the way: which datatype does the property have to be of? > > As far as I can remember it should be of type: > org.apache.struts.upload.FormFile. > > > My Action is not even called -> the exception comes before the > excute-Method > > is called > > > > Help please. > > > > Filip > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using html:file and commons-fileupload
Hi, i have the following problem. I use a element to choose a file and want it to be uploaded using commons-fileupload. When i submit my form i get the following exception: java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload.setSizeMax(I)V my code looks something like By the way: which datatype does the property have to be of? My Action is not even called -> the exception comes before the excute-Method is called Help please. Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: with sessionAttributes
Thanks. I will try that. > -Original Message- > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2003 10:50 AM > To: Struts Users Mailing List > Subject: Re: with sessionAttributes > > > use the "scope" attribute (it is the same for lot's of struts tags) > > > ... > > > http://jakarta.apache.org/struts/userGuide/struts-logic.html#equal > > Notice Struts will automatically look in scopes for you if you > don't use scope : > page -> request -> session -> application > > Nico. > > > > > Hi, > > i need to check for the value of a specific session Attribute. > I know that i > > can use with request-parameters. Now how would i > check if a > > session attribute "foo" equals the value of "bar"? > > > > Thanks Filip > > > > > > > > > > > -- > -- > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
with sessionAttributes
Hi, i need to check for the value of a specific session Attribute. I know that i can use with request-parameters. Now how would i check if a session attribute "foo" equals the value of "bar"? Thanks Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: bean:message tag
Hi, bean:message works only with PropertyResourceBundles. Those are specified by name if you don't use the default ones. If you want to print the property of your Form use instead. HTH Filip > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 01, 2003 10:04 AM > To: Struts Users Mailing List > Subject: bean:message tag > > > > hi, > I am trying to print the message as follows using bean tag lib. > > > > Where logonform is the name of the bean in request scope. > > Here is what the javadoc says about the name attribute: > > name :Specifies the attribute name of the bean whose property is accessed > to retrieve the value specified by property (if specified). If property is > not specified, the value of this bean itself will be used as the message > resource key > > But i get the error that "Property for message key must be a String" > > Am i missing something ? > > TIA > Ashwani > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Simplest way to show the matrix
hi, try: HTH Filip > -Original Message- > From: BOULAY Arnaud [mailto:[EMAIL PROTECTED] > Sent: Monday, June 30, 2003 9:46 AM > To: [EMAIL PROTECTED] > Subject: Simplest way to show the matrix > > > Hi ! > I would like to know what is the best practise to show a 2d array > of simple type like double or int in a .jsp using logic:iterate. > regards, > Arnaud > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.net.ConnectException: Connection refused
... and see if mysql on your production server allows connections to localhost. In my production enviroment mysql only allows connections to jdbc:mysql://hostname:3306/mydb > -Original Message- > From: Richard Raquepo [mailto:[EMAIL PROTECTED] > Sent: Friday, June 27, 2003 10:08 AM > To: Struts Users Mailing List > Subject: java.net.ConnectException: Connection refused > > > hi. > > i have a struts application that is perfectly running in resin > and tomcat in my win2k PC. > > but then i put in our production server (debian linux) and i got > this error: > > Unable to connect to any hosts due to exception: > java.net.ConnectException: Connection refused > > i can't connect to my MySQL Database because of that error: > > String connDriver = "org.gjt.mm.mysql.Driver";//even tried > com.mysql.jdbc.Driver > String connURL = "jdbc:mysql://localhost:3306/charddb"; > String user = "root"; > String pass = "password"; > > i've check the database. it is working on my linux shell... > > how come it doesn't work in my app. > > thanks a lot. > -richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: java.net.ConnectException: Connection refused
I'm not sure but maybe you have to allow the connections first. check /etc/services if connections to port 3306 are allowed. And then you might check if connections to tomcat and your appserver are allowed. HTH Filip > -Original Message- > From: Richard Raquepo [mailto:[EMAIL PROTECTED] > Sent: Friday, June 27, 2003 10:08 AM > To: Struts Users Mailing List > Subject: java.net.ConnectException: Connection refused > > > hi. > > i have a struts application that is perfectly running in resin > and tomcat in my win2k PC. > > but then i put in our production server (debian linux) and i got > this error: > > Unable to connect to any hosts due to exception: > java.net.ConnectException: Connection refused > > i can't connect to my MySQL Database because of that error: > > String connDriver = "org.gjt.mm.mysql.Driver";//even tried > com.mysql.jdbc.Driver > String connURL = "jdbc:mysql://localhost:3306/charddb"; > String user = "root"; > String pass = "password"; > > i've check the database. it is working on my linux shell... > > how come it doesn't work in my app. > > thanks a lot. > -richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: displaying String[] in struts
You could do the following HTH Filip > -Original Message- > From: Thamarajah Dharma [mailto:[EMAIL PROTECTED] > Sent: Friday, June 27, 2003 9:30 AM > To: struts (E-mail) > Subject: displaying String[] in struts > > > hi all. > > cud somebody tell how i can display contents in a string[] which i return > from methodx. > I was able to get it iterated to size of array, but i don't knw how to > display the content in the array. > > any help will be greatly appreciated > > r > sasi > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE:
> -Original Message- > From: Nicolas De Loof [mailto:[EMAIL PROTECTED] > Sent: Friday, June 27, 2003 9:34 AM > To: Struts Users Mailing List > Subject: Re: > > > if groupForm.getGroupname() returns null (or "") your first > bean:define will have no body content, and will so have no > value to assign to the bean to create. > Thanks. That sould be it. Since i use the same JSP for creating and changing groups. Changing works fine because there is a groupId already. > Nico. > > > > Hi, > > i get the following error message in my jsp and i don't really > understand > > why: > > > > Define tag can contain only one of name attribute, value > attribute, or body > > content > > > > Now i use two define tags in my jsp: > > > > > property="groupname"/> > > > > and > > > > scope="page" /> > > > > Any help would be appreciated. > > > > Thanks, Filip > > > > > > > > > > > -- > -- > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FileUpload w/ drag'n'drop
Hi, i was wondering if there is any way to accomplish the following: I'd like to place a container within my jsp and if a user drops a file (say from his desktop) into this container the file will be uploaded. Does anybody know if (and preferrably: how) this could work? Greetings from Germany, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts-user@jakarta.apache.org
Hi, i get the following error message in my jsp and i don't really understand why: Define tag can contain only one of name attribute, value attribute, or body content Now i use two define tags in my jsp: and Any help would be appreciated. Thanks, Filip - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to Disable Checkbox in Struts
use HTH Filip > -Original Message- > From: Prashanth.S [mailto:[EMAIL PROTECTED] > Sent: Friday, June 27, 2003 6:40 AM > To: [EMAIL PROTECTED] > Subject: How to Disable Checkbox in Struts > > > Iam displaying checkbox option in 1st jsp and leaving user to > select the checkbox. > In the 2nd jsp i need to display the option selected by the user > but make it noneditable... > so kindly help me... > Thanks > Prashanth > > > > - > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: servlet.getDebug()?
it's the same with: session, request, (i believe: log) and a few more. These variable a deklared automatically for usage within your servlets. HTH Filip > -Original Message- > From: sgu88 [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2003 4:15 PM > To: [EMAIL PROTECTED] > Subject: servlet.getDebug()? > > > Hi, guys: > > I have seen the above use of servlet variable without declaring it > before its use. Why is it? > > > thanks, > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Question - how many of us?
> -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 26, 2003 10:38 AM > To: Struts Users Mailing List > Subject: Re: Question - how many of us? > > > Andrew Hill wrote: > > 240,000 eh? > > > > In other words, only about 1% of the users subscribe to the > list, from which > > we can make the deduction that the other 99% do not need > support for struts > > and have no trouble using it, so I guess that makes us list > subscribers the > > intellectual bottom of the barrel? ;-) > > > > LOL! > > Either that or the other 99% go out and buy the struts books. I also bought the o'reilly book. But still i wouldn't like to miss the list since many questions are too complicated to find the answer within the book. So at this point i'd like to say: thanks to you all for your valuable help Greetz, Filip > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html links
> -Original Message- > From: Andy Richards [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2003 3:53 PM > To: Struts Users Mailing List > Subject: Re: html links > > > Thanks filip > > But do i have to do this for every link in the config file, or can i > configure > the struts config file so as that any links not mapped go through a > particular action. > If i have to map all links in the designers menu system, i will > be here till > next month !! : ) > I'm not sure whether you can use an url-pattern here too. Sorry Filip > regards > > Andy > > > > Can anyone shed some light on this for me. Being a newbie i tried > > > to perform a > > > search on the list archive however it just says text searches are not > > > allowed. > > > > > > Anyway my question is this, at present a multimedia designer will > > > hand me a > > > HTML site requiring the addition of functionality. All links work > > > etc. If i > > > want to use this interface around struts, i understand that i > > > need to map the > > > requested path to an action. However what do i do with simple > > > links such as > > > "home" or "go back" which just link to simple html pages? do i > > > have to map > > > these through the controller servlet if so do i do this with some sort > of > > > generic mapping? > > > > at first: yes you should use struts mappings for those simple pages too > > (IMHO). > > To do this u could use org.apache.struts.actions.ForwardAction > > > > Greetz, Filip > > > > > > thanks > > > > > > Andy > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html links
> -Original Message- > From: Andy Richards [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2003 3:14 PM > To: [EMAIL PROTECTED] > Subject: html links > > > Can anyone shed some light on this for me. Being a newbie i tried > to perform a > search on the list archive however it just says text searches are not > allowed. > > Anyway my question is this, at present a multimedia designer will > hand me a > HTML site requiring the addition of functionality. All links work > etc. If i > want to use this interface around struts, i understand that i > need to map the > requested path to an action. However what do i do with simple > links such as > "home" or "go back" which just link to simple html pages? do i > have to map > these through the controller servlet if so do i do this with some sort of > generic mapping? at first: yes you should use struts mappings for those simple pages too (IMHO). To do this u could use org.apache.struts.actions.ForwardAction Greetz, Filip > > thanks > > Andy > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: delay before redirect
> -Original Message- > From: James Mitchell [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2003 3:01 PM > To: Struts Users Mailing List > Subject: Re: delay before redirect > > > I would suggest staying with the meta tag approach. This lessens > the burden > on the container and let's them (basically) poll your app in the > case where > they are waiting for some asynchronous process to complete. What does > > Just my $.02 mean? Filip > > -- > James Mitchell > Software Developer/Struts Evangelist > http://www.struts-atlanta.org > > > - Original Message - > From: "Ionel Gardais" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, June 25, 2003 7:56 AM > Subject: delay before redirect > > > > Hi, > > > > is it possible to set a delay before a redirect ? > > I'd like to do that in order to display a result page for 5 seconds and > > then go to the welcome page. > > > > I am already using an http-equiv="refresh" with a 300 seconds delay for > > the whole page but I want to bypass it with a redirection after > 5 seconds. > > > > > > thanks, > > ionel > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] url-pattern
Hi, i have a problem with url-patterns in web.xml i need a pattern that matches /webdav/*, /webdav/hello/* and so on. I.e. webdav and all subdirectories. i tried /webdav/* but it doesn't work. Help please Filip Polsakiewicz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: el?
What can i do with that. Are there any documents on this topic? > -Original Message- > From: Amjad Shahrour [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 2:32 PM > To: 'Struts Users Mailing List' > Subject: RE: el? > > > Expression Language > ${ } > > > -Original Message- > From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 3:27 PM > To: Struts Users Mailinglist > Subject: el? > > I stumbled over the abbreviation el for quite a few times now (e.g. > struts-el). Can anybody tell me what el stands for? > > Thanks Filip > > Filip Polsakiewicz > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
el?
I stumbled over the abbreviation el for quite a few times now (e.g. struts-el). Can anybody tell me what el stands for? Thanks Filip Filip Polsakiewicz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: submit buttons
> -Original Message- > From: Steve Raeburn [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 1:25 PM > To: Struts Users Mailing List > Subject: RE: submit buttons > > > You're limited to what the native HTML input control allows: > > > > So you can't return a different values without resorting to javascript. > > I'm not sure what you're trying to to do, but if you need to take > different > actions depending on which button is pressed, the > LookupDispatchAction might > help. I use one action that does different things depending on the command value. But the JavaScript solution i have now works great. Filip > > Steve > > > > -Original Message- > > From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] > > Sent: June 24, 2003 3:55 AM > > To: Struts Users Mailinglist > > Subject: submit buttons > > > > > > Hi, > > i have the following problem: > > > > i need a submit button that sets the command-property of my > formbean to CH > > (Change) but the button's label should be: Change > > I tried > > > > Change > > > > > > does not work. Any suggestions? > > > > Filip Polsakiewicz > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: submit buttons
Hi thanks for that hint, i needed to change it a bit until it worked: Change Display thanks alot! Filip > -Original Message- > From: Matthews, Brian [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 12:51 PM > To: 'Struts Users Mailing List' > Subject: RE: submit buttons > > > How about something along the lines of: > > > Change > > Brian > > -Original Message- > From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 11:55 AM > To: Struts Users Mailinglist > Subject: submit buttons > > > Hi, > i have the following problem: > > i need a submit button that sets the command-property of my formbean to CH > (Change) but the button's label should be: Change > I tried > > Change > > > does not work. Any suggestions? > > Filip Polsakiewicz > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE:
try writing as HTH Filip > -Original Message- > From: Vinay Mhapankar [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 24, 2003 12:52 PM > To: [EMAIL PROTECTED] > Subject: > > > > Hi All, > > I need to display > > ---START--- > Sometext > > ---END--- > > on a JSP page. > > If I set filter="false" in bean:write tag, is interpreted as > newline but then textbox is displayed. > > And if I set filter="true" (default), then I can't insert newline. > > In short, I need partial escaping of html. > > Can it be done in struts? > > If not, how can we insert a new line as well as escape other html tags? > > Please help. > > Thanks. > > - Vinay > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.491 / Virus Database: 290 - Release Date: 6/18/2003 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
submit buttons
Hi, i have the following problem: i need a submit button that sets the command-property of my formbean to CH (Change) but the button's label should be: Change I tried Change does not work. Any suggestions? Filip Polsakiewicz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:option - is there a selected option attribute?
Your formbean will be resetted on the first use and then every time you submit your form. -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 1:26 PM To: Struts Users Mailing List Subject: Re: html:option - is there a selected option attribute? This will only work if I am reseting In the formbean, I have the selected option. I want to extract that information and mark the appropriate list item as selected. When I look in the tld, I do not see a selected attribute as part of the option tag. How do I set the selected attribute Filip Polsakiewicz wrote: Sorry i was sleeping :-) I thought you were talking of checkboxes. Well i'd say it's not much different. In your formbeans reset method just set the corresponding property (the property which is returned by your selectbox) to the value you would like to be the default. Greetz, Filip -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 1:13 PM To: Struts Users Mailing List Subject: Re: html:option - is there a selected option attribute? You lost me; what corresponding boolean value?? Filip Polsakiewicz wrote: Hi, i had the same problem. Here is the solution. You have to set the corresponding boolean value to true HTH Filip > -Original Message- > From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2003 12:52 PM > To: Struts Users Mailing List > Subject: html:option - is there a selected option attribute? > > > I have an Options List and I want to make one of the items in the select > list selected. I am using the html-el tags. How do I mark an option as > selected?? Is there a way: > > Thanks in advance, > > Natalie > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:option - is there a selected option attribute?
Sorry i was sleeping :-) I thought you were talking of checkboxes. Well i'd say it's not much different. In your formbeans reset method just set the corresponding property (the property which is returned by your selectbox) to the value you would like to be the default. Greetz, Filip -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 1:13 PM To: Struts Users Mailing List Subject: Re: html:option - is there a selected option attribute? You lost me; what corresponding boolean value?? Filip Polsakiewicz wrote: Hi, i had the same problem. Here is the solution. You have to set the corresponding boolean value to true HTH Filip > -Original Message- > From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2003 12:52 PM > To: Struts Users Mailing List > Subject: html:option - is there a selected option attribute? > > > I have an Options List and I want to make one of the items in the select > list selected. I am using the html-el tags. How do I mark an option as > selected?? Is there a way: > > Thanks in advance, > > Natalie > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: html:option - is there a selected option attribute?
Hi, i had the same problem. Here is the solution. You have to set the corresponding boolean value to true HTH Filip > -Original Message- > From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] > Sent: Monday, June 23, 2003 12:52 PM > To: Struts Users Mailing List > Subject: html:option - is there a selected option attribute? > > > I have an Options List and I want to make one of the items in the select > list selected. I am using the html-el tags. How do I mark an option as > selected?? Is there a way: > > Thanks in advance, > > Natalie > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
optionsCollection
Hi, i have a collection of String values in my Form and want a selectbox with options out of this collection beeing displayed on my jsp. How can i do this. i tried but it says that there is no getter method for property alang in bean DE where DE ist the first String in my Collection. I'd appreciate any hints. Thanks Filip Polsakiewicz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logging in struts.
> -Original Message- > From: Simon Kelly [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 18, 2003 11:36 AM > To: Struts Users Mailing List > Subject: Re: Logging in struts. > > > Thanks Filip (and hi Kwok, yep found the file. See below) > > I tested the servlet context logging, and found the file it > writes too, and > found only these lines at the ned of the file when it runs the actioin > class. > > 2003-06-18 11:26:09 action: Processing a GET for /select > 2003-06-18 11:26:09 action: Looking for Action instance for class > org.fzk.katrin.struts.action.SignalSelectAction > 2003-06-18 11:26:09 action: Double checking for Action instance already > there > 2003-06-18 11:26:09 action: Creating new Action instance > > The first thing SignalSelectAction does is the following (which in theory > should write to this very same file): > > ServletContext context = getServlet().getServletContext(); > context.log("Made it this far in " + THIS_CLASS); > > Which, of course, it doesn't do. > > I'm gonna give the log4j package a go in a sec, but if anyone knows what > might be happening, I'll take any leads I can get :-( > > Cheers > > Simon > > PS > I'm just checkin where the K-W-Platz is, cause my memory is shot. I'm WAY > up the raod at the FZK > It's pretty close to Technologiefabrik if you know where this is. And i think FZI is also here somewhere > > - Original Message - > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, June 18, 2003 11:23 AM > Subject: RE: Logging in struts. > > > > > -Original Message- > > > From: Simon Kelly [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, June 18, 2003 11:02 AM > > > To: Struts Users Mailing List > > > Subject: Re: Logging in struts. > > > > > > > > > Hi Gemes and Filip, > > > > > > Thanks for the answers. I'm using commons logging (and I'm just > > > checkin my > > > copy of Prog' J.Struts), but println() isn't even dumping out > to screen, > > > even though when I go throught the page it runs the x.do class! > > > > You should make sure (probably in yout tomcat config) that stdout and > stderr > > are not redirected to a file or something) > > When I use sys.out.println() in my apps it always prints to my Tomcat > > window. > > > > > > > > Simon > > > > > > PS > > > Filip, where are you in KA? > > > > Near Karl-Wilhelm-Platz > > > > Filip > > > > > > > > - Original Message - > > > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > > Sent: Wednesday, June 18, 2003 10:50 AM > > > Subject: RE: Logging in struts. > > > > > > > > > > Hi Simon, > > > > > > > > there is a lot of info on that question in O'Reilly Programming > Jakarta > > > > Struts. The tell you how to use Commons Logging or > > > > Log4J within your struts apps. > > > > And: whatever you print to stdout or stderr appears in your > > > tomcat window > > > > anyway (at least it should) > > > > > > > > Greetz from Karlsruhe too, > > > > > > > > Filip > > > > > > > > > -Original Message- > > > > > From: Simon Kelly [mailto:[EMAIL PROTECTED] > > > > > Sent: Wednesday, June 18, 2003 10:24 AM > > > > > To: Struts Users Mailing List > > > > > Subject: Logging in struts. > > > > > > > > > > > > > > > Hi all, > > > > > > > > > > I didn't really want to post such a basic question, but I > have tried > a > > > > > couple of possible solutions and have had zero luck. So, > > > > > > > > > > How do you log messages using the Struts logger, so that they > > > > > will print to > > > > > screen? I.E the window that tomcat is running in, in my case. > > > > > > > > > > Thanks, cheers etc etc > > > > > > > > > > Simon > > > > > > > > > > "I have often wondered how it is that every man loves himself > > > > > more than all > > >
RE: Logging in struts.
> -Original Message- > From: Simon Kelly [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 18, 2003 11:02 AM > To: Struts Users Mailing List > Subject: Re: Logging in struts. > > > Hi Gemes and Filip, > > Thanks for the answers. I'm using commons logging (and I'm just > checkin my > copy of Prog' J.Struts), but println() isn't even dumping out to screen, > even though when I go throught the page it runs the x.do class! You should make sure (probably in yout tomcat config) that stdout and stderr are not redirected to a file or something) When I use sys.out.println() in my apps it always prints to my Tomcat window. > > Simon > > PS > Filip, where are you in KA? Near Karl-Wilhelm-Platz Filip > > - Original Message - > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Wednesday, June 18, 2003 10:50 AM > Subject: RE: Logging in struts. > > > > Hi Simon, > > > > there is a lot of info on that question in O'Reilly Programming Jakarta > > Struts. The tell you how to use Commons Logging or > > Log4J within your struts apps. > > And: whatever you print to stdout or stderr appears in your > tomcat window > > anyway (at least it should) > > > > Greetz from Karlsruhe too, > > > > Filip > > > > > -Original Message- > > > From: Simon Kelly [mailto:[EMAIL PROTECTED] > > > Sent: Wednesday, June 18, 2003 10:24 AM > > > To: Struts Users Mailing List > > > Subject: Logging in struts. > > > > > > > > > Hi all, > > > > > > I didn't really want to post such a basic question, but I have tried a > > > couple of possible solutions and have had zero luck. So, > > > > > > How do you log messages using the Struts logger, so that they > > > will print to > > > screen? I.E the window that tomcat is running in, in my case. > > > > > > Thanks, cheers etc etc > > > > > > Simon > > > > > > "I have often wondered how it is that every man loves himself > > > more than all > > > the rest of men, but yet sets less value on his own opinion of > > > himself than > > > on the opinion of others." -- Georg Christoph Lichtenberg > > > > > > Institut fuer > > > Prozessdatenverarbeitung > > > und Elektronik, > > > Forschungszentrum Karlsruhe GmbH, > > > Postfach 3640, > > > D-76021 Karlsruhe, > > > Germany. > > > > > > Tel: (+49)/7247 82-4042 > > > E-mail : [EMAIL PROTECTED] > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Logging in struts.
Hi Simon, there is a lot of info on that question in O'Reilly Programming Jakarta Struts. The tell you how to use Commons Logging or Log4J within your struts apps. And: whatever you print to stdout or stderr appears in your tomcat window anyway (at least it should) Greetz from Karlsruhe too, Filip > -Original Message- > From: Simon Kelly [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 18, 2003 10:24 AM > To: Struts Users Mailing List > Subject: Logging in struts. > > > Hi all, > > I didn't really want to post such a basic question, but I have tried a > couple of possible solutions and have had zero luck. So, > > How do you log messages using the Struts logger, so that they > will print to > screen? I.E the window that tomcat is running in, in my case. > > Thanks, cheers etc etc > > Simon > > "I have often wondered how it is that every man loves himself > more than all > the rest of men, but yet sets less value on his own opinion of > himself than > on the opinion of others." -- Georg Christoph Lichtenberg > > Institut fuer > Prozessdatenverarbeitung > und Elektronik, > Forschungszentrum Karlsruhe GmbH, > Postfach 3640, > D-76021 Karlsruhe, > Germany. > > Tel: (+49)/7247 82-4042 > E-mail : [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Display key itself when not found in MessageResources
You should be able to use logic-taglib in 1.0 too. It's not included in the package but you can download it seperately. Filip > -Original Message- > From: José Ventura [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 4:54 PM > To: Struts Users Mailing List > Subject: Re: Display key itself when not found in MessageResources > > > Thanks a lot for all the replies! > > Unfortunately, all the solutions appear to work only on > Struts 1.1. I'll not start the discussion again, but I can't > use 1.1 just yet, even though I want to ;) > > Oh well. I'll try extending the Struts bean:message tag. > > BTW, in JSTL the behavior is the same as when you set > , right? It'll display the > key between ???: > > ???foo??? > > Is there any way in JSTL to get rid of the ??? ? > > > In case you are interested, this app allows an user to create > some stuff on the database. One of the fields is the message > resource key identifying the record (yes, the user has to know > about resource bundles and all -- it's a technical back-office > app). But he may decide that no i18n is required for his record > and just put the name of the record in place of the key. That's > why I wanted the tag to display the message resource, if found, > or the key itself otherwise. > > > []'s > - ventura > > - Original Message - > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, June 17, 2003 11:15 AM > Subject: RE: Display key itself when not found in MessageResources > > > > You could check if this key is there using logic:messagesPresent or > > logic:messagesNotPresent and then > > either use bean:message with that key or bean:write with some text > > > > > -Original Message- > > > From: José Ventura [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, June 17, 2003 4:03 PM > > > To: struts-users > > > Subject: Display key itself when not found in MessageResources > > > > > > > > > Been searching the archives, but with little luck. I even found a > > > thread about this > > > (http://www.mail-archive.com/[EMAIL PROTECTED]/msg687 > > > 79.html), > > > but it didn't have an answer, so I'm reposting. > > > > > > If I use and "foo" is not present > > > in my application resources file, the tag throws an exception > > > (stack trace at the end). I wanted it to display "foo" itself. > > > > > > Can I create a class that extends PropertyResourceBundle (or > > > whatever) that does not throw a MissingResourceException, and > > > specify it in my web.xml file like this? > > > > > > ... > > > application > > > com.foo.MySuperDuperResourceBundle > > > ... > > > > > > Unfortunately, I'm stuck with Struts 1.0.2 for the time being :( > > > > > > []'s > > > - ventura > > > > > > P.S. Here's the exception stack trace if anyone cares. > > > > > > javax.servlet.jsp.JspException: Missing message for key Minhas > Atividades > > > at > > > > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) > > > at org.apache.jsp.menu$jsp._jspService(menu$jsp.java:1192) > > > at > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) > > > (Does anyone really cares about the rest :))) ? > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Implementing Applicationwide search
> -Original Message- > From: Paul McCulloch [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 4:38 PM > To: 'Struts Users Mailing List' > Subject: RE: Implementing Applicationwide search > > > I'm not quite sure what you mean - do you want to search the data that > underlies you webapp, or do you want to search the source of your > application? Actually both. But thanks for the link. This should be a good start. The problem is that some pages are more or less static and contain information that should be searched too. Filip > > If it is text searching of data you are after then check out Lucene > (http://jakarta.apache.org/lucene) > > Paul > > -Original Message- > From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] > Sent: 17 June 2003 15:32 > To: Struts Users Mailinglist > Subject: Implementing Applicationwide search > > > Hi, > > i am looking for a way to implement a search function that > searches my whole > webapp somehow like a searchengine. Did anybody do that before. Are there > any useful tools? Any answers appreciated. > Thanks > > Filip Polsakiewicz > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > ** > Axios Email Confidentiality Footer > Privileged/Confidential Information may be contained in this > message. If you are not the addressee indicated in this message > (or responsible for delivery of the message to such person), you > may not copy or deliver this message to anyone. In such case, you > should destroy this message, and notify us immediately. If you or > your employer does not consent to Internet email messages of this > kind, please advise us immediately. Opinions, conclusions and > other information expressed in this message are not given or > endorsed by my Company or employer unless otherwise indicated by > an authorised representative independent of this message. > WARNING: > While Axios Systems Ltd takes steps to prevent computer viruses > from being transmitted via electronic mail attachments we cannot > guarantee that attachments do not contain computer virus code. > You are therefore strongly advised to undertake anti virus checks > prior to accessing the attachment to this electronic mail. Axios > Systems Ltd grants no warranties regarding performance use or > quality of any attachment and undertakes no liability for loss or > damage howsoever caused. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Implementing Applicationwide search
Hi, i am looking for a way to implement a search function that searches my whole webapp somehow like a searchengine. Did anybody do that before. Are there any useful tools? Any answers appreciated. Thanks Filip Polsakiewicz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Display key itself when not found in MessageResources
You could check if this key is there using logic:messagesPresent or logic:messagesNotPresent and then either use bean:message with that key or bean:write with some text > -Original Message- > From: José Ventura [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 4:03 PM > To: struts-users > Subject: Display key itself when not found in MessageResources > > > Been searching the archives, but with little luck. I even found a > thread about this > (http://www.mail-archive.com/[EMAIL PROTECTED]/msg687 > 79.html), > but it didn't have an answer, so I'm reposting. > > If I use and "foo" is not present > in my application resources file, the tag throws an exception > (stack trace at the end). I wanted it to display "foo" itself. > > Can I create a class that extends PropertyResourceBundle (or > whatever) that does not throw a MissingResourceException, and > specify it in my web.xml file like this? > > ... > application > com.foo.MySuperDuperResourceBundle > ... > > Unfortunately, I'm stuck with Struts 1.0.2 for the time being :( > > []'s > - ventura > > P.S. Here's the exception stack trace if anyone cares. > > javax.servlet.jsp.JspException: Missing message for key Minhas Atividades > at > org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242) > at org.apache.jsp.menu$jsp._jspService(menu$jsp.java:1192) > at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107) > (Does anyone really cares about the rest :))) ? > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: -Newbie- my own Servlet
Your Action should look something like > -Original Message- > From: Frans Stofberg [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 2:38 PM > To: [EMAIL PROTECTED] > Subject: -Newbie- my own Servlet > > > Hi > > Im very new with this struts thing, > I've got an action path /login now I want it to use my own Controller > Servlet... this is what I've got > > Foundation//DTD Struts Configuration 1.0//EN" > > "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";> > > > > > > > > > > > > > > > > > > > > > now my login jsp form looks as follows > > > > This does not work > this happnes when the JSP compiels > (Cannot retrieve mapping for action /login) > > what is wrong? > > Thanks > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts Menu question
Cool. Thanks alot Filip > -Original Message- > From: El Harouchi, Jaafar [IT] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 2:01 PM > To: 'Struts Users Mailing List' > Subject: RE: Struts Menu question > > > Filip, > You can definitely do that. > Your menu definitions are in the xml configuration file, but the logic for > determining which ones to display and how to display them is > handled by the > MenuDisplayers. The MenuDisplayers can have a PermissionsAdapter which > encapsulates entitlement logic. > > Look at the Permissions example at: > http://www.raibledesigns.com/struts-menu/index.jsp > > The example code is available through: > http://sourceforge.net/projects/struts-menu/ > > I recommend users to start sending Struts Menu questions to: > struts-menu-user (subscribe via SourceForge) > > HTH, > jaafar > > > > -Original Message- > From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 4:02 AM > To: Struts Users Mailinglist > Subject: Struts Menu question > > > Hi, > i'm pretty new to Struts Menu and have one simple question before i start: > > is it possible to display menuitems depending on some conditions. > e.g. only > displaying an admin-menu if the user is logged on as Administrator? > > thanks in advance > > Filip Polsakiewicz > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: nested form
> -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 12:31 PM > To: Struts Users Mailing List > Subject: Re: nested form > > > It would be bad HTML. A form is only allowed form elements inside its > tags. You might find the browser won't display it. You're right it does not correspond to html rules. I used it one or two times and actually all browsers i tried displayed it. Filip > > Adam > > Filip Polsakiewicz wrote: > > IMHO yes. The only thing is: you can (of course) only submit > one form at a > > time > > > > Filip > > > > > >>-Original Message- > >>From: Ken [mailto:[EMAIL PROTECTED] > >>Sent: Monday, June 16, 2003 10:05 AM > >>To: [EMAIL PROTECTED] > >>Subject: nested form > >> > >> > >>Counld i use nested form? the one is for displaying data from > last action, > >>and the other one is for posting data to next action? > >> > >>-- > >> > >> > >> > >> > >>Best Regards, > >>Ken > >> > >> > >> > >> > >>- > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > >>For additional commands, e-mail: [EMAIL PROTECTED] > >> > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: nested form
IMHO yes. The only thing is: you can (of course) only submit one form at a time Filip > -Original Message- > From: Ken [mailto:[EMAIL PROTECTED] > Sent: Monday, June 16, 2003 10:05 AM > To: [EMAIL PROTECTED] > Subject: nested form > > > Counld i use nested form? the one is for displaying data from last action, > and the other one is for posting data to next action? > > -- > > > > > Best Regards, > Ken > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Same boring copy/paste technique
> -Original Message- > From: Alen Ribic [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 10:03 AM > To: Struts Users Mailing List > Subject: Re: Same boring copy/paste technique > > > thanks Filip for your reply. > > For the actions and forms, abstraction will definitely do the > trick in many > places for me. > As for view, I'm looking into Struts tiles. tiles actually does abstraction too. Using definitions works fine with most problems Good luck Filip > > --Alen > > > - Original Message - > From: "Filip Polsakiewicz" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Sent: Tuesday, June 17, 2003 9:47 AM > Subject: RE: Same boring copy/paste technique > > > > > > > > > -Original Message- > > > From: Alen Ribic [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, June 17, 2003 9:36 AM > > > To: Struts Users Mailing List > > > Subject: Same boring copy/paste technique > > > > > > > > > Hi Everyone, > > > > > > I have many functions in my system that are to be very > similar in their > > > actions, forms and view pages. > > > What is the best way of going about generating a common template for > these > > > functions at least from view perspective. > > > > For Forms and Actions you might want to create an abstract BaseAction or > > BaseForm that defines the common methods and field and then extend it > > as you need it. Something like: > > > > public abstract class UserAction {...} > > > > and then > > > > public abstract class UserCreateAction {...} > > > > same thing with forms. > > The Advantage over copy&paste is that if anything changes you don't need > to > > change it in all files. > > > > For the view part: take a look at struts-tiles. that could solve your > > problem. > > > > Filip > > > > > Of course as long as this is to make my life easier not more difficult > > > otherwise I'll stick to copy/paste pattern. :) > > > > > > --Alen > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Same boring copy/paste technique
Sorry i had a mistake. of course it should be: public abstract class UserAction extends Action {...} and then public abstract class UserCreateAction extends UserAction{...} Filip > > -Original Message- > > From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, June 17, 2003 9:48 AM > > To: Struts Users Mailing List > > Subject: RE: Same boring copy/paste technique > > > > > > > > > > > -Original Message- > > > From: Alen Ribic [mailto:[EMAIL PROTECTED] > > > Sent: Tuesday, June 17, 2003 9:36 AM > > > To: Struts Users Mailing List > > > Subject: Same boring copy/paste technique > > > > > > > > > Hi Everyone, > > > > > > I have many functions in my system that are to be very > similar in their > > > actions, forms and view pages. > > > What is the best way of going about generating a common > > template for these > > > functions at least from view perspective. > > > > For Forms and Actions you might want to create an abstract > > BaseAction or BaseForm that defines the common methods and field > > and then extend it > > as you need it. Something like: > > > > public abstract class UserAction {...} > > > > and then > > > > public abstract class UserCreateAction {...} > > > > same thing with forms. > > The Advantage over copy&paste is that if anything changes you > > don't need to change it in all files. > > > > For the view part: take a look at struts-tiles. that could solve > > your problem. > > > > Filip > > > > > Of course as long as this is to make my life easier not more difficult > > > otherwise I'll stick to copy/paste pattern. :) > > > > > > --Alen > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts Menu question
Hi, i'm pretty new to Struts Menu and have one simple question before i start: is it possible to display menuitems depending on some conditions. e.g. only displaying an admin-menu if the user is logged on as Administrator? thanks in advance Filip Polsakiewicz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Same boring copy/paste technique
> -Original Message- > From: Alen Ribic [mailto:[EMAIL PROTECTED] > Sent: Tuesday, June 17, 2003 9:36 AM > To: Struts Users Mailing List > Subject: Same boring copy/paste technique > > > Hi Everyone, > > I have many functions in my system that are to be very similar in their > actions, forms and view pages. > What is the best way of going about generating a common template for these > functions at least from view perspective. For Forms and Actions you might want to create an abstract BaseAction or BaseForm that defines the common methods and field and then extend it as you need it. Something like: public abstract class UserAction {...} and then public abstract class UserCreateAction {...} same thing with forms. The Advantage over copy&paste is that if anything changes you don't need to change it in all files. For the view part: take a look at struts-tiles. that could solve your problem. Filip > Of course as long as this is to make my life easier not more difficult > otherwise I'll stick to copy/paste pattern. :) > > --Alen > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
nested vectors
Hi, i use a Vector property in my FormBean, which itself contains Elements which also contain vectors. private Vector datedRanges; . . . v class Ranges: private Vector systems; private Vector hosts; iterating over those "nested" vectors works fine unsing logic:iterate. But whenever i change something in the form the corresponding values within the vectors are not beeing changes. Does anybody know why and how i can fix that. thx, Filip Polsakiewicz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
using onchange Property of selectboxes to change Form values
Hi, ich have the following Problem: i use a jsp with several submit buttons each one with its own value. Now I want to change a form value depending on a select box. i.e. when the selectboy changes i want the page to reload and haveing one form valuie changed. Reloading the page is no problem. My Problem is, that the submit() function always uses the submit value which was last used. How can i use java script to either change the form value or change the submit value. thx. filip Filip Polsakiewicz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]