To get the session size

2006-06-22 Thread Carl Smith
I am trying to get the session size of our J2EE Struts based, and runing in WebSphere environment, application. Can some one point me what is the good way to get the session size? What tool is a good tool for using? WSAD Profiling? - Yahoo!

what on earth is a session

2006-06-15 Thread Carl Smith
Folks, I am working on some issues related to session. I would like to know if the following are true: (1) the number of the concurrent online user may or may not be the same as the number of sessions (2)simply put, when you open one browser and visit a website, the

Re: what on earth is a session

2006-06-15 Thread Carl Smith
. Thanks. Wendy Smoak [EMAIL PROTECTED] wrote: On 6/15/06, Carl Smith wrote: (2)simply put, when you open one browser and visit a website, the server(Websphere for example) creates one session, then if you open another browser in the same computer, the sever will create another session

how many active sessions are in the system

2006-06-14 Thread Carl Smith
Is there anyway in J2EE to get how many active sessions are in the system? Thanks in advance. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Session overflow issue

2006-06-13 Thread Carl Smith
I recently have an issue with my J2EE apps. Some times when a lot of users use our apps, we got the session overflow issue. Can some one let me know how to start resolve the issue? Can some one direct me with starting information like what a session is? Also if you open two IE browser window

Valiation for the time HH:mm:SS

2006-05-25 Thread Carl Smith
Does struts have an intrisic validator for time entered using a format as HH:mm:ss? Thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Validation for second field must greater than the first field

2006-05-25 Thread Carl Smith
I am not sure if this is workable, but my requirement was that Two Fields, startDate and endDate, I need to validate the endDate is greater/older than the startDate. Is this something workable/configurable using struts validator? Thanks.

RE: Validation for second field must greater than the first field

2006-05-25 Thread Carl Smith
today. -Original Message- From: Carl Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, May 25, 2006 2:20 PM To: Struts Users Mailing List Subject: Validation for second field must greater than the first field I am not sure if this is workable, but my requirement was that Two Fields

What is the reason behind sharing the same formbean by multiple actions

2006-05-17 Thread Carl Smith
Can you folks comment on the reason behind sharing the same form bean by multiple actions: (1) so that the receive action can see the data for submit action (2) sharing the data across the page navigation? more ? Thanks. -

Re: What is the reason behind sharing the same formbean by multiple actions

2006-05-17 Thread Carl Smith
Is there any response on this? Thanks. Carl Smith [EMAIL PROTECTED] wrote: Can you folks comment on the reason behind sharing the same form bean by multiple actions: (1) so that the receive action can see the data for submit action (2) sharing the data across the page navigation? more

indexed property validation

2006-05-04 Thread Carl Smith
I have an indexed property which is a tipical list of textboxes, I have a requirement to validate that the user need to at least enter values into one text box. How can you configure this using Struts required validator? Thanks in advance. -

ActionForm and JavaBean Specifications

2006-04-13 Thread Carl Smith
JavaBeans Specification doesn't allow more than one setter method (with different argument signatures) for the same property, in other words, JavaBeans specification doesn't allow the method overloading for property setters, does this also apply for Struts ActionForms? Is so, why I did have

Re: indexed property validation error:java.lang.reflect.InvocationTargetException

2006-04-11 Thread Carl Smith
Interestingly if I change the config for testingForm to be of scope session, then it works. However I can't use session scope so still need the answer for my original question, can some one help? Thanks. Carl Smith [EMAIL PROTECTED] wrote: I have a jsp containing three text fields which

indexed property validation error:java.lang.reflect.InvocationTargetException

2006-04-10 Thread Carl Smith
I have a jsp containing three text fields which are indexed property, I needs to validate all the text box contains a value other than null or empth string. When I click on save I got the error (see the bottom). Your helps are highly appreciated! jsp: html:errors/ html:form

Re: Sharing the action form by different actions

2006-04-07 Thread Carl Smith
Thank you Michael for the reply. I like the answer, which agree with what I thought, but can you explain it in a little detail? The website you attached doesn't clearly explain your answer No. Thanks. Michael Jouravlev [EMAIL PROTECTED] wrote: On 4/6/06, Carl Smith wrote

Re: Sharing the action form by different actions

2006-04-07 Thread Carl Smith
Hello folks, I got two replies, can someone else offer some more insights on this topic? Thanks. It is practical to share the same action form by different actions, For example (I only listed two actions sharing the same form here, but the questions apply for multiple actions

Sharing the action form by different actions

2006-04-06 Thread Carl Smith
It is practical to share the same action form by different actions, For example (I only listed two actions sharing the same form here, but the questions apply for multiple actions sharing the same form): form-bean name =sharedForm type=myclassPath.SharedForm/ action

Re: indexed property validation: how to keep the value the user entered

2006-03-30 Thread Carl Smith
of the form. In either case, to goal is to not trample the data in the form during re-display. L. Carl Smith wrote: First of all Thank you Laurie, you are the only one anwering my questions :): Here are my struts-config.xml entries for the actions and formbean ( I neglected the path

Re: indexed property validation: how to keep the value the user entered

2006-03-27 Thread Carl Smith
=true input=displayTesting forward name=success path=susscess.jsp / /action /action-mappings Laurie Harper [EMAIL PROTECTED] wrote: We'll need to see the relevant parts of your struts-config.xml too (specifically, the form bean and action mapping definitions). L. Carl Smith wrote: I

indexed property validation: how to keep the value the user entered

2006-03-24 Thread Carl Smith
I have a jsp containing an indexed test box field, and I need to validate the user enter a value into all the text boxes when clicking on the save button. Validation is done OK, but there is an issue. Let me give you an example illustrating the issue: if there are three text boxes, the user

failed to load servlet error

2006-02-17 Thread Carl Smith
Our app's websphere log has a lot of errors lised below, this is not a class path issue, but whatelse reasons? And also what does us in the message below mean? Thanks in advace. : [Servlet Error]-[us]: Failed to load servlet: java.lang.ClassNotFoundException: us at

which is a good instance variable

2006-01-10 Thread Carl Smith
I am designing a new class and wondering what class are a good candidates for the class attribute. I know String, Date, Integer, int, fload, boolean, Boolean all are good for instance variables, but classes/interfaces like Map, InputStream, Iterator are also good instance variable cadidate?

ActionMessage display html tag on the jsp

2005-12-23 Thread Carl Smith
I am using ActionMessage: actionMessages.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage(message.key, parameter1,parameter1,parameter2,parameter3)); saveMessages(request,actionMessages); parameter3=ulliThank you! However on my jsp I see ulliThank you!, ulli html

html:textarea tag allow maxlength???

2005-10-21 Thread Carl Smith
I need disallow a user from entering more than 2000 character in the html:textarea tag, however,struts disallow the maxlength attribute on this tag, and suggestions or workaround? - Yahoo! FareChase - Search multiple travel sites in one click.

Re: form.submit() issue with html:button

2005-10-19 Thread Carl Smith
) is derived from same parent as html:form (javax.servlet.jsp.tagext.TagSupport) so the characteristic of a server side Tag class(dynamically) generating JavaScript holds true Does this answer your question? Martin- - Original Message - From: Carl Smith To: Struts Users Mailing List Sent

Re: form.submit() issue with html:button

2005-10-19 Thread Carl Smith
Does this answer your question? Martin- - Original Message - From: Carl Smith To: Struts Users Mailing List Sent: Tuesday, October 18, 2005 10:13 PM Subject: form.submit() issue with I seem to have a issue using 's onclick. My value of onclick is a javascript performing

SwitchAction.java in struts

2005-09-28 Thread Carl Smith
Can you describe in which case we should be using SwitchAction.java in struts? Can you offer some sample code? Is this used for multiple submit buttons (save, delete, update, cancle buttons for example) on one jsp page? Thanks. - Yahoo! for Good

Re: CactusStrutsTestCase working problem with tiles extension

2005-09-27 Thread Carl Smith
. You should use verifyTilesForward instead of verifyForward(). There is also a verifyInputTilesForward() too. -Richard Carl Smith wrote: Is there any helps here? Thank you in advance. Carl Smith wrote: I am sorry for this a little long question, but you will be finding it interesting

Re: CactusStrutsTestCase working problem with tiles extension

2005-09-24 Thread Carl Smith
Is there any helps here? Thank you in advance. Carl Smith [EMAIL PROTECTED] wrote: I am sorry for this a little long question, but you will be finding it interesting... Simply put, I have (1),(2) and (3), then we I run struts testing, I got error described as (4) (1) item in struts

CactusStrutsTestCase working problem with tiles extension

2005-09-23 Thread Carl Smith
I am sorry for this a little long question, but you will be finding it interesting... Simply put, I have (1),(2) and (3), then we I run struts testing, I got error described as (4) (1) item in struts-config.xml action path=/MyAction type=my.actions.myAction name=myForm

multiple struts-config.xml issues with CactusStrutsTestCase

2005-09-15 Thread Carl Smith
I have two struts-config.xml files. One is Struts default struts-config.xml and the other one is called struts-my.xml. and I have configued these two xml files in web.xml so that ActionServlet can take both struts-config.xml and struts-my.xml. See following: servlet

Why interface

2005-08-10 Thread Carl Smith
In Java/J2EE community, it seems that a lot of experienced developers tend to use a lot of interfaces, however, a lot of junior developers ignore using interface. I am not sure why interfaces seem to be favorite to some experienced developers. Can some one explain this?Can you give examples

RequestProcessor.process() method

2005-08-02 Thread Carl Smith
in this RequestProcessor.process() method, there are some methods are place holders for our specific application to over ride. Say in our application we have a logic to be checked to see if user has access to the certain page. Which method

Form bean's attribute displays as Html

2005-08-01 Thread Carl Smith
I have an attribute in my ActionForm (called myForm) called text, this text have a value of a href=http://www.yahoo.com;Click here to Yahoo.com/a, now I want this attribute to be displayed on web page as a hyper link. I used bean:write name=myForm property=text/, which prints a

Re: AW: Form bean's attribute displays as Html

2005-08-01 Thread Carl Smith
Thank you Leon Rosenberg and Raj Tilak, this works perfect by turning filter=false. Leon Rosenberg [EMAIL PROTECTED] wrote: In this (and only this case) you can use bean:write with filter=false This will work -Ursprüngliche Nachricht- Von: Carl Smith [mailto:[EMAIL PROTECTED

what is M (of MVC) in struts

2005-07-29 Thread Carl Smith
Struts privide strong C (of MVC) components, tyical of which are ActionServlet, Actions and RequestProcessors, but I am wondering which part is the M (of MVC). Thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection

multipart request issues

2005-07-28 Thread Carl Smith
I am having issues to get the request parameters from a multipart request, le me explain my problem first: Our flow of process is: (1) a multipart request is submitted to a struts action (let's say updateTableAction.do) using POST (2) the multipart request is processed by

HttpServletRequest.getParameterNames()

2005-07-25 Thread Carl Smith
In my application, I need to get all the HTTP request parameter names and their values, I am using HttpServletRequest.getParameterNames() and it works very well. Then in one of my page, I have to submit the request as a type of multipart/form-data, and then I found out

struts date validator

2005-05-04 Thread Carl Smith
We are using struts date validator, for some reason we found that the struts date validator let 04/02/05 pass, but we are hoping that the validation fails since 04/02/05 is not of format MM/dd/. Did you have the same issue? What is the correct way to validate the date? Thanks.

Re: struts date validator

2005-05-04 Thread Carl Smith
] wrote:I think you want datePatternStrict instead of datePattern. Erik Carl Smith wrote: We are using struts date validator, for some reason we found that the struts date validator let 04/02/05 pass, but we are hoping that the validation fails since 04/02/05 is not of format MM/dd/. Did

validation errors

2005-04-07 Thread Carl Smith
In sturts there is a valdation errors, I have a case that I need to add some custom error message from other businsess object to the struts validation so that these messages can be put into the same placeholder as other struts validation errors and display on the same time. Can you tell me

waiting page

2005-03-28 Thread Carl Smith
I am trying to develop a waiting page when the submit button is clicked on. The waiting page will be simply some dynamic images rotating indicating the process on going. When the process behind the scene is done, the waiting page is done too. Do you folks have a J2EE solution? Thanks.

two struts-config.xml

2005-03-11 Thread Carl Smith
In my application I have two configuration file (1) struts-config.xml and (2) struts-app1.xml. I have this entry in the web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern/*.app1/url-pattern /servlet-mapping When using this approach, I have a strange issue: For almost all

RE: how to integrate struts project with hibernate?

2005-02-16 Thread Carl Smith
We are using struts framework in our J2EE web application. In struts there is a LabelValueBean class, is it a good practice to use LabelValueBean in our application? For example, DAO returns a list of LabelValueBean for html drop down? There was an argument saying that it is not good to use

RE: [OT] Re: constants interface

2005-01-23 Thread Carl Smith
Thanks all for the hot discussion. However, the discussion has gone too far off my original question. I suggest not to discuss whether or not we should have an interface just for constants, instead I have decieded to use the constant interface (no matter it is good or not, I beleive it will

constants interface

2005-01-22 Thread Carl Smith
In Java, sometimes you would define an interface containg the constants: public interface MyInterface { public static final String YES = yes; } To access the contants, there are two ways public class WayOne { public void myMethod(){ String yes = MyInterface.YES;