RE: [OT] Hosting Companies

2004-10-22 Thread Joe Hertz
Er Spring, not Swing. No Frameworks for you. Next! :-) > -Original Message- > From: Joe Hertz [mailto:[EMAIL PROTECTED] > Sent: Saturday, October 23, 2004 2:24 AM > To: 'Struts Users Mailing List' > Subject: [OT] Hosting Companies > > > I dont see Struts supporting hosting companies on

[OT] Hosting Companies

2004-10-22 Thread Joe Hertz
I dont see Struts supporting hosting companies on the wiki. It used to be on the site before the resources link pointed you to the wiki IARC. I just found out that the hosting company I use decided that they won't let you deploy anything using Hibernate (or Swing, or Tapestry...or Jive or Cocoon

How can I set values to message parameters by using bean:message tag?

2004-10-22 Thread Yufan Shi
Hi all, I am wondering if there is a way to set values to message paramerts by using bean:message, for example, I have a message entry in my application.properties file like this:Welcome, {0} And in my JSP file, I'd like to render this message as "Welcome,Some One"which "Some One" is fetched from

How can I set values to message parameters by using bean:message tag?

2004-10-22 Thread Yufan Shi
Hi all, I am wondering if there is a way to set values to message paramerts by using bean:message, for example, I have a message entry in my application.properties file like this:Welcome, {0} And in my JSP file, I'd like to render this message as "Welcome,Some One"which "Some One" is fetched from

RE: [Struts-Chain] how to use another chain for preprocessing?

2004-10-22 Thread David G. Friedman
Craig, I just don't (yet) see how or where you can set an action override. Am I supposed to add a chain called "servlet-complete-preprocess" and put my own code in to figure out what action is being invoked and somehow which chain I want to call next? I guess I was expecting something in the stru

Re: Request parameters not making it to Actions?

2004-10-22 Thread Frank W. Zammetti
I wouldn't doubt it :) Unfortunately, I know the glacial pace we upgrade versions of anything around here... case in point: we're still stuck with JDK 1.3.1. Argh! I think the chances of migrating to Struts beyond 1.1 is virtually nil. Is it really that bad to read though?? It's verbose, bu

Re: [Struts-Chain] how to use another chain for preprocessing?

2004-10-22 Thread Craig McClanahan
The code that is in the repository now has focused on providing a chain implementation that is fundamentally backwards compatible with existing Struts 1.1/1.2 functionality. As such, it emulates the current RequestProcessor architecture by passng all requests through a single commonly configured p

[Struts-Chain] how to use another chain for preprocessing?

2004-10-22 Thread David G. Friedman
I'm curious about Struts-Chain and have read through the 1.2.4 source on it plus the 1.3 SVN repository. I don't see anything suggesting how to make my action chain itself to another action in the struts-config.xml example. Nor do I see anything suggesting how to have an action be processed by a

RE: Request parameters not making it to Actions?

2004-10-22 Thread David G. Friedman
Frank, Nothing jumps out at me from skimming over that struts config, other than this thought: the new Struts 1.2.4 wildcard mapping might make that config file much more readable. :( Regards, David -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Friday, Octobe

Re: Request parameters not making it to Actions?

2004-10-22 Thread Frank W. Zammetti
Hi David, Nope, no redirects anywhere. When the NPE's occur, as near as I can tell, only some of them are missing (which actually makes Craig's suggestion more likely, maybe I missed an error path through the code)... I do dump all the request parameters to the log on every request (don't worr

Re: MessageResources native to ascii conversion

2004-10-22 Thread Craig McClanahan
Struts uses java.util.ResourceBundle instances inside it's MessageResources implementation. In particular, the most common mechanism is to implicitly use PropertyResourceBundle instances that take a properties file and turn it into a ResourceBundle. Therefore, you must follow all the rules descri

RE: Request parameters not making it to Actions?

2004-10-22 Thread David G. Friedman
Frank, Do any of your forwards have redirect="true" in them and point to a JSP? That would do a browser redirect to make the browser go to a JSP, resulting in lost parameters. Any change of posting part of your struts-config.xml for us to skim over and point anything out that looks unusual? When

MessageResources native to ascii conversion

2004-10-22 Thread Kumar V Kadiyala
Hi, I have a struts based application which supports several locales (italian, french, korean etc). There are different .properties files to accomplish this. The respective .properties files of each language were translated recently. When I bring up the app in Korean, it seems like the strings

RE: Tiles Question

2004-10-22 Thread Ray Madigan
I have found a suspecious behaviour with tiles. If I set the Attribute with an all lower case or all upper case String everything seems to work fine. When I use mixed case with a string like "Foo" tiles won't import the attribute into the tile, and what is worse, when the tile return, the attribu

Re: [OT] Re: Request parameters not making it to Actions?

2004-10-22 Thread fzlists
Thanks for the heads-up Ben! Most of my time is spent in IE though... I use HTTPWatch to do the same thing. The problem though is that I've never once been able to replicate this problem, so it wouldn't help me any. I suppose I could have all my users install HTTPWatch, but that wouldn't go o

Re: Request parameters not making it to Actions?

2004-10-22 Thread fzlists
That's an interesting thought Craig... I actually was very much aware of that behavior, having been burnt in the past... A lot of my GUI design does in fact disable elements because it's hard to get disabled elements to look exactly like Windows elements do when disabled by just manipulating rea

[OT] Re: Request parameters not making it to Actions?

2004-10-22 Thread Ben Anderson
Possibly many of you already have your own approaches for seeing what's actually transmitted over the wire, but if you don't - check out the LiveHTTPHeaders extension to Firefox - I love it! - To unsubscribe, e-mail: [EMAIL PROTEC

Re: Request parameters not making it to Actions?

2004-10-22 Thread Craig McClanahan
I don't know if this is happening to you, but one thing to examine your client side JavaScript code for is setting an input element's "disabled" property. If you ever do this, and then submit the form that contains that element, the browser will *not* include the element with the request. In turn

RE: Need Ideas for This Puzzle

2004-10-22 Thread Wiebe de Jong
Keeping the unused fields around as hidden fields is a good idea. It will keep your 'select all' javascript from getting complicated. Just make sure that your action doesn't process any of the fields that were made hidden, because hackers could modify those hidden fields manually before sending ba

Re: Request parameters not making it to Actions?

2004-10-22 Thread fzlists
I should point out, before anyone calls me on it, that this is strictly an internal app that is IE-specific (as per the overlords of the company's orders). Therefore, there's no chance that user disabled scripting or anything, and indeed they wouldn't have been able to even log in if they had.

Request parameters not making it to Actions?

2004-10-22 Thread fzlists
Hello all... I've got a strange situation that's been bugging me for a while. First, some quick background: I wrote an application about two years ago that was based on a proprietary framework that has now been converted to Struts. One of the things this proprietary framework was missing was

RE: tag

2004-10-22 Thread Shabada, Gnaneshwer
Ganesh, Thanks for your response. Now that I got someone's attention.. :-) yes, like you said I made sure that exportIndex is taking the value that I assign to it.. I did it using right after my bean:define tags and it prints out the value on my screen correctly. Not sure why the "export" at

[OT]: Need Ideas for This Puzzle

2004-10-22 Thread DGraham
Maybe it's because it's Friday, or maybe it's because I've been especially dense this week, but isn't multithreading orthogonal to the problem? Dennis Michael McGrady <[EMAIL PROTECTED]> 10/22/2004 02:05 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To Strut

RE: tag

2004-10-22 Thread Yadav, Ganesh
Gnan, This looks more like DisplayTag mailing list question. Browse the stuff in there. Meantime why don't you try the following. If you are sure and can debug that variable exportIndex is set to correct value then try to get this variable's value like ((TYPECAST APPROPRIATE TYPE HERE) pageCont

Re: Need Ideas for This Puzzle

2004-10-22 Thread Michael McGrady
Hi, Caroline, Just a little follow up to all these good suggestions. I agree that if you use the Action, then you should definitely use helper classes and hopefully decouple them from the action. I like to use multithreading in the helper classes generally. The suggestions about using the Ac

RE: Need Ideas for This Puzzle

2004-10-22 Thread Caroline Jen
What about something like: <% boolean checked = isChecked("a"); // check if the value should be checked by default if(showCheckbox(user, "a")) { // check if, for this user, the checkbox should be visible %> > <% } else { // show disabled checkbox (or leave that out to show nothing...) %> disabled

RE: tag

2004-10-22 Thread Shabada, Gnaneshwer
David, I am using DisplayTag v1.0 -rc1. Thats the latest they have at http://displaytag.sourceforge.net/download.html I am using IBM WSAD v5.1.2 which supports for J2EE 1.3 specifications - EJB 2.0, servlet 2.3, JSP 1.2. I tried ...export="${exportIndex}".. but no luck..do I need to have JSP 2

Re: Best practises to get message resource in java class,

2004-10-22 Thread Craig McClanahan
The Struts source code itself offers many examples of how to programatically access localized text from a mesage bundle. The MessageResources class is the key to this -- it's also the code used by tags like for ths purpose. For example, here's some snippets from how one might use a MessageResour

Re: Need Ideas for This Puzzle

2004-10-22 Thread Wendy Smoak
From: "Caroline Jen" <[EMAIL PROTECTED]> > The challege comes as the "roles" of the web site > users are introduced. According to the role of the > web site user, I have to display certain groups (not > all the groups) and certain sub-groups (not all > sub-groups within a group) to him/her. > How

RE: Need Ideas for This Puzzle

2004-10-22 Thread Wiebe de Jong
Here's my idea: Create a bean that has multiple Boolean fields, with each corresponding to a checkbox you might want to display. In the action that loads data for this page, process the user's role and set the bean's Boolean values accordingly. Store the bean so that the jsp can read it. For all

RE: Need Ideas for This Puzzle

2004-10-22 Thread Varley, Roger
> > There are at least two good solutions. I like the second one best. > > > 1. Tag Conditional Logic Solution > > Just use the , and tags. I assume, > Caroline, > that you are using JSTL. If not, then there are equivalent solutions > with Struts logic tags. > > > 2 Action Condition

Re: Need Ideas for This Puzzle

2004-10-22 Thread Michael McGrady
There are at least two good solutions. I like the second one best. 1. Tag Conditional Logic Solution Just use the , and tags. I assume, Caroline, that you are using JSTL. If not, then there are equivalent solutions with Struts logic tags. 2 Action Conditional Delivery Solution Or, you can

Need Ideas for This Puzzle

2004-10-22 Thread Caroline Jen
The puzzle relates to displaying check boxes (checkbox or multibox). What I have are members who belong to professional groups and sub-groups. E.g., Group A with sub-groups A-1, A-2, A-3, A-4. Group B with sub-groups B-1, B-2, B-3 Group C with sub-groups C-1, C-2, C-3, C-4, C-5, C-6 etc. web si

Best practises to get message resource in java class,

2004-10-22 Thread Ashish Kulkarni
Hi I am working on a struts application, In this a Action class calls a java class which does all the business logic, then this java class returns a ArrayList which has 1 Completion flag, 0 successfull, 1 error 2 All messages to be displayed 3 Data for jsp screen These messages generated due to p

Re: tiles and exceptions

2004-10-22 Thread Joe Germuska
At 2:25 PM + 10/22/04, liooil wrote: And i'm not sure to understand why the jsp catch the exception (my pretty error appears in the rendered html page) and the tiles element does not (the whole body is blank). Is there a soul to explain that to me? What about a work-around? I'm not sure I und

tiles and exceptions

2004-10-22 Thread liooil
Hello world, My webapp is getting a little bit bigger every day?. On the same rythm grows my struts knowlegde. But a this point i'm stuck with managing exceptions in my tiles element. I made little test. I gather all my tiles authenticationLayout defined this way in a single jsp (authentication_t

tiles and exceptions

2004-10-22 Thread liooil
Hello world, My webapp is getting a little bit bigger every day?. On the same rythm grows my struts knowlegde. But a this point i'm stuck with managing exceptions in my tiles element. I made little test. I gather all my tiles authenticationLayout defined this way in a single jsp (authentication_t

Re: [html:select/optionsCollection] I don't get it! :(

2004-10-22 Thread Arnaud Vandyck
Fri, 22 Oct 2004 15:46:22 +0200, "Albrecht, Michael" <[EMAIL PROTECTED]> wrote: > Hi Arnaud! Yo Michael! > The following lines show you an example for optionsCollection - tag: > > > label="text" /> > I got something similar: " value="<%= "id[" + indx + "]" %>"> I

I think I have a scope problem....

2004-10-22 Thread ChaChaNY
All I'm using the tag to get a value out of the Session scope as follows... I seem to be getting the wrong value, however when I grab the object into a local variable However, if I do THIS, I get the correct value CurrentStatusBean status = (CurrentStatusBean) session.getAttribute(""); s

[html:select/optionsCollection] I don't get it! :(

2004-10-22 Thread Albrecht, Michael
Hi Arnaud! The following lines show you an example for optionsCollection - tag: The bean searchForm has got an attribute of type java.util.List called durations (of course there`s a public method getDurations()). A duration-object /-item of this list has got two attributes called days an

OT FRIDAY: RIA Flash vs Java Ex:

2004-10-22 Thread Vic Cekvenich
http://www.jext.org/apps/jext.jnlp Could one do this medium type of application in Flash? See the Java RiA advantage in this ex. This is nice becuase when I go to client's or on my Mac/Linux/Windows accounts, I can edit right away, w/o messing arround looking for their funky editor. Commes in h

[html:select/optionsCollection] I don't get it! :(

2004-10-22 Thread Arnaud Vandyck
Hi! It's two days now I'm fighting with . I don't understand how I have to build my bean and how I have to pass the arguments to the tag. Has my bean to be a Collection? Has it to have an iterator() method? How to write the getters and setters? Many thanks for your help! -- Arnaud Vandyck http

Re: : pre-populating fields from the Action java code

2004-10-22 Thread Luis Gervaso
You can use 3 differents FlightBean and then populate the *value attribute* in each When you click only one form submit is sent Luis Gervaso On Fri, 22 Oct 2004 15:28:16 +0900, Bill Keese <[EMAIL PROTECTED]> wrote: > I have a question about pre-populating the fields of a form you display > in t