Problem using Artimus by Ted

2005-05-10 Thread Ibha Gandhi
Hi All, I am studying the code in Artimus_1_0 to make sure that I understand how things actually work. I tried running http://localhost:8080/artimus/index.jsp but got the following error javax.servlet.ServletException: Cannot create redirect URL: java.net.MalformedURLException: Cannot retrieve Ac

RE: ERROR: Server side validation using Validation framework

2005-05-10 Thread Arindam Samanta
Thank you David. Yaa, I have done mistake with input attribute. It is working fine now. Thanks, Arindam "David G. Friedman" <[EMAIL PROTECTED]> 05/11/2005 04:07 AM Please respond to "Struts Users Mailing List" To "Struts Users Mailing List" cc Subject RE: ERROR: Server side validation

Re: Cannot find bean error in any scope

2005-05-10 Thread Nick Heudecker
> or as you say change the message resources default - or even make it always > null=false? I prefer this suggestion. Speaking only for myself, null=false is the most sensible default. - To unsubscribe, e-mail: [EMAIL PROTECTED]

Struts-flow and ActionForm

2005-05-10 Thread Vance Karimi
Hi list, I picked up Struts-flow and decided to go with it basically to have multi-page form wizards. Looks like a really helpful tool. Kudos. The example uses a HashMap to model the information submitted by the forms. The wizard example states "To keep simple, no Struts JSP tags are used, but c

Re: Cannot find bean error in any scope

2005-05-10 Thread Niall Pemberton
defintely needs improvement - currently too much can go wrong at the moment without providing any real clue to the problem. or as you say change the message resources default - or even make it always null=false? Niall - Original Message - From: "Michael Jouravlev" <[EMAIL PROTECTED]> Se

Re: Cannot find bean error in any scope

2005-05-10 Thread Michael Jouravlev
On 5/10/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Niall Pemberton wrote the following on 5/10/2005 12:49 PM: > > My guess that one of your message keys is incorrect/missing. Are your > > message resources configured to NOT return null in your struts-config.xml? > > > > And this could probably

Re: [OT] Help !! Too many select-box in one page

2005-05-10 Thread Cliff Lam
Thx a lot !! Really thank you to everyone =) !!! Cliff - Original Message - From: "Frank W. Zammetti" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Wednesday, May 11, 2005 12:05 AM Subject: Re: [OT] Help !! Too many select-box in one page > I'd suggest doing some testing

Re: Is struts more performant than JSF

2005-05-10 Thread Matt Raible
On May 10, 2005, at 4:48 PM, Jesse Alexander (KBSA 21) wrote: Hi I think this is not an easy question. I got the impression that Struts is needing more JSP-tags to represent a page which seems to slow it down a bit. JSF uses more memory (if you use server-side state) or more bandwidth (if you use

RE: Is struts more performant than JSF

2005-05-10 Thread Jesse Alexander (KBSA 21)
Hi I think this is not an easy question. I got the impression that Struts is needing more JSP-tags to represent a page which seems to slow it down a bit. JSF uses more memory (if you use server-side state) or more bandwidth (if you use client-side state) but somehow processing seems quite opt

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Michael Jouravlev
See inline On 5/10/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > > Aehm... The double submit problem is not a problem of POST > > or GET request. > > > Ist a problem of bad programmed browsers, proxies etc, and > > there are > > > enough techniques to avoid it. > > > > No. It IS a problem of P

RE: ERROR: Server side validation using Validation framework

2005-05-10 Thread David G. Friedman
Your input list "/login.jsp" but your other JSP's are listed under the /jsp directory, SO, should your input be something different to get rid of the page not found error BEFORE you mess with the Validator and claim it is the source of all problems? Instead of: input="/login.jsp" Is the file here

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 10. Mai 2005 23:58 > An: Struts Users Mailing List > Betreff: Re: StrutsCatalogInputOutputSeparation > > One more thing: > > On 5/10/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > N

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Leon Rosenberg
> -Ursprüngliche Nachricht- > Von: Michael Jouravlev [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 10. Mai 2005 23:58 > An: Struts Users Mailing List > Betreff: Re: StrutsCatalogInputOutputSeparation > > One more thing: > > On 5/10/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > > N

AW: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Leon Rosenberg
> > Aehm... The double submit problem is not a problem of POST > or GET request. > > Ist a problem of bad programmed browsers, proxies etc, and > there are > > enough techniques to avoid it. > > No. It IS a problem of POST and GET requests. First, the > dialog itself. According to HTTP specs,

AW: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Leon Rosenberg
> > Aehm... The double submit problem is not a problem of POST > or GET request. > > Ist a problem of bad programmed browsers, proxies etc, and > there are > > enough techniques to avoid it. > > No. It IS a problem of POST and GET requests. First, the > dialog itself. According to HTTP specs,

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Michael Jouravlev
One more thing: On 5/10/05, Leon Rosenberg <[EMAIL PROTECTED]> wrote: > Now seriously. Using ActionForms for result presentation is just a matter of > bad style, it doesn't mean, that struts is badstyles, > after all, everything, that can be misused, will be :-) So, you are saying that using Acti

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Leon Rosenberg
I've read the article now too, and must say i can't disagree more. First: >HTML FORM is submitted from the input page, usually using POST request method. Struts populates form bean (marked with [F]) with >request data. Then form bean validates input and if something wrong, it generates error me

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Leon Rosenberg
I've read the article now too, and must say i can't disagree more. First: >HTML FORM is submitted from the input page, usually using POST request method. Struts populates form bean (marked with [F]) with >request data. Then form bean validates input and if something wrong, it generates error me

Problems with Form Action Using Struts-Faces Integration Library

2005-05-10 Thread Kevin Hinners
I am trying to rewrite a Struts-based web application to use JavaServer Faces and Struts-Faces Integration Library. I am trying to rewrite the web pages from struts tags to JSF and Struts-Faces tags. I want to reuse my existing Action and ActionForm classes and Struts for the controller. The probl

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Michael Jouravlev
On 5/10/05, Benedict, Paul C <[EMAIL PROTECTED]> wrote: > I have read Michael Jouravlev's article: > http://wiki.apache.org/struts/StrutsCatalogInputOutputSeparation > > I can't find any blog or comment box on the page, so I'll write here. I > would like people to freely respond to my comments. >

Is struts more performant than JSF

2005-05-10 Thread Yan Hu
Hi: I have been playing with JSF lately. I really like it since it is very intuitive. But as I understand it, JSF keeps a component tree for each page with JSF widgets in it on the server. So it is heavy weight compared with struts. Could I safely say that struts-based apps are a bit more perf

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Aladin Alaily
Dave Newton wrote: Isn't that where ActionForms are? In any case, nobody said it couldn't be encapsulated in some nice, tidy object. You're absolutely right. This is exactly what I do. It's just that when Paul said the following: > I put my output data > exclusively in request or session attri

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Pedro Salgado
On 10/05/2005 22:21, "Aladin Alaily" <[EMAIL PROTECTED]> wrote: > Hi Paul, > > Doesn't putting all of the output data in the session or even in the > request add even more clutter and confusion? When the data is nicely > packaged in an object you can manipulate it more easily and you can keep >

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Dave Newton
Aladin Alaily wrote: Doesn't putting all of the output data in the session or even in the request add even more clutter and confusion? When the data is nicely packaged in an object you can manipulate it more easily and you can keep track of where the information came from. Although using an A

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Aladin Alaily
Hi Paul, Doesn't putting all of the output data in the session or even in the request add even more clutter and confusion? When the data is nicely packaged in an object you can manipulate it more easily and you can keep track of where the information came from. Although using an ActionForm fo

Re: StrutsCatalogInputOutputSeparation

2005-05-10 Thread Pedro Salgado
On 10/05/2005 21:30, "Benedict, Paul C" <[EMAIL PROTECTED]> wrote: > I have read Michael Jouravlev's article: > http://wiki.apache.org/struts/StrutsCatalogInputOutputSeparation > > I can't find any blog or comment box on the page, so I'll write here. I > would like people to freely respond to my

StrutsCatalogInputOutputSeparation

2005-05-10 Thread Benedict, Paul C
I have read Michael Jouravlev's article: http://wiki.apache.org/struts/StrutsCatalogInputOutputSeparation I can't find any blog or comment box on the page, so I'll write here. I would like people to freely respond to my comments. I disagree with the two-actions methodology to solve the separation

Re: Radio button for a 3rd level list

2005-05-10 Thread Rick Reumann
Kalyan Ayyagari wrote the following on 5/10/2005 12:16 PM: Here is what I'm trying to do: I get the top level list from the backend. The list contains the other lists that I already described before. Apart from that it contains the information based on which I have to generate the UI. That is, my U

Re: Cannot find bean error in any scope

2005-05-10 Thread Michael Jouravlev
I already caught this one ;) But this is not it this time. Thanks! On 5/10/05, Simon Chappell <[EMAIL PROTECTED]> wrote: > I also had this error recently when I inadvertently left out a taglib > in the header of my JSP. Took me a while to catch that one because the > symptom and the cause were so

Re: Browser Refresh & Reload

2005-05-10 Thread Michael Jouravlev
Same stuff different day. I hope I will not be accused in self-advertising again ;) Anyway, here is how I solve this problem: * There is permanent storage (database) * There is business object, which can be loaded from database. * There is a temporary area in the session ("current item") * "Curren

Re: Cannot find bean error in any scope

2005-05-10 Thread Simon Chappell
I also had this error recently when I inadvertently left out a taglib in the header of my JSP. Took me a while to catch that one because the symptom and the cause were so different. Simon On 5/10/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Niall Pemberton wrote the following on 5/10/2005 12:49

Browser Refresh & Reload

2005-05-10 Thread Nancy Lin
All, I have a button action named "reset". The busines requirement for reset buttion are: a) Roll back the changes if reset button is clicked b) If user modify something data and causes error, the reset button will act like a cancel button and remain on the same page. This "R

Re: Cannot find bean error in any scope

2005-05-10 Thread Rick Reumann
Niall Pemberton wrote the following on 5/10/2005 12:49 PM: My guess that one of your message keys is incorrect/missing. Are your message resources configured to NOT return null in your struts-config.xml? And this could probably explain why Michael can't always repeat the error since probably one o

Re: Any way to retrieve the index of html:select?

2005-05-10 Thread Rick Reumann
Vijaya S wrote the following on 5/9/2005 1:40 AM: You can create a bean using LabelValueBean in which the label will be male, female and the value will be 1, 2. In your jsp you do the following On submit, your form-property-name will have the values 1 or 2 depending on the selection. Ye

Re: Validating LazyValidatorForm

2005-05-10 Thread Michael Jouravlev
I find things like this disturbing: === cut here === BeanValidatorForm: Validating ActionForm 'eddForm' using key 'AddBoxAction' for mapping '/AddBoxAction' RequestProcessor: No errors detected, accepting input === cut here === If validator cannot not match key and mapping, should not it throw

Re: Validating LazyValidatorForm

2005-05-10 Thread Vincent
took the leading "/" in validation.xml. Works like a charm now. Thanks! Niall Pemberton wrote: If you use "setPathValidation(true)" it uses a key of the path name - with the leading "/" stripped off. Either you need to specify the form name in your validation.xml without the leading "/" - or in you

Re: Cannot find bean error in any scope

2005-05-10 Thread Michael Jouravlev
Why would it be missing, if it was not missing before? I changed only java code, and in the different action. Resources configured to return null. Well, whatever it returns, it does not return ???key??? instead of displaying null. This is a very helpful hint, I will put null="false" and try it tod

Re: Global scope

2005-05-10 Thread gdeschen
True for the Action and Action Form, but the original code snippet is a ServletContextListener and that the methods get called once when the application is deployed and undeployed. At this point (since I'm no expert in the specification) I believe that the Request object is not yet available

Re: Validating LazyValidatorForm

2005-05-10 Thread Niall Pemberton
If you use "setPathValidation(true)" it uses a key of the path name - with the leading "/" stripped off. Either you need to specify the form name in your validation.xml without the leading "/" - or in your custom class override the getValidationKey() method (rather than using the setPathValidation

Re: Global scope

2005-05-10 Thread Niall Pemberton
The Action and ActionForm both should have the servlet variable initialized. Thats a better way of getting the ServletContext: servlet.getServletContext(); Niall - Original Message - From: "Michael Jouravlev" <[EMAIL PROTECTED]> Sent: Tuesday, May 10, 2005 5:09 PM request.getSessio

Validating LazyValidatorForm

2005-05-10 Thread Vincent
Hello All, As the subject says I am having some trouble trying to validate a LazyValidatorForm. Using the great examples on the LazyValidatorForm page I created a custom class with the required: setPathValidation(true) in the constructor. The Action path calling the form is "/AddBoxAction" and vali

Re: Cannot find bean error in any scope

2005-05-10 Thread Niall Pemberton
My guess that one of your message keys is incorrect/missing. Are your message resources configured to NOT return null in your struts-config.xml? Niall - Original Message - From: "Michael Jouravlev" <[EMAIL PROTECTED]> Sent: Tuesday, May 10, 2005 7:53 AM This is ridiculous. I cannot fin

Re: Reg. ClassCastException:ActionErrors

2005-05-10 Thread Niall Pemberton
Since you're using a custom RequestProcessor how can we help without knowing what code is in there? Also you don't say what version of Struts you're using. Niall - Original Message - From: "Iyanu, Rajasekaran" <[EMAIL PROTECTED]> Sent: Tuesday, May 10, 2005 11:08 AM Hi, I'm getting t

Re: datePatternStrict for MM/dd/yyyy seems to allow 04/04/200w

2005-05-10 Thread Niall Pemberton
SimpleDateFormat does indeed parse this value as a valid date. Niall - Original Message - From: "Robert Taylor" <[EMAIL PROTECTED]> Sent: Tuesday, May 10, 2005 10:34 AM > Greetings, I'm using Struts 1.2.7 and trying to validate a date field > using the datePatternStrict with a date for

Re: Global scope

2005-05-10 Thread Michael Jouravlev
request.getSession().getServletContext(); I guess, servlet context makes sense even without session, but this seems to be the easiest way to obtain it through the request, which is passed to your reset(), validate() and execute() methods. On 5/10/05, Nils Liebelt <[EMAIL PROTECTED]> wrote: > Can

RE: Radio button for a 3rd level list

2005-05-10 Thread Kalyan Ayyagari
Thanks Rick for the response. Here is what I'm trying to do: I get the top level list from the backend. The list contains the other lists that I already described before. Apart from that it contains the information based on which I have to generate the UI. That is, my UI might look like this: ---

Re: Feature wanted: autocomplete attribute for html:text/form tag s

2005-05-10 Thread Niall Pemberton
Since Struts 1.2.5 the html tags have had some re-factoring that makes it easier to create your own custom version. All you need to do is extend the TextTag, add appropriate getter/setter methods for a new "autocomplete" property and override the prepareOtherAttributes() method to output your addit

Re: [OT] Help !! Too many select-box in one page

2005-05-10 Thread Frank W. Zammetti
I'd suggest doing some testing to determine where the delay is actually occurring... is it reading from the database that takes so long? Is it transit time from the server to the client? Is it rendering on the client? The firsr two you should be able to determine on the server-side, then jus

RE: Global scope

2005-05-10 Thread Nils Liebelt
Can the servletcontext declared as static: private static ServletContext servletContext; Not sure about it? Makes sense to me. GreetZ Nils -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 4:46 PM To: Struts Users Mailing Lis

RE: Global scope

2005-05-10 Thread Nils Liebelt
Can the servletcontext declared as static: private static ServletContext servletContext; Not sure about it? Makes sense to me. GreetZ Nils -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 4:46 PM To: Struts Users Mailing Lis

RE: [OT] Help !! Too many select-box in one page

2005-05-10 Thread John Fletcher
Cliff, >>> but each select in each list has the same options. If each select in each list has the same options, you can just download the options once to a javascript array and populate all of the select boxes on the client side. A quick example: var optionArray = {Re: Radio button for a 3rd level list
Kalyan Ayyagari wrote the following on 5/10/2005 10:47 AM: public class Component{ int id; boolean amISelected; } My JSP needs to have a radio button for each component. For example, say level3List has 3 components, red, green and blue. Then the JSP will have 3 radio buttons, one for red, one for g

RE: Global scope

Ah looks gd thanks, Cheers Nils -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 4:46 PM To: Struts Users Mailing List Subject: Re: Global scope Take a look at this: public class ApplicationContextListener implements ServletContextLi

RE: Global scope

Ah looks gd thanks, Cheers Nils -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 4:46 PM To: Struts Users Mailing List Subject: Re: Global scope Take a look at this: public class ApplicationContextListener implements ServletContextLi

multiple forms from 1 action

i have the following case: click link "search" => action => output.jsp output.jsp has 2 forms, both forms use a hidden variable "table" link "search" passes parameter "table". action creates "search form" and "table" is correctly set by struts. now in output.jsp i have a tag that creates a "recen

Re: Global scope

Take a look at this: public class ApplicationContextListener implements ServletContextListener { private ServletContext servletContext = null; public void contextInitialized(ServletContextEvent arg0) { servletContext = arg0.getServletContext(); Ap

Global scope

Hi everybody, Is there a global scope where you could dump e.g. a list of all users or stuff that is needed in global context. Or just adding to each single session? GreetZ Nils

Global scope

Hi everybody, Is there a global scope where you could dump e.g. a list of all users or stuff that is needed in global context. Or just adding to each single session? GreetZ Nils

Radio button for a 3rd level list

My form contains a list, say topLevelList. topLevelList in turn contains lists, lets say level2List(s). This level2List in turn contains lists, say level3List(s). Level3List contains objects of type Component. public class Component{ int id; boolean amISelected; } My JSP needs to

RE: Multiple tiles layouts for single application

Andreas, This is a wild solution. I don't understand page 15 and I've used Tiles before, but not in this way. Could you explain it? -Original Message- From: Andreas Toom [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 10, 2005 1:58 AM To: Struts Users Mailing List Subject: Re: Multiple tile

Re: [OT] Help !! Too many select-box in one page

Cliff Lam wrote the following on 5/10/2005 4:25 AM: > My page has too many select-box in one page. The .html has 17XXX lines. Nobody asked this, so I wanted to make sure, Are each of the select box entries a "different" list? I'm assuming so, but sometimes for master detail records where you have

Re: Html:muttibox tag help

Which object belongs resourceIds??? which form??? Let's suppose is searchForm so Try this: -- Rafael Taboada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Html:muttibox tag help

Can u specify a bit further please. I thought I had already specified the object by the property value in the tag as below. Where resourceIds is the field in the actionclient form and the value to write to this object is the resourceId of the clientVO. -Original Message- From: Rafael

Re: Html:muttibox tag help

U need to specify which object belongs resourceIds in ur html:multibox -- Rafael Taboada - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Accessing java.util.Properties in JSP

instead of using a Properties object you could use a Map. That way, you can use JSTL associatively, e.g Map myMap = new HashMap(); myMap.put("aKey", "aVal"); request/session/application.setAttribute("myMap", myMap); in your JSPs with EL ${request/session/applicationScope.myMap['aKey']} Allista

Re: Accessing java.util.Properties in JSP

Okay I realized that I might use a static method. How do I call it in a JSP that is not like this... <%Utilities.getDisplay( "BANNER_IMAGE" ) %> On 5/10/05, Richard Reyes <[EMAIL PROTECTED]> wrote: > Hello Guys, > > I have a properties object saved in my session and i need to access it > in my

Accessing java.util.Properties in JSP

Hello Guys, I have a properties object saved in my session and i need to access it in my jsp pages. can the bean tag handle this? how? perhaps el? thanks in advance richard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

Re: Cannot find bean error in any scope

Don't know what your action tools do, but the code I sent works. If you want messages instead of actions, then user the following: messages = new ActionMessages(); messages.add(Globals.MESSAGE_KEY, new ActionMessage("button.crop.crop_allowed_width","" + width)); messages.add(Gl

Re: Cannot find bean error in any scope

errors = new ActionMessages(); errors.add(Globals.ERROR_KEY, new ActionMessage("button.crop.no_letters_except_%")); errors.add(Globals.ERROR_KEY, new ActionMessage("button.crop.crop_allowed_width","" + width)); errors.add(Globals.ERROR_KEY, new ActionMessage("button.

Re: is there a better way of creating SQL queries from form objects ?

Erik Weber wrote: As far as the implementation goes, there is no reason to be scared of switches and loops. (But favor polymorphism/virtual functions over a giant loop.) However, you should get rid of all those concat operators and use StringBuffer.append instead. The performance will improve s

RE: [OT] Help !! Too many select-box in one page

I think I can consider myself lucky that my managers here are fairly switched on and buy into my advice on best practices and re-factoring, but I accept this is not always the case. With any new projects I certainly build in best practices as a matter of course. Once you've done one properly, th

Html:muttibox tag help

Hi, I need some help with the html:multibox tag. I have the following situation where I do a search for some clients and the search.jsp displays displays a number of rows each with a checkbox associated with it. The user can then click one or many checkboxes and click submit. The submit passe

Re: [OT] Help !! Too many select-box in one page

Allistair Crossley wrote: unless they see the 1+ minute performance time and you take a hard stance on it and say "well that's what you get when you ask for silly design" ;)) We still have PowerBuilder apps in production, 1+ minute responses from equally silly forms is regarded as normal. Still,

Reg. ClassCastException:ActionErrors

Hi, I'm getting the following exception when I enable validation for my entry page.. Can anyone please help me with a resolution in this regard. CallStack: java.lang.ClassCastException: org.apache.struts.action.ActionErrors at com.fidelity.ewp.framework.web.EwpErrorsData.init

RE: [OT] Help !! Too many select-box in one page

unless they see the 1+ minute performance time and you take a hard stance on it and say "well that's what you get when you ask for silly design" ;)) Allistair. > -Original Message- > From: James Neville [mailto:[EMAIL PROTECTED] > Sent: 10 May 2005 11:04 > To: Struts Users Mailing List >

Struts 1.2 +Tomcat +SSL Problem

Hello, I have a problem with Tomcat 5.0.28 with SSL mode enabled + Struts 1.2 + Windows XP + j2sdk 1.4.2 When I use Tomcat in ssl mode i read this error in console every time that click a link aplication web. 10-may-2005 0:55:21 org.apache.tomcat.util.net.TcpWorkerThread runIt GRAVE: Remote Ho

Re: [OT] Help !! Too many select-box in one page

Allistair Crossley wrote: it's plausible but has it's own performance implications. best to just try it out for your case and maybe it's a quick fix. Yup, its a hack in this case, but still a useful tool for the box. however, if you *can* spend some time re-factoring your forms, you should .. doe

ERROR: Server side validation using Validation framework

Hi, I am new in struts. I am getting 'Page can not be displayed error when I click on 'SAVE' button. validation is working fine when I implemented client side validation to add following line But when I removed above code from jsp I faced page not found error but it is not throwing any e

RE: [OT] Help !! Too many select-box in one page

it's plausible but has it's own performance implications. best to just try it out for your case and maybe it's a quick fix. however, if you *can* spend some time re-factoring your forms, you should .. does not sound like a particularly useful design right now. all the best, Allistair. > -O

Re: [OT] Help !! Too many select-box in one page

woo... Thx a lot ^^ Cliff - Original Message - From: "James Neville" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 10, 2005 5:21 PM Subject: Re: [OT] Help !! Too many select-box in one page > Cliff, > > If you truly have no choice but to collect the data

datePatternStrict for MM/dd/yyyy seems to allow 04/04/200w

Greetings, I'm using Struts 1.2.7 and trying to validate a date field using the datePatternStrict with a date format of MM/dd/. Everything seems to work as expected until I enter a date like 04/04/200w. It seems that the date validation routine thinks that this is a valid date...or atleast

tiles and static includes?

I wondered if it is somehow possible to make tiles templates perform like static includes. (i.e. the the template's includes should be copied before compilation of the jsp) The problem is that I have a number of very complex pages that are made out of fragments that depends on each other. (taglib

Re: [OT] Help !! Too many select-box in one page

haha.. ='( really Thx a lot !!! Cliff - Original Message - From: "Allistair Crossley" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 10, 2005 5:16 PM Subject: RE: [OT] Help !! Too many select-box in one page > the problem as I have said in both my previous

Re: [OT] Help !! Too many select-box in one page

Cliff, If you truly have no choice but to collect the data from one huge form, try using a compression filter on the offending jsps. http://www.netspade.com/software/java/compression-filter/ http://www.javaworld.com/javaworld/jw-06-2001/jw-0622-filters-p3.html http://www.google.co.uk/search?hl=en

RE: [OT] Help !! Too many select-box in one page

the problem as I have said in both my previous replies is that you cannot possibly expect 17,000 lines of HTML to be fast not matter how you go about generating that 17,000 lines of code. so, as I have suggested, you need to look at your forms design and break it down into more pages I would sa

Re: [OT] Help !! Too many select-box in one page

i don't think u can do this on the client side. i suggest a caching solution. something like this might be useful write a small plugin that stores a Map at servlet context. The map.key could be the table/form/field name. upto u. The value is a SQL statement that retrieves the data for the dropdow

Re: [OT] Help !! Too many select-box in one page

Thank you very much for your reply ^^ You are right !! I should not get the list from db so many times ^^" But I want to solve the loading time in the client side frist = (. It loaded 1 min even I copy the html source code loaded in the drameweaver = ( it is the html has 17XXX lines is too big

RE: [OT] Help !! Too many select-box in one page

yes you won't be able to solve that problem if you are rendering 88 select boxes. why? because you are rending 88 select boxes that are populated from the database. no amount of client-sise javascript (yuck) is going to help you. you need to re-factor your design which is clearly not working for

Re: [OT] Help !! Too many select-box in one page

Thank you for your reply I get the options from the db But the main concern is in the client side ... It loaded about 1min for the 17XXX lines html ... Cliff - Original Message - From: "rmanchu" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 10, 2005 5

Re: [OT] Help !! Too many select-box in one page

how r u rendering you select boxes? ie, database call for each render? riyaz Cliff Lam wrote: > Hi, > > My page has too many select-box in one page. The .html has 17XXX lines. > > This make the page load for a long time to appear =( > > Anyone face this problem too?? > > Please give me some

Re: [OT] Help !! Too many select-box in one page

thank you for you reply I really want to solve the problem in the client side. It load for 1 min for the page = ( kill me please X.X Cliff - Original Message - From: "Allistair Crossley" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 10, 2005 4:40 PM Subje

RE: [OT] Help !! Too many select-box in one page

You could define a JSP include file with one of these select lists, e.g ... And then in your main form, using JSTL before each select change the selectName page variable ... ... However, this will not reduce your HTML page size, because you are still using 88 select blocks. You

Re: [OT] Help !! Too many select-box in one page

Thank you very much for your quick reply. Actually, all the select-box is in one table contain 89 lists and each list has several select-box in-side. but each select in each list has the same options. I'm trying to find a way to reuse it. So i can just generate one select-box for the other 88 se

RE: [OT] Help !! Too many select-box in one page

You need to decide also whether those "too many select-boxes" are there for a reason or not. If they are, then you can't very well get rid of them, if they are not, again, re-factor the form, re-gather requirements for the form data capture and work from that. Sounds like you could re-factor y

Re: [OT] Help !! Too many select-box in one page

Cliff Lam wrote: > Hi, > > My page has too many select-box in one page. The .html has 17XXX lines. > > This make the page load for a long time to appear =( > > Anyone face this problem too?? > > Please give me some idea > <" Thx a lot Maybe some of the select-boxes can be rendered using javasc

Re: The field name in jsp

did u try with ur forms? i think it should work. also, if you're jsp is not backed by an action then, u'll need to create a form, which u can easily by using a RequestUtils.createActionForm method riyaz Cliff Lam wrote: > Thx a lot. > > This is a good method but I'm not using DynaActionForms =

[OT] Help !! Too many select-box in one page

Hi, My page has too many select-box in one page. The .html has 17XXX lines. This make the page load for a long time to appear =( Anyone face this problem too?? Please give me some idea > <" Thx a lot Cliff

Fwd: Cannot find bean error in any scope

Yes, and if I change to then I do not see any errors. Seems like the errors bean cannot be loaded from messages. Wny? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]