how to open a window on click of a link

2002-12-20 Thread Mohammed_Rafeeq
hi, how to open a new window in click of a link i used this code CLICK HERE it gave the error i have given the appropriate mappings in the struts-config.html HTTP Status 404 - /screenLabelDetails.do type Status report message /screenLabelDetails.do description The requested resource (/screen

[OT] Struts/tomcat

2002-12-20 Thread Mohan Radhakrishnan
Hi, Why does the above cause two contexts to be initialized ? Now this loads only one context. The first context seems to be a duplication. What is the first context duplicating ? Thanks, Mohan -- To unsubscribe,

Re: [OT] HTTP "fetchmail" program?

2002-12-20 Thread Eddie Bush
You can check it on using a mail client that can do HTTP connections (OutlookExpress and ... surely there's another one). That's why I figured that ... well I was hoping beyond hope that someone knew of a fetchmail-like program that would do HTTP accounts. I suppose I could write something in

Re: [OT] HTTP "fetchmail" program?

2002-12-20 Thread Eddie Bush
Well I looked over the anything-but-extensive FAQ and didn't see anything about it. :-( James Mitchell wrote: I thought Hotmail provided POP3 support. You might have to pay (Yahoo does), but I know fetchmail has POP3 support. -- James Mitchell Software Engineer/Struts Evangelist http://www.o

RE: [OT] HTTP "fetchmail" program?

2002-12-20 Thread David Graham
If Hotmail provides POP3 support it would be news to me. I haven't found any info on that. I would love to stop going to the irritating Hotmail site and use an email client instead. I think that's exactly why they don't provide POP3 ;-). Dave From: "James Mitchell" <[EMAIL PROTECTED]>

RE: [OT] HTTP "fetchmail" program?

2002-12-20 Thread James Mitchell
I thought Hotmail provided POP3 support. You might have to pay (Yahoo does), but I know fetchmail has POP3 support. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away

[OT] HTTP "fetchmail" program?

2002-12-20 Thread Eddie Bush
I'm in a perdicament here. My wife is in Poland for a little while, and I figured I could set things up so that she could use one of the machines here at the house as a mail server while she was there. Hotmail won't let her connect from where she is, for some odd reason. Is anyone aware of a "

RE: reset doesn't work well

2002-12-20 Thread Loren Hall
> " public void reset(ActionMapping mapping, javax.servlet.http.HttpServletRequest request) > Reset all bean properties to their default state. This method is called before the properties are repopulated by the > > > controller servlet. My log indicates that the controller is populating a recycled

Re: Pre-populating Form Bean

2002-12-20 Thread Eddie Bush
Your problem is that you need validate="false" -- that will get rid of the requirement to have 'input="?"' and will allow your action to execute as you expect. Nothing major at all - very subtle problem. Mark Conlin wrote: This can not be the correct way to do this. I removed any reference to

RE: code too large for try statement

2002-12-20 Thread Michael Marrotte
The try block is in the Java generated by the servlet container from the JSP. -Original Message- From: David Graham [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 8:10 PM To: [EMAIL PROTECTED] Subject: Re: code too large for try statement Why is there a try/catch block? Davi

Re: disappearing images in struts templates

2002-12-20 Thread David Graham
Are the generated urls to the images the same on both machines? David From: Rachel <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: disappearing images in struts templates Date: Fri, 20 Dec 2002 23:35:19 + Hi I'm new to strut

Re: iterate tage and creating links - whats the "right" way ?

2002-12-20 Thread David Graham
You shouldn't need any scriptlet code to do this. You can just iterate through your contacts and use the Contact object's properties to construct the url. You would use an id property to tell the view page what record to display. David From: "Mark Conlin" <[EMAIL PROTECTED]> Reply-To: "

Re: code too large for try statement

2002-12-20 Thread David Graham
Why is there a try/catch block? David From: "Michael Marrotte" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: code too large for try statement Date: Fri, 20 Dec 2002 16:48:37 -0500 I'm using lots of Struts custom jsp tags, e.g

RE: [Book Review] Struts Kick Start

2002-12-20 Thread Jacob Hookom
We actually had Simon come as a guest speaker for our Seminar series on campus where he went into great detail of his service layer. I decided to implement the service layer on my final project for the semester (a fairly straight forward evaluation system for courses). Without any modification to

Re: javascript and STRUTS

2002-12-20 Thread Eric C. Hein
Rick, Thanks. The problem with setting a hidden field was that after the form is created the bean property was already overwritten. What I needed to do was set a javascript variable: theCity = new String(); This gets done before the form is created. Rgds, Eric - Original Message -

disappearing images in struts templates

2002-12-20 Thread Rachel
Hi I'm new to struts (an ASP and PHP developer trying to move to Java) and have a puzzling problem with the images in an application in which I have tried to use templates. I'm deploying onto the JBoss 3 / Tomcat 4 combination, building with Ant and have created a simple application basically

RE: no getter method for property phoneList

2002-12-20 Thread Richard Yee
Take a look at this page: http://jakarta.apache.org/struts/userGuide/building_controller.html#map_action_form_classes The problem is that you don't have methods to get the individual items from your lists. You need methods such as public String getPhoneItem(int index) { return phoneList_.get(i

RE: Pre-populating Form Bean

2002-12-20 Thread Mark Conlin
Yes, this did the trick, setting the validate="false" works great! Thank you so much. Mark -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 2:56 PM To: Struts Users Mailing List Subject: RE: Pre-populating Form Bean Don't validate the pr

iterate tage and creating links - whats the "right" way ?

2002-12-20 Thread Mark Conlin
I am creating "view" links along with a list of contacts. I have done so successfully but wanted feedback. I am currently doing the following: <% view.clear(); view.put("forward", "customer.view_contact"); view.put("key", index); %> This works, however I would like to use a prope

RE: [Book Review] Struts Kick Start

2002-12-20 Thread Jerome Jacobsen
> -Original Message- > From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] > > What's not so good? > > Just one niggle, and it's more of a programming style issue, but > in their example code they have references to their business > objects. They explain that it is important to separate out

RE: no getter method for property phoneList

2002-12-20 Thread Raffy_Lata
I tried almost every combination. Reversing the order, doing just the addressList then the just the phoneList. Whatever combination I use, the addressList is always introspected ok while the phoneList isn't. I even tried renaming the getPhoneList() to getTelephoneList() and then tried to invoke th

RE: reset doesn't work well

2002-12-20 Thread Siggelkow, Bill
Doug, I think you are misreading or misinformed about both the reset button and the reset method. The "reset" button does a client-side reset of the form -- there is no interaction with the server. The reset method is called by the ActionServlet when a form is reused -- but I do not think that

Re: Pre-populating Form Bean

2002-12-20 Thread Austin Lowry
Mark, We just happen to be fighting a similar problems today. Someone please correct me if I am off base here, which jugding by my results I am, but shouldn't this work (psudo-code): 1. MyForm myForm = (MyForm)form; 2. myForm.getValues() --> myStateObject.setValues(); 3. myStateObject.save(); 4

code too large for try statement

2002-12-20 Thread Michael Marrotte
I'm using lots of Struts custom jsp tags, e.g. logic, html, and bean. The JSP file size is about 27K. I'm getting the following error: 500 Servlet Exception /mainMenu.jsp:652: code too large for try statement } catch (java.lang.Throwable _jsp_e) { ^ /mainMenu.jsp:46: code too large for

RE: reset doesn't work well

2002-12-20 Thread Doug Ogateter
Hi, Bill: Thank you for reply. The ActionForm api says: " public void reset(ActionMapping mapping, javax.servlet.http.HttpServletRequest request) Reset all bean properties to their default state. This method is called before the properties are repopulated by the controll

Re: Positioning and naming of resource (.properties) files.

2002-12-20 Thread bbalmer
If your ApplicationResources.properties file is located under /classes/resources, then your should look like: application resources.ApplicationResources -Original Message- From: Simon Kelly [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 3:49 AM To:

[Book Review] Struts Kick Start

2002-12-20 Thread Chappell, Simon P
Book Review --- (In the Slashdot book review format) Struts Kick Start I started learning how to use the Struts framework in late in 2001, after I became fed-up with hacking web applications together with the digital equivalent of "Duct-tape Engineering". At that time there were no boo

Re: reset doesn't work well

2002-12-20 Thread Mark Lepkowski
In my experience, the reset condition is the state that the form was in when it was loaded. So if you have a checkbox set when the form is loaded, uncheck it, and click [Reset], the checkbox becomes checked again. - Original Message - From: "Doug Ogateter" <[EMAIL PROTECTED]> To: "Stru

RE: reset doesn't work well

2002-12-20 Thread Siggelkow, Bill
The really has nothing to do with the reset method of your form ... instead this renders an button that will reset the form fields to their "default" state as known by the browser. Therefore, in the case when you have returned to the form after a validation failure the default values are the

Re: javascript and STRUTS

2002-12-20 Thread Rick Reumann
On Friday, December 20, 2002, 3:29:15 PM, Eric wrote: ECH> Is there anyway to capture the value of the bean before it is overwritten? Since your using javascript coulnd't you set a hidden field "oldValue" that you can set before you do any overwriting? Then you would have access to the old valu

reset doesn't work well

2002-12-20 Thread Doug Ogateter
Hi: I have a problem with reset button. In my jsp file, I have . In my form class, I have: public void reset(ActionMapping mapping, HttpServletRequest request) { amount = null; password = null; } in the struts-config.xml file, it has: I filled out the fi

javascript and STRUTS

2002-12-20 Thread Eric C. Hein
Background: In my form I have a field "city" that the user selects from a drop down list. The city dropdown is initially setup to have one option that cues the user to select a county first (-1, select county first). After the user selects a county the options list for city is then set to a ja

RE: no getter method for property phoneList

2002-12-20 Thread Greg.Reddin
Here's some questions: 1) If you reverse the order of the iterate tags, iterating over phoneList first and addressList second, do you get the same results? 2) Does the address information render correctly if you comment out the phoneList info? 3) Do you get the same error if you comment ou

Re: Pre-populating Form Bean

2002-12-20 Thread Mark Lowe
As a side note I'd watch out putting dots in your actions .. I was doing the same and it worked .. and then i was getting an error that complained it could find the action... perhaps it was the release i was using or something, but i'd hate someone else to wash time out over this as well.. If its

RE: Pre-populating Form Bean

2002-12-20 Thread Robert Taylor
Don't validate the pre edit Action. This should allow your form to propogate to the Action.execute() where you can populate the form. Make sure you are forwarding to the destination page and not redirecting. Your almost there, don't give up yet. So set validate="false" in the struts config file for

RE: [Tiles] definitionsFactory problem

2002-12-20 Thread Greg.Reddin
> Take a look the controllerClass attribute of the definition > element in the > tiles config. It allows you to specify a controller class of > type package > org.apache.struts.tiles.Controller. This class is executed > before the tile > it is associated with is rendered and can be used to >

RE: Pre-populating Form Bean

2002-12-20 Thread Mark Conlin
This can not be the correct way to do this. I removed any reference to the form from the pre-Action: Then I placed the Form into the session in the action like this: session.setAttribute( "customerDetailsForm", custForm); This works but, I do not want to hard-code the form reference like th

RE: Pre-populating Form Bean

2002-12-20 Thread Mark Conlin
Okay, I think I am missing something major here. By watching the log files I see the following. 1)Proccessing my pre edit Action - "customer.customAccountDetails.pre.edit" 2)Struts then looks for my ActionForm - "customerDetailsForm" 3)Struts then creates my ActionForm since it can not find it

RE: [Announce / help] STRUTS - Help needed on open source project

2002-12-20 Thread James Mitchell
I can't speak for everyone, but it is not very clear (from the main page) what your website is about. I had to go to the faq to grasp what is going on. (hint - add 'what is open stack' to your main page) So, basically, (guessing) you guys are like a Marketing dept for Open Source Java Development?

RE: Cancel & Submit Buttons

2002-12-20 Thread Siggelkow, Bill
You could do it in your action like; if (isCancelled(request)) return mapping.findForward("mainMenu"); -Original Message- From: Bradley G Smith [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 2:13 PM To: [EMAIL PROTECTED] Subject: Cancel & Submit Buttons Can someone please de

Cancel & Submit Buttons

2002-12-20 Thread Bradley G Smith
Can someone please describe how to enable an action to respond to submit and cancel buttons differently? The action is derived from the scaffold.BaseAction class. I have submit working to generate a response. I would like cancel to redirect to the main menu of the application. I suppose one soluti

RE: JSTL Discussion List?

2002-12-20 Thread John Bigboote
If you want the archives, go to: http://jakarta.apache.org/site/mail2.html Scroll down to TagLibs. HTH John --- Robert Taylor <[EMAIL PROTECTED]> wrote: > http://jakarta.apache.org/taglibs/index.html#MailingLists > > robert > > > -Original Message- > > From: Paul Hodgetts,

Re: kiosk mode browser

2002-12-20 Thread Daniel Jaffa
We should all try to protect users from themselves. - Original Message - From: "Chappell, Simon P" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, December 20, 2002 11:47 AM Subject: RE: kiosk mode browser Agreed. Public websites should never try to

RE: how to get JDBC source defined in struts in another servlet

2002-12-20 Thread James Mitchell
I'm sure you could just grab in out of the servletContext. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup > -Original

RE: JSTL Discussion List?

2002-12-20 Thread Robert Taylor
http://jakarta.apache.org/taglibs/index.html#MailingLists robert > -Original Message- > From: Paul Hodgetts, Agile Logic [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 1:45 PM > To: [EMAIL PROTECTED] > Subject: JSTL Discussion List? > > > Is there a discussion list that is

RE: no getter method for property phoneList

2002-12-20 Thread Sri Sankaran
Since you *are* able to iterate over addressList I surmise that there *is* a bean with key "party". No problem on that front. You should therefore be able to similarly get the List for phones. Can you possibly post your Party class here in its entirety? Sri > -Original Message- > Fro

RE: no getter method for property phoneList

2002-12-20 Thread Vinh Tran
Try getting the phoneList all by itself to isolate the problem. You may in fact be able to retrieve the list just fine and there is some other issue. Vinh -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 1:42 PM To: Struts Users Mailin

JSTL Discussion List?

2002-12-20 Thread Paul Hodgetts, Agile Logic
Is there a discussion list that is either dedicated to JSTL discussions, or at least has the majority of the good ones? I've looked around a bit and haven't found one yet. Thanks, Paul -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: no getter method for property phoneList

2002-12-20 Thread Raffy_Lata
No, I don't have any overloaded methods. I even created a getBogusList() and setBogustList(List) just to make sure I'm not overloading anything and I had the same problem. "Sri Sankaran" <[EMAIL PROTECTED]> on 12/20/2002 10:34:35 AM Please respond to "Struts Users Mailing List" <[EMAI

RE: Pre-populating Form Bean

2002-12-20 Thread Mark Conlin
Okay so I have done the following... I placed name="customerDetailsForm" into my action declaration.. It wanted an input field as well so I added that too. Now my form comes up and it is still not populated... My action execute code is below... are you sure I don't need to place the custForm bac

RE: no getter method for property phoneList

2002-12-20 Thread Sri Sankaran
Are there any overloaded setters for phoneList that you haven't shown. If that is the case, you *will* have this problem. Sri > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 1:18 PM > To: Struts Users Mailing List > Subject: n

RE: no getter method for property phoneList

2002-12-20 Thread Wendy Smoak
> I have a very simple class named Party > iterating on addressList is fine > However I get a > : No getter method for property phoneList of bean party Try setting the 'type' attribute of the logic:iterate tag. I have no idea why it works for one property and not the other, though! -- Wendy Smo

no getter method for property phoneList

2002-12-20 Thread Raffy_Lata
I'm getting desperate with my problem. I have a very simple class named Party defined as public class Party() { public Party() ArrayList phoneList_ = new ArrayList(); ArrayList addressList_ = new ArrayList(); public ArrayList getPhoneList() { return phoneList_;

RE: [Announce / help] STRUTS - Help needed on open source project

2002-12-20 Thread Harshal D
James, Good question . We are NOT FOR PROFIT. We are using .com as well as .org just because we got the domain and .com is easy for our ‘target audience’ – enterprise developers’. To understand furthe please check out: http://www.theopenstack.com/main/staticpages/index.php?page

Re: Struts Validator printing out starting JavaScript Tag Problem

2002-12-20 Thread Scott Reisdorf
Nevermind I got it to work. i had my validation.xml file properties wrong. Sorry. At 08:30 AM 12/20/2002 -0800, you wrote: Hi All, I am having problems using the Struts Validator Plugin and getting it to print out the starting JavaScript Tag - "

Re: Pre-populating Form Bean

2002-12-20 Thread Eddie Bush
If this is a form which you've declared in your config file, and it's associated with this action and you're forwarding to a JSP, you really needn't bother sticking it into any scope. Struts will do this for you. Just populate the form and return an ActionForward and let Struts do it's thing.

Pre-populating Form Bean

2002-12-20 Thread Mark Conlin
I would like to pre-populate a form bean for an edit screen. I have spent the last hour or two reading the archives and still I have failed to find the help I need. Any feedback would be appreciated. I have an Action class CustomerAccountDetailsPreEditAction that pre-populates my form. However,

how to get JDBC source defined in struts in another servlet

2002-12-20 Thread Sash Sash
Hi, I would like to create a servlet that loads specific resources (puts beans into app context to be used by jsp's and action classes) when the webapp first launches. For this task I require a JDBC source that is defined in the struts config file. How can I get this datasource in my servle

DynaActionForm isn't dyna enough

2002-12-20 Thread John . E . Gregg
Hi all, I'm trying to create a jsp that will display an arbitrary list of items (all of the same type), each with its own select box to adjust a property. I don't know in advance how many of these items there are, so I can't really specify them in my struts-config file. It appears, however, that

Re: kiosk mode browser

2002-12-20 Thread Vincent Stoessel
Kevin A. Palfreyman wrote: I'm pretty sure the common browsers already do this. MS IE http://support.microsoft.com/default.aspx?scid=KB;en-us;q154780 Mozilla http://tln.lib.mi.us/~amutch/pro/mozilla/kioskmode.htm http://kiosk.mozdev.org/ This any help? Kev Very cool info, thanks. I still

Re: kiosk mode browser

2002-12-20 Thread Vincent Stoessel
Oh yes, I should have been more clear. I would never recommend kiosk for a public, I was talking about very specific and targeted internal business apps. Chappell, Simon P wrote: Agreed. Public websites should never try to use kiosk mode or any of the other evil things they can do. Internal w

Re: how can I use the tag value in another tag?

2002-12-20 Thread Mark Lepkowski
Why are JSP scriptlets to be avoided? > It's considered a good idea to avoid > using runtime JSP expression scriptlets... -- To unsubscribe, e-mail: For additional commands, e-mail:

[Tiles] Last Nightbuild

2002-12-20 Thread Fabrice BLANQUART
Hi, I get the last night build in order to test the "ModuleAware" part of tiles. But I have problem using the TilesRequestProcessor when I switch form one module to another. It seems that it can't find my tiles name in the definitionFactory. In debug , I discover that the Moduleconfig was switc

RE: [FRIDAY] a javascript a day keeps the server away...

2002-12-20 Thread Andrew Hill
I dont know how to best describe that page. Its like a twisted mixture of lame and compelling at the same time. I dont know what its designer was on at the time he wrote it, but I want some... lol -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Saturday, December

RE: [FRIDAY] a javascript a day keeps the server away...

2002-12-20 Thread James Mitchell
Holy Footprint Batman! That page sucked 100% of my system resources to render! And I have 1/2 a GIG!!! I thought I heard a painful moaning sound, and when page finally came up, I realized it was coming from Phoenix. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tool

RE: kiosk mode browser

2002-12-20 Thread Chappell, Simon P
Agreed. Public websites should never try to use kiosk mode or any of the other evil things they can do. Internal web applications, however, can and I would say should, use kiosk mode to help protect the users from themselves. Simon --

RE: kiosk mode browser

2002-12-20 Thread Kevin A. Palfreyman
I'm pretty sure the common browsers already do this. MS IE http://support.microsoft.com/default.aspx?scid=KB;en-us;q154780 Mozilla http://tln.lib.mi.us/~amutch/pro/mozilla/kioskmode.htm http://kiosk.mozdev.org/ This any help? Kev > -Original Message- > From: Vincent Stoessel [m

RE: kiosk mode browser

2002-12-20 Thread Chappell, Simon P
We did that here at Lands' End for the system that we put live in our distribution centre. We use thin client terminals (the brand and model escape me right now) running XP (I think, it might be W2K) and Internet Explorer 5.5 (I'm quite certain of this). The terminals use a touch screen disply.

RE: kiosk mode browser

2002-12-20 Thread Chen, Gin
IMHO, kiosk mode is probably the worst thing a website can do. Its just plain intrusive. FYI, this is a humorous take on bad site design. http://www.webpagesthatsuck.com/ Now from a strut's perspective, the back buttons can usually be handled by just turning on nocache. ex: -Tim -Origin

RE: how can I use the tag value in another tag?

2002-12-20 Thread Karr, David
Note that using the EL (JSTL expression language, with Struts-EL and JSTL) is not really "script". It's considered a good idea to avoid using runtime JSP expression scriptlets, which these are not. If you don't use either Struts-EL or the JSTL, it's difficult to do this sort of thing without usin

RE: kiosk mode browser

2002-12-20 Thread Andrew Hill
This being something corporations et al.. could have their people use to access corporate intranet apps without bollocksign everything using back buttons or navigating anywhere they please just by typing in a url? That could be quite popular. Mozilla would certainly be the best base to work from t

Struts Validator printing out starting JavaScript Tag Problem

2002-12-20 Thread Scott Reisdorf
Hi All, I am having problems using the Struts Validator Plugin and getting it to print out the starting JavaScript Tag - "

kiosk mode browser

2002-12-20 Thread Vincent Stoessel
I was was wondering about what people think about implementing a kiosk style browser on the client end of a struts app. I was thinking mozilla because it is already ported to so many platforms and it can be customized without paying for a development license. By kiosk mode, I mean that the brosw

RE: [OT] [FRIDAY] a javascript a day keeps the server away...

2002-12-20 Thread Andrew Hill
rofl. Does too. I note the trees dont seem to have any sounds in mozilla either. Works fine and fast in IE5 of course... -Original Message- From: James Childers [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 21, 2002 00:18 To: Struts Users Mailing List Subject: RE:[OT] [FRIDAY] a java

RE:[OT] [FRIDAY] a javascript a day keeps the server away...

2002-12-20 Thread James Childers
> -Original Message- > From: Andrew Hill [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 20, 2002 10:11 AM > To: Struts Users Mailing List > Subject: [FRIDAY] a javascript a day keeps the server away... > And for a practical example of just how useful javascript can > be check out

RE: Can you change the form action??

2002-12-20 Thread Alvarado, Juan (c)
You are a perfect candidate for either DispatchAction or LookupDispatchAction. LookupDispatchAction will allow you to avoid javascript. I suggest you take a look at Ted's site http://husted.com (I think) and review his tips on the two actions mentioned above. This post will also help you: http:/

Can you change the form action??

2002-12-20 Thread awc
Hi All, Can you change the value of by inspecting a incoming variable?? I have a four action classes : AddAction, DeleteAction, UpdateAction and LoadAction and one form => The userForm. If incoming parameter action=New, I want to change the form action to . If incoming parameter action=Update,

Re: Struts 1.0.2 ActionForm checkbox question

2002-12-20 Thread Eddie Bush
You could have another boolean field which you'd use as an indicator of what to do: boolean firstTime = true; if (!firstTime) { contractInstructor = false; } else { firstTime = false; } Jim Coble wrote: I'm using Struts 1.0.2 with Tomcat 4.1.12. I have an ActionForm with a checkbox who

[FRIDAY] a javascript a day keeps the server away... [WAS: RE: How does LookupDispatchAction lookup.]

2002-12-20 Thread Andrew Hill
Oh come on! Dont you know that the latest research suggests a little javascript is good for your heart. Oh wait a second - thats beer. Well I guess its that day of the week again ;-) And for a practical example of just how useful javascript can be check out this oddity I found while looking for

Struts 1.0.2 ActionForm checkbox question

2002-12-20 Thread Jim Coble
I'm using Struts 1.0.2 with Tomcat 4.1.12. I have an ActionForm with a checkbox whose default value I would like to be "on". I accomplished that by initializing the underlying bean property to true. However, I am having trouble detecting if the box is unchecked when the form is submitted. I

RE: How does LookupDispatchAction lookup.

2002-12-20 Thread James Mitchell
I agree with Juan. Although you will want to weigh your options, especially if you have rather large resource bundle(s). -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blow

RE: How does LookupDispatchAction lookup.

2002-12-20 Thread Alvarado, Juan (c)
I have had the same issues you are having, and I just went with LookupDispatchAction. I'm not 100% sure if the way I do my apps is the 100% correct way, but what I do is for any button that has white space as its value, I store a key in my ApplicationResources.properties and use that key in conjunc

RE: How does LookupDispatchAction lookup.

2002-12-20 Thread ROSSEL Olivier
> I think you are missing the point of what > LookupDispatchAction is about. > It solves a specific problem with i18n'd button labels. > > It sounds like you might be more interested in DispatchAction. Ted says that JavaScript is needed with Dispatch Action. My problem with DispatchAction is th

RE: beanutils.populate with formbeans and vectors

2002-12-20 Thread Yee, Richard K,,DMDCWEST
No, they need to be different. The getMyItem(int index) and setItems(int index, Object obj) could be named anything ie. getFoo(int index) etc. See http://jakarta.apache.org/struts/userGuide/building_controller.html#map_acti on_form_classes Regards, Richard > -Original Message- > From: M

RE: How does LookupDispatchAction lookup.

2002-12-20 Thread Alvarado, Juan (c)
take a look at this posting. It explains to you how it works. http://www.mail-archive.com/struts-user@jakarta.apache.org/msg51209.html -Original Message- From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 9:28 AM To: '[EMAIL PROTECTED]' Subject: How does Looku

question about the internationalization

2002-12-20 Thread Tom
Is it true that the Struts framework only facilitate internationalization with Unicode or UTF8 encoding method? In other words, it is not possible to use different encoding methods for different locales. For example of the locale and encoding pairs en_US iso8859_1 eniso8859_1 zh_TW BIG5 zh_HK

RE: How does LookupDispatchAction lookup.

2002-12-20 Thread James Mitchell
I think you are missing the point of what LookupDispatchAction is about. It solves a specific problem with i18n'd button labels. It sounds like you might be more interested in DispatchAction. -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org "C makes it easy to sho

RE: How does LookupDispatchAction lookup.

2002-12-20 Thread Wendy Smoak
> I want to use LookupDispatchAction. > Reading one of Ted's tips, it seems that the value returned by my > submit buttons MUST be stored in a .properties file, and looked up > inside my JSP: > > > > There's no way to have a hard-coded value? or a value > coming from somewhere else? > Then how

RE: html:select woes

2002-12-20 Thread John . E . Gregg
I see now that my opening form tag ended with a "/". Duh. What a difference a day makes. thanks john -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 19, 2002 5:55 PM To: Struts Users Mailing List Subject: RE: html:select woes You need to have

RE: [Announce / help] STRUTS - Help needed on open source project

2002-12-20 Thread Micael
Are there complimentary sampans? At 09:13 AM 12/20/02 -0500, you wrote: So what exactly do you want? Free labor? -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away

RE: Trying to get struts working.

2002-12-20 Thread Hurdle, Robert H, PERSCOM
I had a similar problem. I believe it was due to not referencing the getter/setter form correctly in the jsp or validation.xml file. The chapter in Struts in Action on validation was very helpful - its available at http://www.manning.com/getpage.html?project=husted&filename=chapters.html (chap 12

How does LookupDispatchAction lookup.

2002-12-20 Thread ROSSEL Olivier
I want to use LookupDispatchAction. Reading one of Ted's tips, it seems that the value returned by my submit buttons MUST be stored in a .properties file, and looked up inside my JSP: There's no way to have a hard-coded value? or a value coming from somewhere else? Then how do I code the getK

RE: [Announce / help] STRUTS - Help needed on open source project

2002-12-20 Thread James Mitchell
So what exactly do you want? Free labor? -- James Mitchell Software Engineer/Struts Evangelist http://www.open-tools.org "C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup > -Original Message- > Fro

Re: Workflow Extension Goes Back a Page Problem

2002-12-20 Thread Matthias Bauer
Hi Jerry, consider the slightly modified configuration taken from the test application shipped with the workflow extension, I attached below: It defines a sequence of actions like that: -- beginWf1Transition --> State=1 -- wf1St2Transition--> State=2 --wf1St3Transition--> State=3 --endWf1Tran

Error messages for JavaScript validation

2002-12-20 Thread Laurent Vanzeune
When using client-side validation (JavaScript) with multiple Struts sub-applications, the error messages are not found in the message resource file of the sub-application. It works when I add these messages in the message resources file of the main application. Any idea? Thanks, Laurent. -- To

Re: no getter method exception

2002-12-20 Thread Michael Olszynski
But how shall I make indexed getters and setters? A lot of guys told me that I do have to make indexed getters and setters in my formbean, otherwise I get an indexoutofboundsexception. (See my last 5 posts on benutils.populate) Do you have any idea how to solve this problem? Thanks a lot Michael

RE: no getter method exception

2002-12-20 Thread Andrew Hill
(Multiple getters and setters for the same property name I mean) -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 20:22 To: Struts Users Mailing List Subject: RE: no getter method exception Ah think I see your problem. Its not that you dont

RE: no getter method exception

2002-12-20 Thread Andrew Hill
Ah think I see your problem. Its not that you dont have a getter, its that you have too many! The bean introspection stuff gets funny about multiple getters and setters and often refuses to recognise the property :-( Afaik multiple getters and setters is agaisnt the JavaBean spec. If you ask me th

no getter method exception

2002-12-20 Thread Michael Olszynski
Hi I get a no getter method exception (stackTrace below) But I do have the getter method!!! This is my Formbean: public class TimeProofFormBean extends ActionForm { private Vector timeProofList = new Vector(); public Vector getTimeProofList() { System.out.println("getTimeProofList(

Re: Compliment Frameworks

2002-12-20 Thread V. Cekvenich
ROSSEL Olivier wrote: O/R is not always needed. Sometimes you just want to work with a relational master/detail (ie, next row(); next row();). My concern is not to have to think in term of (for example) Primary Key/Foreign Key or Conposite Key... Sometimes the business requirements are that

  1   2   >