RE: Auto-Replies

2002-05-10 Thread Pedone, Tim
Because some watery tart gave him a sword. -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, May 10, 2002 12:45 PM To: 'Struts Users Mailing List' Subject: RE: Auto-Replies How do you know he's a king? -Original Message- From: James Mitchell

RE: bean:write returning null

2002-05-10 Thread Pedone, Tim
Couln't you use the ignore=true flag instead? bean:define id=bubba name=foo property=bar/ bean:write name=bubba ignore=true/ If bubba were null, nothing would get written. You could take this one step further if you were simply checking the bean itself and not a property of the bean for null:

RE: XMLC Article on the Serverside

2002-05-02 Thread Pedone, Tim
Here's an article comparing Velocity and XMLC. It points out some of the short comings of XMLC so it is somewhat relavent. Of course you can use Velocity with Struts too. http://jakarta.apache.org/velocity/casestudy2.html -Original Message- From: Dan Cancro [mailto:[EMAIL PROTECTED]]

RE: Passing parameters directly to Action Servlet

2002-05-01 Thread Pedone, Tim
You can use the query string to pass parameters to your Action class: http://www.whatever.com/myapp/myaction.do?color=red Then use request.getParameter(color) to retrieve the query parameter in the Action class. In this case you are still using an Action class not Action Servlet. Don't

RE: PLEASE HELP !!!

2002-04-30 Thread Pedone, Tim
- From: Pedone, Tim [mailto:[EMAIL PROTECTED]] Sent: Monday, April 29, 2002 5:03 PM To: 'Struts Users Mailing List'; '[EMAIL PROTECTED]' Subject: RE: PLEASE HELP !!! If you have control over the html that is rendered then you can use the property=property(name) technique. Just add void

RE: Struts reflection can't find getters on form bean

2002-04-25 Thread Pedone, Tim
Don't html:radio tags expect boolean values? I know my html:checkbox values all use booleans not Strings. Worth a try. Tim -Original Message- From: Edward Muller [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 12:41 PM To: Struts Users Mailing List Subject: Re: Struts

RE: Struts reflection can't find getters on form bean

2002-04-25 Thread Pedone, Tim
According to the docs, the value property is required for radio tags but not for text tags so if your tag does not have the value property, then changing the type from radio to text would work, changing from text to radio would not. Tim -Original Message- From: [EMAIL PROTECTED]

RE: Struts reflection can't find getters on form bean

2002-04-25 Thread Pedone, Tim
Are you sure that the getter/setter is getting called for your usDollarEquivalent attribute. If Struts can't find the getter, it just silently uses the value from the value tag. This is probably a case issue. If your getter is getUSDollarEquivalent() then your property should be

RE: Struts reflection can't find getters on form bean

2002-04-25 Thread Pedone, Tim
case, the tag has a value attribute, both when I make it html:radio and html:text. -Original Message- From: Pedone, Tim [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 25, 2002 1:42 PM To: 'Struts Users Mailing List' Subject: RE: Struts reflection can't find getters on form bean

RE: problem trying to use my own actions

2002-04-09 Thread Pedone, Tim
I had a similar problem. Turned out that I was overriding setServlet(). There was an exception in my implementation of setServlet() that was causing my Action to not get fully initialized resulting in a blank page when I accessed it. The same thing might happen if your constructor or other

RE: Possble bug in html:link tag

2002-03-21 Thread Pedone, Tim
Upon further investigation, looks like the problem resides with my Servlet engine's implementation of Response.encodeURL() Tim -Original Message- From: Pedone, Tim [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 21, 2002 8:53 AM To: '[EMAIL PROTECTED]' Subject: Possble bug in html:link

RE: Possble bug in html:link tag

2002-03-21 Thread Pedone, Tim
21, 2002 12:18 PM To: Struts Users Mailing List Subject: RE: Possble bug in html:link tag Its actually the order in which the url is built inside org.apache.struts.util.RequestUtils. Look at the computeURL method. -Shyam Pedone, Tim Tim_Pedone@i

html:link and additional parameters

2002-03-20 Thread Pedone, Tim
I've got an app that uses the feature of the html:link tag to append additional parameters to the url. Because we are not sure how different systems (browsers or proxy servers) will handle long query strings, we want to put the least significant parameter at the end of the query string so if a

RE: about getting data from Hashtable

2002-03-18 Thread Pedone, Tim
TreeMap is sorted. You could copy the values into a TreeMap: TreeMap map = new TreeMap(unsortedHash); -Original Message- From: Laker,Nan [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 17, 2002 4:47 PM To: Struts Users Mailing List Subject: about getting data from Hashtable Hi all,

RE: preventing ActionForm reset() from being called

2002-02-26 Thread Pedone, Tim
From a search of the archives (you did search the archives first, right?) http://www.mail-archive.com/struts-user@jakarta.apache.org/msg21719.html -Original Message- From: Charlie Toohey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 1:50 PM To: [EMAIL PROTECTED] Subject:

RE: Request: Property vs Attribute

2002-02-14 Thread Pedone, Tim
Is userID a member of your ActionForm subclass? If you make it a member of your ActionForm, it will get maintained (provided you don't wipe it out in your reset() method) for you if you have a html:hidden property=userID/ tag in your jsp. I tried this using a session scoped form and it worked.

RE: unable to get property when text field is disabled

2002-02-08 Thread Pedone, Tim
Disabled text fields are not posted to the server per the HTTP spec so Struts can't see it as a parmeter. You'll either have to use a hidden field or put the value in session scope. Tim -Original Message- From: Cheng, Sophia [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002

RE: Adding/Modifying parameters in the Request object

2002-01-25 Thread Pedone, Tim
You can call request.getParameterMap() which returns a Map object that you can manipulate. Tim -Original Message- From: Freek Segers [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 11:34 PM To: Struts Users Mailing List Subject: Adding/Modifying parameters in the Request

RE: Adding/Modifying parameters in the Request object

2002-01-25 Thread Pedone, Tim
call. Is there another way to do this besides adding it in the url (which doesn't work because of the data size) ? Thanks! -Original Message- From: Pedone, Tim [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 9:32 AM To: 'Struts Users Mailing List' Subject: RE: Adding/Modifying

RE: ActionForm and request parameters

2002-01-24 Thread Pedone, Tim
If I'm not mistaken, if you link directly to the action (MyAction?parm=X), then Struts should put X into the ActionForm associated with that action if it has a parm attribute. It that what you are tring to accomplish? Tim -Original Message- From: Bryan P. Glennon [mailto:[EMAIL

MessagesPresent tag

2002-01-11 Thread Pedone, Tim
I noticed a tag called messagesPresent in the logic tag docs http://jakarta.apache.org/struts/struts-logic.html#messagesPresent but got a Can't find tag lib error. Is this a future feature? I'm trying to use it to detect if there is an ActionError of a particular kind. I've got a form with