problem with bean:write and capitalization of attribute name

2003-08-14 Thread Wes Rood
I have an object as follows public class Contact { ... private String lName; // the contact's last name private String fax; // the contact's fax number ... public String getLName() { return lName; } public String getFax() { return fax; } ... } Then I use

Re: problem with bean:write and capitalization of attribute name

2003-08-14 Thread Wes Rood
. Regardless, I encourage you to use lastName instead because lName is rather ugly and confusing. David --- Wes Rood [EMAIL PROTECTED] wrote: I have an object as follows public class Contact { ... private String lName; // the contact's last name private String fax; // the contact's fax number

Re: problem with bean:write and capitalization of attribute name

2003-08-12 Thread Wes Rood
getLName isn't). Use lastName and everything will work fine :-). David --- Wes Rood [EMAIL PROTECTED] wrote: Could you point me to more information on this behavior? I'm still confused as to why it will capitailze the f in fax to locate the getFax() method, but it will not capitalize the l

Re: Defining request parameters in action-fowards (or an alternative)

2003-07-24 Thread Wes Rood
I'm interested in other solutions to this as well. My current solution to the same problem is to store key information in the session and use that in conjunction with information from the url. So, using your example, you would store the merchant id in the session as soon as the user begins

Re: actions best practice question

2003-07-18 Thread Wes Rood
Currently I used a ForgotPassword.do, and in the action I check if there's an 'action' parameter with the value of 'send'. If the 'action' parameter does not exist then I locally forward to the ForgotPassword.jsp using struts-config.xml local forwards configuration. If it does exist and equals to

reusing same form for inserts and updates

2003-07-15 Thread Wes Rood
I've searched the archives for this type of discussion but I'm not really finding what I want. I'd like to reuse the same jsp form for both inserts and updates of a particular set of data. My current solution is to come into the action with a flag of new or edit. If edit, the action will

Re: reusing same form for inserts and updates

2003-07-15 Thread Wes Rood
Woops... after thinking about this more, I realized that I *have* to put the primary key in the form somewhere, or I won't know what record to update... I'd still like to hear your experiences in this area though... Thanks Wes Rood wrote: I've searched the archives for this type of discussion

Re: two little questions

2003-07-14 Thread Wes Rood
Q1: Look at OSCore from Opensymphony: http://www.opensymphony.com/oscore/ Specifically, the plainTextToHtml method in the TextUtils class: http://www.opensymphony.com/oscore/api/com/opensymphony/util/TextUtils.html#plainTextToHtml(java.lang.String) This does exactly what Andrew mentions, plus it

need help with nested:iterate tag -- NullPointerException

2003-07-11 Thread Wes Rood
Hi I was trying to convert a logic:iterate into a nested:iterate and I'm getting a NullPointerException. First off, the Action is adding a List to the request like this: request.setAttribute(courseProviderList, theList); and the JSP is successfully iterating through the objects using