RE: Do u know this bug ?

2003-06-23 Thread Tran Nguyen Thanh Bao
Thank you, i fixed the bug now. However, another problem occurs, the jsp file that i forward to is a frame of : HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html;CHARSET=Shift_JIS META HTTP-EQUIV=Pragma CONTENT=no-cache

file upload and unicode

2003-06-23 Thread Dzidorius Martinaitis \(kafka\)
Hello, I try use filter, but always get this error: 09:38:52,076 ERROR [Digester] Parse Error at line 65 column -1: Element web-app does not allow filter here. org.xml.sax.SAXParseException: Element web-app does not allow filter here. at

Re: file upload and unicode

2003-06-23 Thread Gemes Tibor
Dzidorius Martinaitis (kafka) rta: Hello, I try use filter, but always get this error: 09:38:52,076 ERROR [Digester] Parse Error at line 65 column -1: Element web-app does not allow filter here. org.xml.sax.SAXParseException: Element web-app does not allow filter here. at

Re: file upload and unicode

2003-06-23 Thread Dzidorius Martinaitis \(kafka\)
Yes, I know. And my web.xml have exactly this declaration. But problem is same. Chck your dtd. It should be !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; The web-app_2_2 does not allow filters. Hth, Tib

File upload question yet again

2003-06-23 Thread Alen Ribic
Hi everyone I know that this question might have been asked in the past, but the mailing list archive returns no results for me with keywords file upload. I just wanna know the best, preferred, way of uploading a file in Struts. My scenario I have simple products for a B2C system that have

Re: file upload and unicode

2003-06-23 Thread Gemes Tibor
Dzidorius Martinaitis (kafka) rta: Yes, I know. And my web.xml have exactly this declaration. But problem is same. And the order of tags are preserved according to this DTD? Some containers require this as well others not. !ELEMENT web-app (icon?, display-name?, description?, distributable?,

Re: file upload and unicode

2003-06-23 Thread Dzidorius Martinaitis \(kafka\)
part of web.xml: ?xml version=1.0? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app filter filter-nameSet Character Encoding/filter-name filter-classfilters.SetCharacterEncodingFilter/filter-class init-param

Re: file upload and unicode

2003-06-23 Thread Gemes Tibor
Dzidorius Martinaitis (kafka) rta: Hello, I try use filter, but always get this error: 09:38:52,076 ERROR [Digester] Parse Error at line 65 column -1: Element What is on 65th line of your web.xml? Tib - To unsubscribe,

bean:define in weblogic 6.1 SP5

2003-06-23 Thread Nicolas De Loof
Hi all, I got some troubles with Struts bean:define tag on Weblogic 6.10 SP5 : In generated java code for JSP no script variable is defined for bean:define tags (it works well on tomcat). for example bean:define id=doLink value=false type=String/ doesn't declare a String doLink local variable

Re: file upload and unicode

2003-06-23 Thread Dzidorius Martinaitis \(kafka\)
Sorry, you was right. I lift filter declaration above all and have good depoyment. And now I have unicode and file upload. Thank you very much. Hello, I try use filter, but always get this error: 09:38:52,076 ERROR [Digester] Parse Error at line 65 column -1: Element What is on 65th

Re: file upload and unicode

2003-06-23 Thread Dan Tran
Just upload the file as normal binary file. When you read this file at the server side, make sure to read it with correct encoding of unicode type (like UTF8,UTF16, etc) You probably need to allow the user to enter the upload file encoding type, and pass along this info to server -Dan -

Re: bean:define in weblogic 6.1 SP5

2003-06-23 Thread Nicolas De Loof
As extra info, it works fine on Weblogic 6.1 SP3. It looks like a WLS bug. Nico. Hi all, I got some troubles with Struts bean:define tag on Weblogic 6.10 SP5 : In generated java code for JSP no script variable is defined for bean:define tags (it works well on tomcat). for example

accessing form element in javascript

2003-06-23 Thread Frances Aleah Z. de Guzman
how can i access the values of my form elements using javascript in struts? example html:form action=/timelog onsubmit=return submitForm() html:text property=name/ html:text property=age/ html:submit property=actionLog/html:submit /html:form how can i access the value

Problem using message resource file

2003-06-23 Thread Nikolay Ganev
Hi All, I use Struts rc1 and JBoss 3.2.0. I have problems using message resource properite file. Some fileds in that file are not accessible!! I checked that the file is refreshed in JBoss deploy dir. If you have any suggestions please write back! Thx Nikolay

can i reload a message-resource file

2003-06-23 Thread Richard Raquepo
can i reload a message-resource file. so that when i made a small change i don't have to restart my app container. is this already possible? is so, how? thanks...

optionsCollection

2003-06-23 Thread Filip Polsakiewicz
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 html:optionsCollection property=alang label=alang/ but it says that there is no getter method for property alang in bean DE where DE

Re: accessing form element in javascript

2003-06-23 Thread Gemes Tibor
Frances Aleah Z. de Guzman rta: how can i access the values of my form elements using javascript in struts? example html:form action=/timelog onsubmit=return submitForm() html:text property=name/ html:text property=age/ html:submit property=actionLog/html:submit /html:form how can i

Re: can i reload a message-resource file

2003-06-23 Thread Gemes Tibor
Richard Raquepo rta: can i reload a message-resource file. so that when i made a small change i don't have to restart my app container. is this already possible? is so, how? providing you are using tomcat it might makes worth looking into the manager webapp docs. Tib

Re: accessing form element in javascript

2003-06-23 Thread Firat TIRYAKI
use the below statement. javascript has an array object of forms document.forms[0].age.value; F. - Original Message - From: Gemes Tibor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, June 23, 2003 12:25 PM Subject: Re: accessing form element in

Re: can i reload a message-resource file

2003-06-23 Thread Richard Raquepo
i was referring to struts message resource file which we define in struts-config.xml for example: message-resources parameter=ApplicationResources/ - Original Message - From: Gemes Tibor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, June 23, 2003 5:28 PM

Re: can i reload a message-resource file

2003-06-23 Thread Gemes Tibor
Richard Raquepo rta: i was referring to struts message resource file which we define in struts-config.xml for example: message-resources parameter=ApplicationResources/ Me too. If you reload the context, it will reread. Tib

Re: A tiles controller is called for an unrelated tiles defintion.

2003-06-23 Thread Cedric Dumoulin
Rick Smith wrote: Normally, the controller is called only when its definition is inserted. A search of my JSP source code directory confirms that I do not use the tiles:insert tag at all, I'm using tiles:get: all my tiles are defined in my tiles-defs.xml. The tiles:get tag extends the

RE: can i reload a message-resource file

2003-06-23 Thread Tumi Mathibedi
yes you can with Tomcat, just reload your application with Tomcat's application manager. -Original Message- From: Richard Raquepo [mailto:[EMAIL PROTECTED] Sent: 23 June 2003 11:29 To: Struts Users Mailing List Subject: can i reload a message-resource file can i reload a

[Fwd: Using Struts tab layout]

2003-06-23 Thread Cedric Dumoulin
Hi, The Tiles tabsLayout.jsp accept jsp URL and definition names. So, using definition name in the tabList, as you porpose, should work. You can check tabsLayout.jsp code to see how it works. Cedric Original Message Subject:Using Struts tab layout Date: Fri, 20

Re: [tiles] programatically putting a definition into a layout

2003-06-23 Thread Cedric Dumoulin
William Salvucci wrote: with the following tiles-def, I can forward to layout.main and everything is fine: definition name=layout.main path=/layoutMain.jsp put name=header value=header.jsp / put name=app value=layout.app / put name=footer value=footer.jsp / /definition definition

Building a link from a form

2003-06-23 Thread Eric Jain
How does one build simple html links that contain all parameters from a form? There is of course the brute force method: c:url value=/search var=url c:param name=x value=${form.x}/ c:param name=y value=${form.y}/ ... /c:url I assume there is a better way, something along the

RE: Do u know this bug ?

2003-06-23 Thread FrenzyGNX
Can you tell me the directory structure of your jsp files and html files? --- Tran Nguyen Thanh Bao [EMAIL PROTECTED] wrote: Thank you, i fixed the bug now. However, another problem occurs, the jsp file that i forward to is a frame of : HTML HEAD META

RE: accessing form element in javascript

2003-06-23 Thread Vinay Mhapankar
Form Name is the same as name attribute of corresponding action mapping (/timelog here) in struts-config.xml. Thanks. - Vinay -Original Message- From: Firat TIRYAKI [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 3:03 PM To: Struts Users Mailing List Subject: Re: accessing

Re: Problem using message resource file

2003-06-23 Thread FrenzyGNX
Have you tried to reload the web application after you make the changes? --- Nikolay Ganev [EMAIL PROTECTED] wrote: Hi All, I use Struts rc1 and JBoss 3.2.0. I have problems using message resource properite file. Some fileds in that file are not accessible!! I checked that the file is

Access to MessageResources instance

2003-06-23 Thread Duma Rolando
I would like to know if it's possible to access an existing struts MessageResources instance without creating a new one with the factory class.I need this access outside the struts framework ( i.e. with a static method ). Thanks for your help.

Re[2]: Problem using message resource file

2003-06-23 Thread Nikolay Ganev
Hi all, I used the resource properties file configured as follows: message-resources parameter=resources / and i changed the name of the file - resources - ApplicationResources and of course made change in struts-config.xml message-resources parameter=ApplicationResources/ and my problem was

html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann
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:

Commons logging configuration

2003-06-23 Thread PREETAM Balijepalli
Hi I need help on how to use commons logging like 1. where to use 2.how to configure 3.a sample code regards preetamEvery Attempt May Be Failure But There Should Be No Failure In Attempt - To unsubscribe, e-mail: [EMAIL

how to use commons logging

2003-06-23 Thread PREETAM Balijepalli
Hi I need help on how to use commons logging like 1. where to use 2.how to configure 3.a sample code regards preetam Every Attempt May Be Failure But There Should Be No Failure In Attempt - To unsubscribe, e-mail: [EMAIL

RE: html:option - is there a selected option attribute?

2003-06-23 Thread Filip Polsakiewicz
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

Re: html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann
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

RE: html:option - is there a selected option attribute?

2003-06-23 Thread PREETAM Balijepalli
its the component property just check it in xml file ,, -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:43 PM To: Struts Users Mailing List Subject: Re: html:option - is there a selected option attribute? You lost me; what

Re: html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann
you mean the struts-config.xml file??? You totally lost me here. What is the component property; in what xml file? PREETAM Balijepalli wrote: its the component property just check it in xml file ,, -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED]] Sent: Monday, June

RE: html:option - is there a selected option attribute?

2003-06-23 Thread Filip Polsakiewicz
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

RE: html:option - is there a selected option attribute?

2003-06-23 Thread PREETAM Balijepalli
hello dear struts-html.tld file is for all html component stuff just go thru it ,, -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:47 PM To: Struts Users Mailing List Subject: Re: html:option - is there a selected option attribute?

Re: html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann
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

RE: html:option - is there a selected option attribute?

2003-06-23 Thread Filip Polsakiewicz
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

RE: Do u know this bug ?

2003-06-23 Thread Tran Nguyen Thanh Bao
My jsp structure: + jsp\menu\index.jsp (frame of menudummy and menuredirect) HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html;CHARSET=Shift_JIS META HTTP-EQUIV=Pragma CONTENT=no-cache TITLEWebServe/TITLE /HEAD

Re: html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann
I am using DynaValidatorForm I will have to try to extend this and override the reset method and try what you suggested. Thanks for the info. Filip Polsakiewicz wrote: Your formbean will be resetted on the first use and then every time you submit your form. -Original Message-

RE: html:option - is there a selected option attribute?

2003-06-23 Thread PREETAM Balijepalli
hello u need to set the name attribute also in the html:option value= selected=selected/option so that reset works for u -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 4:56 PM To: Struts Users Mailing List Subject: Re: html:option

RE: accessing VO by next view...

2003-06-23 Thread Rajat Nayer
Hi Susan, Thanks a ton for this lead. I have done whatever was required as per Lesson 1 (for now). However when I go to http://localhost:8080/rr_lesson_1 after deploying the war downloaded from the site, I get the following error: Error: 500 Location: /rr_lesson_1/index.jsp Internal Servlet

Re: Building a link from a form

2003-06-23 Thread Eric Jain
How does one build simple html links that contain all parameters from a form? Thanks for all your helpful replies... Here is one solution: request.setAttribute(param_map, new HashMap(request.getParameterMap())); html:link action=/search name=param_map.../html:link Still, I'd prefer

reset of user inputs

2003-06-23 Thread raghu_c
Hi All, I have this curious problem with my struts jsps - Any help will be most appreciated. I have defined a few arraylists in my form beans that get populated on form POST and are displayed as the results . The form bean is in session scope and thus is recycled. The arraylists are populated

question in lookupdispatchaction

2003-06-23 Thread Frances Aleah Z. de Guzman
im using lookupdispatchaction with parameter handler action, in my jsp i have a html:submit property=actionbean:message key=log//html:sumbit my application works fine when i click the submit button, but how can i call the same actionforward in my lookupdispatchaction when i press the enter key?

Re: Building a link from a form

2003-06-23 Thread Kris Schneider
If you've got an action that fronts the JSP, use something like: request.setAttribute(paramMap, PropertyUtils.describe(form)); to dump a map of all the form properties into request scope. Then, in the JSP: html:link action=/search name=paramMap ... /html:link For an all-JSP solution, I guess

Re: question in lookupdispatchaction

2003-06-23 Thread Gemes Tibor
Frances Aleah Z. de Guzman rta: im using lookupdispatchaction with parameter handler action, in my jsp i have a html:submit property=actionbean:message key=log//html:sumbit my application works fine when i click the submit button, but how can i call the same actionforward in my

Re: Building a link from a form

2003-06-23 Thread Eric Jain
request.setAttribute(paramMap, PropertyUtils.describe(form)); One issue with PropertyUtils.describe is that it also adds a property 'class' to the map; this would probably have to be removed explicitely. For an all-JSP solution, I guess you could do: %@ page

Re: html:option - is there a selected option attribute?

2003-06-23 Thread Natalie D Rassmann
This isn't going to work or at least I am not sure how it will because it isn't a reset problem. In the formbean, I have as part of the property for the list what list item is selected. For example, I have a DynaValidatorForm property called changeType. changeType is of the type OptionsBean.

RE: html:option - is there a selected option attribute?

2003-06-23 Thread PREETAM Balijepalli
did that solve ure problem -Original Message- From: Natalie D Rassmann [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 6:03 PM To: Struts Users Mailing List Subject: Re: html:option - is there a selected option attribute? This isn't going to work or at least I am not sure how it

Re: Building a link from a form

2003-06-23 Thread Kris Schneider
The html:link name attribute is a key, not a Map instance. If you want to try to use the request's parameter map directly, I think you'd need something like: bean:page id=requestBean property=request/ html:link action=/search name=requestBean property=parameterMap ... /html:link Or: c:set

Re: question in lookupdispatchaction

2003-06-23 Thread Frances Aleah Z. de Guzman
i followed your advice but im encountering the same exception html:hidden property=methodbean:message key=Log//html:hidden On Monday 23 June 2003 07:57 pm, Gemes Tibor wrote: Frances Aleah Z. de Guzman rta: im using lookupdispatchaction with parameter handler action, in my jsp i have a

RE: [OT] caching strategy

2003-06-23 Thread Hookom, Jacob
LRU - Least Recently Used. You define your cache size and every time an object is created or grabbed from the cache, it gets promoted to the top of the cache, or you can have its timestamp reset to 'now'. As objects are created, you check to see if the cache is too big, if so, take the oldest or

Re: question in lookupdispatchaction

2003-06-23 Thread Gemes Tibor
Frances Aleah Z. de Guzman rta: i followed your advice but im encountering the same exception html:hidden property=methodbean:message key=Log//html:hidden Accidentally you sent a mail directly to me. There is no reason to use bean:message in hidden tags. Have you tried using a required

RE: bean:define in weblogic 6.1 SP5

2003-06-23 Thread Piper, James D CECOM SEC EPS
hmmm, looks like we both are having the same problems with bean:define in WLS 6.1 sp5. I posted about my problem on Friday titled: problem with bean:define and wls 6.1 sp5 when using include. Same situation as you in that after the define the script variable is not accessible. (I didn't have my

Re: Building a link from a form

2003-06-23 Thread Eric Jain
The html:link name attribute is a key, not a Map instance. If you specify a 'name' but no 'property', it is in fact considered to be the map instance itself. Confusing indeed. What is it you want done in JSP/XML? %@ page import=org.apache.commons.beanutils.PropertyUtils % jsp:useBean

RE: [OT] caching strategy

2003-06-23 Thread Kris Schneider
And as the Javadoc for SoftReference hints at, you can even combine strategies by maintaining strong references to the most recently used items to lock them in the cache and letting GC take care of when to dispose of the least recently used items. Quoting Hookom, Jacob [EMAIL PROTECTED]: LRU -

Re: bean:define in weblogic 6.1 SP5

2003-06-23 Thread Nicolas De Loof
This WLS bug seems to be solved by patch CR105772. We recieved it from BEA ant are curretly testing it on our application. I can send it to you if you need (have no doc about what bug(s) is corrected) Nico. hmmm, looks like we both are having the same problems with bean:define in WLS 6.1

confirm

2003-06-23 Thread rutis
confirm _ Do You Yahoo!? La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx - To unsubscribe, e-mail: [EMAIL PROTECTED] For

confirm

2003-06-23 Thread rutis
confirm _ Do You Yahoo!? La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Building a link from a form

2003-06-23 Thread Kris Schneider
Not to beat the proverbial dead horse, but the name attribute is always a String and it's used as a key to do a lookup of a scoped attribute. If you only specify name, then the bean stored under that key is used directly as the Map. If you also specify property, then the bean stored under that key

RE: html:option - is there a selected option attribute?

2003-06-23 Thread Wendy Smoak
Natalie wrote: I will use the selectedId from the OptionsBean to set the selected option in the list. How do I do this?? I don't think the overriding the reset method is the answer?? In the Action's execute method, set the value of that Form bean property to whatever you want it to be.

Re: Building a link from a form

2003-06-23 Thread Eric Jain
html:link action=/search name=%= request.getParamerMap() % It'll blow up during page compilation. Should have mentioned that I am using the html-el tags, where you can of course do things such as html:link action=/search name=param.../html:link Sorry for the confusion! -- Eric Jain

DispatchAction and input

2003-06-23 Thread Joel Hainley
I'm confused, and i'm hoping someone can help me? I am trying to use the validate method to validate my input however when I do this i start getting an error No Input Attribute For mapping path /category. I understand that an input parameter is required for the action, however using an input

RE: Validator with LookupDispatchAction and Tiles

2003-06-23 Thread Sandeep Takhar
Next app I build I am going to try Ted's method. I haven't used it yet, but I have read about it. Previously I did what you don't like to do which is to have a create mapping and an edit mapping which is separate. For the application we had multiple pages frequently so our beans were session

RE: Validator

2003-06-23 Thread Kamholz, Keith (corp-staff) USX
Where can I find the step by step instructions that you are referring to? I've tried a few examples, maybe the one you are referring to would help me out more. Thanx. ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: Sergey Smirnov [mailto:[EMAIL PROTECTED] Sent:

RE: DispatchAction and input

2003-06-23 Thread Wendy Smoak
Joel wrote: i start getting an error No Input Attribute For mapping path /category. I have the following in my struts-config.xml file : action path=/Category Did you copy/paste the error message? You've got a lowercase 'c' category in the error message and an uppercase 'C' Category in the

Re: DispatchAction and input

2003-06-23 Thread Dirk Markert
Hallo Joel, *** JH I'm confused, and i'm hoping someone can help me? JH I am trying to use the validate method to validate my input however when I JH do this i start getting an error No Input Attribute For mapping path JH /category.

RE: DispatchAction and input

2003-06-23 Thread Joel Hainley
I guess that's the root of my problem. The place that it should go to when validation fails is different for each method. I would always want it to go back to the page that was submitted to produce the error, so that the error can be displayed to the user and it can be corrected and resubmitted.

Re: Passing multiple ActionForms (at the same time) to an Action

2003-06-23 Thread Sandeep Takhar
Interesting use of helper beans... Ted can you comment on the number of options available for multi-page flows. Could these helper beans help to provide request scoped beans across multiple screens without the need to save between each page? 1. session-scoped beans 2. request scoped beans with

RE: DispatchAction and input

2003-06-23 Thread Wendy Smoak
Joel wrote: I guess that's the root of my problem. The place that it should go to when validation fails is different for each method. I would always want it to go back to the page that was submitted to produce the error I've never tried this, but... 'ActionMapping mapping' is part of the

Re: Access to MessageResources instance

2003-06-23 Thread Dan Tran
MessageResources messages = this.getResources(request); - Original Message - From: Duma Rolando [EMAIL PROTECTED] Newsgroups: Struts Sent: Monday, June 23, 2003 3:29 AM Subject: Access to MessageResources instance I would like to know if it's possible to access an existing struts

Commons Logging

2003-06-23 Thread PREETAM Balijepalli
Hi I need to know hot to use struts commons logging along with log and what all to be done .. kindly guide me in points thanks a lot in advance cheers Pretax - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: DispatchAction and input

2003-06-23 Thread Joel Hainley
H I suppose that setting place to go back to in the validate() method would work, except that I have defined a single actionForm class that i utilize in all pages, another benefit of dispatch actions and this would require me to determine what action i was validating before making a

RE: Validator

2003-06-23 Thread Kamholz, Keith (corp-staff) USX
Also, when using the validator, I have to set validate=true for each applicable action in my struts config.xml right? - Keith -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 10:27 AM To: 'Struts Users Mailing List' Subject:

very strange errors (no collection found series)

2003-06-23 Thread meissa . Sakho
I'm having a very strange behaviour of my application. It has been tested in pre-production environnement and everything worked fine. When in production, it works but no fine at all ! The application works well for about five or six days and when we try to access some pages, we get a no No

RE: Validator

2003-06-23 Thread David Graham
Setting validate=true for an action means that the form bean's vaildate() method will be called. This will invoke the Struts Validator if you're using ValidatorForm. David Also, when using the validator, I have to set validate=true for each applicable action in my struts config.xml right? -

RE: Validator

2003-06-23 Thread Chen, Gin
Or you can call validate directly from your action. -Tim -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:07 AM To: 'Struts Users Mailing List' Subject: RE: Validator Also, when using the validator, I have to set

RE: DispatchAction and input

2003-06-23 Thread Larry Zappeterrini
You have to define separate action mappings for each forward in order for the validation to behave properly. Each mapping needs its own input forward to use Struts' validation framework. This seems to be a recurring problem that new users attempting to utilize DispatchAction with validation meet

RE: Logic:Iterate - Pls Help.........

2003-06-23 Thread Poon, Johnny
You might need to add this before your logic:iterate: bean:define id=myCollectionElement name=list / -Original Message- From: Shashank Dixit [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2003 7:44 AM To: Struts Users Mailing List Subject: Logic:Iterate - Pls Help. Hello All

Re: [OT] Question About Second Pass Rendering

2003-06-23 Thread Jing Zhou
Creating custom actions (JSTL/Struts tags) in JSP pages on the fly is really a bad ideas as suggested by other Struts experts. From my experience, the servlet container will invoke a Java compiler to compile every newly created JSP page, which will take 3 to 10 seconds or more. Assume your

Where to do TextConversion?

2003-06-23 Thread Aaron Longwell
Struts Users, I'm adding some currency fields to an ActionForm in struts. The data is stored as float in the database. I'm wondering where to do conversion between a $6.70 that's displayed to the user on the form, and the 6.7 that's stored in the database. Should I use the java.util classes in

RE: Where to do TextConversion?

2003-06-23 Thread Mike Jasnowski
How about the JSLT formatting tags? They can do the type of conversion you describe, in the JSP. Which I think is more desireable than having your actionform or action know about the formatting (which in this case is more presentation) -Original Message- From: Aaron Longwell

Passing Information with forward

2003-06-23 Thread Matt E
Hello All. I'm running up a problem and I'm not sure how to solve it. In my application, there is an action called PLAReview. An e-mail is sent to someone telling them to click on a link that looks like this: http://www.whatever.com/PLAReview.do?id=1 The Action PLAReview uses that ID number

RE: Where to do TextConversion?

2003-06-23 Thread Hookom, Jacob
Your ActionForms should never be passed to your DB layer... ActionForms should have strict String attributes and in your Action, take care of mapping your Business Beans to your ActionForms and visa versa-- two similar, but separate objects. PropertyUtils works nicely. Jacob -Original

Re: [OT] caching strategy

2003-06-23 Thread Erik Price
Thanks Jacob, that is very informative. I will look further into these techniques, although you've pretty much explained it. Erik Hookom, Jacob wrote: LRU - Least Recently Used. You define your cache size and every time an object is created or grabbed from the cache, it gets promoted to the

Re: Where to do TextConversion?

2003-06-23 Thread Aaron Longwell
These are data-entry forms so the user is going to be entering a string that may look like: 6.7 6.70 or $6.70 I need that representation (as a string) in the ActionForm but it needs to convert to a float before going into (and out of, on pre-population) the database. Mike Jasnowski

RE: Passing Information with forward

2003-06-23 Thread Hookom, Jacob
try a bean:write into a normal hidden field, you can intermix html:* and form,input, etc tags on your pages. -Original Message- From: Matt E [mailto:[EMAIL PROTECTED] Sent: Monday, June 23, 2003 11:03 AM To: [EMAIL PROTECTED] Subject: Passing Information with forward Hello All. I'm

Struts-menu

2003-06-23 Thread Mykola Ostapchuk
Hello, I couldn't get any response from Struts-menu mail list, so I'm wandering if somebody here could help me. I'm new to struts-menu. I want to create a role-based expandable menu. I have an existing system with Roles DB table. How can I specify menu permissions for particular Role and save it

RE: Struts-menu

2003-06-23 Thread Raible, Matt
The easiest thing to do is to use container-managed authentication - i.e. Tomcat's JDBCRealm. Since you'll have to hard-code your roles in web.xml - why not code them in menu-config.xml as well. Of course, you could allow all roles by using * in web.xml. This is the way I've done it and it

Re: Where to do TextConversion?

2003-06-23 Thread Aaron Longwell
I'm not really considering sending the action form to the db tier. I am using Strings for all properties in the ActionForm I'm considering adding getter methods to the ActionForm to clean up the code in my Action. PropertyUtils is a Struts class, right? Will it do currency text-float

RE: Where to do TextConversion?

2003-06-23 Thread Bailey, Shane C.
Isn't an Action part of the presentation? It has a handle to HttpServletRequest and HttpServletResponse. If I had EJB Session (or session like bean) I would call that from an Action and I could call that from a Swing program as well. I wouldn't call the Action class from a Swing program

RE: Where to do TextConversion?

2003-06-23 Thread Hookom, Jacob
PropertyUtils is part of the commons-beanutils lib, included in the Struts release. It will require some testing, but you can do stuff like: OrderVO order = new OrderVO(); PropertyUtils.copyProperties(actionForm, order); Do some JUnit tests locally to make sure it does the conversions properly,

Re: [tiles] programatically putting a definition into a layout

2003-06-23 Thread William Salvucci
tiles context? How do I get that? The logon.jsp has a struts html:form attribute that is associated to the action class. [EMAIL PROTECTED] 06/23/03 06:05AM William Salvucci wrote: with the following tiles-def, I can forward to layout.main and everything is fine: definition name=layout.main

cancel button

2003-06-23 Thread imran ali
Hi I have a cancel button in my jsp. It is of submit type. I want to go to previous page on hitting this button. How can I do it in pure struts way. I am not allowed to use history.back etc. As cache may be disturbed by other processes. Please help Thanks. Imran

Re: cancel button

2003-06-23 Thread James Mitchell
On Monday 23 June 2003 12:16, imran ali wrote: Hi I have a cancel button in my jsp. It is of submit type. I want to go to previous page on hitting this button. How can I do it in pure struts way. I am not allowed to use history.back etc. As cache may be disturbed by other processes.

  1   2   >