RE: Why there is no getHeader(String headerName) and getHeaders() met hod in HttpServletResponse?

2004-03-26 Thread Yee, Richard K,,DMDCWEST
Larry, For debugging purposes, the org.apache.soap.util.net.TcpTunnelGui utility is useful. It's in the Jakarta Soap project jar file. It will let you view the headers and the markup sent to/from your browser. -Richard -Original Message- From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]

RE: pre-populating DynaValidatorForm

2004-03-25 Thread Yee, Richard K,,DMDCWEST
DynaValidatorForm Isn't this assuming there are no modules? sandeep -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 24, 2004 7:11 PM To: 'Struts Users Mailing List' Subject: RE: pre-populating DynaValidatorForm Dean, Here's

RE: pre-populating DynaValidatorForm

2004-03-24 Thread Yee, Richard K,,DMDCWEST
Dean, Here's the essential code in order to instantiate a DynaActionForm from within an Action class. FormBeanConfig fbc = new FormBeanConfig(); fbc.setName(myForm); DynaActionFormClass dafc = DynaActionFormClass.createDynaActionFormClass(fbc); DynaActionForm formBean = (DynaActionForm)

RE: DyanActionValidatorForm clarification please

2004-02-10 Thread Yee, Richard K,,DMDCWEST
Vincent, Do you have an entry in your map named page? Not having the entry will cause your problem. -Richard -Original Message- From: Vincent [mailto:[EMAIL PROTECTED] Sent: Friday, January 30, 2004 10:39 AM To: Struts Users Subject: DyanActionValidatorForm clarification please Hello

RE: LookupDispatchAction problem

2004-02-10 Thread Yee, Richard K,,DMDCWEST
Søren, The error message indicates that you are missing a button.search entry in your Application Resources file. -Richard -Original Message- From: Søren Hjarlvig [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 10, 2004 2:13 PM To: [EMAIL PROTECTED] Subject: LookupDispatchAction

RE: unable to find jakarta-poi jar file from the downloaded .tar file. pls. help me finding the right .zip/.tar file location (link).

2004-02-05 Thread Yee, Richard K,,DMDCWEST
srinivas, Since you downloaded the source file, you need to build it. When you build it, it will make the .jar files. If you do not want to build it, then download the binary distribution instead. Rgds, Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent:

RE: Html:text printing null

2004-02-05 Thread Yee, Richard K,,DMDCWEST
Anant, Either set the values of your strings when you declare them to or set them to in the constructor of your FormBean. Rgds, Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 10:42 PM To: [EMAIL PROTECTED] Subject:

RE: messages/errors 2 form's 1 page

2004-02-04 Thread Yee, Richard K,,DMDCWEST
Mark, Use logic tags to prevent/allow the html:message tag that is displaying the errors. Key on a value that is set according to which form caused the error. -Richard -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 04, 2004 8:02 AM To: Struts

RE: Newbie: Problems After Deploying to Tomcat

2004-02-03 Thread Yee, Richard K,,DMDCWEST
Colin, Check out the html:base tag. -Richard -Original Message- From: Colin Foulkes [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 8:16 AM To: Struts Users Mailing List Subject: RE: Newbie: Problems After Deploying to Tomcat Ah... I think I see the problem I need to

RE: Using Catus versus using StrutsTestcase

2004-02-03 Thread Yee, Richard K,,DMDCWEST
Al, StrutsTestCase, as the name implies, has specific classes and methods for testing struts applications. It is good for testing actionForwards, validation errors, and ActionForm submissions with struts. It only does out of container testing however. Cactus is used for in-container testing of

RE: Conventions for indexed properties

2004-02-03 Thread Yee, Richard K,,DMDCWEST
Sunil, The LazyList class in the commmons-collections.jar file does this already for you. Rgds, Richard java.lang.Object | +--org.apache.commons.collections.collection.AbstractCollectionDecorator | +--org.apache.commons.collections.list.AbstractListDecorator |

RE: No ValidatorAction called maxLength?

2004-01-28 Thread Yee, Richard K,,DMDCWEST
Nathan, The name is case-sensitive. Use maxlength instead of maxLength. Regards, Richard -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 28, 2004 12:56 PM To: Struts Users Mailing List Subject: No ValidatorAction called maxLength? This is a

RE: Best Practices question

2004-01-27 Thread Yee, Richard K,,DMDCWEST
Jim, Throw custom exceptions in your business beans and then use the struts declarative exception handling feature so that your custom exception handler class(es) handle the exceptions by populating ActionMessages and logging the error if neccessary. Check out this article by Keld H. Hansen

RE: bean:write and apostrophes

2004-01-22 Thread Yee, Richard K,,DMDCWEST
Dan, Try using the filter=false attribute of the bean:write tag. That will disable the encoding of characters that are sensitive to HTML. -Richard -Original Message- From: Daniel Lipofsky [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 4:18 PM To: [EMAIL PROTECTED] Subject:

RE: JSP Protection

2004-01-15 Thread Yee, Richard K,,DMDCWEST
Jürgen, Put the JSP under the WEB-INF directory. Once there, it will only be accessible from within your web application. -Richard -Original Message- From: Jürgen Scheffler [mailto:[EMAIL PROTECTED] Sent: Thursday, January 15, 2004 8:15 AM To: [EMAIL PROTECTED] Subject: JSP Protection

RE: mapped address

2004-01-08 Thread Yee, Richard K,,DMDCWEST
Otávio, You could 1) put the info in a hidden variable which would be less secure or 2) put the info in your session. Regards, Richard -Original Message- From: Otávio Augusto [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 07, 2004 7:33 PM To: [EMAIL PROTECTED] Subject: mapped

RE: All The Bean Properties Are Null in the Business Tier!!! (Use d BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Yee, Richard K,,DMDCWEST
Caroline, May I ask why you are performing your database updates through a separate thread? It seems to be complicating your code. Creating lots of threads from within your web application is not a good practice if you want your app to scale well. Also, what happens if the update doesn't succeed?

RE: mapped address

2004-01-08 Thread Yee, Richard K,,DMDCWEST
, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote: Otávio, You could 1) put the info in a hidden variable which would be less secure or 2) put the info in your session. Regards, Richard -Original Message- From: Otávio Augusto [mailto:[EMAIL PROTECTED] Sent: Wednesday

RE: dynamic parameters to DynaActionForm

2004-01-08 Thread Yee, Richard K,,DMDCWEST
Nathan, Try a map backed form http://www.mail-archive.com/[EMAIL PROTECTED]/msg88704.html -Richard -Original Message- From: Nathan Maves [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 12:13 PM To: Struts Users Mailing List Subject: Re: dynamic parameters to DynaActionForm

RE: mapping.findForward

2004-01-08 Thread Yee, Richard K,,DMDCWEST
Paul, You can do this in your struts-config.xml forward name=someRedirectName path=http://www.someWebsite.com; redirect=true/ note the redirect=true attribute or do a response.sendRedirect(http://www.someWebsite.com;); and then return null to Struts instead of an ActionForward in your action.

RE: Adding items to a vector of formbean in the jsp

2004-01-05 Thread Yee, Richard K,,DMDCWEST
Paulo, The problem is that Vectors or Arrays are not created and sized for you automatically. When your form is submitted, the populate() method attempts to set the Vector element of new element which is beyond the size of your vector. To fix this problem, you can either size the Vector with empty

RE: Example of a non-threadsafe Action?

2003-12-23 Thread Yee, Richard K,,DMDCWEST
Matt, It doesn't matter. Since the internal implementation of DateFormat uses internal instance variables, it is not threadsafe. If two different threads access the same SimpleDateFormat.format method, there is the possibility of the formatted result to be incorrect due to the fact that the

RE: Example of a non-threadsafe Action?

2003-12-23 Thread Yee, Richard K,,DMDCWEST
Matt, A final declaration just means that the reference can't be changed to a different SimpleDateFormat instance. A static declaration just means that there is one instance of the variable for all of the instances of the class. Neither modifier affects how the SimpleDateFormat uses internal

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Yee, Richard K,,DMDCWEST
-Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]] Sent: Friday, November 21, 2003 4:23 PM To: 'Struts Users Mailing List' Subject: RE: dynamically sized form (mostly solved) Matt, You actually only need the form in the request. You don't need the property

RE: dynamically sized form (mostly solved)

2003-12-10 Thread Yee, Richard K,,DMDCWEST
].startNumber), which is extremely clunky. I'm sure I must be missing something stupid. If anyone can shed some light, it would be greatly appreciated. Thanks so much! Brent -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED]] Sent: Friday, November 21, 2003 4:23 PM

RE: Tomcat 4.1.29 Struts

2003-12-08 Thread Yee, Richard K,,DMDCWEST
Mukund, Is this really your struts-config.xml? ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; struts-config /struts-config Where are your form-bean and action mapping definitions? The cause of your

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-08 Thread Yee, Richard K,,DMDCWEST
Caroline, Are you having problems with the username or the keyName hidden variable? If it is the username, then I'd suspect that request.getRemoteUser() in your JSP is returning null. Regards, Richard -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: Please Help! Unable to Pass A Hidden Field To scaffold.Proces sAction

2003-12-08 Thread Yee, Richard K,,DMDCWEST
property=username value=%=username%/ html:submitView Articles/html:submit /TD /TR /html:form /req:isUserInRole --- Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote: Caroline, Are you having problems with the username or the keyName hidden variable? If it is the username, then I'd suspect

RE: Tomcat 4.1.29 Struts

2003-12-05 Thread Yee, Richard K,,DMDCWEST
Mukund, Are there any messages in the log file? Are you using log4j and did you set the logging level to debug? It shouldn't be a Classpath issue if the file is located in your webapp's WEB-INF/classes directory. That is automatically put in your apps classpath. -Richard -Original

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
Matt, The answer to your main question is, No. You don't have to specify the form as the input of the preloader. You don't even really have to have a separate 'pre-loader' action for this form. In any action that will forward to your JSP page that displays your form, you can create a new form

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
Matt, I found out that using new DynaActionForm()inside of the PreLoaderAction.execute() doesn't work. It gives a null pointer exception when you try and call the set() method. You need to do this instead: FormBeanConfig cfg = mapping.getModuleConfig()

RE: URGENT: getting a Session Attribute from ActionForm

2003-11-21 Thread Yee, Richard K,,DMDCWEST
Mohan, I agree with Wendy. Prepopulate the form by instantiating it in the action that forwards to the page that displays the page. Perhaps you can create a constructor in the ActionForm that takes a userinfo object and invoke this from your Action.execute method. Regards, Richard -Original

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
Matt, You actually only need the form in the request. You don't need the property of the form at all in your JSP. In my JSP I use html:form action=/indexTestSubmitAction logic:iterate id=testBean name=dynaIndexTestForm property=tests indexId=ctr html:text name=testBean property=id

RE: dynamically sized form (mostly solved)

2003-11-21 Thread Yee, Richard K,,DMDCWEST
Mark, What are you trying to tell us? Do you think it is a bad practice to pre-load a form in an action by instantiating the formBean in the action? Or is it something else that you find objectionable? -Richard -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday,

RE: Map Backed Action Form

2003-11-20 Thread Yee, Richard K,,DMDCWEST
Vishal, First of all. Quit whining. We are not here to just answer YOUR questions. You would get better responses if you read http://www.catb.org/~esr/faqs/smart-questions.html, read the FAQs, and did a search in the archives. Have you read the documentation? There is how-to guide there that

RE: MessageResources...

2003-11-20 Thread Yee, Richard K,,DMDCWEST
Mitesh, Why are you using a beta version when there is a released version available? You can access the PageContext object and use methods on it to get the objects that the Struts framework puts in your request object. Specifically, you want the Globals.MESSAGE_KEY attribute. This article

RE: Simulating multiple inheritance for Action and DispatchAction

2003-11-20 Thread Yee, Richard K,,DMDCWEST
Ovidiu, I'd suggest using the declarative exceptions of Struts 1.1 http://javaboutique.internet.com/tutorials/excep_struts/index-3.html It will save you a lot of duplicated code in your actions. The servlet context is available through the HttpServletRequest.getSession().getServletContext() in

RE: MessageResources...

2003-11-20 Thread Yee, Richard K,,DMDCWEST
= AppConfig.findMessageResourcesConfig(Action.MESSAGES_KEY).getParameter(); The question I have it will above not work with struts 1.2 etc (will it be depreciated?) Also I found that the MESSAGE_KEY does not exist in my request object Mitesh -Original Message- From: Yee, Richard K,,DMDCWEST

RE: ForwardAction with Redirect

2003-11-20 Thread Yee, Richard K,,DMDCWEST
Juan, Rick is right. All you need to do is set the redirect attribute of your forward to true like in this example: action path=/login type=com.aaa.actions.DynaLoginAction name=dynaLoginForm scope=requestinput=/pages/Welcome.jsp forward name=success path=/loginSucceeded.jsp

RE: ForwardAction with Redirect

2003-11-20 Thread Yee, Richard K,,DMDCWEST
/path type=...RedirectAction parameter=/view/path .../ I don't think Struts provides that, but, as Hubert points out, it's not difficult to implement. Quoting Yee, Richard K,,DMDCWEST [EMAIL PROTECTED]: Juan, Rick is right. All you need to do is set the redirect attribute

RE: ForwardAction with Redirect

2003-11-20 Thread Yee, Richard K,,DMDCWEST
] org.apache.struts.action.MESSAGE:org.apache.struts.util.PropertyMessageResou [EMAIL PROTECTED] any ActionForm that was in the original request -Richard -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 11:46 AM To: 'Struts Users Mailing List' Subject

RE: dynamically sized form

2003-11-20 Thread Yee, Richard K,,DMDCWEST
Matt, I think the second of these two articles describes how to do do what you want. You will need to dynamically create the array of TaxRateBean and put it in session scope in order to create the submission fields in your form. (See the last paragraph of article #2). -Richard

RE: dynamically sized form

2003-11-20 Thread Yee, Richard K,,DMDCWEST
in the form and put the form in session scope. -Richard -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 12:51 PM To: 'Struts Users Mailing List' Subject: RE: dynamically sized form Matt, I think the second of these two

RE: dynamically sized form

2003-11-20 Thread Yee, Richard K,,DMDCWEST
=taxRates type=com.ntso.rsg.bus.tax.TaxRateBean[] / /form-bean Thanks, Matt Bathje - Original Message - From: Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, November 20, 2003 2:58 PM Subject: RE: dynamically sized form

RE: ForwardAction with Redirect

2003-11-20 Thread Yee, Richard K,,DMDCWEST
appreciate you bringing this to my attention though. Take care --- Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote: Juan, In reference to my previous email, when you do a redirect, you will not get the following attributes in the request: org.apache.struts.action.mapping.instance:ActionConfig

RE: dynamically sized form

2003-11-20 Thread Yee, Richard K,,DMDCWEST
Matt, Is your form-bean defined like this? form-bean name=advancedTaxRatesCurrentForm type=org.apache.struts.action.DynaActionForm form-property name=taxRates type=com.ntso.rsg.bus.tax.TaxRateBean[] / /form-bean You wrote: Also, how would the data get from allTaxRates into the taxRates array

RE: problem with html:text bean throwing exception

2003-11-19 Thread Yee, Richard K,,DMDCWEST
Gus, Why don't you include your jsp code and struts config? Usually it is caused by having a struts form subelement tag outside of the struts form tag. You've said that it's not the case. Are you specifying an 'input' attribute in your action mapping? How are you accessing the page from the

RE: Email Validation Rules

2003-11-19 Thread Yee, Richard K,,DMDCWEST
Ramadoss, Your regexp can't handle an email address that has the domain specified as an IP address. Try this one instead: /^(([^()[\]\\.,;:[EMAIL PROTECTED]]+(\.[^()[\]\\.,;:[EMAIL PROTECTED]]+)*)|(\.+\))@((\[[0-9]{1 ,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,})

RE: problem with html:text bean throwing exception

2003-11-19 Thread Yee, Richard K,,DMDCWEST
(until your mail) lead me in the wrong direction. Thanks for the help, Gus Yee, Richard K,,DMDCWEST wrote: Gus, Why don't you include your jsp code and struts config? Usually it is caused by having a struts form subelement tag outside of the struts form tag. You've said that it's not the case

RE: problem with html:text bean throwing exception

2003-11-19 Thread Yee, Richard K,,DMDCWEST
- From: Gus Heck [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2003 10:27 AM To: Struts Users Mailing List Subject: Re: problem with html:text bean throwing exception Yee, Richard K,,DMDCWEST wrote: Gus, I'm not sure what you changed on your JSP to get it fixed. I changed

RE: Complex Form Validation

2003-11-18 Thread Yee, Richard K,,DMDCWEST
George, You can't do the validation server-side as you proposed because the browser only sends HTML form elements. It will not send any information regarding the div tag. You would have to have a hidden form variable and use JavaScript to populate it with any values of interest when the form is

RE: ExceptionHandler

2003-11-18 Thread Yee, Richard K,,DMDCWEST
Felipe, How is '/componentes/mensagens.jsp' related to the Action or to 'tiles.erro'? When do you get this message vs. the blank white page? Have you viewed the source of the 'white page' to see if it contains any html? -Richard -Original Message- From: Felipe Nascimento [mailto:[EMAIL

RE: initializing properties for Actions

2003-11-18 Thread Yee, Richard K,,DMDCWEST
Frank, I think you are on to something here. Why don't you subclass ActionMapping and in your subclass put your member variable and getter and setter. You can then access the value from your action class's excecute method's mapping parameter after you cast it to your ActionMapping subclass?

RE: ExceptionHandler example

2003-11-18 Thread Yee, Richard K,,DMDCWEST
Check this article out: http://javaboutique.internet.com/tutorials/excep_struts/index-7.html -Richard -Original Message- From: Sharmila Pandith [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 18, 2003 3:34 PM To: [EMAIL PROTECTED] Subject: ExceptionHandler example Hi, Can anyone

RE: initializing properties for Actions

2003-11-18 Thread Yee, Richard K,,DMDCWEST
Frank, I tried subclassing ActionMapping and setting the type attribute in the struts config action-mappings tag. The runtime error goes away but the setter method never gets called. It could be a bug. -Richard -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED

RE: html tags in message resources

2003-11-17 Thread Yee, Richard K,,DMDCWEST
Wes, Use bean:write with the filter parameter set to false. -Richard -Original Message- From: Wes Kubo [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 2:53 PM To: Struts Users Mailing List Subject: html tags in message resources I'd like to put some html tags in an

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Yee, Richard K,,DMDCWEST
Shyam, Where in your JSP does the NullPointerException occur? Is it in a method call in a scriptlet? If so, your JSP is still indirectly accessing the database. What Wendy suggested was that the the database access class be invoked from your DisplactAction class and the results be put in a

[OT] Handling database connection exceptions

2003-11-17 Thread Yee, Richard K,,DMDCWEST
you think would be a graceful solution to this problem? Pardon my ignorance! Thanks, Shyam --- Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote: Shyam, Where in your JSP does the NullPointerException occur? Is it in a method call in a scriptlet? If so, your JSP is still indirectly accessing

RE: [OT] Handling database connection exceptions

2003-11-17 Thread Yee, Richard K,,DMDCWEST
pages to handle this the condition where your data access layer can't connect to a database. http://jakarta.apache.org/struts/userGuide/building_controller.html#exceptio n_handler -Richard -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Monday, November 17

How can I put a field's value in a Validator message?

2003-11-13 Thread Yee, Richard K,,DMDCWEST
I would like to include a field's value in my Validator custom error message. In my validation.xml file, I have a msg tag defined with a key=someProperty.errorMessage. In my application.properties file, I have defined my someProperty.errorMessage property as follows:

RE: Null DynaActionForm

2003-11-12 Thread Yee, Richard K,,DMDCWEST
Sumit, If your form parameter is null, it indicates that there is an error in your configuration of struts-config.xml. When things are configured correctly, form should never be null. -Richard -Original Message- From: Sumit S. [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12,

RE: Connect close the DB connection in Form Action

2003-11-12 Thread Yee, Richard K,,DMDCWEST
Eric, It is generally not recommended to use the JDBC-ODBC bridge driver. There are several bugs in the driver and it doesn't perform as well as a type 4 driver. What DB are you using? Also, you don't have to register the driver every time. Put the Class.forName call in a static initializer or

RE: How to Turn off Struts logging?

2003-11-12 Thread Yee, Richard K,,DMDCWEST
Set the debug parameter in the web.xml file to 0. Search the archives, this question has been asked many times already. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 1:44 PM To: Struts Users Mailing List Subject: How to Turn off

OT: RE: Connect close the DB connection in Form Action

2003-11-12 Thread Yee, Richard K,,DMDCWEST
. Thanks Eric Zhou -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 3:35 PM To: 'Struts Users Mailing List' Subject: RE: Connect close the DB connection in Form Action Eric, It is generally not recommended to use the JDBC-ODBC

RE: Hello World gone wrong

2003-11-10 Thread Yee, Richard K,,DMDCWEST
Richard, Try using forward slashes in your docbase instead of '\' docBase=E:/Projects/HelloWorld / Java might otherwise interpret it as an escape char. -Richard -Original Message- From: Richard Morris [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2003 4:03 PM To: Struts Users

RE: Javascript question...

2003-11-05 Thread Yee, Richard K,,DMDCWEST
the reason, it'd be great... Thanks! Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote: Jacob, You wrote: unfortunately we aren't using Struts here...? If you aren't using Struts then a) why are you asking this question on a Struts mailing list b) What do you mean then when you write Now if I have

RE: Debug output

2003-11-04 Thread Yee, Richard K,,DMDCWEST
Peter, Try setting the debug parameter for the action servlet in the web.xml file to 0. Also, if you use Log4j, you can set the logging level of org.apache.struts to something higher than DEBUG. -Richard -Original Message- From: Norr, Peter [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: Javascript question...

2003-11-04 Thread Yee, Richard K,,DMDCWEST
Jacob, Why are you doing this in JavaScript to begin with? Why don't you use the struts html tags to display the select boxes and populate the options lists from collections. You can then set attributes in your form bean and have these fields be defaulted automatically. -Richard -Original

RE: Javascript question...

2003-11-04 Thread Yee, Richard K,,DMDCWEST
across all pages -- thinking of making it more generic and Im trying this... Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] wrote:Jacob, Why are you doing this in JavaScript to begin with? Why don't you use the struts html tags to display the select boxes and populate the options lists from collections

RE: Struts and WLS 702

2003-10-24 Thread Yee, Richard K,,DMDCWEST
According to the BEA website, Weblogic 7.0.2 is only supported with HP-UX SDK 1.3.1.09 with Java HotSpotTM Server VM -Richard -Original Message- From: Dave Conway [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2003 1:02 AM To: 'Struts Users Mailing List' Subject: RE: Struts and WLS

RE: DynaForms and java.util.ArrayList

2003-10-23 Thread Yee, Richard K,,DMDCWEST
Barry, You are unnecessarily creating an extra String object here: //Create list (in a loop) cityList.add(new String(rs.getString(city))); instead, just use cityList.add(rs.getString(city)); -Richard -Original Message- From: Barry Volpe [mailto:[EMAIL

RE: application hangup without messages

2003-10-21 Thread Yee, Richard K,,DMDCWEST
Try turning on some of the logging if you are using log4j. What is the HTML that is returned on the blank screen? -Richard -Original Message- From: Nino Garbin [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 12:41 AM To: [EMAIL PROTECTED] Subject: application hangup without

RE: Keep Them In the Database Or In the Properties File?

2003-10-20 Thread Yee, Richard K,,DMDCWEST
Caroline, A third option is to hardcode the options by putting them in an initializer for a string array. One of the main criteria you need to ask yourself is How often are these values likely to change? If they may change often (daily, weekly, monthly, etc.) then a database might be the best bet.

RE: Keep Them In the Database Or In the Properties File?

2003-10-20 Thread Yee, Richard K,,DMDCWEST
a change is made. Hardcoding it in a source file might require a round of QA testing after a change is made. Regards, Richard -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 2:51 PM To: 'Struts Users Mailing List' Subject: RE: Keep

RE: page size

2003-09-22 Thread Yee, Richard K,,DMDCWEST
Meissa, What kind of information is in your page that makes it so large? Are you using cascading style sheets? If not, using one may help you reduce the size of your page by moving repeating html formatting attributes to a separate file. If a lot of your size is from repeating html tags, you also

RE: Multipage JDBC result

2003-09-18 Thread Yee, Richard K,,DMDCWEST
Julie, In Oracle, you can also limit the # of records returned and the the starting point using rownum. Your JDBC driver can also limit the # of ResultSets. Check the JavaDoc. Regards, Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: Tool to diagnose J2EE/Struts/Oracle problem

2003-09-18 Thread Yee, Richard K,,DMDCWEST
Matt, However, if your app is like mine probably a dozen or so connections are opened for each Action that is performed, so it's hard to ensure you are closing all connections correctly. Do you really have that many nested result sets? If not, then you could reuse the same connections for some

RE: how many concurent users on the system

2003-09-03 Thread Yee, Richard K,,DMDCWEST
Rachid, If your application uses HttpSessions, then you can use the java.servlet.http.HttpSessionListener class to monitor the creation and destruction of HttpSessions. You need to configure the class that implements HttpSessionListener in the deployment descriptor of your web application. ex.

RE: can't pass parameters

2003-08-28 Thread Yee, Richard K,,DMDCWEST
Sergey, Change your HTML from input type='hidden' value='param' / to input type='hidden' name='param' / -Richard -Original Message- From: Sergey.Livanov [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 10:21 AM To: [EMAIL PROTECTED] Subject: can't pass parameters I can't

RE: Re[2]: can't pass parameters

2003-08-28 Thread Yee, Richard K,,DMDCWEST
Sergey, Try setting the name of your hidden variable to 'param' as I wrote in a previous email. Rgds, Richard -Original Message- From: Sergey.Livanov [mailto:[EMAIL PROTECTED] Sent: Thursday, August 28, 2003 10:56 AM To: Struts Users Mailing List Subject: Re[2]: can't pass parameters

RE: [OT] A better way to find JSP compile errors..

2003-08-27 Thread Yee, Richard K,,DMDCWEST
Most IDEs (JDeveloper, JBuilder, etc. ) do will this for you. -Richard -Original Message- From: Erez Efrati [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2003 8:24 AM To: 'Struts Users Mailing List' Subject: [OT] A better way to find JSP compile errors.. Hi all, I have had

RE: Validator JavaScript and html:radio buttons

2003-08-27 Thread Yee, Richard K,,DMDCWEST
Matt, Are you using the Struts html:radio tag to display the radio buttons? If so, you should initialize the field in the FormBean that contains the value of the radio button so that Struts marks one of the buttons as 'checked' for you. Regards, Richard -Original Message- From: Matt E

RE: login test in a jsp page - any suggestions

2003-08-27 Thread Yee, Richard K,,DMDCWEST
Dave, If you put your JSP pages under your WEB-INF directory in your web app, they will be protected from direct access by your users. If you use the action forwards in Struts and only forward to the next page once you validate the current page, you shouldn't have a problem. Use the POST method on

RE: Validator and DispatchAction

2003-08-27 Thread Yee, Richard K,,DMDCWEST
Venkat, What was the solution? -R -Original Message- From: Venkat Jambulingam [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2003 11:06 AM To: [EMAIL PROTECTED] Subject: RE: Validator and DispatchAction It works now. Thank you everyone for helping me. [EMAIL PROTECTED]

RE: Problem with Checkboxes using logic:iterate

2003-08-23 Thread Yee, Richard K,,DMDCWEST
Raghu, David is correct in his email. You WILL need to add code to the reset() method if you want the check boxes to work. Otherwise, you won't be able to deselect a checkbox once it is selected. Search the archives for 'checkbox' and you will see numerous emails on this topic. Regards, Richard

RE: Telling Users to Wait

2003-08-22 Thread Yee, Richard K,,DMDCWEST
Mark, There is also another way to accomplish your goal that doesn't use the refresh header. Basically, a servlet or JSP outputs a partial HTML page using the flush() method. The partial page contains JavaScript that typically writes out HTML tags that produce a table inside a span element using

RE: is there any Dependable Option List Tag ?

2003-08-21 Thread Yee, Richard K,,DMDCWEST
and the dependency relationship so that it will be reused across many pages/ Applications.. Any way thanks for the responses.. -Sateesh -Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 20, 2003 10:23 PM To: 'Struts Users Mailing List' Subject: RE

RE: force servlet read re-read init parameters

2003-08-20 Thread Yee, Richard K,,DMDCWEST
Harm, Add code to your doGet() method that looks for a particular request parameter and if found, then re-read the init parameters by possibly calling your init() method again. ex. in your doGet() method have some code like: if (request.getParameter(reinit) != null) {

RE: is there any Dependable Option List Tag ?

2003-08-20 Thread Yee, Richard K,,DMDCWEST
Sateesh, What you want to do is typically done on the client side in JavaScript. That is not to say that it can't be done at the server, but for performance reasons, the JavaScript solution avoids having to refresh the page each time an item or items are moved from one select box to another. Once

RE: [OT] Question about Servlets Threads

2003-08-19 Thread Yee, Richard K,,DMDCWEST
Jan, How long does your thread take to run? Since you are waiting for the thread to finish anyway in your servlet, I'm not sure it is very necessary to start a new thread to process the request. It adds a bit of overhead to process each request since an extra thread is created for every request

RE: no getter method found

2003-08-19 Thread Yee, Richard K,,DMDCWEST
Actually, my last email was wrong, they should be: public String getLastName() and public void setLastName(); -Richard -Original Message- From: Mehran Zonouzi [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 6:55 AM To: [EMAIL PROTECTED] Subject: no getter method found I have

RE: no getter method found

2003-08-19 Thread Yee, Richard K,,DMDCWEST
-Original Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 2:34 PM To: 'Struts Users Mailing List' Subject: RE: no getter method found Actually, my last email was wrong, they should be: public String getLastName() and public void setLastName

RE: [OT] Question about Servlets Threads

2003-08-19 Thread Yee, Richard K,,DMDCWEST
am looking for the fastest possible way to do this, without developing anything new from the scratch. - Original Message - From: Yee, Richard K,,DMDCWEST [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 5:41 PM Subject: RE: [OT

RE: no getter method found

2003-08-19 Thread Yee, Richard K,,DMDCWEST
Try naming your methods public String getLastname() and public void setLastname() Regards, Richard -Original Message- From: Mehran Zonouzi [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 19, 2003 6:55 AM To: [EMAIL PROTECTED] Subject: no getter method found I have the below in my

RE: html:select Not 'Selecting' My Item

2003-08-18 Thread Yee, Richard K,,DMDCWEST
Hunter, Do you have an associatedSalesperson attribute in your FormBean? If so, what is it's value? You shouldn't really have to use the value attribute if you set the associatedSalesperson attribute to the desired id in associatedSalesPeople. -Richard -Original Message- From: Hunter

RE: html:select Not 'Selecting' My Item

2003-08-18 Thread Yee, Richard K,,DMDCWEST
Hunter, In your Action, if you set the value of associatedSalesperson = getEncodeAssociatedSalespersonID(), then it should fix your problem. Once the form gets submitted, you can then do some processing on the value of associatedSalesperson before writing the value to your database. Either way,

RE: [OT] Question about Servlets Threads

2003-08-18 Thread Yee, Richard K,,DMDCWEST
Jan, If you are new to Java and servlet programming, you should try and avoid using global variables. As David said, the servlet container typically starts a new thread to service each request. You really shouldn't need to start yet another thread inside your code. You should also avoid using

RE: Downloading files using JSP

2003-08-01 Thread Yee, Richard K,,DMDCWEST
What do you mean by 'attachment'? Are you talking about an email attachment or something else? -R -Original Message- From: Jagannayakam [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 7:33 AM To: Struts Users Mailing List (E-mail) Subject: Downloading files using JSP How to

RE: NoSuchMethodException

2003-08-01 Thread Yee, Richard K,,DMDCWEST
How about supplying more information like the name of the method that is not being found? Regards, Richard -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 12:00 PM To: 'Struts Users Mailing List' Subject: RE:

RE: NoSuchMethodException

2003-08-01 Thread Yee, Richard K,,DMDCWEST
Message- From: Yee, Richard K,,DMDCWEST [mailto:[EMAIL PROTECTED] Sent: Friday, August 01, 2003 3:06 PM To: 'Struts Users Mailing List' Subject: RE: NoSuchMethodException How about supplying more information like the name of the method that is not being found? Regards, Richard -Original

  1   2   >