RE: Validator start immediately when page displays?

2005-10-24 Thread Wielemaker, Bram
In struts-config.xml set validate to false for the action that builds up (populates) the form and set validate to true for the action that process the form (after you clicked the submit button). Regards, Bram -Oorspronkelijk bericht- Van: pc leung [mailto:[EMAIL PROTECTED] Verzonden: di

Re: How to display an error image next to an invalid form field?

2005-10-24 Thread Michael Jouravlev
I like this one: http://www.themaninblue.com/writing/perspective/2005/10/05/form/form4.htm I wish someone patched Validator to do stuff like this ;-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: new website look

2005-10-24 Thread Michael Jouravlev
On 10/24/05, Wendy Smoak <[EMAIL PROTECTED]> wrote: > From: "Michael Jouravlev" <[EMAIL PROTECTED]> > > > Firefox 1.0.6 on W2K --> site is screwed up. > > So you've mentioned. :) Except for the left-hand column resizing itself > smaller than the ApacheCon logo, I don't see any major problems. Yes

Re: [slightly OT] Prince of Struts questions his database maintenance strategy

2005-10-24 Thread Mark Benussi
I go with a) Juts make sure you have a list called 'When I do a release' 1) Backup database 2) Apply changes 3) Upload site 4) See if it works Original Message Follows From: Larry Meadors <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List Subject: Re: [slight

Re: How to display an error image next to an invalid form field?

2005-10-24 Thread Wendy Smoak
From: "Mon Cab" <[EMAIL PROTECTED]> So the errorStyle tag on the offending field just says if "this field has an error use this style"... Is that right? Yes, and as Laurie mentioned there are also errorStyleClass and errorStyleId. You can read descriptions of the attributes here: http://

Re: How to display an error image next to an invalid form field?

2005-10-24 Thread Mon Cab
IC. So the errorStyle tag on the offending field just says if "this field has an error use this style"... Is that right? --- Laurie Harper <[EMAIL PROTECTED]> wrote: > How would you write what? The JSP? Just add > errorStyleClass="css-class-name" or whatever to each > of your form > fiel

Validator start immediately when page displays?

2005-10-24 Thread pc leung
When the first time the web page displays, the validator hightlights fields which are blank. However submit button is not clicked yet. Instead of hightlighting errors at the first time of web page displays, can the errors be shown up after the submit button is clicked? (My web page has a tile co

Re: [slightly OT] Prince of Struts questions his database maintenance strategy

2005-10-24 Thread Larry Meadors
In spite of being one of "the others" who use iBATIS, I go with (a) and script the database changes. Larry On 10/24/05, Murray Collingwood <[EMAIL PROTECTED]> wrote: > Hi folks > > This is for those of us not using Hibernate or iBatisthose still using > JDBC or DBCP. > > You've spent 2 month

[slightly OT] Prince of Struts questions his database maintenance strategy

2005-10-24 Thread Murray Collingwood
Hi folks This is for those of us not using Hibernate or iBatisthose still using JDBC or DBCP. You've spent 2 months (a blink in the eye of eternity really) creating your killer Struts app. It launched without any problems (you know it's a fairy tale now) and you were hailed by many fell

Re: new website look

2005-10-24 Thread Wendy Smoak
From: "Michael Jouravlev" <[EMAIL PROTECTED]> Firefox 1.0.6 on W2K --> site is screwed up. So you've mentioned. :) Except for the left-hand column resizing itself smaller than the ApacheCon logo, I don't see any major problems. I know there are some broken links, and I'd like to get some red

Re: How to Modify Resource Bundle While your application is Running withou restarting Server?

2005-10-24 Thread Laurie Harper
Shailesh Barde wrote: Friends! Can any body tell me How to Modify Resource Bundle While your application is Running withou restarting Server? Its a fact Well Known Fact that ,When your application first access a resource bundle,struts loads the bundle into Memory & Caches it so that it can be

Re: How to submit struts action using html:link

2005-10-24 Thread Laurie Harper
UmaShankar wrote: Hi, This is UmaShankar.My proelem is, I am trying to submit a jsp(strutsUI) form a /.But in this case my bean is not papulate.I want, If user enter some data into to and subject and message field then these data should be back on new page after adding addCC text box on page.

Outputting html on the fly

2005-10-24 Thread Jadeler
What options do I have to output html on a jsp page on the fly? Basically, Im trying to avoid this kind of logic: Im guessing I may have to write custom tag libs to do such a thing. If possibly I'd like not too, and rather have view beans that I can access on the JSP and get the html someho

Re: Integrating Hibernate 3.0 in Struts application

2005-10-24 Thread Eric Plante
The tutorial on hibernate's site does the job, that's what I used. http://www.hibernate.org/hib_doc/v3/reference/en/html/totorial.html#tutorial-firstapp - Original Message - From: "Gaet" <[EMAIL PROTECTED]> To: "Mailing List Struts" Sent: Monday, October 24, 2005 10:12 AM Subject: Inte

Re: Where can I find information about how to utilize the test framework built into Shale?

2005-10-24 Thread Gary VanMatre
There is not a lot of documentation yet but you can see several examples here: http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/core-library/src/test/org/apache/shale/ http://svn.apache.org/viewcvs.cgi/struts/shale/trunk/use-cases/src/test/org/apache/shale/usecases/ http://svn.apache.org/viewc

Re: Struts Form Logic Error

2005-10-24 Thread Michael Jouravlev
HttpServletRequest object is initially populated by servlet engine, Struts does not remove information from it. On 10/24/05, Asad Habib <[EMAIL PROTECTED]> wrote: > Hello. Thanks for your help. Is form-beans essential even if I don't want > to store form data in the session? Should the values of f

Re: Struts Form Logic Error

2005-10-24 Thread Michael Jouravlev
If I were you, I would first verify, that form is actually submitted with proper values to the proper address. If you use Firefox, download and install LiveHTTPHeaders and verify what is sent to the server. Is your form submitted correctly? On 10/24/05, Asad Habib <[EMAIL PROTECTED]> wrote: > Hell

Re: new website look

2005-10-24 Thread Michael Jouravlev
Firefox 1.0.6 on W2K --> site is screwed up. On 10/24/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > The rail problems also occur in Mozilla on my Red Hat 7.3 box. Other than > that, the site looks good. - To unsubscribe, e-

Re: JSP/design/flow question.

2005-10-24 Thread Ted Husted
+1 On 10/20/05, Borislav Sabev <[EMAIL PROTECTED]> wrote: > Take a look at struts-layout - http://struts.application-servers.com/. > Using it you can have only one jsp for both page 1 and page 2 (form mode > changes) - using it saves you the time to synch changes between page 1 > and page 2. > You

Re: Need good tab control for JSP.

2005-10-24 Thread Laurie Harper
That one, I think, can be dispelled: tab titles are set with the tabTitle attribute, so you can just pass in a value retrieved from your message resources. Admittedly it'd be nice if it was 'Struts aware' and supported a tabTitleKey attribute, though. L. Christian Bollmeyer wrote: Ah, anothe

Re: Need good tab control for JSP.

2005-10-24 Thread Laurie Harper
Christian Bollmeyer wrote: If you switch off JavaScript, the component is said to still work via 'traditional' links. Unfortunately, at least with Tiles (didn't test without), this ends up in a 404 error, as the component seems to look for the physical JSP 'master' file instead of the Tiles defin

Re: Struts Form Logic Error

2005-10-24 Thread Asad Habib
Hello. Thanks for your help. Is form-beans essential even if I don't want to store form data in the session? Should the values of form variables not be available in the action class via the use of request.getParameter('x') even if form-beans aren't used? Offcourse, I will eventually want to use

Where can I find information about how to utilize the test framework built into Shale?

2005-10-24 Thread Jiehuan Li
Trying to see what the test framework in Shale can do for me, but can hardly find any documentation on it. Does anybody know where I can find some useful information on how to use Shale test framework? Thanks.

How to Modify Resource Bundle While your application is Running withou restarting Server?

2005-10-24 Thread Shailesh Barde
Friends! Can any body tell me How to Modify Resource Bundle While your application is Running withou restarting Server? Its a fact Well Known Fact that ,When your application first access a resource bundle,struts loads the bundle into Memory & Caches it so that it can be quickly accessed again.

Re: Label Value Bean? for

2005-10-24 Thread Wendy Smoak
From: "Jim Reynolds" <[EMAIL PROTECTED]> Problem is, I am having trouble remembering/finding the api for the label value bean? Google hasn't reindexed the site yet... http://struts.apache.org/struts-core/apidocs/org/apache/struts/util/LabelValueBean.html -- Wendy

help needed on setting up shale in portal! dialog-config.xml is not loaded.

2005-10-24 Thread Jiehuan Li
I am trying to make the dialog work on top of clay in a WebSphere Portal Server 5.1 test environment using RAD 6.0. Clay is working fine. When I try to navigate to the dialog "DialogAddPerson", it gave this exception: 2005.10.24 12:32:30.481 I javax.portlet.Portlet - java.lang.IllegalArgumentExcep

Label Value Bean? for

2005-10-24 Thread Jim Reynolds
I forgot the name of the class /or/ tag that was useful when creating list data. That is, when gathering the data for the display, I thought the proper way to do this, was to use a "Label Value Bean?"? Problem is, I am having trouble remembering/finding the api for the label value bean? Could so

RE: new website look

2005-10-24 Thread David G. Friedman
+1 (LOL) -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Monday, October 24, 2005 2:42 PM To: Struts Users Mailing List Subject: Re: new website look Naturally someone can and should correct me if I'm wrong, but I believe the site is generated via Maven plug-in

Re: new website look

2005-10-24 Thread Frank W. Zammetti
Naturally someone can and should correct me if I'm wrong, but I believe the site is generated via Maven plug-in, no? Assuming that is correct, wouldn't it fall to the plug-in developers to ensure it works across browsers and OS's? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex

Re: new website look

2005-10-24 Thread erikweber
The rail problems also occur in Mozilla on my Red Hat 7.3 box. Other than that, the site looks good. It's about time people started using (window) target indicators. I always have thought the Apache sites have a good design, generally. But *please* don't put a site into production that you only

Re: How to escape a string on a description field

2005-10-24 Thread Bob Arnott
C.F. Scheidecker Antunes wrote: Hello all, I am having problems with my struts app. I am trying to enter a long string on a description field of a MySQL database but it crashes if the string has caracters that need to be escaped. org.apache.commons.lang.StringEscapeUtils is your friend, esp

Re: Need good tab control for JSP.

2005-10-24 Thread Christian Bollmeyer
Laurie Harper wrote: Christian Bollmeyer wrote: Hi, This component is quite good, but requires JSP 2.0 (SimpleTag) and has issues with Tiles (switch off JavaScript and see for yourself). Damn, I was thinking this looked pretty promising 'til I read that... Can you expand at all? I only

How to escape a string on a description field

2005-10-24 Thread C.F. Scheidecker Antunes
Hello all, I am having problems with my struts app. I am trying to enter a long string on a description field of a MySQL database but it crashes if the string has caracters that need to be escaped. What about the reversed operation when you are to display that on the JSP? How can I fix that?

Re: turn off log4j

2005-10-24 Thread Lorenzo Sicilia
On Monday 24 October 2005 17:28, Samuel Le Berrigaud wrote: > # the root logger is OFF (OFF doesn't mean anything to log4j) > log4j.rootLogger = OFF > > # logging your package > log4j.logger.yourpackage = debug, stdout, R many thanks for the answer it works fine. Just a strange behavior about acti

Re: Need good tab control for JSP.

2005-10-24 Thread Christian Bollmeyer
Ah, another important issue I forgot: the tab titles are 'fixed' and therefore not i18n-capable, neither via resource bundles nor . -- Ch. Laurie Harper schrieb: Christian Bollmeyer wrote: This component is quite good, but requires JSP 2.0 (SimpleTag) and has issues with Tiles (switch off Jav

RE: Integrating Hibernate 3.0 in Struts application

2005-10-24 Thread Fulgencio Comendeiro, Eduardo
Very good, -Mensaje original- De: Mario Neè [mailto:[EMAIL PROTECTED] Enviado el: lunes, 24 de octubre de 2005 17:10 Para: Struts Users Mailing List Asunto: Re: Integrating Hibernate 3.0 in Struts application Gaet wrote: >Hi, > >Is there anybody that could give me a good URL that show

Re: Integrating Hibernate 3.0 in Struts application

2005-10-24 Thread Mario Neè
Gaet wrote: Hi, Is there anybody that could give me a good URL that show how to integrate Hibernate in Struts. It would be better if it is for Hibernate 3.0... Thanks for help this is a demo example of Struts + XMooN + Hibernate 3 + HSQL live http://www.demozone.org download http://ww

Re: Session Management Within Webapp 2 (jsessionid)s

2005-10-24 Thread Martin Gainty
Dumb Question but I have to ask First from the doc for the method public boolean isNew()Returns true if the client does not yet know about the session or if the client chooses not to join the session. For example, if the server used only cookie-based sessions, and the client had disabled the us

Re: Integrating Hibernate 3.0 in Struts application

2005-10-24 Thread Gaet
Thanks for replies guys! This helps I will check all your suggestionsalso on spring that I haven't understood what is it for... Eduardo if you can send me your sample, I'm ok... Thanks! - Original Message - From: Fulgencio Comendeiro, Eduardo To: Struts Users Mailing List

Re: turn off log4j

2005-10-24 Thread Samuel Le Berrigaud
You may want to log4j file to look like that then # the root logger is OFF (OFF doesn't mean anything to log4j) log4j.rootLogger = OFF # logging your package log4j.logger.yourpackage = debug, stdout, R ## then the rest of your appenders SaM On 10/24/05, Lorenzo Sicilia <[EMAIL PROTECTED]> wrot

turn off log4j

2005-10-24 Thread Lorenzo Sicilia
Hi to all, I have a webapplication with struts where I want use log4j. in my log4j.properties: log4j.rootLogger=debug, stdout, R #log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern to output the caller's file name and lin

Session Management Within Webapp 2 (jsessionid)s

2005-10-24 Thread Jim Reynolds
I have a project which I am working on. It does not have any type of form login. It is just a merchant-type site. When client hits the URL, the index.jsp calls a forward like so: This of course sends the request to the struts-config.do. I extended the RequestProcessor to set up some session typ

Re: Question about ActionForward.setRedirect method

2005-10-24 Thread Frank W. Zammetti
I have to make some educated guesses here, because I don't know the full Struts lineage at that early stage (didn't start using it until 1.1)... The message your seeing is because the forward configs are frozen once they are read in. Recall that, like Actions, there is one instance for any given

RE: Integrating Hibernate 3.0 in Struts application

2005-10-24 Thread Fulgencio Comendeiro, Eduardo
I will do one example, when I finish, I will send to everybody. -Mensaje original- De: Marco Mistroni [mailto:[EMAIL PROTECTED] Enviado el: lunes, 24 de octubre de 2005 16:30 Para: 'Struts Users Mailing List' Asunto: RE: Integrating Hibernate 3.0 in Struts application Hello, ww

RE: Integrating Hibernate 3.0 in Struts application

2005-10-24 Thread Marco Mistroni
Hello, www.hibernate.org should have a link to how to integrate with struts apps you may want to check also www.springframework.org to use spring along with hibernate and struts... regards marco -Original Message- From: Gaet [mailto:[EMAIL PROTECTED] Sent: 24 October 2

RE: Integrating Hibernate 3.0 in Struts application

2005-10-24 Thread David G. Friedman
Me, I read (printed-out, where is electronic ink when you need to save trees?!?!) the online reference manual and got most of what I need for that. The rest I found on http://forum.hibernate.org Link to the doc I read: http://www.hibernate.org/hib_docs/v3/reference/en/html_single/ Regards, David

RE: Integrating Hibernate 3.0 in Struts application

2005-10-24 Thread bsimonin
The book "Jakarta Struts Cookbook" has a small recipe on pages 302 to 305 on connecting Struts to Hibernate and the book "Struts Recipes" has a recipe on pages 377 to 392 on connecting Hibernate to Struts. -Original Message- From: Fulgencio Comendeiro, Eduardo [mailto:[EMAIL PROTECTED]

RE: Integrating Hibernate 3.0 in Struts application

2005-10-24 Thread Fulgencio Comendeiro, Eduardo
I have bought the book "Professional HIBERNATE" ed. Wrox, I use this for learn about Hibernate. -Mensaje original- De: Gaet [mailto:[EMAIL PROTECTED] Enviado el: lunes, 24 de octubre de 2005 16:13 Para: Mailing List Struts Asunto: Integrating Hibernate 3.0 in Struts application Hi, I

Integrating Hibernate 3.0 in Struts application

2005-10-24 Thread Gaet
Hi, Is there anybody that could give me a good URL that show how to integrate Hibernate in Struts. It would be better if it is for Hibernate 3.0... Thanks for help

Question about ActionForward.setRedirect method

2005-10-24 Thread pantichd
Hello, I'm converting my struts apps from version 1.0.2 to 1.2.7. In my 1.0.2 app I can call ActionForward.setRedirect method and pass it "true" with no problem. When running with 1.2.7 it generates the following error. Error [javax.servlet.ServletException: Configuration is frozen], with

RE: i18n and same value for 2 different locale

2005-10-24 Thread Fulgencio Comendeiro, Eduardo
public final class LocaleAction extends Action { . HttpSession session = request.getSession(); Locale locale = getLocale(request); String language = null; language = (String)PropertyUtils.getSimpleProperty(form, "language"); if (language != null && language.length() > 0) {

Re: i18n and same value for 2 different locale

2005-10-24 Thread Jurn Ho
I'd be very interested if you find out what is wrong.. We have a similar issue that only appears sometimes to our webapp when its deployed to a websphere server. Our other environments that run tomcat have never exhibited this problem. Jurn At 07:52 AM 22/10/2005, Christian Bourque wrote: Hi

Re: JSP 2D Taglib Released -- Script Java 2D API from your JSP with JavaScript

2005-10-24 Thread Teslasghost
> > I'm getting an error... > > HTTP Status 500 - > > - --- > > type Exception report > > message > > description The server encountered an internal error () that prevented it > from fulfilling this request. > > exc

Re: Struts Form Logic Error

2005-10-24 Thread atta-ur rehman
Asad, Is this your complete struts-config.xml? If so, you're missing collection in it. Please add your form in the and then add the "name" attribute in the action to refer to your form. and then in your action mapping: > > /> > also make sure sure in your JSP you're using html:text

RE: Struts Form Logic Error

2005-10-24 Thread Fulgencio Comendeiro, Eduardo
Add validate="false" if you don't want execute the method form.validate() in the Form bean. mailto:[EMAIL PROTECTED] Enviado el: lunes, 24 de octubre de 2005 13:42 Para: Struts Users Mailing List Asunto: RE: Struts Form Logic Error LoginForm is a Bean whit seter's and get

RE: Struts Form Logic Error

2005-10-24 Thread Fulgencio Comendeiro, Eduardo
LoginForm is a Bean whit seter's and geter's with properties String businessName String businessAddress String businessZipCode String businessPhoneNumber notation (1) type="com.opcionuno.LoginForm"/>

Struts Form Logic Error

2005-10-24 Thread Asad Habib
Hello. I am new to Struts and currently developing a Struts application. For some reason, form variables are not being transmitted upon form submission and at the same time there is no error or stack trace that I can reference to diagnose the error. I am not able to access the form variables in

Re: Problems with script in JSP

2005-10-24 Thread Eider Iturbe
Hi, I've modified the code and I've added ".toString()" in the script: and it is OK Thanks, Eider Fulgencio Comendeiro, Eduardo wrote: I have this key="<%= elemento %>" and is OK -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviad

RE: Problems with script in JSP

2005-10-24 Thread Fulgencio Comendeiro, Eduardo
I have this key="<%= elemento %>" and is OK -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Enviado el: lunes, 24 de octubre de 2005 9:49 Para: Struts Users Mailing List Asunto: Re: Problems with script in JSP Hi, I think the problem is t

Re: Problems with script in JSP

2005-10-24 Thread Ext . Ilitia2
Hi, I think the problem is to use a scriptlet like this "<%= %>" into a tag. I don't know if exist a way to do this, but this is not the way.

RE: Problems with script in JSP

2005-10-24 Thread Fulgencio Comendeiro, Eduardo
When I have problems with this I do The new text is in UPPERCASE. -Mensaje original- De: Eider Iturbe [mailto:[EMAIL PROTECTED] Enviado el: lunes, 24 de octubre de 2005 9:19 Para: Struts Users Mailing List Asunto: Problems with script in JSP Hi all! I have a problem: Tomcat can't

RE: Problems with script in JSP

2005-10-24 Thread Fulgencio Comendeiro, Eduardo
Cual es el mensaje de error ? -Mensaje original- De: Eider Iturbe [mailto:[EMAIL PROTECTED] Enviado el: lunes, 24 de octubre de 2005 9:19 Para: Struts Users Mailing List Asunto: Problems with script in JSP Hi all! I have a problem: Tomcat can't compile next code of a JSP: The probl

Problems with script in JSP

2005-10-24 Thread Eider Iturbe
Hi all! I have a problem: Tomcat can't compile next code of a JSP: The problem is the script part: "<%=fechabaja%>". Can anyone help me, please? Thanks! Eider - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: new website look

2005-10-24 Thread Jason Lea
Seems to happen in FF when I have the sidebar open. Closing the sidebar and it looks fine, open it and the image overlap appears. David G. Friedman wrote: +1 I also found the image problem on Opera 8.01 build 7642 and I can confirm the problem on FF 1.0.7. It's funny to see the resize work n