Multibyte string Tomcat ,struts IE

2004-04-23 Thread Kiran Kumar
Hi All, I need help on sending multibyte characters in URL using html:link , we are following the steps mentioned below i have searched for the information on google but could not come across anything helpful , (it is also mentioned in some post that IE adds its own encoding when the data is

Differences Between Struts1.1 and Struts1.2

2004-04-23 Thread ganesh g
Hi List, Will u pls tell me Differences Between Struts 1.1 and Struts 1.2 Regards & Thanks Ganesh - Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25¢

nested tags and java.util.List

2004-04-23 Thread Ivan De La Pena
i have extended DynaValidatorForm and created form bean that holds a List. It looks like this : beans is a List of type Bean which has only two variables name , age and the getter/setters for these two variables. I am using lazy list to populate this List. The business re

Re: Custom Request Processor is failing at startup.

2004-04-23 Thread Niall Pemberton
I believe that the will try to set a property in the ControllerConfig class. So you would need to extend ControllerConfig and put your "ignoreSessionCheckPath" property with its getters/setters in that class. Then you in the struts-config.xml you can configure it to use your custom ControllerConf

Custom Request Processor is failing at startup.

2004-04-23 Thread Josh Holtzman
I have created a custom RequestProcessor that extends the default RequestProcessor. I would like to initialize it with a parameter from config file. Using the element I've done the following in my config file: And within my Request Processor: private String ignoreSe

RE: generate struts ActionForm & strut's jsp from hibernate's map ping

2004-04-23 Thread David Friedman
Nick, I'm new to Xdoclet but in my class I used a @struts.form tag and it only seemed to add entries in the struts-config.xml file Xdoclet created. You sound like you're suggesting Xdoclet can make a String-based derived form class based on my bean/java class. Can you provide and example? Regar

Re: How to get a value from the from bean

2004-04-23 Thread Riyad Kalla
If you are trying to print out the value: where nameOfForm is the name of the form defined in your struts-config and passed in via the 'name' argument in the action for this page. And use bean:define to create a page-scoped bean if you just want to use it places (like in calculations and such).

[Struts Workflow] WorkflowViolation Help

2004-04-23 Thread Derek
I have everything working using the Struts Workflow extension except that I am having problems with the workflow violation mechanism. I have a wizard consisting of 6 pages. The workflow through the entire 6 pages is assigned a single primary workflow value. So, I made one violation mapping to ha

How to get a value from the from bean

2004-04-23 Thread Billy Ng
In the JSP, I need to a get a value from a form bean's property. How can I do it in the JSP? I tried to pageContext.findAttribute("org.apache.struts.taglib.html.BEAN") to get the form bean, but it returned me null. Please help! Billy Ng This

Re: Benefits of LookupDispatchAction without parameter nonsense

2004-04-23 Thread Riyad Kalla
Everyone thank you for the feedback, actually I tried the MappingDispatch and it seems to be just what I was looking for. You specify the method name IN the parameter... so you can set say 3 actions, with different paths, all pointing to the same type, and you specify the method to call in the p

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Michael McGrady
For the tags, I would put in "host" and "eclipse_banner", Herbert. At 11:23 AM 4/23/2004, Hubert Rabago wrote: Well, I'm not sure the Struts tags (or Bean/PropertyUtils) can evaluate SiteConstant.HOST. The last time I remember that somebody asked about a similar situation, I think the suggestion

Re: Benefits of LookupDispatchAction without parameter nonsense

2004-04-23 Thread Niall Pemberton
Don't you still have to set the "parameter" using the MappingDispatchAction class? One way to do what you want (i.e. not specify the parameter) is to create your own custom ActionMapping and override the getParameter() method with some logic to look at the path and return the parameter based on it

[OT]

2004-04-23 Thread Oliver Thiel
Cool again an OFF-Topic Friday ... good chance to ask if some one knows a good tool to auto-archive my CD's ... I've got a lot of CD's with a lot off different data ... and I'm searching for a good tool that reads in the content structure and stores it in some kind of DB ... ok .. google ... bu

Re: Validator with DynaValidatorForm

2004-04-23 Thread Niall Pemberton
Try Niall - Original Message - From: "Mike Zatko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 23, 2004 11:08 PM Subject: Validator with DynaValidatorForm > Hello, >I have a DynaValidatorForm called EditProfileForm defined with a Form > Property of "

RE: Benefits of LookupDispatchAction without parameter nonsense

2004-04-23 Thread Josh Holtzman
I'm a newbie, but how about taking this approach in struts 1.1? I imagine that you could create a LookupDispatchAction with a path mapping of /MyLDA and then create individual mappings for each LDA function? Assuming your ActionServlet maps to .oxa, you could have forward actions access the fo

RE: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread Neale, Bennett
Well, I used to be when I worked at SquareSoft (makers of Final Fantasy series). Tribes was a great game. I'm still playing Wolfenstein. After getting a little older and out of the video game industry my interest in games has somewhat curtailed. I guess too much reading to stay on top of things. :(

RE: Benefits of LookupDispatchAction without parameter nonsense

2004-04-23 Thread Joe Hertz
1.2 Gives you MappingDispatchActions The ActionMapping Path's will be different, but you can still consolidate everything into one class. /ObjectSave -> ActionClass.save() /ObjectEdit -> ActionClass.edit() You do this with the parameter attribute for each individual mapping. You use the name o

Re: Benefits of LookupDispatchAction without parameter nonsense

2004-04-23 Thread Riyad Kalla
Hrrm.. I just found MappingDispatchAction and that seems to be exactly what I was looking for... has anyone used this class? On Friday 23 April 2004 03:00 pm, Riyad Kalla wrote: > Hey guys, > After playing with the LookupDispatchAction most of the day and converting > over some existing functiona

Validator with DynaValidatorForm

2004-04-23 Thread Mike Zatko
Hello, I have a DynaValidatorForm called EditProfileForm defined with a Form Property of "emails". The type for the property is EmailAddress[] and has no size property which means I generate it dynamically. The EmailAddress bean has a property of "address", denoting the actual value of the em

Benefits of LookupDispatchAction without parameter nonsense

2004-04-23 Thread Riyad Kalla
Hey guys, After playing with the LookupDispatchAction most of the day and converting over some existing functionality to using it, I've figured out that i love the consolidation of functionality into 1 class, but the problems I've run into (non stop) dealing with the parameter and making sure th

Re: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread bOOyah
Neale, Bennett wrote: I have the wireless bluetooth mouse from M$. It's cool for me because I have it hooked up to my pc at work and on my laptop at home. The thing that sucks is exactly what you hit on, the batteries. I've never owned a wireless mouse before but if I could get 6 months out of t

Re: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread bOOyah
Riyad Kalla wrote: "Power User" w.r.t. to mice gives me a mental image of someone grunting and sweating while muscling their mouse around their desk... That would be Steve Ballmer. -- bOOyah - To unsubscribe, e-mail: [EMAIL PRO

Re: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread Riyad Kalla
"Power User" w.r.t. to mice gives me a mental image of someone grunting and sweating while muscling their mouse around their desk... On Friday 23 April 2004 02:26 pm, Neale, Bennett wrote: > Yeah, microsoft touted that the batteries should last over 6 months. > I dunno, maybe I'm some type of po

RE: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread Neale, Bennett
Yeah, microsoft touted that the batteries should last over 6 months. I dunno, maybe I'm some type of power user ;). B -Original Message- From: Riyad Kalla [mailto:[EMAIL PROTECTED] Sent: Friday, April 23, 2004 2:20 PM To: Struts Users Mailing List Subject: Re: [VERY OT] Wireless Mice...wh

Re: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread Riyad Kalla
On Friday 23 April 2004 02:21 pm, bOOyah wrote: > Barett McGavock wrote: > > I agree with you 100% and share your concerns about the wireless mice. I > > am shopping for a non-wireless mouse for myself, as well. I'm looking at > > products in stores from both Microsoft and Logitech that are not > >

Re: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread bOOyah
Barett McGavock wrote: I agree with you 100% and share your concerns about the wireless mice. I am shopping for a non-wireless mouse for myself, as well. I'm looking at products in stores from both Microsoft and Logitech that are not wireless. I presume that these are not the newest-out products.

Re: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread Riyad Kalla
Oh that sucks... I thought there was a docking station, guess not! 6 weeks... that's kind of rediculous... common MS! Put a digital camera battery in it or something and give us a recharger. On Friday 23 April 2004 02:19 pm, Neale, Bennett wrote: > I have the wireless bluetooth mouse from M$. >

Re: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread Riyad Kalla
You can't go wrong with an IntelliMouse Explorer 3.0 I personally don't like Logitec, but that's only cause I've had a series of bad luck with their opticals (keep crapping out). On Friday 23 April 2004 02:29 pm, Barett McGavock wrote: > I agree with you 100% and share your concerns about the wi

RE: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread Neale, Bennett
I have the wireless bluetooth mouse from M$. It's cool for me because I have it hooked up to my pc at work and on my laptop at home. The thing that sucks is exactly what you hit on, the batteries. I've never owned a wireless mouse before but if I could get 6 months out of the batteries I'd be ha

Re: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread Riyad Kalla
On Friday 23 April 2004 02:11 pm, bOOyah wrote: > It's Friday. > > I need to buy a replacement for my borked Intellimouse Explorer. It's > starting to issue double-click events, which is pretty disconcerting. > At least, I _hope_ it's my mouse, otherwise my RSI has taken a nasty > turn for the wor

RE: [VERY OT] Wireless Mice...what gives??

2004-04-23 Thread Barett McGavock
I agree with you 100% and share your concerns about the wireless mice. I am shopping for a non-wireless mouse for myself, as well. I'm looking at products in stores from both Microsoft and Logitech that are not wireless. I presume that these are not the newest-out products. B > -Original Mess

[VERY OT] Wireless Mice...what gives??

2004-04-23 Thread bOOyah
It's Friday. I need to buy a replacement for my borked Intellimouse Explorer. It's starting to issue double-click events, which is pretty disconcerting. At least, I _hope_ it's my mouse, otherwise my RSI has taken a nasty turn for the worse. I'm a fan of Microsoft's mice because the devices i

speaking of log4j......

2004-04-23 Thread Nathan Maves
I just starting getting this error today but only when I redeploy my struts app. java.lang.ThreadDeath at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1270) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader .java:1

RE: [OT - OT - Friday!!] Eclipse, Struts app and log4j

2004-04-23 Thread Geeta Ramani
Mike, Colin, Hubert: Thanks very much for your replies! I now have my struts app log4j integrated into eclipse. :)) To help eliminate future headaches, here's a link that helped me: http://www.mail-archive.com/[EMAIL PROTECTED]/msg01266.html i added the Log4jInit servlet, updated web.xml, rebu

Re: 1.2 Issues

2004-04-23 Thread Niall Pemberton
Joe Hertz wrote: > 1) I'm finding that calls to Action.getServlet() are returning null. I > can't imagine what I've done to cause this. If so, what should I be > looking for? Don't understand why this happens AFAIK the only time the servlet is set to null in an Action is when the RequestProcess

RE: [OT - OT - Friday!!] Eclipse, Struts app and log4j

2004-04-23 Thread Geeta Ramani
Hey i can't belive this! the thought actually crossed my mind that i may want to remove this jar called commons-logging which, yes, is very much in my class path!! Not that i did anything about it of course. Ok, I guess I have enough things to try now.. (However, I'll be back mewling if nothing

RE: [OT - OT - Friday!!] Eclipse, Struts app and log4j

2004-04-23 Thread Geeta Ramani
Ah yes, i thought of that! I fixed build.xml so the properties file did get copied over on rebuild-all. And yes, i checked and it is there. So really eclipse ought to find it.. Maybe i do need to create that Log4jPluginAction that Mike Zatko gave me. Just can't believe it should be this involve

Re: [OT - OT - Friday!!] Eclipse, Struts app and log4j

2004-04-23 Thread Hubert Rabago
Any chance you're using Log4j under a commons-logging interface? I'm forced to use WSAD, which is Eclipse underneath, at work, but I'm not sure if the solution that worked for me with work for you. I'm thinking since WSAD & Eclipse are both IBM (c'mon, it's Friday, no flaming), they both prefer th

Re: [OT - OT - Friday!!] Eclipse, Struts app and log4j

2004-04-23 Thread Colin Kilburn
Did you actually put log4j.properties in your WEB-INF/classes (as stated below) or in your src directory? ... a build would blow it away if it's in the classes (because it's an output dir). HTH, Colin Geeta Ramani wrote: Already did that: that's how the Java app worked ok I guess.. But cannot

Re: [OT - OT - Friday!!] Eclipse, Struts app and log4j

2004-04-23 Thread Mike Zatko
I was being lazy and didn't read your whole post. Basically that error is happening because you need to initialize log4j which you probably have figured out. Usually you initialize lo4j through an xml or properties file, and if it can't find and load these files before you actually try to log s

RE: [OT - OT - Friday!!] Eclipse, Struts app and log4j

2004-04-23 Thread Geeta Ramani
Already did that: that's how the Java app worked ok I guess.. But cannot seem to amke it work for my struts app..(:( But thanks for the reply! Any other suggestions? > -Original Message- > From: Mike Zatko [mailto:[EMAIL PROTECTED] > Sent: Friday, April 23, 2004 3:24 PM > To: Struts Use

Re: [OT - OT - Friday!!] Eclipse, Struts app and log4j

2004-04-23 Thread Mike Zatko
1. Right click project -> Properties 2. Select Java Build Path 3. Click Libraries Tab 4. Add Log4j jar Geeta Ramani wrote: Hello all: I have always worked with Sun Studio One and making log4j work was a piece of cake. Throw the jar in the classpath, put the log4j.properties in WEB-INF/classes, re

[OT - OT - Friday!!] Eclipse, Struts app and log4j

2004-04-23 Thread Geeta Ramani
Hello all: I have always worked with Sun Studio One and making log4j work was a piece of cake. Throw the jar in the classpath, put the log4j.properties in WEB-INF/classes, restart tomcat and bob's your uncle. However the company i work for now uses eclipse and I assumed (wrongly as it turns ou

Re: How to forward from one LookupDispatchAction to another LDA

2004-04-23 Thread bOOyah
Riyad Kalla wrote: booya I really appreciate the code snippets and explination! I hadn't gotten involved in ActionForwards and appreciate you shedding light on the situation for me. No problems Riyad! I'm glad to give back to this list after sucking it dry for three months ;-) -- bOOyah -

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Hubert Rabago
Well, I'm not sure the Struts tags (or Bean/PropertyUtils) can evaluate SiteConstant.HOST. The last time I remember that somebody asked about a similar situation, I think the suggestion was to provide accessors for them. I know, it ain't what you wanna hear, but I guess they just weren't written

Re: How to forward from one LookupDispatchAction to another LDA

2004-04-23 Thread Riyad Kalla
booya I really appreciate the code snippets and explination! I hadn't gotten involved in ActionForwards and appreciate you shedding light on the situation for me. Best, Riyad On Friday 23 April 2004 09:34 am, bOOyah wrote: > Riyad Kalla wrote: > > > > > Does anyone know how I would be able to

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Michael McGrady
The value of SiteConstant.HOST is just "host" and is merely the session attribute key for the Host object, Herbert. I could have just put in "host" and "ecliplse_banner" but I have this fear of hard coding. LOL Does that change your thoughts? At 09:29 AM 4/23/2004, Hubert Rabago wrote: Those

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Michael McGrady
Thanks, Herbert, Isn't this solution supposed to be the standard solution as shown in the documentation? Here is what the documentation on mapped properties says: The idea of "mapped properties" as opposed to "indexed properties" is that the property represents a "map" type, as opposed to an a

1.2 Issues

2004-04-23 Thread Joe Hertz
1) I'm finding that calls to Action.getServlet() are returning null. I can't imagine what I've done to cause this. If so, what should I be looking for? 2) The following Snippet of code compiled as of the 3/27 Nightly. DynaActionFormClass dynaClass = DynaActionFormClass.createDynaActionFormClass(

Re: how to do "

2004-04-23 Thread Henrique VIECILI
use the same name you assigned to the form in struts-config.xml form-bean in struts-config.xml in the jsp file note the form.myForm must be assigned to the action in the Henrique Viecili - Original Message - From: "Julia Weaver" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <

RE: JSTL Functions

2004-04-23 Thread Avinash Gangadharan
You're right Bill, I figured this out yesterday as I was looking at my web.xml. Thanks Avinash -Original Message- From: Bill Siggelkow [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 7:01 PM To: [EMAIL PROTECTED] Subject: Re: JSTL Functions Make sure that the DOCTYPE for your

Re: How to forward from one LookupDispatchAction to another LDA

2004-04-23 Thread bOOyah
Riyad Kalla wrote: UPDATE: Upgraded my Struts install to nightly build and now the code snippet below works. I'm still curious if anyone knows how one LDA can forward to another (or the same) LDA, even if it takes manually setting the parameter value (how?) protected ActionForward unspecified

Re: How to forward from one LookupDispatchAction to another LDA

2004-04-23 Thread bOOyah
Riyad Kalla wrote: Does anyone know how I would be able to forward from one method in an LDA to another method in the same LDA (or any other LDA for that matter...)? I do exactly this in my own apps. I use Struts forward Actions in my struts-config. What about something like this? (I'm assu

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Hubert Rabago
Those tags are meant to work with JavaBeans-style classes. I think there's been lots of questions about accessing stuff like SiteConstant.HOST and SiteConstant.ECLIPSE_BANNER, but I don't remember seeing a solution for that. One way around it (not that it's the best way) is to provide accessors t

Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL?

2004-04-23 Thread Niall Pemberton
Ha, ha - you have to stand firm mate ;-) - having said that if my wife says "down tools" I do too - PDQ! The ActionMessages class and tag are new versions which it seems are there to replace ActionErrors and so I guess they are the future. So far I haven't got round to moving over to them yet bu

how to do "

2004-04-23 Thread Julia Weaver
Hi, I get this error massage: Cannot find bean form in any scope' in my jsp file: What attribute should for name? How I can do "http://photos.yahoo.com/ph/print_splash - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: How to forward from one LookupDispatchAction to another LDA

2004-04-23 Thread Riyad Kalla
UPDATE: Upgraded my Struts install to nightly build and now the code snippet below works. I'm still curious if anyone knows how one LDA can forward to another (or the same) LDA, even if it takes manually setting the parameter value (how?) Thanks! Riyad Riyad Kalla wrote: UPDATE: I just tried d

Re: Memory Leak issues

2004-04-23 Thread dennis . graham
JProbe: http://www.quest.com/jprobe/ "Guillermo Vasconcelos" <[EMAIL PROTECTED]> 04/23/2004 12:49 PM Please respond to "Struts Users Mailing List" To: <[EMAIL PROTECTED]> cc: Subject:Memory Leak issues Hi, I have a problems with leaked memory in my weba

Memory Leak issues

2004-04-23 Thread Guillermo Vasconcelos
Hi, I have a problems with leaked memory in my webapp using struts. It starts fine, but over a few days of running it becomes slower and gives bad performance. Its memory consumption grows, never releasing part of it... ¿Which tools do you recomend to try to eliminate this memory leak? Thanks a lo

Re: How to forward from one LookupDispatchAction to another LDA

2004-04-23 Thread Riyad Kalla
UPDATE: I just tried doing what I thought would be ugly: protected ActionForward unspecified( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return showList(mapping, form, request, res

How to forward from one LookupDispatchAction to another LDA

2004-04-23 Thread Riyad Kalla
Hello, I have a situation where my LookupDispatchAction (LDA) has all my functionality for a particular entity defined in it (lets say "Product"). So that includes adding, removing, listing, editing and changing their order (moving them visually up/down in the table they are listed in). So far

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Michael McGrady
Thanks, Herbert, let me state more particularly what I am doing. I want to use Struts tags rather than JSP. I know how to do things in JSP easily. With the tags, outside of ActionForms, I am confused. In JSP, I get my results as follows: <% Host host = (Host)session.getAttribute(SiteConstan

RE: OT/ CalendarTag like behaviour

2004-04-23 Thread Lowery, Mat
I recently wrapped this JavaScript calendar with a custom tag: http://sourceforge.net/projects/jscalendar/ or here's the author's site: http://dynarch.com/mishoo/calendar.epl -Original Message- From: Marco Mistroni [mailto:[EMAIL PROTECTED] Sent: Friday, April 23, 2004 10:55 AM To: 'S

RE: OT/ CalendarTag like behaviour

2004-04-23 Thread Geeta Ramani
and if you cannot find it, contact me offlist. I know I have an implementation somewhere; i can look for it over the weekend. :) > -Original Message- > From: Paul McCulloch [mailto:[EMAIL PROTECTED] > Sent: Friday, April 23, 2004 11:04 AM > To: 'Struts Users Mailing List' > Subject: RE: O

RE: OT/ CalendarTag like behaviour

2004-04-23 Thread Paul McCulloch
I'm a big fan of http://www.mattkruse.com/javascript/calendarpopup/ It's primarily a pure client side JS implementation but there is (was) also a prototype JSP custom tag implentation - search the archives of this list to find the URL. Paul > -Original Message- > From: Marco Mistroni [ma

Re: setLocale 2.0

2004-04-23 Thread Hernan Soulages
Problem solved! It was all a programming error. We added session.invalidate() after the setLocale. That made the default Locale to be used. Good to know that setLocale(myRequest, locale) doesn't set the myRequest locale (as I assumed), but the Globals.LOCALE_KEY object in the session. Thanks for t

RE: html:select - can't display default option

2004-04-23 Thread Paul McCulloch
A Boolean has two states, true & false, but you want to represent this through a three state list - this mismatch is the cause of your problem. Why not expose your boolean bean property via String accessors using "true", "false" and "null"? Paul > -Original Message- > From: Matthew Hegar

OT/ CalendarTag like behaviour

2004-04-23 Thread Marco Mistroni
Hi all, I know this is off-topic but I m sure someone on This list had this issue to face already I have to implement a 'calendar like' tag (u know, those kind of Tags that when u click on the button a small popup window is shown, you Select the day and by clicking on the day you will retur

RE: generate struts ActionForm & strut's jsp from hibernate's mapping

2004-04-23 Thread Joe Hertz
Look a FormDef, it's a tool to generate DynaBeans based on your Business Classes. I'm using it with Hibernate. It required some minor changes to get that to happen, and I'm not promising their all there yet, but it's worth looking at. > -Original Message- > From: Dionisius Purba [mailto

RE: use strings for form beans (was: html:select - can't display default option)

2004-04-23 Thread Hubert Rabago
Form values really should be strings. There are reasons for this, and they've been discussed lots of times in this list already. Use Strings for your form beans and match the value in the form bean with the value in the HTML form. Actually, your scenario is an illustration of why they really sho

RE: html:select - can't display default option

2004-04-23 Thread Matthew Hegarty
> If you want the option with a '' value to be selected, set the corresponding > property in your bean to ''. I can't because the type is Boolean. I was wanting to display the empty option if the value returned is null. - To unsu

RE: html:select - can't display default option

2004-04-23 Thread Hubert Rabago
--- Matthew Hegarty <[EMAIL PROTECTED]> wrote: > Thanks for the responses. > Still not quite there though... > > Paul wrote: > > Try not explicitly setting the value attribute. > > This works insofar as the drop-down displays correctly if the value is true > or false, but if the value is null, t

RE: html:select - can't display default option

2004-04-23 Thread Matthew Hegarty
Thanks for the responses. Still not quite there though... Victor wrote: > > ... > This has the effect of always defaulting to the empty string option, regardless of the value of 'myValue'. Paul wrote: > Try not explicitly setting the value attribute. This works insofar as the drop-dow

Re: setLocale 2.0

2004-04-23 Thread Hubert Rabago
I recently used with locale in the way you're describing, and it picked up the locale that's set as Globals.LOCALE_KEY. If you want, you can get the code in http://www.rabago.net/struts/formdef/downloads.htm. Look for the locale.war sample app. Hubert --- Hernan Soulages <[EMAIL PROTECTED]> wr

Re: html:select - can't display default option

2004-04-23 Thread Victor R. Cardona
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthew Hegarty wrote: | Hi all | | I am using , and trying to get the drop-down to default to a Boolean value in a bean, ie true, false, or blank if the bean is null. | My bean (MyBean) contains the method getMyValue() which returns a Boolean object. |

Re: setLocale 2.0

2004-04-23 Thread Hernan Soulages
Seems your right. (Locale) request.getSession().getAttribute(Globals.LOCALE_KEY); does give me the Locale I just set. My problem is that I wan't to programatically set the language for all the aplication, including the in the JSPs. I thought setLocale() did the trick. How do I set de Locale for th

RE: html:select - can't display default option

2004-04-23 Thread Paul McCulloch
The html:select tag should do this automatically for you I think. Try not explicitly setting the value attribute. Looking at your code I'm surprised it works - you can;t nest jsp tags inside other tags as far as I know (or is that a JSP 2 feature?). Paul > -Original Message- > From: Matt

RE: problems with onclick=submit()

2004-04-23 Thread Jarnot Voytek Contr AU/SC
weird, how about href="javascript:submit(); return(false);" > -Original Message- > From: Jaakko Rytinki [mailto:[EMAIL PROTECTED] > Sent: Friday, April 23, 2004 8:19 AM > To: 'Struts Users Mailing List' > Subject: RE: problems with onclick=submit() > > > Yup, javascript:void(0)" somehow

RE: Where can I catch FileUploadException?

2004-04-23 Thread Jing Teng
Martin, Thanks for the reply. If I throw a ServletException in my Action, my app catches it. The question here is if there is a way to catch this FileUploadException wraped as a ServletExcption, maybe tweaking the web container somehow? I am using Websphere 5.0.2 Jing Teng -Original Mess

RE: problems with onclick=submit()

2004-04-23 Thread Jaakko Rytinki
Yup, javascript:void(0)" somehow prevents the whole form from being submitted. ( the link doesn't do anything at all ) -Original Message- From: Jarnot Voytek Contr AU/SC [mailto:[EMAIL PROTECTED] Sent: 23. huhtikuuta 2004 16:06 To: 'Struts Users Mailing List' Subject: RE: problems with on

html:select - can't display default option

2004-04-23 Thread Matthew Hegarty
Hi all I am using , and trying to get the drop-down to default to a Boolean value in a bean, ie true, false, or blank if the bean is null. My bean (MyBean) contains the method getMyValue() which returns a Boolean object. In the code snippet below, the c:out statement confirms that the value of

Re: problems with onclick=submit()

2004-04-23 Thread Shyamal Shah
Try javascript:void(0) or submit the page from a javascript function and do "return 0" at the end of the method. - Original Message - From: "Jaakko Rytinki" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, April 23, 2004 9:01 AM Subject: problems with

RE: problems with onclick=submit()

2004-04-23 Thread Guillermo Meyer
You should also return false in the onclick event. If return false, the link wont be executed. -Original Message- From: Jarnot Voytek Contr AU/SC [mailto:[EMAIL PROTECTED] Sent: Viernes, 23 de Abril de 2004 10:06 a.m. To: 'Struts Users Mailing List' Subject: RE: problems with onclick=su

RE: problems with onclick=submit()

2004-04-23 Thread Jarnot Voytek Contr AU/SC
have you tried href="javascript:void(0)"? this is an html issue - not struts. -- Voytek Jarnot Quantum materiae materietur marmota monax si marmota monax materiam possit materiari? > -Original Message- > From: Jaakko Rytinki [mailto:[EMAIL PROTECTED] > Sent: Friday, April 23, 2004 8:01

problems with onclick=submit()

2004-04-23 Thread Jaakko Rytinki
Anyone else had problems with Error page 500, because such paths are not visible and/or usable for normal user - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Advantages/Disadvantages of One Action for each Use Case

2004-04-23 Thread Robert Taylor
I've ended up using something I call ActionUtils classes which contain common operations. For example if I had a store section in my web application, I would have a StoreActionUtils for operations common to Action classes in the store section. robert > -Original Message- > From: Takh

RE: generate struts ActionForm & strut's jsp from hibernate's mapping

2004-04-23 Thread David Friedman
Shhh! Script it with PERL in 10 minutes... SHH! Don't let the group know I was previously into PERL, before Java programming. LOL. Regards, David -Original Message- From: Dionisius Purba [mailto:[EMAIL PROTECTED] Sent: Friday, April 23, 2004 4:24 AM To: 'Struts Users Mailing List' Subject

Re: Non-Form Based Mapped Properties

2004-04-23 Thread Hubert Rabago
Michael, The tag eventually ends up calling BeanUtils' PropertyUtils.getNestedProperty(), which has special handling for collections, including maps. It's actually pretty powerful. It enables resolving Strings that eventually results in an object or an object's property. With it, bean:write (or

Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL?

2004-04-23 Thread bOOyah
Takhar, Sandeep wrote: Craig McLanahan wrote something about this recently. I may be wrong since I haven't done this, but you may need '' quotes around the property since there are '.'s in it. No Sandeep, wrapping single quotes around the property didn't seem to make any difference. Not even wr

Re: ActionErrors in my JSP: how can I rewrite this RT snippet as EL?

2004-04-23 Thread bOOyah
Niall Pemberton wrote: It should be .. or even Sorry for the delay in replying Niall...my wife MADE ME down tools for a day. Yes, indeed both your suggestions work perfectly. I'm using the 2nd one. Am I right then in guessing that would display

RE: Advantages/Disadvantages of One Action for each Use Case

2004-04-23 Thread Takhar, Sandeep
Do you use subclasses for common methods or do you use helper classes or neither? sandeep -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: Thursday, April 22, 2004 3:54 PM To: Struts Users Mailing List Subject: RE: Advantages/Disadvantages of One Action for each Use

RE: generate struts ActionForm & strut's jsp from hibernate's mapping

2004-04-23 Thread Jimmy Coyne
Hi Dion , Haven't used this , but I think middlegen (http://boss.bekk.no/boss/middlegen/ ) might solve some of the problems for you .It looks At the db schema and generates the hmb.xml / jsp , actionforms etc . Hope it helps. Jimmy -Original Message- From: Dionisius Purba [mailto:[E

RE: generate struts ActionForm & strut's jsp from hibernate's map ping

2004-04-23 Thread Dionisius Purba
David, you're right that I oversimplified the situation regarding the HTML Input's type, For my situations, the inputs in JSPs will be put between etc. The and and it's closing tags will be generated too to minimize copy & pasting (the jsp phsycial file itself would be generated automaticall