RE: Logic Iterate tag

2004-07-19 Thread Kataria, Satish
Hi Aditya, Performance wise the logic:iterate tag will be performance degrading(infact using any custom Tag leads to a performance degradation) but the advantages (in terms of code clarity, code mainetanance, Incremental Code change,code understandibility, code reusability) will mostly outweigh t

RE: Logic Iterate tag

2004-07-19 Thread Kataria, Satish
Logic:iterate tag helps in creating cleaner and concise code. It helps you achieve near to zero percent java scripplet code in jsp It also has a number of useful features as well information about which you can get from Struts online documentation Regards, Satish -Original Message- From:

Logic Iterate tag

2004-07-19 Thread Aditya Athalye
Hi All, I am currently using for loops and iterators for traversing arrays and coolections in JSP. I am planning to use this logic : iterate tag in place of this. I need to know if there is any advantage of using this tag in terms of performance or reduction in Java code in JSP etc. Th

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
thanks for the help ! I will give it a try - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Datasource problem again..

2004-07-19 Thread Peng Tuck Kwok
You can still have a context regardless of whether you auto deploy or not. See that snippet that jthopmson sent? You can deploy that with your war file, I think the name of the xml has to match the war file name if I'm not mistaken. Then you will have a context properly setup with the datasource.

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Thx !! I will try it out tonight after work !! and let u know if I sucess or not, ^^ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Datasource problem again..

2004-07-19 Thread jthompson
If you're auto-deploying and can get the DefaultContext to work for you, then that's what I'd do. (I'm not auto-deploying, so my case isn't so straight-forward). You always have the fall-back of configuring Context datasources if you run into trouble. There's an example of configuring a Defau

RE: regular expression

2004-07-19 Thread Hirofumi Akiyama
I am sorry. (BA message was transmitted by mistake. (B (B (B (B>From: "Hirofumi Akiyama" <[EMAIL PROTECTED]> (B>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> (B>To: [EMAIL PROTECTED] (B>Subject: RE: regular expression (B>Date: Tue, 20 Jul 2004 12:10:15 +0900 (B> (B>^((?!Test)

RE: regular expression

2004-07-19 Thread Hirofumi Akiyama
^((?!Test).)* (B (B (B (B-Original Message- (BFrom: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] (BSent: Friday, July 16, 2004 2:21 PM (BTo: Struts Users Mailing List (BSubject: regular expression (B (BHi, (B I want to validate an attribute, the rule is that the input should

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Thx ! Since I am using Tomct 5 with auto-depoly, my Webapp DOESN'T has a element in server.xml. I think I will has a try to setup in , or should I manually all a element of my Webapp in server.xml?? Regards - To unsubscribe, e-

Re: Datasource problem again..

2004-07-19 Thread jthompson
I recall reading about a month ago that setting up of data-sources in struts-config was purely for some backwards-compatability issue, and was no longer advised. I haven't bothered to do it. I set up my data source in a server.xml context, and it works fine. Like you I'd prefer to have server

Re: Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Yes, it helps and I know I can get it done if I set the context element in server.xml, but if I set the datasource in server.xml, do I need to set the in struts-config.xml again?? If I am right, I think if datasource is setup in server.xml, it has the scope of entire Tomcat, that means all webapp

Re: struts response character encoding.

2004-07-19 Thread Olve Sæther Hansen
man, 19.07.2004 kl. 14.58 skrev Emmanouil Batsis: > There this system property you can set but I can't remember it, it's > used as the encoding to use when reading files... > > Anyway, I always edit my .jsp and .properties using UTF-8, then pass > them through the native2ascii ant task during m

RE: [OT] RTF & PDF export options

2004-07-19 Thread Danilo Gurovich
It's a recipe in "Struts Recipes" (Manning -- publishing soon). If you contact George Franciscus through Manning he might give you some advice. Danilo Gurovich Manager, Web Development LowerMyBills.com [EMAIL PROTECTED] 2401 Colorado Ave., 2nd Floor Santa Monica, CA 90404 (310) 998-6412 --

Re: [OT] RTF & PDF export options

2004-07-19 Thread Nick Heudecker
Brian: I'm guessing that you can do this with iText. It has RTF and PDF writers, and I think you can use the RTF as the source doc for the output PDF. FYI, if you're running iText on a headless server, you'll need to set java.awt.headless=true. This works for JDK 1.4.x. Barnett, Brian W. wr

Re: [OT] RTF & PDF export options

2004-07-19 Thread Wendy Smoak
From: "Barnett, Brian W." <[EMAIL PROTECTED]> > Any suggestions for converting html to RTF and PDF inside an action > class and then sending the RTF or PDF back to the client? iText, but I don't do it in an Action, I redirect to a Servlet whose job it is to output the PDF bytes. -- Wendy Smoak

Re: [OT] RTF & PDF export options

2004-07-19 Thread Axel Stahlhut
Barnett, Brian W. wrote: Any suggestions for converting html to RTF and PDF inside an action class and then sending the RTF or PDF back to the client? Open source tools, code snippets, tips & tricks, etc. ?? Thanks a bunch. Brian Barnett Check iText (http://www.lowagie.com/iText/), it's f

[OT] RTF & PDF export options

2004-07-19 Thread Barnett, Brian W.
Any suggestions for converting html to RTF and PDF inside an action class and then sending the RTF or PDF back to the client? Open source tools, code snippets, tips & tricks, etc. ?? Thanks a bunch. Brian Barnett

RE: JSF vs Struts

2004-07-19 Thread dhay
Yeahbut have you seen how much Flex costs? cheers, David |-+--> | | "Hookom, Jacob"| | | <[EMAIL PROTECTED]| | | ckhboc.com>| | |

RE: JSF vs Struts

2004-07-19 Thread Matthias Wessendorf
Rick, cocoon is able to *render* flash as well, http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/serialization/SWF Serializer.html perhaps you got some ideas on this clazz regards, > -Original Message- > From: Rick Reumann [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004

RE: JSF vs Struts

2004-07-19 Thread Hookom, Jacob
I've been toying around with integrating JSF and Macromedia Flex. Both use xml markup in which you can generate a multistep rendering process involving JSTL/JSF and MXML: http://www.macromedia.com/devnet/flex/articles/first_flexapp_02.html So JSTL/JSF could communicate the view layer via a speci

http 405 error

2004-07-19 Thread Sandy Bingham-Porter
Would anyone have any ideas why I would be receiving a 405 error (page cannot be displayed address is incorrect) when my struts application tries to initiate a .do action servlet call? I have checked the web.xml file and ensured the servlet mapping for all *.do paths are correct. If I tried to

Re: how to check a 'set' variable in Struts tag/JSTL

2004-07-19 Thread Rick Reumann
lixin chu wrote: for example, I have a variable called 'Roles' which is a Set. In a JSP, I want to check if 'Admin'/'Guest'/'User' is in the Set. How do I do this ? Could not find a suitable tag to handle this. Unfortunately I haven't found a tag in JSTL or Struts that does this (I think there sho

Re: JSF vs Struts - Development Process Questions

2004-07-19 Thread Bryan Hunt
JSF with spring and hibernate tutorial. http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html Guess I should read it before I comment again. --b Bryan Hunt wrote: +1 I am sceptical about this technology but potentially it c

Re: JSF vs Struts - Development Process Questions

2004-07-19 Thread Bryan Hunt
+1 I am sceptical about this technology but potentially it could be good. I'm going to look at JSF in 6 months or a years time when it is clearer if this is going to be another timewaster/project wrecker or something usefull and useable. In the meantime I recomend NitroX as well although I don't

RE: JSF vs Struts - Development Process Questions

2004-07-19 Thread Michael McGrady
At 10:51 AM 7/19/2004, you wrote: > If you'd like to see some leading edge Flash, turn up your sound and go to > http://www.2advanced.com/ HELLO! Wow! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: JSF vs Struts - Development Process Questions

2004-07-19 Thread Robert Taylor
> If you'd like to see some leading edge Flash, turn up your sound and go to > http://www.2advanced.com/ That's some pretty cool stuff! robert > -Original Message- > From: Mike Duffy [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 12:58 PM > To: Struts Users Mailing List > Subjec

RE: some best practices questions

2004-07-19 Thread Jim Barrows
> -Original Message- > From: Mike Duffy [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 10:45 AM > To: Struts Users Mailing List > Subject: Re: some best practices questions > > > What do you think of caching static or semi-static data that > applies to all users (options in a

Re: some best practices questions

2004-07-19 Thread Mike Duffy
What do you think of caching static or semi-static data that applies to all users (options in a drop down list, etc.) in the application scope? --- Vic Cekvenich <[EMAIL PROTECTED]> wrote: > My comment would be that *data* caching should be done in the data layer > (like ibatis, hibrenate, whate

Re: Datasource problem again..

2004-07-19 Thread Asif Rahman
I tried using the tags in struts-config.xml, couldnt get it work so I modified the server.xml in tomcat/conf directly. Just add a context element as follows in your server.xml This is my configuration: factory org.apache.commons.dbcp.BasicDataSourceFactory

Re: JSF vs Struts

2004-07-19 Thread Craig McClanahan
On Mon, 19 Jul 2004 10:25:13 -0400, Rick Reumann <[EMAIL PROTECTED]> wrote: > > We're thinking about using Flash forms for some things. Will they plugin > nicely to JSF? > Hooking up the output side of that should be a piece of cake ... write some components that render the necessary markup to emb

RE: Datasource problem again..

2004-07-19 Thread Geeta Ramani
P.S. here you go: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html Enjoy! :) Geeta > -Original Message- > From: Koon Yue Lam [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 12:46 PM > To: Struts Users Mailing List > Subject: Datasource problem again.. > >

RE: [OT] JBoss, Jaas and Struts

2004-07-19 Thread Erez Efrati
Hi Erik, Not too long ago I struggled with this issue too and also played with the SecurityFilter (on sourceforge.net) but it didn't work with JBoss. And so after digging and digging I came up with my own security filter that Does work with JBoss and in fact can be adapted to more Application se

Re: JSF vs Struts - Development Process Questions

2004-07-19 Thread Mike Duffy
I have some questions regarding the development process when using JSF, especially in realtion to HTML designers. Will everyone on the team need the same advanced design tools? Will the designers who are used to tweaking HTML/JSP be restricted to a completely visual drag and drop environment?

RE: Datasource problem again..

2004-07-19 Thread Geeta Ramani
> -Original Message- > From: Koon Yue Lam [mailto:[EMAIL PROTECTED] > Sent: Monday, July 19, 2004 12:46 PM > To: Struts Users Mailing List > Subject: Datasource problem again.. > > > > Do I need to modify the web.xml under $Tomcat/conf ?? You have to add a "Resource" element in your co

Datasource problem again..

2004-07-19 Thread Koon Yue Lam
Hi ! I have try the follow to retrieve a datasource from Struts using JNDI: Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); DataSource ds = (DataSource) envCtx.lookup("jdbc/kiss_web_news"); but it doesn't work it is my struts-config,xml:

Re: [OT] JBoss, Jaas and Struts

2004-07-19 Thread Erik Weber
The helpfulness of people on this list continues to amaze me. Glad to know I'm not the only one struggling with this! I will play with the technique described when I get a chance, and I will let everyone know how it goes. But that may be next weekend. Meanwhile, I will post this general solicit

Using within other nested tags

2004-07-19 Thread Maurice Nicholson
Hi all, would someone be able to tell me the correct way to do this, taking advantage of the nesting? I expected that after adding errors with the same nested property names as the nested tags use (eg, "person[0].username"), it might be something like: ... User name: ... a

how to check a 'set' variable in Struts tag/JSTL

2004-07-19 Thread lixin chu
hi, how to check a 'set' variable using JSTL or Struts tags ? for example, I have a variable called 'Roles' which is a Set. In a JSP, I want to check if 'Admin'/'Guest'/'User' is in the Set. How do I do this ? Could not find a suitable tag to handle this. thanks li xin ___

Re[2]: some best practices questions ( Neal Ford about caching )

2004-07-19 Thread Andrey Rogov
Hi, Enhancing Web Application Performance with caching by Neal Ford. http://www.theserverside.com/articles/content/Caching/article.html >> -Original Message- >> From: Michael McGrady [mailto:[EMAIL PROTECTED] >> Sent: 08 July 2004 09:14 >> To: Struts Users Mailing List >> Subject: RE:

Re: Multipart forms

2004-07-19 Thread Niall Pemberton
You can't get them in the reset() method. Parameters in multipart requests are processed later and made available by wrapping the original request in MultipartRequestWrapper and storing the "normal" request parameters in that wrapper. Thats not done until the form is populated. The first chance yo

RE: application configuration

2004-07-19 Thread Pilgrim, Peter
> -Original Message- > From: Andrew Hill [mailto:[EMAIL PROTECTED] > Sent: 08 July 2004 12:26 > To: Struts Users Mailing List > Subject: RE: application configuration > > > I tend to put such things in XML files rather than properties files > nowadays. > > When the app starts up I have a

Re: nested tags and bean population

2004-07-19 Thread Juan Alvarado
Hey Rick I got rid of the name and type and it worked. Kinda weird. Thanks for the quick reply!!! Later... Rick Reumann <[EMAIL PROTECTED]> wrote: Juan Alvarado wrote: > In my form bean I have an array list called categories that contains > objects of type Category. Each Category object conta

Re: some best practices questions

2004-07-19 Thread Vic Cekvenich
My comment would be that *data* caching should be done in the data layer (like ibatis, hibrenate, whatever). .V Pilgrim, Peter wrote: -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: 08 July 2004 09:14 To: Struts Users Mailing List Subject: RE: some best practices

Re: nested tags and bean population

2004-07-19 Thread Rick Reumann
Juan Alvarado wrote: In my form bean I have an array list called categories that contains objects of type Category. Each Category object contains an array list of Steps. So in my jsp I am rendering this relation as follows: property='categories' id='cat' type='com.securance.vo.ApStepCategoryVO'>

RE: some best practices questions

2004-07-19 Thread Pilgrim, Peter
> -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: 08 July 2004 09:14 > To: Struts Users Mailing List > Subject: RE: some best practices questions > > > At 12:36 AM 7/8/2004, you wrote: > >For this particular use case I would either just use the session, or >

RE: some best practices questions

2004-07-19 Thread Pilgrim, Peter
> -Original Message- > From: Andrew Hill [mailto:[EMAIL PROTECTED] > Sent: 08 July 2004 08:37 > To: Struts Users Mailing List > Subject: RE: some best practices questions > > > People seem to treat using the session as though it were some > kind of moral > sin. > > There are technical p

nested tags and bean population

2004-07-19 Thread Juan Alvarado
In my form bean I have an array list called categories that contains objects of type Category. Each Category object contains an array list of Steps. So in my jsp I am rendering this relation as follows: First I iterate through the Categ

Re: [OT] JBoss, Jaas and Struts

2004-07-19 Thread Rick Reumann
Erik Weber wrote: Dang I thought I was onto something! I guess I'll stick to my "User" object in each session, and just try to make sure I centralize the auth checks as much as I can. Dunno why I ever wanted to change it, anyway. Thanks Craig for your time. I also sent your question on to a co-w

[OT] javax.COMM

2004-07-19 Thread Michael McGrady
Anyone have any info on open source projects with javax.comm? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Question on parameterizing action attribute to html:form

2004-07-19 Thread Rick Reumann
Andrey Rogov wrote: there is another way to work with parameter form:action. If you use Tiles in your applications create one reusable tiles lay with elements of design, control buttons and page control. In this case you can use the page with many forms. Then solution can be replaced with . Wh

Re: JSF vs Struts

2004-07-19 Thread Michael McGrady
At 01:01 AM 7/19/2004, you wrote: The custom tags that Struts provides (in the html and logic and bean tag libraries) were a necessary precursor to "out of the box" usage of Struts, in order to make it possible to adopt the basic MVC architectural pattenrs. However, that was *always* a secondary f

Fwd: Multipart forms

2004-07-19 Thread Diego
Hi! I have a problem when I want to get some parameters in the reset() method of an ActionForm. If the form is a "normal" form, then I simply call request.getParameter("myparameter") and the parameter is retrieved with no problem. But if the form is of type multipart, then I always get null. The

Re: JSF vs Struts

2004-07-19 Thread Rick Reumann
Craig McClanahan wrote: With JSF, however, the situation is different. Every JSF component is, at its core, just a JavaBean ... it doesn't care what technology is used to ultimately manage the page. Yes, we provide JSP tag wrappers around all the standard components (because that addresses the ne

Re: struts response character encoding.

2004-07-19 Thread Emmanouil Batsis
There this system property you can set but I can't remember it, it's used as the encoding to use when reading files... Anyway, I always edit my .jsp and .properties using UTF-8, then pass them through the native2ascii ant task during my build. It's just a wrapper for the same-named JDK binary;

Re: Connection

2004-07-19 Thread gnanavel . murugesan
Hi Shashank There are lots of freeware tools available in net like Bugfix...you can also use JProbe for a better analysis of all the memory and connection leakages. regards Gnanavel M | Accenture India Delivery Center MDC2B | [EMAIL PROTECTED] | 91.22.5500 3409 Direct Voice | mgnanavel AIM

Connection

2004-07-19 Thread Dixit, Shashank (Cognizant)
Hi All I am using a JSP & Struts application which is already developed. I am using Websphere. Sometimes I get ConnectionWaitTimeOutException. I am sure there are some connection leaks. Which tool/method should we use to find out these connection leaks Pls help Thanks in advance Shashank S.

Re: struts response character encoding.

2004-07-19 Thread Olve Sæther Hansen
sÃn, 18.07.2004 kl. 22.23 skrev Jason Lea: > Olve SÃther Hansen wrote: > > >Now I am saying false things. I thought my baseLayout.jsp had this > >entry.. It didn't. > > > >So it is enough specifying > ><%@ page contentType="text/html; charset=UTF-8"%> > >in the base tiles file if that architectur

validatewhen with a regular expression

2004-07-19 Thread Matthew Van Horn
Is is posible to use validatewhen in conjunction with mask? I cannot figure out how to make it work. Separately they work fine, but when I try to use them together it never validates. Here is the non-working config. test (submit == 'delete') or (*thi

Re: [OT] JBoss, Jaas and Struts

2004-07-19 Thread Erik Weber
Dang I thought I was onto something! I guess I'll stick to my "User" object in each session, and just try to make sure I centralize the auth checks as much as I can. Dunno why I ever wanted to change it, anyway. Thanks Craig for your time. Erik Craig McClanahan wrote: On Sun, 18 Jul 2004 21:50:

From terry highfield: Invitation and new email address

2004-07-19 Thread t_highfield
A Friendly Invitation Hey [EMAIL PROTECTED], terry highfield has invited you to sign up, so that you can send FREE SMS (text messages) to each other: Click her

Re: JSF vs Struts

2004-07-19 Thread Craig McClanahan
On Sun, 18 Jul 2004 23:40:08 -0600, Jeff Stewart <[EMAIL PROTECTED]> wrote: > I've been monitoring this discussion. I for one like using the struts > html tags over the JSTL/JSF semantically strange tags. > For one thing, feedback from the HTML developers I work with, prefer > html:interate this