Re: validation question

2004-10-19 Thread Justy Wong
oh I found that my implementation will let user skip my validation and directly execute the action. - Original Message - From: Justy Wong [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 1:48 PM Subject: Re: validation

RE: Indexed list validation

2004-10-19 Thread Vclavk Radek
Oh c'mon guys, is there really no one able to help with this? I would really appreciate it! Thanks a lot. Or at least could you point me to some COMPREHENSIVE info about validation and indexing? (not the struts site please:) Radek -Original Message- From: Vclavk Radek [mailto:[EMAIL

RE: [OT] Struts Networking / BOF IV / Friday / October 22 @ 19: 3 0 / Restaurant / The Furnace

2004-10-19 Thread Pilgrim, Peter
Hi Please see intermixed -Original Message- From: Pilgrim, Peter Hi The reservation for the BOF IV at The Furnace has been confirmed yesterday. The following people are attending so far: Peter Pilgrim Alan Mehio Christopher Marsh-Bourdon Thomas

Re: Tomcat 5 Struts

2004-10-19 Thread Tuncay Baskan
On Mon, 18 Oct 2004 10:43:44 -0400, James Mitchell [EMAIL PROTECTED] wrote: ... Personally, I prefer Eclipse. I do not like to use the Eclipse plugins for running Tomcat inside Eclipse. It is just easier/faster for me to run Tomcat from the command line and then attach *only* if I need to.

RE: Multiple Struts Config!!

2004-10-19 Thread Ashutosh Satyam
If by module you mean different WEB Application altogether, then I'm sorry to say that struts multiple config file approach doesn't addresses it. Application modules allow a single Struts (Web) application to be split into multiple modules, each with its own Struts configuration file, JSP pages,

RE: Validation

2004-10-19 Thread Marco Mistroni
Hello, Have you defined any action forwards? Maybe problem is not validation Regards marco -Original Message- From: Ankur Gupta [mailto:[EMAIL PROTECTED] Sent: 18 October 2004 19:18 To: 'Struts Users Mailing List' Subject: Validation Hello, I have setup validation

Struts and UTF-8

2004-10-19 Thread Arnaud Vandyck
Hi, I'd like to set UTF-8 for my application but I have problems when putting accents in the database... All the pages are in UTF8 but as soon as I put an accent in a texfield and submit it, the accent seems to be translated in latin1 or something and I got strange characters in the updated

Re: why it fires immediately?

2004-10-19 Thread PC Leung
Thank you Jeff On Mon, 18 Oct 2004 12:35:17 -0400, Jeff Beal [EMAIL PROTECTED] wrote: When the RequestProcessor receives the request from clicking on the link in WelcomeBody.jsp, this is (roughly) the sequence of events that it follows: - Populate the ActionForm with request parameters

Re: Indexed list validation

2004-10-19 Thread Matt Bathje
this is probably a constantly discussed topic and I have surely found a load of inromation concerning this,but it still did not solve my problem. I have a web page which displays multiple records, each record representing one person. I am using index to retrieve each record. The person is

Re: help with actionform issue (page refresh)

2004-10-19 Thread Hubert Rabago
Try modifying the mapping of /getQueryPage to include your form, but also not to validate it. Also, make sure that the form is placed on the same scope as that for /getReport. So, something like this: action path=/getQueryPage type=org.apache.struts.actions.ForwardAction

Re: Does Tiles JSP go in pair?

2004-10-19 Thread PC Leung
I start getting to understand how to use Tiles with Struts Thank you Jeff On Mon, 18 Oct 2004 12:11:59 -0400, Jeff Beal [EMAIL PROTECTED] wrote: Read http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292381. It describes how to move your Tiles definitions (the part in Welcome.jsp)

last available function call when web app stops or app server shuts down

2004-10-19 Thread Woodchuck
hihi all, which class/function do i need to extend/override so that i can absolutely guarantee that code is executed before the web app is killed? ie. if someone stops Tomcat or stops my Struts web app instance, and i want to execute some code before it really goes down. is this easy/possible?

Re: AspectJ question

2004-10-19 Thread Bill Siggelkow
Duude, Like, man ... no question is stupid ... some of them just aren't very gnarly ... for sure, dude, this is like asking Bro, does Struts work well with XML? For sure, Aspects rock like Nirvana (Cobain lives, dude!) ... google AspectJ Struts and

Re: AspectJ question

2004-10-19 Thread fzlists
Bill, how is it that you write an entire message in surfer-speak, but then at the very end use a hood term like word?!? POSER! :) On Tue, October 19, 2004 12:54 pm, Bill Siggelkow said: Duude, Like, man ... no question is stupid ... some of them

RE: html:textarea

2004-10-19 Thread Serkant Karaca
I know that textarea has autowrapping by default. That means you do not have to modify its definition. Serkant Karaca www.internetteyim.net -Original Message- From: Wylie van den Akker [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 7:41 PM To: [EMAIL PROTECTED] Subject:

Re: AspectJ question

2004-10-19 Thread Bill Siggelkow
Busted! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: last available function call when web app stops or app server shuts down

2004-10-19 Thread Matt Bathje
Woodchuck wrote: hihi all, which class/function do i need to extend/override so that i can absolutely guarantee that code is executed before the web app is killed? ie. if someone stops Tomcat or stops my Struts web app instance, and i want to execute some code before it really goes down. The way

Re: last available function call when web app stops or app server shuts down

2004-10-19 Thread Bill Siggelkow
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletContextListener.html Woodchuck wrote: hihi all, which class/function do i need to extend/override so that i can absolutely guarantee that code is executed before the web app is killed? ie. if someone stops Tomcat or stops my

Re: Nested tables and Map

2004-10-19 Thread Erik Weber
Why couldn't you use the c:forEach or logic:iterate tags to accomplish this? I used nested c:forEach tags to iterate a Map of Lists and render nested tables. Each key in the Map was the name of a type. Each value was a List of beans of that type. So I first had an outer table, with one row for

Re: [OT] RE: AspectJ question / lumberjack

2004-10-19 Thread Bill Siggelkow
He's as an AspectJock and he's okay He codes all night and he sleeps all day He makes join points, defines point cuts And likes to give advice On Thursday's he compiles And weaves code very nice ... Wiebe de Jong wrote: Everybody sing! Ohhh, He's a lumberjack, and he's okay, He codes all

Migrate xsl into jsp/struts

2004-10-19 Thread Vicky
Hello all, In my current project we are using xsl which renders xml into xhtml. Now we need to get rid of xsl code and replace it with jsp/struts. Is there an easy tool/way to migrate xsl files into jsps? This is quite huge project so it won't be possible to start it from scratch. Any pointes or

Re: OT: RE: Problem in Locating a properties File (Not application.properties)

2004-10-19 Thread Jeff Beal
From the documentation for java.lang.ClassLoader: The name of a resource is a /-separated path name that identifies the resource. That is, try /resources/storageDirectory.properties. Caroline Jen wrote: Okay, this code works if I put the properties file in the WEB-INF\classes directory: final

Re: Migrate xsl into jsp/struts

2004-10-19 Thread Vicky
If you can find code, would be much appreciated. Thank you all for your responses. -Vicky --- [EMAIL PROTECTED] wrote: I'm not sure I still have the code in my archives, I will look, but I actually had cause to tackle a problem just like this. We had an application written by a consultant

[struts-chain] Anyone get Tiles working with the chain?

2004-10-19 Thread Sean Schofield
I am having trouble getting a basic layout to work with the struts-chain. I'm using the o.a.s.c.legacy.TilesPlugin along with ComposableRequestProcessor. I'm also using an unaltered version of chaing-config.xml that came with the contrib section. I get an error saying 'default.view' does not

Re: Migrate xsl into jsp/struts

2004-10-19 Thread Frank W. Zammetti
Truthfully, in light of the info Jeff provided, I'd say go that route. I just looked at the JSTL docs and it seems like that will do exactly what I spent time figuring out! It was one of those typical evil corporate projects... the conversation went almost verbatim like this... Executive:

Re: [struts-chain] Anyone get Tiles working with the chain?

2004-10-19 Thread Sean Schofield
After a few hours of banging my head against the wall, I have figured it out. Here is the solution for those interested: You need to modify the default chaing-config.xml to include the TilesPreProcessor command. The command is included in the contrib section but its not part of the chain by

Re: Migrate xsl into jsp/struts

2004-10-19 Thread Jeff_Caswell
Maybe keep the xsl and do something along these lines: TransformerFactory tFactory = String stylesheet = existing.xsl; String sourceId = source.xml; Transformer transformer = StreamSource(stylesheet)); transformer.transform( , new StreamResult(response.getOutputStream())); Jeff C.

Suppressing INFO messages

2004-10-19 Thread Todd Bryant
I just upgraded a struts 1.0.2 project to a 1.1 project. Everything went fine except that I notice I have a lot of INFO messages in the console, e.g., I org.apache.struts.util.PropertyMessageResources Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true I do not

Checking for presence of specific error message

2004-10-19 Thread Frank Burns
Is there any way of checking for the presence of a SPECIFIC error message in the error queue? Thanks, Frank. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

non-standard attributes in taglib

2004-10-19 Thread Kichline, Don \(EM, PTL\)
We have a web based application that is a work in progress. Because our company mandates that IE be used, certain aspects of microsoft's non-standard extensions have been utilized in some of our pages. All new screens in our system will be developed using Struts 1.1. We have however run into

[struts-faces][struts-chain] Tiles and faces integration question

2004-10-19 Thread Sean Schofield
I am trying to get struts and jsf to play nice with each other. Right now, my only requirements are to have tiles supported. Most everything else will be handled through JSF. I have looked at the struts-faces package, but most of it seems to be overkill for what I want. I would like to use

RE: Checking for presence of specific error message

2004-10-19 Thread Charles . Gouin-Vallerand
Hi Frank, You can do this with the logic:messagesPresent name=Your Specific Type of Error tag. The default value of name is Globals.ERROR_KEY. I use it in one of my app in this context : logic:messagesPresent font color=blue bean:message key=errors.header/

Re: non-standard attributes in taglib

2004-10-19 Thread Craig McClanahan
Historically, the Struts developers have been very strict about accepting only W3C standard attributes, and I don't see this changing anytime soon -- it would be somewhat ironic for an open source project to endorse a proprietary single-vendor lock-in by doing something like this :-). I suspect

RE: non-standard attributes in taglib

2004-10-19 Thread Kichline, Don \(EM, PTL\)
Searching on the new groups, that is what I have been hearing... Unfortunately that is not going to fly in this case. What I am proposing is a generic work around for this problem that will not tie struts into any single-vendor specific attributes. Pass in a Properties class with key/value

struts 1.2.4 validation and resource bundle problem

2004-10-19 Thread Ashish Kulkarni
Hi I recently upgraded my application to struts 1.2.4, and was trying to use valiator version 1.1.3, but was having problem, the validator was not able to find key from resource bundle, I have 2 resource bundle, those are defined as below message-resources key=approvals parameter=approval/

Re: [struts-faces][struts-chain] Tiles and faces integration question

2004-10-19 Thread Craig McClanahan
One issue to beware of is a JSF restriction related to RequestDispatcher.include() -- which is what Tiles uses under the covers. Each included Tile has to be nested in an f:subview tag (either in the surrounding page, or inside each Tile). In the example2 sample app, I put these in the layout

Re: non-standard attributes in taglib

2004-10-19 Thread Craig McClanahan
On Tue, 19 Oct 2004 17:01:19 -0400, Kichline, Don (EM, PTL) [EMAIL PROTECTED] wrote: Searching on the new groups, that is what I have been hearing... Unfortunately that is not going to fly in this case. What I am proposing is a generic work around for this problem that will not tie struts

Re: non-standard attributes in taglib

2004-10-19 Thread Jason King
+1 on that solution. It also serves as a work-around in the (unlikely) event that some property gets added to the standard. Kichline, Don (EM, PTL) wrote: Searching on the new groups, that is what I have been hearing... Unfortunately that is not going to fly in this case. What I am

RE: non-standard attributes in taglib

2004-10-19 Thread Kichline, Don \(EM, PTL\)
First, I do not happen to agree that the cure is worse than the disease. By sticking to the standards-only mantra, we completely bury our heads in the sand. The reality is that there are many people out there that have to support the vendor-specific items, but wish to use an elegant solution

Tiles Question

2004-10-19 Thread Ray Madigan
I am trying to pass an attribute to a tile as follows: tile:insert ... tile:put name='offer' beanName='${foo.name}' beanScope='request'/ ... /tile:insert And foo.getName ( ).equals ( Adventure ) And I have verified a requestAttribute was added. in the tile when i do tile:importAttribute

DynaValidatorForm and multibox

2004-10-19 Thread Brian Kuhn
I'm using struts 1.1 Is it possible to use a multibox with a DynaValidatorForm? Are there any documented examples? I searched the archives...no mention of it. Thanks, Brian - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: DynaValidatorForm and multibox

2004-10-19 Thread Wendy Smoak
From: Brian Kuhn [EMAIL PROTECTED] I'm using struts 1.1 Is it possible to use a multibox with a DynaValidatorForm? Sure. I use a String[] property in the dynamic form, and it works fine. If you're having trouble with it, post the relevant parts of the config files and JSP and someone will

Re: html:hidden values are null

2004-10-19 Thread Rosemary Philip
David, same here. a long weary day. :) the info you shared about onClick is new to me. I discussed this problem with a developer and he said that this values come null because there are more than one objects of the same kind. i.e, in an employee list there are more than one employees and since

Re: Checking for presence of specific error message

2004-10-19 Thread Frank Burns
Thanks Charles. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 9:45 PM Subject: RE: Checking for presence of specific error message Hi Frank, You can do this with the logic:messagesPresent name=Your Specific Type of Error tag. The

How to retrieve session variables using Struts tag in JSP

2004-10-19 Thread Shabada, Gnaneshwer
Hello, I am trying to retrieve a flag value ( that I put in session in my Action class ) in my JSP. I tried bean:define tags and other struts tags but no luck. Can anyone point me which tag does this? I also used logic:match logic:present tags but no use. I tried this where the parameter is the

bean:parameter does not work for me with tomcat 5.0.28

2004-10-19 Thread mail
Hi, I just encountered a strange problem using the bean:parameter tag with tomcat 5.0.28 In my JSP file I have the following: bean:parameter id=pagePos name=page value=1 / This worked fine on Resin 2.x and 3.x, however, I now have to run my project on Tomcat 5.0.28 and this doesn't work

Re: non-standard attributes in taglib

2004-10-19 Thread Craig McClanahan
On Tue, 19 Oct 2004 17:30:00 -0400, Kichline, Don (EM, PTL) [EMAIL PROTECTED] wrote: Now this is something I had not realized. What is going to replace them? In the short term, you'll have the ability to easily use JSF with Struts via the Struts-Faces tag library. It's going to get proposed

Re: bean:parameter does not work for me with tomcat 5.0.28

2004-10-19 Thread mail
Never mind ... It was something about the document format. After converting from windows to unix things work fine. Converting back to windows and still working fine ... Strange but solved. Thanks, Chris mail wrote: Hi, I just encountered a strange problem using the bean:parameter tag with

Re: How to retrieve session variables using Struts tag in JSP

2004-10-19 Thread Craig McClanahan
If loggedUser is a string you put in session scope, use this instead: logic:match name=loggedUser value=admin If on the other hand you had a bean that you stored under session scope under key foo, and this bean class has a getLoggedUser() method on it, you'd use: logic:match name=foo

Re: Suppressing INFO messages

2004-10-19 Thread Eddie Bush
If there's a Log4J JAR in the classpath, you should be using Log4J. If not, you're likely using the SimpleLog implementation. You said you tried putting a ... and a simplelog.properties file but that it didn't suppress the output. Where did you put this file and what did you put inside of

Re: Suppressing INFO messages

2004-10-19 Thread Eddie Bush
My apologies. You should have created that file in the default package. I neglected to mention that and didn't even notice til just now. - Original Message - From: Eddie Bush [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 7:05 PM

Re: [OT] RE: AspectJ question / lumberjack

2004-10-19 Thread Andrew Hill
oh well this thread is just becoming spam now... ...spam spam spam spamity spam! ;-) Bill Siggelkow wrote: He's as an AspectJock and he's okay He codes all night and he sleeps all day He makes join points, defines point cuts And likes to give advice On Thursday's he compiles And weaves code very

Re: [OT] RE: AspectJ question / lumberjack

2004-10-19 Thread Frank W. Zammetti
Oh my, that just made me die of a sudden heart attack ARGHHAGHHA Could be worse I guess... my name could be Throatmangler Wangrove. But, as long as there's no canibalism in the Struts community... and my none, I mean, very little. Is that enough MP reference yet?!? Andrew Hill wrote: oh well

RE: Suppressing INFO messages

2004-10-19 Thread Todd Bryant
Thanks Eddie. I actually did make a properties file like that one and had it in my default package in the WEB-INF/classes dir, but it did not change. I also noted in the documentation that SimpleLog outputs to stderr, which mine is not, so it must not be using SimpleLog. I was confused at first

form tiles link from database?

2004-10-19 Thread PC Leung
definition name=erp.menu.home path=/layout/menu.jsp put name=title value=Tiles / putList name=items item value=xlink=/y.jsp item value=ERP Home link=/index.jsp / Could the link be read from

RE: form tiles link from database?

2004-10-19 Thread David G. Friedman
If you use a Tiles controller, there is no reason you couldn't do that from Java. Just not inside the tiles.xml configuration file. See the tiles controller mentioned in http://struts.apache.org/userGuide/dev_tiles.html. Another good reference is Tiles Advanced Features by Cedric Dumoulin (bottom

Re: form tiles link from database?

2004-10-19 Thread Vic Cekvenich
Yes. I put in the List of tiles into scope. .V PC Leung wrote: definition name=erp.menu.home path=/layout/menu.jsp put name=title value=Tiles / putList name=items item value=xlink=/y.jsp item value=ERP Home link=/index.jsp /

Re: form tiles link from database?

2004-10-19 Thread PC Leung
The following are defined in tiles-defs.xml putList item value= link= Can I change them to variables item value=${} link=${} and modify values of variables in Action class or another? I have read the links suggested. But I fail to find example code. On Tue, 19 Oct 2004

whats difference in 1.1 and 1.2

2004-10-19 Thread anurag shinde
Whats the new feature of struts 1.2 over 1.1, i don't see much difference compared to changes done in 1.0 to 1.1 Thanks and Regards Anuraag Shinde. Programmer Analyst Syntelinc Pune. -- ___ Get your free email from http://fastermail.com Powered by

Re: whats difference in 1.1 and 1.2

2004-10-19 Thread Craig McClanahan
On Wed, 20 Oct 2004 12:25:31 +0800, anurag shinde [EMAIL PROTECTED] wrote: Whats the new feature of struts 1.2 over 1.1, http://struts.apache.org/userGuide/release-notes.html i don't see much difference compared to changes done in 1.0 to 1.1 And some will say thank you for not disrupting

Re: Validating start and end dates

2004-10-19 Thread Milind Rao
I forgot to mention that I'm using a DispatchAction class along with the DynaValidatorForm so the validation is declarative. So for Item 2, I'll just create my own validation rule. I just wanted to ensure that there wasn't already something available in the struts framework that I would