How would you implement this requirement?

2004-09-15 Thread Dao Xuan Nam
Hi All: I am new in Struts and have a question to group. I am responsible to implement this screen as below: System requirement is when user clicks "Start", or "Pause", or "Done", the system will get taskId and do check task constraints. I have used Collection to contain a list of tasks retured

Any common way to get back after login?

2004-09-15 Thread Java News
Hi, What is best method to get back to the previous page, after eg. login. All I thought so far is to set actual path in (if possible with JS), and use it to redirect in Action. But what if someone first use search form to get results of something, and after that he use login form - I can store so

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Michael McGrady
My next post solves this problem, Rick. It goes as deep as it needs to and can keep track of the depth too. I am fairly sure my next post (before this one) solves your problem. You don't have to use BeanUtils at all. The problem is not a BeanUtils problem but a problem of recursion. Yes?

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Rick Reumann
Michael McGrady wrote the following on 9/16/2004 12:57 AM: Would classic recursion help, Rick? I don't think that will help since this would have to be done inside the reset method and at that point BeanUtils is going to use an isntance of FooBar but here is no way for it know at that point how d

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Michael McGrady
Don't know if I am on track here, Rick, but, if you get the FooBar loaded, the following code should unload it and do it in reverse to load it again: public void do(FooBar outsideFooBar) { FooBar insideFooBar; // A. Wrap non-collection values into an appropriate list; // B. Use this logic

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Michael McGrady
Would classic recursion help, Rick? public void do(FooBar outsideFooBar) { FooBar insideFooBar. Object blah = outsideFooBar.getBlah(); Object blahBlah = outsideFooBar.getBlahBlah(); // Wrap blah and blahBlah. if((insideFooBar = outsideFooBar.getFooBar()) != null) { do(in

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Rick Reumann
Niall Pemberton wrote the following on 9/16/2004 12:41 AM: "I don't see how this is going to work though. The problem is I'm getting back an Object (the FooBar one) from the back end that has the nested collections inside. This isn't a Struts object (not of type ActionForm)." I guess what meant was

Re: Working with hashmaps in my Jsp

2004-09-15 Thread Rick Reumann
Frank Zammetti wrote the following on 9/16/2004 12:19 AM: I agree Rick, although I'm not sure anyone should *ever* listen to me :) Like I said, I'm not saying NEVER use taglibs, just that SOMETIMES (well, MANY times, in my opinion) they are superfluous. THIS time, they made sense. :) he he I kno

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Niall Pemberton
It doesn't, but I was just answering the first issue in your reply to Hubert when you said "I don't see how this is going to work though. The problem is I'm getting back an Object (the FooBar one) from the back end that has the nested collections inside. This isn't a Struts object (not of type

Re: html:cancel usage

2004-09-15 Thread Rick Reumann
andy wix wrote the following on 9/14/2004 6:27 AM: I have tried all the other suggestions in every combination but can't get anything more elegant to work. This works but I'm not looking forward to the code review! Just one more reason that I really like calling the validation manually from my

Re: Working with hashmaps in my Jsp

2004-09-15 Thread Frank Zammetti
I agree Rick, although I'm not sure anyone should *ever* listen to me :) Like I said, I'm not saying NEVER use taglibs, just that SOMETIMES (well, MANY times, in my opinion) they are superfluous. THIS time, they made sense. :) Frank W. Zammetti Founder and Chief Software Architect Omnytex Techn

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Rick Reumann
Niall Pemberton wrote the following on 9/16/2004 12:11 AM: Doesn't matter if its not an ActionForm if you use Struts 1.2.4 - it will just "wrap" it in one - try just specifying your FooBar class in the struts-config.xml Sorry for being dense here but I still don't see how that helps with the

??? STRUTS 1.2.4 FEEDBACK ???

2004-09-15 Thread Niall Pemberton
Has anyone tried out Struts 1.2.4? If so can you feedback - positive or negative. Niall - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Working with hashmaps in my Jsp

2004-09-15 Thread Rick Reumann
Steve Lianoglou wrote the following on 9/15/2004 9:36 PM: <%-- now "hashKey" has the string of the key into my hashmap that I do some testing with --%> <%-- do some logic, if i like what I see, I want to pull the object at location "hashKey" out of my HashMap --%> <%-- do some o

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Niall Pemberton
Rick, Doesn't matter if its not an ActionForm if you use Struts 1.2.4 - it will just "wrap" it in one - try just specifying your FooBar class in the struts-config.xml http://cvs.apache.org/dist/struts/v1.2.4/ Niall - Original Message - From: "Rick Reumann" <[EMAIL PROTECTED]> To:

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Rick Reumann
Hubert Rabago wrote the following on 9/15/2004 9:25 PM: Wow. You're using the tags for this form, right? Of course:) I haven't tried this yet, but there's a chance you might be able to define a form with a field that matches FooBar: class MyForm { FooBarForm fooBar; // then you'll have your a

Re: Validation for Two Levels of Indexed Properties

2004-09-15 Thread Niall Pemberton
Terry, Hubert is right - validator doesn't support more than one level of indexed validation. Basically the "indexedListProperty" element in your validator.xml identifies a property in your ActionForm which is either a collection or array. Validator simply uses that specifed property name to retri

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Michael McGrady
Rick Reumann wrote: This app I'm working on is sort of any odd beast. It's a case where the resulting JSP is going to be built by generic beans that are nested inside of the same type of generic bean etc. So for an example ... class FooBar { Collection fooBars; Integer id; String type;

RE: Working with hashmaps in my Jsp

2004-09-15 Thread Frank Zammetti
There *IS* an easy way... don't use all the taglibs! :) It always amazes me how people will bend over backwards working with custom tags to do things that would be simple as hell with scriplets, all in the name of "clean code" and "complete separation of presentation from everything else". Whil

Working with hashmaps in my Jsp

2004-09-15 Thread Steve Lianoglou
How do I use a dynamicaly generated "key" to pick off something in my hashmap? The story is that I am iterating over a collection of keys into a hashmap. In my iteration, and after doing some present/notPresent logic, I am pulling an object out of my HashMap, so here is a reduced example of what i

Re: Create and submit POST form from Action

2004-09-15 Thread mail
David, I know about the Web Services API, but it can not be used to initiate buyer transactions. You can use it to request transaction informations, status, make refunds, or initiate a mass payment from YOUR side TO your clients. As this is not the business model I pursue in my project ;-) it's o

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Hubert Rabago
Oops. Just to clarify, it should be class MyForm extends ActionForm On Wed, 15 Sep 2004 20:25:30 -0500, Hubert Rabago <[EMAIL PROTECTED]> wrote: > Wow. You're using the tags for this form, right? > > I haven't tried this yet, but there's a chance you might be able to > define a form with a

Re: Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Hubert Rabago
Wow. You're using the tags for this form, right? I haven't tried this yet, but there's a chance you might be able to define a form with a field that matches FooBar: class MyForm { FooBarForm fooBar; // then you'll have your accessors, of course class FooBarForm { Integer id;

Re: and modules

2004-09-15 Thread Hubert Rabago
I don't think submitting a form to a separate module is allowed by the Struts tags. Actions are specific to each module. IIRC, You can define the same path in different modules and they will be treated as different mappings. You can even define forms with the same form name in different modules

Re: and modules

2004-09-15 Thread Yves Sy
Try using SwitchAction -Regards- Yves On Wed, 15 Sep 2004 23:46:16 +0100, Ricardo Gladwell <[EMAIL PROTECTED]> wrote: > Hi, > > I'm experimenting with struts modules, but I've encountered a problem > whereby I have a struts referencing an action in my > non-default module. Instead of referenci

Re: Browser Back Button (IE) Problem in Struts Land

2004-09-15 Thread Hubert Rabago
You are getting a "Page Expired" because the page you're trying to go back to was produced by a POSTed form. The browser won't rePOST data to the server unless the user explicitly allows it to (as a "security precaution"). If you want to redisplay form results without the Page Expired message, ei

RE: Create and submit POST form from Action

2004-09-15 Thread David G. Friedman
Chris, I was curious about this so I got a free PayPal developer account on http://developer.paypal.com. They have a seemingly Java complete API (they call it version 2.0 and the site is https://api.paypal.com/2.0 (cheesy, huh?). So, it looks like you have a complete option to talk to PayPal wit

Browser Back Button (IE) Problem in Struts Land

2004-09-15 Thread Arumbakkam, Praveen \(Contractor\)
Hello and thank you in advance for your reply! Problem Summary: --- Unable to eliminate "Page Expired" error when a user hits on the Browser "Back" button in Internet Explorer 6.x. Hence, Seeking input from the Struts community! App Overview: - A Stateful Session Bean & CM

and modules

2004-09-15 Thread Ricardo Gladwell
Hi, I'm experimenting with struts modules, but I've encountered a problem whereby I have a struts referencing an action in my non-default module. Instead of referencing the correct action, I get a "Cannot retrieve mapping for action" JspException. How do I reference an action in another module f

Re: Question on struts-chain

2004-09-15 Thread Don Brown
Not necessarily. Some people propose relacing Actions with Commands, but I see Commands as more to do with request processing in general, than request-specific business logic. Instead of a ExecuteAction command that executes a regular Struts Action, you'd have ExecutePOJOAction which calls your o

Re: Question on struts-chain

2004-09-15 Thread Don Brown
On Wed, 15 Sep 2004 17:49:21 -0400, Sean Schofield <[EMAIL PROTECTED]> wrote: > >You could even easily create a command that, instead of executing an > >Action's execute method, calls a custom method on a POJO like JSF > >(I've done some experimenting here: > >http://www.jroller.com/page/mrdon/200

Think I'm stuck with using Session scope for this..unless a better idea?

2004-09-15 Thread Rick Reumann
This app I'm working on is sort of any odd beast. It's a case where the resulting JSP is going to be built by generic beans that are nested inside of the same type of generic bean etc. So for an example ... class FooBar { Collection fooBars; Integer id; String type; String value; //set

Re: It's not a dirty word...

2004-09-15 Thread Niall Pemberton
The new "validwhen" validator requires antlr.jar - looks like you haven't deployed that jar. Niall - Original Message - From: "Andrew Close" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, September 15, 2004 10:46 PM Subject: Re: It's not a dirty

Re: Question on struts-chain

2004-09-15 Thread Sean Schofield
The best part for developers is commands are very easy to write, and can be easily unit tested. I'm assuming then that your thinking about replacing most of your Actions with Commands and the commands would work with POJO's in your Context right? Would you use a facade as well or would you t

Re: Question on struts-chain

2004-09-15 Thread Sean Schofield
Yes, but I think it brings a lot more to the table. For example, Action inheritance chains would be a thing of the past. Any common code could be changed into a command and placed in the chain. Yes this will definitely be nice. I don't currently do a lot of this now but I could see how it c

Re: Question on struts-chain

2004-09-15 Thread Don Brown
Yes, you have complete control over everything that happens in a request. The chain can even be modified at runtime to adjust as necessary. Struts-provided commands could replaced and/or new commands could be added to perform some specific purpose. I even envision new "sub-frameworks" that write

Re: It's not a dirty word...

2004-09-15 Thread Andrew Close
Richard, thank you for the reply. On Wed, 15 Sep 2004 23:23:43 +0200, Richard Tuquet Laburre <[EMAIL PROTECTED]> wrote: > did you write validate=true in you action-mapping ? no :) i just added that. now when i run the app i get an exception before my action: [Servlet Error]-[antlr.TokenStrea

Re: Question on struts-chain

2004-09-15 Thread Sean Schofield
Exactly. It really changes the way you design your application, and I think in a great way. It would be great to get more people using it to help flush out any remaining problems with it. That's kind of what I gathered. This could potentially be a really big change in the way Struts applica

Re: JSTL get a value from map and key variables: SOLVED

2004-09-15 Thread Michael McGrady
That works! Thanks, Rick Rick Reumann wrote: Michael McGrady wrote the following on 9/15/2004 5:00 PM: I have a map that is held in application scope which in turn holds objects whose keys are held in session scope. I want to access the map in application scope and the key from session scope a

Re: ParseException on struts-config.xml

2004-09-15 Thread Niall Pemberton
"type" on global-forwards is used in Struts 1.2.1 onwards to configure the default class for all ActionForward - was fixed as part of this enhacement: http://issues.apache.org/bugzilla/show_bug.cgi?id=28330 But IMO the best version to use in the Struts 1.2.x serires is Struts 1.2.4. On the subje

Re: Create and submit POST form from Action

2004-09-15 Thread mail
David, Thanks big time for your efforts. I did manage to implement an approach solving all my problems, it is just not near as clean as I was hoping ... I use HttpClient to communicate with the payment processing system (paypal in this case) and route the response to the users browser session (

Re: It's not a dirty word...

2004-09-15 Thread Richard Tuquet Laburre
did you write validate=true in you action-mapping ? Andrew Close a écrit : hi all, i've been playing with 'Validator' for a couple of days now and can't quite get it to work. i've read the dev_validator.html on the Validator page and several of the links off that page. i've spent several hours re

It's not a dirty word...

2004-09-15 Thread Andrew Close
hi all, i've been playing with 'Validator' for a couple of days now and can't quite get it to work. i've read the dev_validator.html on the Validator page and several of the links off that page. i've spent several hours reading through the mail archive (http://marc.theaimsgroup.com/?l=struts-use

Re: JSTL get a value from map and key variables

2004-09-15 Thread Rick Reumann
Michael McGrady wrote the following on 9/15/2004 5:00 PM: I have a map that is held in application scope which in turn holds objects whose keys are held in session scope. I want to access the map in application scope and the key from session scope and then get the result from the map. How do

Re: Question on struts-chain

2004-09-15 Thread Joe Germuska
At 4:13 PM -0400 9/15/04, Sean Schofield wrote: I've been taking a look at the new struts-chain in the contrib section. It looks intriguing but I can't quite figure out what its for and how I might use it. It seems like it will ultimately provide a replacement for RequestProcessor by decomposi

Re: CustomActionForward -- How do I pick it up in the Action?

2004-09-15 Thread John Crossman
Thanks -- but despite my use of http://cvs.apache.org/dist/struts/v1.2.4/ that change is causing: [2004/09/15 13:59:49] Parsing error processing resource path /WEB-INF/struts-config.xml javax.servlet.UnavailableException: Parsing error processing resource path /WEB-INF/struts-config.xml at org

JSTL get a value from map and key variables

2004-09-15 Thread Michael McGrady
A dunce question today: I have a map that is held in application scope which in turn holds objects whose keys are held in session scope. I want to access the map in application scope and the key from session scope and then get the result from the map. How do I do this with JSTL? I know I can

Re: Question on struts-chain

2004-09-15 Thread Don Brown
Yes, but I think it brings a lot more to the table. For example, Action inheritance chains would be a thing of the past. Any common code could be changed into a command and placed in the chain. You could even easily create a command that, instead of executing an Action's execute method, calls a

NoSuchMethodException errors for all validation-rules.xml calls

2004-09-15 Thread Allistair Crossley
Hi All, I setup a struts/validator webapp this evening using org.apache.struts.validator.DynaValidatorForm on the form bean in struts-config and started receiving NoSuchMethodException exceptions linked to the built-in validation rules I was requested for my fields. The stack traces can be s

RE: CustomActionForward -- How do I pick it up in the Action?

2004-09-15 Thread David G. Friedman
I think like so: (Per my Stuts In Action reference pages) I'm thinking that without it, how would the Action config know to cast it as anything other than a ForwardAction instead of a subclass when you call findFoward(...) ? Regards, David -Original Mess

Question on struts-chain

2004-09-15 Thread Sean Schofield
I've been taking a look at the new struts-chain in the contrib section. It looks intriguing but I can't quite figure out what its for and how I might use it. It seems like it will ultimately provide a replacement for RequestProcessor by decomposing this functionality into several linked comma

Re: CustomActionForward -- How do I pick it up in the Action?

2004-09-15 Thread Niall Pemberton
>From memory, this functionality was taken out and then put back in. Anyway defintely works in Struts 1.2.x - suggest you try out the new Struts 1.2.4 which is available for download here: http://cvs.apache.org/dist/struts/v1.2.4/ Currently this is a "test" build, hopefully if people try it out a

Re: CustomActionForward -- How do I pick it up in the Action?

2004-09-15 Thread John Crossman
What exactly would that look like? J David G. Friedman wrote: Doesn't your Action's nested forward need the attribute "classname=SOMETHING" ? Regards, David -Original Message- From: John Crossman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 3:47 PM To: Struts Users Mailing

RE: CustomActionForward -- How do I pick it up in the Action?

2004-09-15 Thread Anna Kerekes
thanks...problem solved. The request object is not the same in the action and the jsp! Anna Kerekes From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Wed 15/09/2004 3:58 PM To: Struts Users Mailing List Subject: RE: CustomActionForward -- How do I pi

RE: CustomActionForward -- How do I pick it up in the Action?

2004-09-15 Thread David G. Friedman
Doesn't your Action's nested forward need the attribute "classname=SOMETHING" ? Regards, David -Original Message- From: John Crossman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 3:47 PM To: Struts Users Mailing List Subject: CustomActionForward -- How do I pick it up in

CustomActionForward -- How do I pick it up in the Action?

2004-09-15 Thread John Crossman
My struts-config has the following: And yet the following causes ClassCastException in my MasterAction class: CustomActionForward customForward = (CustomActionForward) mapping.findForward( DEFAULT_VIEW_KEY );

HTTPServletRequest object

2004-09-15 Thread Anna Kerekes
Hello, I'm assuming that a request object is the same for a jsp and the associated Action Class. Why is it that when I try to get a parameter in the jsp I get the correct (expected) value: out.println("Message id from request(parameter): '"+request.getParameter("messageId")+"'"); But when I

Re: Validation and Tiles

2004-09-15 Thread josh
I may be assuming too much, but you didn't give me any of your xml files to look at so this is the best I can do. One thing you might be doing wrong is in your struts-config. You need to make sure that your input parameter in your action mapping points to the tiles definition for you page, and no

Re: [ANNOUNCE] Struts 1.2.4 Test Build Available

2004-09-15 Thread Wendy Smoak
From: "Matt Bathje" <[EMAIL PROTECTED]> > On the acquiring page it quite clearly says that 1.1 is the latest > stable build, and 1.2.4 is the latest dev build. It makes no mention of > 1.2.2. He has a point-- if you go to Download->Binaries it gives you 1.2.2. I asked about it on the dev list, ho

RE: Create and submit POST form from Action

2004-09-15 Thread David G. Friedman
Chris, I ran across this note which might help you. My comment is below. I found it when reading an article on http/https switching a moment ago (based upon a recent post about that topic with a link): -- BEGIN NOTE -- The second mechanism, the sendRedirect() method in the HttpServletRe

Re: [ANNOUNCE] Struts 1.2.4 Test Build Available

2004-09-15 Thread Terry Roe
Matt, I appreciate the fact that information is available "somewhere". However, your somewhere, my somewhere, and someone else's somewhere may not all be the same. My point is that inconsistent, inaccurate, or outdated information is misleading, causes confusion, and wastes time. I understand

Re: [ANNOUNCE] Struts 1.2.4 Test Build Available

2004-09-15 Thread James Mitchell
> > Your best bet is to check out the pages from cvs, make the changes, and > commit patches to bugzilla. That will get much more attention than just > posting to the dev list. Amen brudda!!! > > > Matt > -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.9

Re: how about some clarification vs saying things are ludicrous [partially OT]

2004-09-15 Thread Rick Reumann
Kris Schneider wrote the following on 9/15/2004 2:23 PM: Yeah, it's fine. For posterity, I didn't look closely enough at the quoting in the statement. The JSTL equivalent would be: function swapAction(formName, action) { formAction = document.getElementById(formName).action; newAction = '';

Re: how about some clarification vs saying things are ludicrous [partially OT]

2004-09-15 Thread Kris Schneider
Yeah, it's fine. For posterity, I didn't look closely enough at the quoting in the statement. The JSTL equivalent would be: function swapAction(formName, action) { formAction = document.getElementById(formName).action; newAction = ''; document.getElementById(formName).action = newActio

Re: [ANNOUNCE] Struts 1.2.4 Test Build Available

2004-09-15 Thread Matt Bathje
Terry Roe wrote: Matt and Wendy, Thanks for the info. I'm not attempting to "change" culture, but rather understand, and use, it as best I can. I know things can get messy now and then, but it will lead to confusion for the poor soul who's just discovered Struts and is trying dig their way in.

Re: [ANNOUNCE] Struts 1.2.4 Test Build Available

2004-09-15 Thread Terry Roe
Matt and Wendy, Thanks for the info. I'm not attempting to "change" culture, but rather understand, and use, it as best I can. I know things can get messy now and then, but it will lead to confusion for the poor soul who's just discovered Struts and is trying dig their way in. If a newbie sho

Re: how about some clarification vs saying things are ludicrous [partially OT]

2004-09-15 Thread Rick Reumann
Durham David R Jr Contr 805 CSPTS/SCE wrote the following on 9/15/2004 2:00 PM: See, that's not what I get when I run it. Are you sure you have that javascript snippet on a JSP with the import of the html taglib declared correctly on the top of the page (ie <%@ taglib prefix="html" uri="http://

RE: how about some clarification vs saying things are ludicrous [partially OT]

2004-09-15 Thread Durham David R Jr Contr 805 CSPTS/SCE
> > Ok, let me see if I've got it. > > > > In a JSP, you have exactly this code (along with other unimportant stuff > > before it and after it): > > > > function swapAction( formName, action) { > > formAction = document.getElementById( formName ).action; > > newAction = ''; > >

Re: [ANNOUNCE] Struts 1.2.4 Test Build Available

2004-09-15 Thread Rick Reumann
Terry Roe wrote the following on 9/15/2004 12:31 PM: My main problem is finding accurate, up-to-date information. This mailing list is a good source, but the noise level is high and it's easy to miss important information. Make sure you always view mailing lists threaded (I know you probably

Re: Struts 1.2.2 - html-tags and special chars in validator output

2004-09-15 Thread Matt Bathje
Marc Tinnemeyer wrote: Dear users, I currently try to migrate my struts-1.1-based project to version 1.2.2. So far it works quite nice except the point that the errors returned by a validation and taken from a resourcefile do look like this: Instead of the correct presentation of special chars like

Re: [ANNOUNCE] Struts 1.2.4 Test Build Available

2004-09-15 Thread Matt Bathje
Wendy Smoak wrote: From: "Terry Roe" <[EMAIL PROTECTED]> My main problem is finding accurate, up-to-date information. This mailing list is a good source, but the noise level is high and it's easy to miss important information. Could someone provide some insight into the strategy used for updating

Re: how about some clarification vs saying things are ludicrous [partially OT]

2004-09-15 Thread Rick Reumann
Durham David R Jr Contr 805 CSPTS/SCE wrote the following on 9/15/2004 1:41 PM: Ok, let me see if I've got it. In a JSP, you have exactly this code (along with other unimportant stuff before it and after it): function swapAction( formName, action) { formAction = document.getEl

Struts 1.2.2 - html-tags and special chars in validator output

2004-09-15 Thread Marc Tinnemeyer
Dear users, I currently try to migrate my struts-1.1-based project to version 1.2.2. So far it works quite nice except the point that the errors returned by a validation and taken from a resourcefile do look like this: Instead of the correct presentation of special chars like the german umlaute I

Re: [ANNOUNCE] Struts 1.2.4 Test Build Available

2004-09-15 Thread Wendy Smoak
From: "Terry Roe" <[EMAIL PROTECTED]> > My main problem is finding accurate, up-to-date information. This > mailing list is a good source, but the noise level is high and it's easy > to miss important information. Could someone provide some insight into > the strategy used for updating informatio

RE: how about some clarification vs saying things are ludicrous [partially OT]

2004-09-15 Thread Durham David R Jr Contr 805 CSPTS/SCE
Ok, let me see if I've got it. In a JSP, you have exactly this code (along with other unimportant stuff before it and after it): function swapAction( formName, action) { formAction = document.getElementById( formName ).action; newAction = ''; document.g

Re: ParseException on struts-config.xml

2004-09-15 Thread John Crossman
Well, for whatever reason, I can not get that to work. I would like to try a different approach... In what rev of Struts is the following supported: Thanks J Niall Pemberton wrote: Try changing the DOCTYPE declaration to: http://struts.apache.org/dt

Re: Mail Archive Access

2004-09-15 Thread Terry Roe
Josh, Great suggestion! Thank you. TR Bryce Fischer wrote: Josh Holtzman wrote: Can someone please provide me with the location of a mirror of the mailing list archive? I personally use gmane.org - To unsubscribe, e-mail: [EMAIL

Re: How To Handle Mis-Typing of URL By Users

2004-09-15 Thread Bill Siggelkow
Place this stancza below your welcome-file-list in your web.xml. You can use a static HTML page or a JSP. 404 /error404.jsp -Bill Siggelkow Caroline Jen wrote: I have many links in my web site. And, for example; the name of my web site is XYZCompany. and we type http://localhost:8080/X

c:out and bean:write?

2004-09-15 Thread Wei Gao
Hi, there I'm trying to use EL tag lib, but got problem with c:out. I have a action form bean, which include a map like this: public class MyFormBean { protected HashMap map = new HashMap(); public Object getProperty(String key) {...} public void setProperty(String key, Object value)

Re: [ANNOUNCE] Struts 1.2.4 Test Build Available

2004-09-15 Thread Terry Roe
Martin, et al, I have a few questions about announcements and the "current" version of Struts. First, is [EMAIL PROTECTED] defunct? (There are only two entries in it and neither is very recent.) Your message below states that 1.2.2 has been withdrawn. I see no evidence of this on the Struts

Re: Struts and Macromedia Flash

2004-09-15 Thread James Mitchell
You do the same thing as anyone else. It does not matter if the request came from a "web browser" or a "browser plugin" such as an applet, flash, or some other embedded component. It is all the same to the servlet container and thus is the same to Struts. -- James Mitchell Software Engineer /

Re: Switching between HTTP and HTTPS

2004-09-15 Thread mail
It's as easy es using the sslext plug in for struts. SSL can then be configured per page, form and link ... Chris Marco Mistroni wrote: Hello, Try to search in JavaWorld archive if I remember correctly there was once an article about using Struts with HTTP/HTTPS. My 0.02$.. Regards

Re: ParseException on struts-config.xml

2004-09-15 Thread Niall Pemberton
Try changing the DOCTYPE declaration to: http://struts.apache.org/dtds/struts-config_1_2.dtd";> I guess you're probably using Struts 1.2.2 - which has the same DOCTYPE declaration as you in the "examples" webapp - has been corrected in the current version (Struts 1.2.4) which is being considered/

Content Management Across Multiple Apps

2004-09-15 Thread josh
Hi all, I am writing multiple apps (~20) that all share the same sidebar navigation. Is there a way to make multiple applications use a central library of tiles so that I would be able to change or add a link in the library and it would affect all applications? In such a scenario could I add a l

ParseException on struts-config.xml

2004-09-15 Thread John Crossman
My struts-config is below the stacktrace. When I startup my webapp, I get the following the stacktrace. Why? It appears to have something to do with how I have my config'd, but I can't tell what's wrong. This is essentially what is present in the webapp/examples webapp which is distributed

How To Handle Mis-Typing of URL By Users

2004-09-15 Thread Caroline Jen
I have many links in my web site. And, for example; the name of my web site is XYZCompany. and we type http://localhost:8080/XYZCompany to get to view the web site. For example, there is a link 'directory' to get to the web page that shows the directory of the company. And users can type http://

Validation and Tiles

2004-09-15 Thread Caroline Jen
I am using tiles; a bar on the top, a pane on the left hand side, and a bar at the bottom of all web pages. I am also using the Struts validation to validate the form submitted. When users do not fill out forms as required, we have a "page" shown in the browser that shows the errors for all inval

Re: how about some clarification vs saying things are ludicrous [partially OT]

2004-09-15 Thread Rick Reumann
Durham David R Jr Contr 805 CSPTS/SCE wrote the following on 9/15/2004 9:58 AM: If we may take a more civil tone, do you still feel this way? Why don't you just try to actually use this function: function swapAction( formName, action) { formAction = document.getElementById(

RE: html:options Help

2004-09-15 Thread Jirole, Amar
Have you tried http://struts.apache.org/userGuide/dev_html.html? -Original Message- From: Priya Jotwani [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 10:57 AM To: [EMAIL PROTECTED] Subject: html:options Help Can somebody give me an example of how to use for populating

html:options Help

2004-09-15 Thread Priya Jotwani
Can somebody give me an example of how to use for populating my Listbox with the values returned by getFundlist() of my ActionForm ? TIA, Priya

Re: Problem forwarding with Servlet and Struts

2004-09-15 Thread Bill Siggelkow
What's your filter-mapping? Also, can you provide more info on your filter? What is it doing? Why is it forwarding? Typically a filter will simply call 'chain.doFilter(request, response)' to continue normal processing. -Bill Siggelkow Sebastian Ho wrote: Hi I don't know this is a struts or se

Re: Can multiple inputs have the same property name or should they all be unique?

2004-09-15 Thread James Neville
Erich Kilmer wrote: I have a page that shows widget data. This data lives on 4 different tabbed sections. Also above the tabbed region is a pull down that allows user to choose from 4 widget types. One of the tabbed areas changes for each of the different types using DHTML. This dynamic tab has a c

RE: Best load testing tool for Java applications

2004-09-15 Thread Chappell, Simon P
We used HttpUnit and Mike Clark's JUnitPerf, driven from within JUnit. Worked slick for us, but is a "programatic" solution, rather than point and click. - Simon P. Chappell [EMAIL PROTECTED] Java Programming Spec

Re: please wait page... like NWA.com

2004-09-15 Thread Håkon T Sønderland
Andrew Close wrote: [snip] you'll have to play with layout a bit to get things looking correct. when you submit just be sure to call your onclick="process();" or onchange="process();" function and you should be all set. HTH :) Yves, Andrew, Thanks for this, I'll experiment and see if I can get s

RE: Can multiple inputs have the same property name or should the y all be unique?

2004-09-15 Thread Jarnot Voytek Contr AU/SC
You can have form elements with the same name. But it won't do what you want. Upon form submission only the last (I believe) input element value (of those with the same name) will be submitted; but that's probably browser dependent. Displayed, or not, doesn't matter... -- Voytek Jarnot "Racing

Can multiple inputs have the same property name or should they all be unique?

2004-09-15 Thread Erich Kilmer
I have a page that shows widget data. This data lives on 4 different tabbed sections. Also above the tabbed region is a pull down that allows user to choose from 4 widget types. One of the tabbed areas changes for each of the different types using DHTML. This dynamic tab has a couple of inputs in

Re: Mail Archive Access

2004-09-15 Thread Bryce Fischer
Josh Holtzman wrote: Can someone please provide me with the location of a mirror of the mailing list archive? I personally use gmane.org - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: how about some clarification vs saying things are ludicrous [partially OT]

2004-09-15 Thread Durham David R Jr Contr 805 CSPTS/SCE
> > I tested the code -- not that I needed to do so, but still. > > I'm sure you didn't need to test it "Oh almighty coding God." Maybe I deserved that one. :) > > Here's an index.jsp that I've ran in Tomcat 5.x: > > > > > > > > > > > > function swapAction( formName, action) { > >

RE: Multiple button with same value using same Action class

2004-09-15 Thread Gupta, Sahil
The way i have done it is to pass a parameter to the same action. The parameter value changes based on what button was clicked before the form is submitted. It is impossible to have 2 methods with the same signature to be invoked. -Original Message- From: struts lover [mailto:[EMAIL PROTE

Re: Multiple button with same value using same Action class

2004-09-15 Thread struts lover
It is not possible with lookupdispatchaction class. You need to have different method signatures. You have to have different names for your cancel button like Cancel Sign, Cancel Reservation etc. --- Michael McGrady <[EMAIL PROTECTED]> wrote: > What you describe sounds impossible. How do you >

  1   2   >