RE: [OT] JSP or Velocity
Hehe, I love this programmers vs designer concept. Every place Ive worked its always the same poor sod (ie: yours truly) who has to do both roles. ...and why is it Im always the only one who sees the advantages of monospaced green text on a black background. Darn users always wanting their proportional fonts, and yucky pastel colours. Garrrgh! -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Saturday, 28 February 2004 06:07 To: Struts Users Mailing List Subject: RE: [OT] JSP or Velocity Navjot, Though I haven't tried Velocity, I like the idea that my stub-pages can be easily edited in HTML editors. How do your manage letting your designers alter the JSP layouts? Do you have them use some (and if so, what is it) HTML editor which is (Stuts JSP EL) aware? Regards, David -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 9:31 AM To: Struts Users Mailing List Subject: RE: [OT] JSP or Velocity Basically, i use velocity only for email templates and sometimes to generate other kind of templates from one template where the use of XSLT is not appropriate. For web templates, that have more complex requirements, i prefer to use taglibs. besides el makes life as easy as we may talk in velocity. In velocity, to comprehend taglibs, you may have have to write lots of velocimacro. you may ask for another opinion on velocity-user list as well. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 21:26 To: [EMAIL PROTECTED] Subject: Re: [OT] JSP or Velocity [EMAIL PROTECTED] 02/27/04 5:44 AM I am starting to develop an application using struts and have been looking round the rest of the Jakarta project and came across the Velocity project. I was interested to see which which people recommended for a relative newbie After looking at velocity, I am certainly of the opinion that it adds no value over jsp2/jstl. It offers absolutely nothing that the jsp2/jstl combination does not. The only difference is that velocity is a bit more terse (if/else/end instead of c:choose/c:when/c:otherwise) and that it uses # instead of the . It is important to note that I am talking about jsp2 and tomcat 5, not the jsp1 in tomcat 4. A while back I looked in detail at the jsp/velocity comparison on the velocity site. There are several issues with the comparison. The person writing the case study was cleary biased towards velocity and had never even considered JSTL (which in all fairness may not have been available at that time). Looking at the code (both the velocity and jstl versions are below) I think that velocity clearly had an influence on the jsp2/jstl constructs. The first thing I noticed was that the two pages do not do the same thing. The jsp turns off the session (the vm does not). The jsp stores variables that are never used which were factored out in the vm version. The vm version is missing required code (for example, the repCode and urlEvent variables are never defined). The jsp page is also *very* poorly written using scriptlets. You should rarely need to use scriptlets in jsp1/jstl pages, and I suspect with jsp2/jstl, you will not ever *need* to. With struts, you do not need to use jsp:useBean tags either because the controller does that for you. The jsp2/jstl version is a bit more verbose because it is based on xml so you cannot have things like if/else/end because they are unbalanced, but other than that, there are no significant differences. After converting the page to use JSTL and eliminating ALL of the % % stuff, we get something more like this: === The JSP version: === table width=600 border=0 cellspacing=0 cellpadding=4 bgcolor=white tr td ibTopic: ${meeting.topic}/b/i c:forEach list=${meeting.storedEventsIterator} var=event c:set var=yapper value=${meeting.participation[event.fromId]} / c:choose c:when test=${event.class.name eq 'fqcn.URLPushedEvent'} c:choose c:when test=${yapper.role eq 'R'} c:set var=repId value=${yapper.participantId} / font color=#00b${yapper.name}:/b/font /c:when c:otherwise font color=#f0b${yapper.name}:/b/font /c:otherwise /c:choose a href=${event.storedData}${event.storedData}/a br /c:when c:when test=${event.class.name eq 'fqcn.ChatEvent'} c:choose c:when test=${yapper.role eq 'R'} font color=#00b${yapper.name}:/b/font c:set var=repId value=${yapper.participantId} / /c:when
RE: [OT] JSP or Velocity
hi, As far as i am concerned. My prefs are Eclipse and UEdit(designers can use in combination with other design ides like dreamweaver etc). See more at http://jakarta.apache.org/velocity/devtools.html Navjot Singh -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 2:15 PM To: Struts Users Mailing List Subject: RE: [OT] JSP or Velocity Hehe, I love this programmers vs designer concept. Every place Ive worked its always the same poor sod (ie: yours truly) who has to do both roles. ...and why is it Im always the only one who sees the advantages of monospaced green text on a black background. Darn users always wanting their proportional fonts, and yucky pastel colours. Garrrgh! -Original Message- From: David Friedman [mailto:[EMAIL PROTECTED] Sent: Saturday, 28 February 2004 06:07 To: Struts Users Mailing List Subject: RE: [OT] JSP or Velocity Navjot, Though I haven't tried Velocity, I like the idea that my stub-pages can be easily edited in HTML editors. How do your manage letting your designers alter the JSP layouts? Do you have them use some (and if so, what is it) HTML editor which is (Stuts JSP EL) aware? Regards, David -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 9:31 AM To: Struts Users Mailing List Subject: RE: [OT] JSP or Velocity Basically, i use velocity only for email templates and sometimes to generate other kind of templates from one template where the use of XSLT is not appropriate. For web templates, that have more complex requirements, i prefer to use taglibs. besides el makes life as easy as we may talk in velocity. In velocity, to comprehend taglibs, you may have have to write lots of velocimacro. you may ask for another opinion on velocity-user list as well. -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 21:26 To: [EMAIL PROTECTED] Subject: Re: [OT] JSP or Velocity [EMAIL PROTECTED] 02/27/04 5:44 AM I am starting to develop an application using struts and have been looking round the rest of the Jakarta project and came across the Velocity project. I was interested to see which which people recommended for a relative newbie After looking at velocity, I am certainly of the opinion that it adds no value over jsp2/jstl. It offers absolutely nothing that the jsp2/jstl combination does not. The only difference is that velocity is a bit more terse (if/else/end instead of c:choose/c:when/c:otherwise) and that it uses # instead of the . It is important to note that I am talking about jsp2 and tomcat 5, not the jsp1 in tomcat 4. A while back I looked in detail at the jsp/velocity comparison on the velocity site. There are several issues with the comparison. The person writing the case study was cleary biased towards velocity and had never even considered JSTL (which in all fairness may not have been available at that time). Looking at the code (both the velocity and jstl versions are below) I think that velocity clearly had an influence on the jsp2/jstl constructs. The first thing I noticed was that the two pages do not do the same thing. The jsp turns off the session (the vm does not). The jsp stores variables that are never used which were factored out in the vm version. The vm version is missing required code (for example, the repCode and urlEvent variables are never defined). The jsp page is also *very* poorly written using scriptlets. You should rarely need to use scriptlets in jsp1/jstl pages, and I suspect with jsp2/jstl, you will not ever *need* to. With struts, you do not need to use jsp:useBean tags either because the controller does that for you. The jsp2/jstl version is a bit more verbose because it is based on xml so you cannot have things like if/else/end because they are unbalanced, but other than that, there are no significant differences. After converting the page to use JSTL and eliminating ALL of the % % stuff, we get something more like this: === The JSP version: === table width=600 border=0 cellspacing=0 cellpadding=4 bgcolor=white tr td ibTopic: ${meeting.topic}/b/i c:forEach list=${meeting.storedEventsIterator} var=event c:set var=yapper value=${meeting.participation[event.fromId]} / c:choose c:when test=${event.class.name eq 'fqcn.URLPushedEvent'} c:choose c:when test=${yapper.role eq 'R'} c:set var=repId value=${yapper.participantId} / font color=#00b${yapper.name}:/b/font /c:when c:otherwise font color=#f0b${yapper.name}:/b/font /c:otherwise /c:choose a href=${event.storedData}${event.storedData}/a br
RE: Problem with loss form (session scope)
Ah! So the form is there! Just not the values? hehe , ok I better explain about reset(). The reset() method is always called (by the request processor) before it populates the form from the request. (As you noticed this occurs regardless of validation results). The reason for this is due to the (primary) purpose of the reset() method, which is not so much to reset the form to default values, but rather to act as a workaround for the issue that browsers do not submit values for certain types of fields when they are empty - for example multiple select fields, and unticked checkboxes. With a request scoped form you get a fresh form everytime anyway so this issue isnt often an issue, but with a session scoped form it can be. Now if a user were to untick a checkbox on a form or deselect all items in a multiple select box, or clear out all the text from a textarea, _nothing_ (not even an empty string) is submitted in the request for that field. (Remember at its heart the submitted request is just a bunch of name=value lines, and this is converted to a map by the servlet api, struts (or rather beanutils) iterates the parameter names in said map and calls the appropriate setters in the actionform with the value) As a result the setter is not going to be invoked as there is _no_ parameter in the request for that field. Thus the value in the actionform will not be cleared, and the unticking of the checkbox will not be seen on the server side. By clearing the value for the field in reset() before populate is called the value is cleared. If the value submitted was not empty, then the setter will be called and the correct value replaced, if not then the cleared value remains in the form as the setter is not called so either way the form reflects what the user entered in the UI. This is all well and good if all the fields are present in the UI, but if not - such as in the case of a multiple page wizard - then we are going to be clearing values in the actionform that should not be cleared. The answer to this is to keep track of which page the user was submitting from and only clear values in reset() for fields that are on that page - leaving the others untouched. (You can submit the page id in a hidden field and check its value with request.getParameter() if needs be). hth Andrew -Original Message- From: Betty Koon [mailto:[EMAIL PROTECTED] Sent: Saturday, 28 February 2004 06:03 To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Problem with loss form (session scope) One thing I found out that the reset method was getting called everytime if there is no error return from validation. This could cause the form to be reset to the original state. -betty -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 12:07 AM To: Struts Subject: RE: Problem with loss form (session scope) Hmm. That does sound rather odd! Like you say, should not be like that. :-( Only thing I can thing of here is: Is it the same session? (grasping at straws now!) Try println/logging the sessionId from the action and see if its still the same as first time through. -Original Message- From: Betty Koon [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 15:39 To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Problem with loss form (session scope) I am sorry. I only have 1 action map to this form. So, I guess the name doesn't matter in this case. Basically, what I am saying is the first time I hit this action, the form constrctor will get called but the 2nd time the action get called, this shouldn't happen, but it does. Yes, that's what I am planning to do next, download the source code and stepped through it. -Betty -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 11:18 PM To: Struts Subject: RE: Problem with loss form (session scope) Ah, but you didnt actually answer my question. Is it the same name for the form in both actions mappings, and do both these action mappings specify the scope to be session? My suspicion is that the problem is that struts is trying to find the form under a different key in the second action - but is this second action actually the same action as the first or different as I am assuming? btw: have you gone and looked at the struts source code for the request processor and request utils class to see what it is actually doing? (Tracing through with a debugger can be quite enlightening). One of the common attitudes in open source is that the source is the best reference and I certainly found this the case when I was first learning struts :-) -Original Message- From: Betty Koon [mailto:[EMAIL PROTECTED] Sent: Friday, 27 February 2004 15:10 To: 'Struts Users Mailing List'; [EMAIL PROTECTED] Subject: RE: Problem with loss form (session scope) I specify my own name in the struts config. In my action, I just grabbed the action form from the
Re: [OT] Gays and computing
Sounds a bit gay to me.. On 28 Feb 2004, at 07:32, Michael McGrady wrote: Yah, off topic. I bet that is what the [OT] is all about. At 04:06 PM 2/27/2004, you wrote: Definitively funny, but Off-topic :) --- Rick Reumann [EMAIL PROTECTED] escribió: On Friday 27 February 2004 4:39 pm, Melvin Kurzchen wrote: Article: http://www.albinoblacksheep.com/flash/you.html Good article but does it have to use all that nude pictures to make his point? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: servlet.getDebug
umm... if I recall this was to do with the logging output level right? Yeh. 1.1 deprecates that. Instead it expects this all to be configured in your logging impl. 1.1 uses commons-logging (a logging api wrapper) that allows the actual logger used to be pluggable. Unfortunately configartion of the logging level is now implementation dependent, and afaik I dont believe struts provides a convienient way to get at it anymore as its no longer something managed by struts but rather left to the implementation in question. -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Saturday, 28 February 2004 08:03 To: [EMAIL PROTECTED] Subject: servlet.getDebug I am a newbie reading Struts in action and am attempting to build the logon example in chapter 3. I am using Struts 1.1 and unfortunately the book is written primarily to Struts 1.0, which was the stable version at time of writing. Anyway, I get this when I build a couple of the java files: warning: getDebug() in org.apache.struts.action.ActionServlet has been deprecated [javac] if (servlet.getDebug() = Constants.DEBUG) Is there some recommended replacement for that construct? Thanks. Dean Hoover - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DropDowns....
Whats the best way for implement this situation: On the window I have 2 dropdown, the second depends of the first dropdown value, then I'll back to the class action with the first dropdown value for populate the second. After choice the value at second dropdown, I'll qualify for sending this informations to data base. How many action I need for to implement this ? I'll need one action for the first dropdown (at onchange event submit the form???), other action for the second dropdown and other for to send all informations to database ? Some one have a example for help-me ?? obrigado Daniel S.
RE: DropDowns....
Take a look at http://providers.sourceforge.net/ and see ComboSelectTag. This tag allows you to create 2 or more dependant drop down lists using Struts and javascript. With this tag, you do not need to reload the page in the onchange of the first select. Cheers. Guillermo. -Original Message- From: Daniel [mailto:[EMAIL PROTECTED] Sent: Sábado, 28 de Febrero de 2004 10:19 a.m. To: Struts Users Mailing List Subject: DropDowns Whats the best way for implement this situation: On the window I have 2 dropdown, the second depends of the first dropdown value, then I'll back to the class action with the first dropdown value for populate the second. After choice the value at second dropdown, I'll qualify for sending this informations to data base. How many action I need for to implement this ? I'll need one action for the first dropdown (at onchange event submit the form???), other action for the second dropdown and other for to send all informations to database ? Some one have a example for help-me ?? obrigado Daniel S. NOTA DE CONFIDENCIALIDAD Este mensaje (y sus anexos) es confidencial, esta dirigido exclusivamente a las personas direccionadas en el mail y puede contener informacion (i)de propiedad exclusiva de Interbanking S.A. o (ii) amparada por el secreto profesional. Cualquier opinion en el contenido, es exclusiva de su autor y no representa necesariamente la opinion de Interbanking S.A. El acceso no autorizado, uso, reproduccion, o divulgacion esta prohibido. Interbanking S.A no asumira responsabilidad ni obligacion legal alguna por cualquier informacion incorrecta o alterada contenida en este mensaje. Si usted ha recibido este mensaje por error, le rogamos tenga la amabilidad de destruirlo inmediatamente junto con todas las copias del mismo, notificando al remitente. No debera utilizar, revelar, distribuir, imprimir o copiar este mensaje ni ninguna de sus partes si usted no es el destinatario. Muchas gracias. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Maybe Spam] Re: [OT] Gays and computing
your in idiot for passing this around -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 4:12 AM To: Struts Users Mailing List Subject: [Maybe Spam] Re: [OT] Gays and computing Sounds a bit gay to me.. On 28 Feb 2004, at 07:32, Michael McGrady wrote: Yah, off topic. I bet that is what the [OT] is all about. At 04:06 PM 2/27/2004, you wrote: Definitively funny, but Off-topic :) --- Rick Reumann [EMAIL PROTECTED] escribió: On Friday 27 February 2004 4:39 pm, Melvin Kurzchen wrote: Article: http://www.albinoblacksheep.com/flash/you.html Good article but does it have to use all that nude pictures to make his point? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Gays and computing
Your an idiot for forwarding this -Original Message- From: Domingo A. Rodriguez S. [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 7:06 PM To: Struts Users Mailing List Subject: Re: [OT] Gays and computing Definitively funny, but Off-topic :) --- Rick Reumann [EMAIL PROTECTED] escribió: On Friday 27 February 2004 4:39 pm, Melvin Kurzchen wrote: Article: http://www.albinoblacksheep.com/flash/you.html Good article but does it have to use all that nude pictures to make his point? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Gays and computing
That would, I believe, be you're an idiot? This is like recursion. At 05:35 AM 2/28/2004, you wrote: Your an idiot for forwarding this -Original Message- From: Domingo A. Rodriguez S. [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 7:06 PM To: Struts Users Mailing List Subject: Re: [OT] Gays and computing Definitively funny, but Off-topic :) --- Rick Reumann [EMAIL PROTECTED] escribió: On Friday 27 February 2004 4:39 pm, Melvin Kurzchen wrote: Article: http://www.albinoblacksheep.com/flash/you.html Good article but does it have to use all that nude pictures to make his point? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Gays and computing
No, recursion is you sticking your finger up your butt and smelling it, sticking your finger up your butt and smelling, sticking your finger up your butt and smelling it, all day long -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:49 AM To: Struts Users Mailing List Subject: RE: [OT] Gays and computing That would, I believe, be you're an idiot? This is like recursion. At 05:35 AM 2/28/2004, you wrote: Your an idiot for forwarding this -Original Message- From: Domingo A. Rodriguez S. [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 7:06 PM To: Struts Users Mailing List Subject: Re: [OT] Gays and computing Definitively funny, but Off-topic :) --- Rick Reumann [EMAIL PROTECTED] escribió: On Friday 27 February 2004 4:39 pm, Melvin Kurzchen wrote: Article: http://www.albinoblacksheep.com/flash/you.html Good article but does it have to use all that nude pictures to make his point? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Maven (was Re: [ANNOUNCE] Struts 1.2.0 Test Build available)
that lets me define the individual versions of *all* dependencies for *all* projects so that I can say, for example, use *this* version of commons-beanutils and *that* version of commons-digester to build ***all*** of the components that are going in to my overall exectable. I am *so* not interested in dealing with runtime exceptions because different dependent packages were compiled against different versions of the dependent libraries. Can someone please help me understand how to do this with Maven? Without it, I'm not planning to switch any of my personal or internal-to-Sun projects (even if the Struts committers decide to switch Struts development itself). This is actually pretty easy, if I understand you correctly. If you define the Maven property maven.jar.override to the value on, then when resolving dependencies, Maven will check each against a possibly defined override. For example, the version of Cactus that everyone else in Struts uses doesn't work on Mac OS X. The Cactus CVS head has the patch that works, so in my Struts/maven environment, I have this defined: maven.jar.override=on # patched version of cactus related to Mac OS X: # http://issues.apache.org/bugzilla/show_bug.cgi?id=25266i maven.jar.cactus-ant=1.6dev-2003-12-07 maven.jar.jakarta-cactus-framework=13-1.6dev You can use full paths to JARs as well as version numbers. This is detailed here: http://maven.apache.org/reference/user-guide.html#Overriding_Stated_Dependencies Properties are defined like so: (http://maven.apache.org/reference/user-guide.html#Properties_Processing): The properties files in Maven are processed in the following order: *${project.home}/project.properties * ${project.home}/build.properties * ${user.home}/build.properties Where the last definition wins. So, Maven moves through this sequence of properties files overridding any previously defined properties with newer definitions. In this sequence your ${user.home}/build.properties has the final say in the list of properties files processed. We will call the list of properties files that Maven processes the standard properties file set. In addition, System properties are processed after the above chain of properties files are processed. So, a property specified on the CLI using the -Dproperty=value convention will override any previous definition of that property. So if you wanted to have it universally, you'd define this in ${user.home}/build.properties but if it were just for a specific project, you'd define it in ${project.home}/build.properties Did I answer the right question? Joe -- Joe Germuska [EMAIL PROTECTED] http://blog.germuska.com Imagine if every Thursday your shoes exploded if you tied them the usual way. This happens to us all the time with computers, and nobody thinks of complaining. -- Jef Raskin
RE: [OT] Gays and computing
Now that really sounds gay... I think no one is an idiot for replying to a message from a list. Idiots are the ones who tend to classify other's people's replies as 'from idiots'. As this is an Off-Topic message, I suggest people to avoid replying it anymore. Thank you. --- David Adelson [EMAIL PROTECTED] escribió: No, recursion is you sticking your finger up your butt and smelling it, sticking your finger up your butt and smelling, sticking your finger up your butt and smelling it, all day long -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:49 AM To: Struts Users Mailing List Subject: RE: [OT] Gays and computing That would, I believe, be you're an idiot? This is like recursion. At 05:35 AM 2/28/2004, you wrote: Your an idiot for forwarding this -Original Message- From: Domingo A. Rodriguez S. [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 7:06 PM To: Struts Users Mailing List Subject: Re: [OT] Gays and computing Definitively funny, but Off-topic :) --- Rick Reumann [EMAIL PROTECTED] escribió: On Friday 27 February 2004 4:39 pm, Melvin Kurzchen wrote: Article: http://www.albinoblacksheep.com/flash/you.html Good article but does it have to use all that nude pictures to make his point? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Gays and computing... HAS VIRUS BE CARFULL
HI this one has vrius, i just got a virus alert when i went to this site...carefull --- Domingo A. Rodriguez S. [EMAIL PROTECTED] wrote: Definitively funny, but Off-topic :) --- Rick Reumann [EMAIL PROTECTED] escribió: On Friday 27 February 2004 4:39 pm, Melvin Kurzchen wrote: Article: http://www.albinoblacksheep.com/flash/you.html Good article but does it have to use all that nude pictures to make his point? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] = A$HI$H __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT]jsp and version control
Hi We are developing a web project which incudes jsp ,struts etc. we are using VSS for source control, we are sending jar files to the client and each jar file we have a manifest file which has the version number,build number and date, so if there is any error we just ask the version, build and date to track down the source and fix it, But since we cannot bundle all the jsp in jar file, how do we know what source the client have, do we have to include build number etc in each and every jsp we send, or include a jsp with build number, any ideas, how do people keep track of what jsp code is running on client machine. we have different clients running different versions and build Ashish We version control our JSPs through the keyword substitution functionality provided by our source code repository. Every one of our JSPs contain a comment at the top, containing versioning information. For example: %-- $Id:$ --% Is the simplest version. One possible solution: 1) Have a token at the begning of each file, something like %-- @version.number@ --% 2) Use Ant increment a build number. This link as some very useful info http://www.jguru.com/faq/view.jsp?EID=481664 3) Substitute the token in step (1) with the current build number. Pro: Its automated. Guaranted the same results every time. Con: [Minor] depending on the number of jsp files token substitution may take a while. The above steps have worked for me. In my case i didn't have substitute the all for all the jsp pages just a release notes page. Hope this helps, - anand. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Gays and computing
technically, that's iteration... On Saturday, February 28, 2004, at 07:56 AM, David Adelson wrote: No, recursion is you sticking your finger up your butt and smelling it, sticking your finger up your butt and smelling, sticking your finger up your butt and smelling it, all day long -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Saturday, February 28, 2004 8:49 AM To: Struts Users Mailing List Subject: RE: [OT] Gays and computing That would, I believe, be you're an idiot? This is like recursion. At 05:35 AM 2/28/2004, you wrote: Your an idiot for forwarding this -Original Message- From: Domingo A. Rodriguez S. [mailto:[EMAIL PROTECTED] Sent: Friday, February 27, 2004 7:06 PM To: Struts Users Mailing List Subject: Re: [OT] Gays and computing Definitively funny, but Off-topic :) --- Rick Reumann [EMAIL PROTECTED] escribió: On Friday 27 February 2004 4:39 pm, Melvin Kurzchen wrote: Article: http://www.albinoblacksheep.com/flash/you.html Good article but does it have to use all that nude pictures to make his point? -- Rick - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Do You Yahoo!? Información de Estados Unidos y América Latina, en Yahoo! Noticias. Visítanos en http://noticias.espanol.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Missing bean when validating
http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg94386.html hth, Hubert --- Martin Gross [EMAIL PROTECTED] wrote: Hi, I have a form with a dropdown list: html:options collection=campaignList property=id labelProperty=name / The collection is set by an action which redirects to this form. action path=/showNewCampaigns type=de.evolt.newsletter.webgui.CampaignAction scope=request forward name=success path=edit.campaign / /action I use Validator to check the values of this form when submitting it. action path=/updateCampaign type=de.evolt.newsletter.webgui.CampaignAction name=campaignForm scope=request input=edit.campaign forward name=success path=/showNewsletterOverview.do / /action The problem is that I get an Cannot find bean campaignList error when validation detects that a required field was not filled. I could solve the problem putting campaignList into session scope. But is there another solution without putting campaignList into session scope (e.g. request scope)? Regards, Martin __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
splitting struts-config into multiple files
We have many apps that require the same global forwards. Rather than copy this info into the config file for each app, we'd like to be able to place it in a struts-config file that lives somewhere on the filesystem outside WEB-INF, and then specify that as one of the config files to use. I know it's possible to split struts-config, but is there some way that one of the config files can reside outside the app? Thanks, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Modules....
How can I execute one action (action popupCli)on the other module (struts-config-comer.xml), I have one jsp file (cadUsu.jsp) and this jsp file need to use one action (popupCli) of other struts module (struts-config-comer.xml) obrigado Daniel S.
Re: splitting struts-config into multiple files
May be Ant task can help in your environment. HTH Manish Singla Jim Anderson wrote: We have many apps that require the same global forwards. Rather than copy this info into the config file for each app, we'd like to be able to place it in a struts-config file that lives somewhere on the filesystem outside WEB-INF, and then specify that as one of the config files to use. I know it's possible to split struts-config, but is there some way that one of the config files can reside outside the app? Thanks, jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems with UTF-8 and forms
Hello, I'm using Aaron Rustads SetCharacterEncodingFilter-filter for Struts but with mixed results (see link below). * All my Resource-, JSP- and Java-files are saved in UTF-8 format. * The filter is configured in Tomcat (WEB-INF/web.xml) for my application. First problem: Posted data from a web form is sent as UTF-8, which is great - the filter works! But if I want to print the form bean values in another JSP-page with the bean:write tag, the bean property must return 'new String(oldString.getBytes(), UTF-8)' for it to work. Am I doing something wrong here?` Second problem: Swedish letters Auml; Ouml; and Aring; are not compatible with UTF-8? These characters A (with two dots), A (with a circle) and O (with two dots) never work, which is the opposite from their lowercase counterparts which works fine. Regards, Jon http://www.anassina.com/struts/i18n/i18n.html
Re: DropDowns....
On Saturday 28 February 2004 8:19 am, Daniel wrote: On the window I have 2 dropdown, the second depends of the first dropdown value, then I'll back to the class action with the first dropdown value for populate the second. After choice the value at second dropdown, I'll qualify for sending this informations to data base. How many action I need for to implement this ? I'll need one action for the first dropdown (at onchange event submit the form???), other action for the second dropdown and other for to send all informations to database ? How many actions you need can vary. Are you using a DispatchAction? I'd recommend in this case. Personally, I'm not so fond of the javascript solutions. They do work but I just don't like them. If all of the stuff you are doing for these few form is related to one type of event, I'd just use one Action and use some dispatch actions in the Action to accomplish what you want. Your description of what is going on past the first sentence is a bit vague, but say your action is called MyCoolAction. It sounds like you'd need two repopulate dispatch actions in there: repopulateDropdownOne repopulateDropdownTwo (obviously you'd use better names). But each of them would take care of calling the correct business class and returning your collection or array in order to populate the other dropdown. Other than that, the stuff is just like your typical struts stuff. If you aren't using a DispatchAction then you'll need separate Action classes to handle each scenario (or else logic in the execute method to decided what to do). -- Rick Reumann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: map-backed forms example
Jared; *** You can have your JSP display it's contents dynamically. For this you can use map or list backed forms. But keep in mind that you need to populate such maps or lists before you can display in your JSP. *** Your action form is available in your action class. Look at one of the the parameters passed to execute(...) method in your action class. You need to downcast to exact form type though. The contents of the form is available in your action class's execute method. But keep in mind that following sequence happen exactly in that sequence: 1. call reset method in your action form if you have overridden it. 2. populate your action form fields with matching HttpServletRequest attributes. 3. call validate method if overridden. After this, execute mthod returns which is the last point that you can manipulate your data. So in action form's execute method you can see the data populated based on your form submitted. Once execute returns, struts takes control and forwards to the appropriate page. So, you need to populate your form before you can display the text boxes with the JSP. But keep in mind that the form fields name match with the request atrtribute name, then you can manipulate if action class ify you want. If the names does not match, you will not the data your form has posted. Let me know if you still have confusion. Sharad Acharya From: Jared Blitzstein [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: map-backed forms example Date: Fri, 27 Feb 2004 15:51:29 -0800 (PST) I've been searching the archive and google or an example of a map-backed form similar to what i'm trying to accomplish, but I haven't found anything. What i'm trying to do is this: somePage.jsp has a dynamic number textboxes on it, some i know the exact name of (color) and some I just know what they start with (attribute_1, attribute_2...etc). It submits to ProcessMyData.do which does some back end processing on those form elements, then forwards to another JSP. I can't seem to access the data from the form in the action. All the examples I have found go directly to a JSP for display, nothing in the action. Can anyone show me an example (form, action, config.xml) of how to pass in a few textboxes, get that data in an action, and then forward (last step not that important). Thanks alot. If you need any more info or anything else from me, let me know. __ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Store more e-mails with MSN Hotmail Extra Storage 4 plans to choose from! http://click.atdmt.com/AVE/go/onm00200362ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]