Reload Message resources i.e Resource Bundle

2006-08-16 Thread Harsh Gupta
How to Reload Message resources i.e Resource Bundles in struts 1.1??? ___ Harsh Gupta Software Engineer MPS Technologies (A Macmillan company) Email: h [EMAIL PROTECTED] Web: www.mpstechnolog

Re: Exception with Download Action

2006-08-16 Thread Frank W. Zammetti
Hi Eric... I hope you don't mind but I copied this to the Struts @user list so that others have the opportunity to help... I'm afraid I'm about to go out of town in a few hours and so don't really have the time to figure this out... I haven't used or even thought about DownloadAction for some t

Re: Re: Congratulations Frank

2006-08-16 Thread Dakota Jack
Way to go, Frank. Nice to see a good guy with a bit of a noodle under his hat get appropriate recognition. On 8/15/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: Thank you very much guys, I appreciate it! Now you know why I've been relatively quiet around here the past few months (you didn

Re: What's the difference between struts-base and struts-el?

2006-08-16 Thread Scott Van Wart
Michael Cheung wrote: Hi, all; What's the difference between struts-base to struts-el. My general understanding is: - struts-el is so you can use EL expressions in your Struts tags without having to use servlet 2.4. The JSP compiler won't compile the EL, so it's up to Struts to do it. Us

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Niall Pemberton
On 8/16/06, Scott Van Wart <[EMAIL PROTECTED]> wrote: I tried the following: Now I figured that this would cause the maxlength validator to get the value for maxlength from message resources, rather than hardcoding it with var, var-name and var-value tags. But it doesn't! It o

Re: Forwards between webapps

2006-08-16 Thread Scott Van Wart
Saeed, Rada wrote: Forwards between webapps are not supported, cuz both have different contexts, this's what I got from running this : Is there any other way to achieve this forward between different web applications ? I think the class 'org.apache.struts.actions.SwitchAction' might do the t

Re: Validator Client-Side and Custom Classes

2006-08-16 Thread Scott Van Wart
Mississippi John Hurt wrote: Hi, I want to do client-side validation using a custom class I can specify in the validator.xml section. But my question is if I use a custom class, then how the heck can Struts generate the custom javascript for it in the jsp if I'm using a custom java class I wr

Auto render form bean as hidden fields

2006-08-16 Thread Scott Van Wart
We have a requirement that the user be prompted if any changes have been made on a form, and they try to navigate away. I've divided this up into sub tasks: - Iterating through properties of a bean. - Render properties as hidden fields. - Render some JavaScript to check for modifications. The

Re: Need to do pagination but can't use DisplayTag

2006-08-16 Thread pantichd
Thank you very much Wendy! Wendy Smoak-3 wrote: > > On 8/15/06, pantichd <[EMAIL PROTECTED]> wrote: > >> Thanks for the reply. It's encouraging to hear that you were able to use >> it >> with JSP 1.2. According to this link it requires JSP 2.0 >> http://displaytag.sourceforge.net/11/displaytag

Re: Need to do pagination but can't use DisplayTag

2006-08-16 Thread Wendy Smoak
On 8/15/06, pantichd <[EMAIL PROTECTED]> wrote: Thanks for the reply. It's encouraging to hear that you were able to use it with JSP 1.2. According to this link it requires JSP 2.0 http://displaytag.sourceforge.net/11/displaytag/dependencies.html Those are the docs for Displaytag 1.1. Display

Re: LookupDispatchAction using wrong resource bundle!

2006-08-16 Thread Scott Van Wart
LookupDispatchAction checks ALL the resource bundles (and doesn't even stop when it finds the key). Does anyone see any reason why it can't use the same mechanism as everything else, or has this been fixed in a later version? - Scott --

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: Right, but the invoked Resources.getActionMessage() has calls inside it for the bundle in the current trunk: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa che/struts/validator/Resources.java?view=markup It looks like it hasn't changed from the

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: Right, but the invoked Resources.getActionMessage() has calls inside it for the bundle in the current trunk: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa che/struts/validator/Resources.java?view=markup It looks like it hasn't changed from the

RE: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread David Friedman
Right, but the invoked Resources.getActionMessage() has calls inside it for the bundle in the current trunk: http://svn.apache.org/viewvc/struts/struts1/trunk/core/src/main/java/org/apa che/struts/validator/Resources.java?view=markup It looks like it hasn't changed from the 1.2.X branch and it is

Re: Struts and Jsessionid control

2006-08-16 Thread Wendy Smoak
On 8/16/06, Aladin Alaily <[EMAIL PROTECTED]> wrote: My understanding is that when the users turn off cookies, struts automatically encodes the session id and saves it in the URL, using encodeURL. Now, I'd like to know if there is a way to prevent this (encoding the session) so that when the us

RE: Choices, choices...How does one choose a taglib for displaying tables?

2006-08-16 Thread pantichd
Thanks for the info Dave. My bad about the SAP comment. I had started another post (http://www.nabble.com/Need-to-do-pagination-but-can%27t-use-DisplayTag-tf229.html) specifically about the DisplayTag and in that post I noted that we were using SAP. When I updated this post I didn't refer t

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: I think you need to have at least Struts v1.2.8 unless you manually upgraded the Commons Validator jar up to version 1.2.0. If I understand correctly, validator versions before 1.2.0 (Struts < 1.2.8) don't actually make use of the "bundle" attribute in your validator xml fi

Re: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
David Friedman wrote: I think you need to have at least Struts v1.2.8 unless you manually upgraded the Commons Validator jar up to version 1.2.0. If I understand correctly, validator versions before 1.2.0 (Struts < 1.2.8) don't actually make use of the "bundle" attribute in your validator xml fi

RE: I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread David Friedman
I think you need to have at least Struts v1.2.8 unless you manually upgraded the Commons Validator jar up to version 1.2.0. If I understand correctly, validator versions before 1.2.0 (Struts < 1.2.8) don't actually make use of the "bundle" attribute in your validator xml files. So, what version o

Re: [OT]Scriptlets

2006-08-16 Thread Scott Van Wart
Rahul Akolkar wrote: Yes, for reasons such as avoiding a heterogeneous programming model, improving readability etc. It also lets you trick your web design team into doing some coding through tag libraries without actually forcing them to write classic code :). j/k -

Re: Choices, choices...How does one choose a taglib for displaying tables?

2006-08-16 Thread Martin Gainty
Yes The IDE can be used to generate the original project for quick prototype for your version of your vendor's webapp( e.g. Oracle/SAP/Websphere) but then I would (via the IDE export) build with the IDE's exported build.xml (This would generate Dev/Test/Prod environments as well as to incorporate

I can't put 'maxlength' validator values in my .properties file?

2006-08-16 Thread Scott Van Wart
I tried the following: Now I figured that this would cause the maxlength validator to get the value for maxlength from message resources, rather than hardcoding it with var, var-name and var-value tags. But it doesn't! It only uses this to pass to the {0} in the error message (i

RE: Choices, choices...How does one choose a taglib for displaying tables?

2006-08-16 Thread David Friedman
Psst the DisplayTag download page is what you want: http://displaytag.sourceforge.net/11/download.html CLICKing through to it shows v1.1. SCROLL down and you can download v1.0 an v1.0-rc2. CLICK right below that and the links shows old versions 0.8.6 (I started with that ages ago) and 0.8.5

Re: Choices, choices...How does one choose a taglib for displaying tables?

2006-08-16 Thread pantichd
Frank, It doesn't *have* to be a taglib but it's preferred because the developers we support are already used to working with taglib but not really all that familiar with JavaScript. I took a look at both of the tools you suggested. Nice!! Would love to try those but I'm afraid it won't help

Re: Choices, choices...How does one choose a taglib for displaying tables?

2006-08-16 Thread pantichd
Thanks Dave, I have passed the info on to SAP's support and I'm trying some other things to see if I can get it working. I'd also like to try an older version of DisplayTag but all I can find is 1.1. Where would I find an earlier version for download? Oh, and thanks for the reminder about the d

RE: Hi

2006-08-16 Thread David Friedman
What is wrong with the documentation information at: http://jsptags.com/tags/navigation/pager/pager-taglib-2.0.html#param Which shows you can override the url and parameters if you have problems by setting the url with pg:pager (so it would show "/Applcn name/getVendorInfo.do" and pg:param to set

LookupDispatchAction using wrong resource bundle!

2006-08-16 Thread Scott Van Wart
I have multiple resource bundles in addition to the default one in struts-config.xml: key="constraints" factory="ca.indosoft.common.resource.ConstraintResourcesFactory" null="true" /> In my Action: protected void create( ... ) { ... } // and so on... protected Map getKeyMetho

Re: [OT]Scriptlets

2006-08-16 Thread Rahul Akolkar
On 8/16/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: I recently joined a software services comapny and as a part of my job i was required to develop intranet websites using struts. Now the attitude in the organisation is a strict no to scriptlets unless u have no other go. Theres always anoth

Re: Using bean:message from non-struts servlet

2006-08-16 Thread Adam Gordon
For posterity, and hopefully to help others, here's what James did: 1. Placed basename="package.name.to.messages.file.ClassName" /> near the top of the JSP, though I suspect the location might be irrelevant...not sure... 2. Used to retrieve the specific resource message. -adam James San

Re: Getting maxFileSize from Controller in a JSP

2006-08-16 Thread Adam Gordon
Raghuveer- Uh...I appreciate your help, but that's neither from within a JSP, nor does it tell me what the max file size is - it just tells me that the max file size has been exceeded. Right now I do what you've listed below, but in order to inform the user that the file is too large, I have

Struts and Jsessionid control

2006-08-16 Thread Aladin Alaily
Hello, My understanding is that when the users turn off cookies, struts automatically encodes the session id and saves it in the URL, using encodeURL. Now, I'd like to know if there is a way to prevent this (encoding the session) so that when the users disable cookies sessions simply don't work.

Re: check box should behaves as radio button

2006-08-16 Thread Aladin Alaily
The problem with checkboxes doesn't rest with struts but with the http protocol. See, when a checkbox is checked, data is sent to the application. When the checkbox is unchecked, nothing is sent to the app... but the original value is retained (since it was checked earlier). A possible solution,

check box should behaves as radio button

2006-08-16 Thread Parvat Singh Ranawat
Hi, Thanks to all for helping me in Struts problem here now i got stucked in one problem Here i need to show check box in UI but this must behaves like Radio button so how to do that i wrote java script to do that but it is not working perfectly please help me out Thanks in advance Shakti Sing

[OT]Scriptlets

2006-08-16 Thread Puneet Lakhina
I recently joined a software services comapny and as a part of my job i was required to develop intranet websites using struts. Now the attitude in the organisation is a strict no to scriptlets unless u have no other go. I dont have singnificant experience in JSP so i dont know, but for all you ex

Re: Struts encoding problem ?

2006-08-16 Thread Leon Rosenberg
are you using iso-8859-1 (latin1) ? cause it doesn't contain euro, you should switch to iso-8859-15 or utf-8 regards leon On 8/14/06, Mark Breitner <[EMAIL PROTECTED]> wrote: Hi, I´ve got the problem the I want to send the "€" (Euro) character via struts and whenever this character appears i

Re: Need to do pagination but can't use DisplayTag

2006-08-16 Thread pantichd
Martin, Did you mean to send this link as reply to my post? Although it is a good overview of Struts I didn't see something in it that dealt with my issue. I could have missed it. If that's the case maybe you can direct me to the page that contains the relevant information. : ) Thanks! Marti

Re: Need to do pagination but can't use DisplayTag

2006-08-16 Thread Martin Gainty
Using Jsp2.0 with Struts http://64.233.161.104/search?q=cache:GETP5dJY3B8J:courses.coreservlets.com/Course-Materials/pdf/struts/03-Struts-Beans.pdf+%22JSP+2.0%22+AND+%22Beans%22+AND+%22package%22&hl=en&gl=us&ct=clnk&cd=10 I would recommend JDeveloper for an IDE although many environments which will

RE: How to convert absolute URL to context-relative URL?

2006-08-16 Thread Raghuveer
ActionMapping.getInputForward() will also forward to url from where you have come. just check if it is requir3ed to use "input attribute in action mapping in struts-congig.xml -Original Message- From: Monkeyden [mailto:[EMAIL PROTECTED] Sent: Monday, August 14, 2006 7:54 PM To: Struts U

Re: Re[2]: How to convert absolute URL to context-relative URL?

2006-08-16 Thread Puneet Lakhina
On 8/15/06, Michael Cheung <[EMAIL PROTECTED]> wrote: Hi,Monkeyden; Thanks for your reply. Now I can get the context-relative path, but the extension is also omitted. How to get the path with extension? Actually, I want to do this. URL: /context-name/appname.do?param1=1¶m2=2 I want to get /a

Hi

2006-08-16 Thread Medicherla Lakshmi
Hi All, Am trying to use pager-taglib for pagination. I specified the url for that as the action being called. My action is a Dispatch Action, so i specified for the url attribute as url="/Applcn name/getVendorInfo.do?method=getVendors" I got the page index, but when am tryi