AW: Small log4j PlugIn-Contribution

2002-11-18 Thread Thomas Nagel
Hi Martin, I'm not sure I understand why you need this plugin (apart from the reloading aspect). If you have log4j.jar in WEB-INF/lib and log4j.properties in WEB-INF/classes, it should just work. 1.) First the user is totally responsible for the configuration of the underlying logging system,

Getting application resource from java source

2002-11-18 Thread Roman Rytov
How to get a value of an ApplicationResource's entity from java code (not from JSP by a tag)? I guess a function for such an action should acceps locale parameter also. Btw, resource files are being loaded only once for the whole application (per locale, of course) or for every user session? --

RE: Getting application resource from java source

2002-11-18 Thread Krishnakumar N
You can get the ApplicationResource by Action.getResources(request) from within the Action class. Cheers, Krishna -Original Message- From: Roman Rytov [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 2:08 PM To: Struts Users Mailing List Subject: Getting application resource

Re: anyone had the chance to evaluate any Struts books?

2002-11-18 Thread Marcus Biel
Buy Chucks Book: O'Reilly Struts I've almost read it, and it's quite good imho. marcus [EMAIL PROTECTED] schrieb: Hi all, I want to buy a good struts manual/book. I see there's a couple on Amazon.com. Any comments as to which ones are good? thx This message contains information

logic:iterate Simple code not run

2002-11-18 Thread Alireza Fattahi
Hi, It seems a simple code but It is not running:( % java.util.Vector aVectore = new java.util.Vector(); aVectore.addElement(SAMPLE); session.setAttribute(aVectore,aVectore); % logic:iterate id=item collection=aVectore /logic:iterate *The stack *

Re: [OT] WAS Connection Pool

2002-11-18 Thread Adolfo Miguelez
We have solved our problem with null suppport from IBM, as almost usually. They should be still asking NASA for help. A pointer, just in case someone run in the same issue. Connection returned by WAS pool implements com.ibm.ejs.cm.proxy.OracleConnectionProxy, which in turns extends from

To produce html:messages grouped by properties in error

2002-11-18 Thread Krishnakumar N
Using html:messages or logic tags, is it possible to output a header for each property which has errors attached to it, without explicitly coding a html:messages block for each property? I have a form which has several fields, which are validated in the Action class. These errors are added to the

AW: logic:iterate Simple code not run

2002-11-18 Thread Thomas Nagel
Hi Alireza, you should use the name attribute like below: % java.util.Vector aVectore = new java.util.Vector(); aVectore.addElement(SAMPLE); session.setAttribute(aVectore,aVectore); % logic:iterate id=item name=aVectore bean:write name=item / /logic:iterate Bye Thomas

RE: logic:iterate Simple code not run

2002-11-18 Thread Xavier Combelle
just change collection to name (the following code work ! %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % % java.util.Vector aVectore = new java.util.Vector(); aVectore.addElement(SAMPLE); aVectore.addElement(SAMPLE2);

Question about a Struts design pattern

2002-11-18 Thread ROSSEL Olivier
My application is made with tiles. As is: --- |T | L | --- | | | C | | | | | --- T: Title L: Login form C: Content The URL for this

RE: html:submit -- DispatchAction

2002-11-18 Thread Míguel Ángel Mulero Martínez
You can use the html:image tag. Regards, Miguel -Mensaje original- De: Murray, Christopher [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 18 de noviembre de 2002 12:28 Para: 'Struts Users Mailing List' Asunto: html:submit -- DispatchAction How do you customize html:submit tags to use

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Andrew Hill
IMHO 2 traces in the log are better than 0 - the important thing is that you have something you can look at when debugging. It is of course important that the business object still throws the exception even if it logged it (which is indeed what you are doing). (Ive had the misfortune to have to

request parameter

2002-11-18 Thread Amit Badheka
I would like to add some request parameter in my action class , before forwarding it to jsp page. Is there any way to do it?

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Quentin.Cope
Exception handling in Java is neat when we know what we are doing. However junior developers often find themselves with exceptions that they aren't really expecting and don't know what to do with. With no direction from others its all to easy to use System.out and I have even seen:

Re: request parameter

2002-11-18 Thread Gemes Tibor
2002. november 18. 13:05 dátummal Amit Badheka ezt írtad: I would like to add some request parameter in my action class , before forwarding it to jsp page. Is there any way to do it? You'd better store the data you'd like to pass to your jsp in request as an attribute rather than as a

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Andrew Hill
. thats horrible. I use: catch(Exception e) { ; } to make it absolutely clear (ie: that I didnt just get distracted and forget to write the code for that block) to anyone maintaining my code that I dont give a damn if something went wrong. hehe ;-) As to what it has to do with struts:

Assigning an object(FormFile) to a dynamic form.

2002-11-18 Thread Reza Aliakbari
Hi, I use dynamic forms in my projects; but this time I want to upload A file and when I use form-property name=myFile type=org.apache.struts.upload.FormFile / An error occurs that says that cannot assign String to FormFile. How can I use dynamic form with this kind of objects? Thanks,

RE: request parameter

2002-11-18 Thread Andrew Hill
As Gemes says, your best bet is to use an attribute for this. I myself however also have a few places where Id really like to 'decorate' an incoming request's parameters. I have not tried this myself so Ive no idea if it will actually work, but maybe one could create a class thats implements

html:cancel and LookupDispatchAction

2002-11-18 Thread Chen, Gin
Hi all, I have a LookupDispatchAction that my jsp is going to. I need to provide cancel functionality for this page. I tried to use the html:cancel but with the property on it, it still tries to perform the validation. I know its documented but is there a way around it? How do you skip

RE: html:submit -- DispatchAction

2002-11-18 Thread Murray, Christopher
html:image doesn't submit a form to an action ? -Original Message- From: Míguel Ángel Mulero Martínez [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 11:51 To: Struts Users Mailing List Subject: RE: html:submit -- DispatchAction You can use the html:image tag. Regards, Miguel

RE: request parameter

2002-11-18 Thread Kris Schneider
A javax.servlet.Filter and javax.servlet.http.HttpServletRequestWrapper would work for that (Servlet 2.3). Quoting Andrew Hill [EMAIL PROTECTED]: As Gemes says, your best bet is to use an attribute for this. I myself however also have a few places where Id really like to 'decorate' an

Re: request parameter

2002-11-18 Thread Gemes Tibor
2002. november 18. 13:36 dátummal Andrew Hill ezt írtad: As Gemes says, your best bet is to use an attribute for this. I myself however also have a few places where Id really like to 'decorate' an incoming request's parameters. I have not tried this myself so Ive no idea if it will actually

RE: request parameter

2002-11-18 Thread Vipul Sanghi
this will work. I use it. -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 9:08 PM To: Struts Users Mailing List Subject: Re: request parameter 2002. november 18. 13:36 dátummal Andrew Hill ezt írtad: As Gemes says, your best bet is to

Unable to create Action instance

2002-11-18 Thread meissa . Sakho
Hi all, While triying to submit my login form, I have the error message below(I'm usinng Tomcat 4.0) No action instance for path /login could be created It seem to me that everything has been declared as it should be. here is my strut-config and the corresponding action class. I really don't

hot to get required fields out of validator

2002-11-18 Thread Vipul Sanghi
I am using Struts 1.1b2. Have the following problem: I need to put a required marker next to the required fields on my form a little red * or something. I am using a ValidatorForm for this and the required fields are being set up in the validation.xml. Is there any way for me to pull out the

StaticJavaScript attribute of Validator

2002-11-18 Thread Anjana . Patel
Hi all, Has anybody used staticJavascript attribute of Javascript tag of validator set to true and DynamicJavascript attribute set to false In my form page i have set staticjavascript attribute to false and included the reference of staticjavascript.jsp (script language=Javascript1.1

RE: request parameter

2002-11-18 Thread Andrew Hill
Yep. I use this one a lot myself actually. Very useful. Just that I was after something with a bit more grunt and that allowed me to change or remove existing parameters as well. Kris has drawn my attention to the HttpServletRequestWrapper (in the 2.3 api) which is precisely what I was after (and

Re: Simulating Client field prompting -- follow up

2002-11-18 Thread Susan Bradeen
Following up with my solution, in case others have a similar question, and thanks again to those who offered ideas. I ended up using a separate selection window, and compromised on some JavaScript usage. Struts actions open the new window and populate the selection list. JavaScript is used

RE: html:submit -- DispatchAction

2002-11-18 Thread Murray, Christopher
Is it possible to use the struts tags to submit forms to different dispatch action methods (using your own customised button image) without having to use javascript ? -Original Message- From: Murray, Christopher [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 12:46 To: 'Struts Users

RE: [OT] Where can I find a Struts / J2EE Jobs?

2002-11-18 Thread Chappell, Simon P
Peter, -Original Message- From: Peter A. J. Pilgrim [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 14, 2002 8:28 PM To: Struts Users Mailing List Subject: Re: [OT] Where can I find a Struts / J2EE Jobs? Chappell, Simon P wrote: snip All Well I graduated from South Bank

DynaActionForm Primitive JavaBean

2002-11-18 Thread Gunasekaran. V
Greetings. Is there any known bug in BeanUtils package for automatic population of data from JSP. We are getting error as follows. javax.servlet.ServletException:BeanUtils.populate() ... root cause java.lang.IllegalArgumentException: No bean specified. at

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread edgar
Isn't this much better } (catch Exception e) {;} Edgar -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 7:31 AM To: 'Struts Users Mailing List' Subject: RE: [Struts Tip] #15 Use chained exceptions. Design consideration. .

RE: ArrayList disappeared in ActionForm

2002-11-18 Thread Sri Sankaran
Looking at your multibox logic, is the 'rol' property in the 'userDataBean' an array of Strings? This should represent the value(s) that the user selects -- so, if the initial setting is all boxes un-checked, this will be an empty String[]. Are you modifying/setting your ArrayList

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Kris Schneider
} catch (Exception ignore) {} Quoting edgar [EMAIL PROTECTED]: Isn't this much better } (catch Exception e) {;} Edgar -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 7:31 AM To: 'Struts Users Mailing List' Subject: RE:

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Chappell, Simon P
+1 - Simon P. Chappell [EMAIL PROTECTED] Java Programming Specialist www.landsend.com Lands' End, Inc. (608) 935-4526 -Original Message- From: Kris

Re: DynaActionForm Primitive JavaBean

2002-11-18 Thread Gemes Tibor
2002. november 18. 15:32 dátummal Gunasekaran. V ezt írtad: Greetings. Is there any known bug in BeanUtils package for automatic population of data from JSP. ... While submitting the reset() method is called which sets null to primitive javabean. And in PropertyUtils.getProperty gets null

How to lookup key values...

2002-11-18 Thread Andreas Langmann
Hello, i have lists with the following data key / value list-example 1 / Hund 2 / Katze 3 / Maus is there a tag to exchange the key with the value? it would be great, if i can store all key/value pairs in one List (HashMap), so they would be referenced by listname and key... thanks, Andreas

RE: To produce html:messages grouped by properties in error

2002-11-18 Thread edgar
I would write a tag as this is quite a customized need. Just download the source and you should have no problem building this functionality. Edgar -Original Message- From: Krishnakumar N [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 4:53 AM To: 'Struts Users Mailing List

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Dennis Doubleday
-Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 7:31 AM To: Struts Users Mailing List Subject: RE: [Struts Tip] #15 Use chained exceptions. Design consideration. . thats horrible. I use: catch(Exception e) { ; }

RE: DynaActionForm Primitive JavaBean

2002-11-18 Thread Gunasekaran. V
Greetings Tibor. I am not setting to null. I guess from 1.1 onwards the framework calls reset() by default. Is there anyway to get around this problem? Regards. -guna -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: 18 November 2002 18:50 To: Struts Users Mailing

Re: Example of indexed properties and DynaBean?

2002-11-18 Thread Leonardo Maciel
When I submit my data. The first display with input fields is fine. Even the HTML source code has the indexed fields in the input form paramete[0].name, so on. From: Christoph Kulla [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

RE: [Struts Tip] #15 Use chained exceptions. Design consideration.

2002-11-18 Thread Andrew Hill
Yep. Its very evil. ;-) The only time I use it in serious code is when Im actually expecting an exception to be thrown under certain circumstances but I quite specifically dont intend to do anything about it. In these cases its still bad practice to use catch(Exception x) though. One should

onclick attribute doesnt work in html:img tag?

2002-11-18 Thread Drew Zimber
anyone had any experience with this. Anytime i add the onclick attribute it crashes the page.. dz -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: DynaActionForm Primitive JavaBean

2002-11-18 Thread Gemes Tibor
2002. november 18. 15:59 dátummal Gunasekaran. V ezt írtad: Greetings Tibor. I am not setting to null. I guess from 1.1 onwards the framework calls reset() by default. Is there anyway to get around this problem? But who wrote that reset()? reset() was called in 1.0 for every request expect

Re: onclick attribute doesnt work in html:img tag?

2002-11-18 Thread Gemes Tibor
2002. november 18. 16:09 dátummal Drew Zimber ezt írtad: anyone had any experience with this. Anytime i add the onclick attribute it crashes the page.. I bet the stacktrace contains the error caused your crash. Read it. Tip: check your case onclick and not onClick! Tip #2: check your

RE: onclick attribute doesnt work in html:img tag?

2002-11-18 Thread Drew Zimber
stack trace is giving me nothing right now, im going to due some further investigation... dz -Original Message- From: Gemes Tibor [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 10:16 AM To: Struts Users Mailing List Subject: Re: onclick attribute doesnt work in html:img

RE: onclick attribute doesnt work in html:img tag?

2002-11-18 Thread Andrew Hill
Is it the browser or the server that is crashing? -Original Message- From: Drew Zimber [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 23:21 To: 'Struts Users Mailing List' Subject: RE: onclick attribute doesnt work in html:img tag? stack trace is giving me nothing right

Re: StaticJavaScript attribute of Validator

2002-11-18 Thread David Graham
I used the staticJavascript attribute to generate the javascript for me once, then copied that into validate.js and include that in every form with script src=validate.js/script. I haven't used the staticJavascript attribute since. David From: [EMAIL PROTECTED] Reply-To: Struts Users

RE: onclick attribute doesnt work in html:img tag?

2002-11-18 Thread Drew Zimber
serveri think i found the problem though - outdated tld tags somehow got in there. Thanks for the help anyhow. dz -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 10:25 AM To: Struts Users Mailing List Subject: RE: onclick attribute

RE: onclick attribute doesnt work in html:img tag?

2002-11-18 Thread Míguel Ángel Mulero Martínez
The html:img don't have onclick function. This is because Netscape don't support it (Explorer yes). regards. -Mensaje original- De: Drew Zimber [mailto:[EMAIL PROTECTED]] Enviado el: lunes, 18 de noviembre de 2002 16:09 Para: 'Struts Users Mailing List' Asunto: onclick attribute

RE: ArrayList disappeared in ActionForm

2002-11-18 Thread Míguel Ángel Mulero Martínez
Hi Sri, Looking at your multibox logic, is the 'rol' property in the 'userDataBean' an array of Strings? This should represent the value(s) that the user selects -- so, if the initial setting is all boxes un-checked, this will be an empty String[]. Yes, the rol is a String[]. It works OK

RE: DynaActionForm Primitive JavaBean

2002-11-18 Thread Gunasekaran. V
Greetings Tibor. I did not code anything in reset(). Since I am using DynaActionForm which gets created on the fly I do not have chance to code in reset(). The struts-config.xml looks like this form-beans form-bean name=Sample3From

RE: stylesheets with jsp's under WEB-INF?

2002-11-18 Thread Madel,Kurt
Hey Wendy, This seems to be a good way of getting the context relative path without having to worry about where the page that is referencing the stylesheet is located (I believe I saw it on Ted Husted's site): link rel='stylesheet' href='html:rewrite page=//stylesheets/defaultNS4.css'

RE: Using : Tomcat 3.2.2

2002-11-18 Thread Xavier Combelle
it seems that you did not used the id attribute logic:iterate id=item name=myfs property=myArrlst bean:write name=item property=yourProperty/ /logic:iterate -Message d'origine- De : vze49jqg [mailto:[EMAIL PROTECTED]] Envoyé : samedi 16 novembre 2002 17:32 À : Struts Users

How to Redirect ???

2002-11-18 Thread wolfgang
Hi there, I wanna make users redirect(not forward) to http://www.yahoo.com , but cannot make it... I added the following elements in the struts-config.xml global-forwards forward name=finish path=http://www.yahoo.com; redirect=true / /global-forwards and the following code in the execute

Struts Nested Tags

2002-11-18 Thread edgar
I am upgrading from Struts 1.0.2 to 1.1b2. I am getting null pointer exceptions in the nested:iterate tag java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:320) at com.caucho.server.http.Request.getAttribute(Request.java:1459) at

Struts template tag

2002-11-18 Thread Jean-Baptiste Onofré
Hello all, i would like to use template tags. For exemple, i will define a JSP template like this : %@ taglib uri=/WEB-INF/struts-template.tld prefix=template % html head titletemplate:get name=title//title link rel=stylesheet type=text/css href=toto.css/ /head body template:get

RE: Struts-el/JSTL/dynamic img

2002-11-18 Thread Karr, David
No, it's not disaster, but certain things will be quite annoying, even more than using normal scriptlets. Your calls to html:img will have to use scriptlets for the attribute values, and if your scriptlets need to reference variables created ONLY in JSTL tags, then scripting variables will not

RE: How to Redirect ???

2002-11-18 Thread Trieu, Danny
Isn't there is a contextrelative attribute in the forward/ tag where you can set to 'true'? -Original Message- From: wolfgang [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 8:15 AM To: [EMAIL PROTECTED] Subject: How to Redirect ??? Hi there, I wanna make users

Re: Struts template tag

2002-11-18 Thread David Graham
The template tags are deprecated in 1.1 in favor of Tiles. David From: Jean-Baptiste Onofré [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Struts template tag Date: Mon, 18 Nov 2002 17:08:06 +0100 Hello all, i would like to use

how to bounce requests back to the sending page

2002-11-18 Thread matthew yee-king
Hello Struts list people I have been scratching my head about this for a while now... I want to be able to embed a form in several pages whose action is is to update a property on a session bean then bounce back to the page the form was embedded into. The problem is generating an actionForward

Re: How to Redirect ???

2002-11-18 Thread Kris Schneider
That's not what the contextRelative attribute means. Here's the snippet from the 1.1 DTD: contextRelative Set this to true if, in a modular application, the path attribute starts with a slash / and should be considered relative to the entire web application

Source Files For Struts Scaffold

2002-11-18 Thread Hohlen, John
Does anyone know where I can find the source code for the Struts Scaffold? I was able to find the binary at http://husted.com/builds/struts-scaffold_1_0.jar, but I can't find the corresponding source code. Thanks! JOHN -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

[OT] Looking for HTML filter code

2002-11-18 Thread Emmanuel Boudrant
I've been looking around for code (bean/custom tag) that can do html filtering. No luck yet. At the moment all html entered in (for example) user comments is html-escaped when displayed. (To prevent naughty script tricks). It would be nice however to allow a limited set of html tags. Anyone

RE: how to bounce requests back to the sending page

2002-11-18 Thread Wendy Smoak
I want to be able to embed a form in several pages whose action is is to update a property on a session bean then bounce back to the page the form was embedded into. I have sort of the same issue when I send people off to pick from a list of names that match a free-form text name they've

RE: [OT] Looking for HTML filter code

2002-11-18 Thread edgar
If you are talking about stuff coming through struts tags I believe there is a flag which allows disabling of filtering. Edgar -Original Message- From: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 12:22 PM To: 'Struts Users Mailing List' Subject: [OT]

Re: Struts template tag

2002-11-18 Thread Jean-Baptiste Onofré
Thanks for info, but i'm in 1.0.2 in my dev. I will try that i have write :) Best regards -- Jean-Baptiste Onofré (Nanthrax) Membre fondateur de phpFR.org http://www.phpfr.org [EMAIL PROTECTED] Membre fondateur du LUG Béziers http://www.lug-beziers.org [EMAIL PROTECTED] -- To unsubscribe,

RE: Struts Nested Tags

2002-11-18 Thread edgar
I rebuilt the struts.jar on my machine and the exception goes away. What could I have done which causes struts to be dependent upon my code? Thanks Edgar -Original Message- From: edgar [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 11:17 AM To: 'Struts Users Mailing List'

Re: Source Files For Struts Scaffold

2002-11-18 Thread David Graham
It's in the cvs repository with the rest of Struts. David From: Hohlen, John [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts-Help (E-mail) [EMAIL PROTECTED] Subject: Source Files For Struts Scaffold Date: Mon, 18 Nov 2002 11:14:52 -0600 Does anyone know

Re: How to Redirect ???

2002-11-18 Thread Brian Hickey
Wolfgang, Redirect outside of an app can be done a number of ways. One suggestion: Map your redirect to a class that creates the forwardURL. Put the forwardURL into request scope. Create a JSP that does nothing but the redirect. Map to it in struts-config. use the jsp:usebean and meta

RE: [OT] Looking for HTML filter code

2002-11-18 Thread Emmanuel Boudrant
Hi, Never see that in struts tags, I looking in Struts user guide by I can't found anything. --- edgar [EMAIL PROTECTED] a écrit : If you are talking about stuff coming through struts tags I believe there is a flag which allows disabling of filtering. Edgar -Original Message-

Re: How to Redirect ???

2002-11-18 Thread Kris Schneider
Another thought is that you could still use a forward element to define an external resource: global-forwards forward name=external.yahoo path=http://www.yahoo.com/ forward name=external.sun path=http://www.sun.com/ /global-forwards Then, in an Action: ActionForward yahoo =

Howto handle this behavior in Struts+Tiles

2002-11-18 Thread atta ur-rehman
Dear all, Here is my layout.jsp file: %@ page errorPage=ErrorPage.jsp % tiles:insert attribute=menu/ tiles:insert attribute=body/ tiles:insert attribute=footer/ The menu tile is a JSP page that could throw an exception. Now whenever an exception is thrown on the menu tile I

RE: [OT] Looking for HTML filter code

2002-11-18 Thread Karr, David
There is a filter tag on bean:write, but that might not do what you want. It might help if you were clearer on exactly what you are trying to achieve. You're trying to put HTML tags inside HTML comment markers? Why would you want to do this? -Original Message- From: Emmanuel

RE: [OT] Looking for HTML filter code

2002-11-18 Thread James Childers
He's wanting something that provides the functionality that Slashdot allows in user comments: ol, li, b, etc., but is smart enough to strip out potentially harmful code. -= J -Original Message- From: Karr, David [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 11:57 AM

RE: [OT] Looking for HTML filter code

2002-11-18 Thread Emmanuel Boudrant
Thanx a lot...thats it. --- Karr, David [EMAIL PROTECTED] a écrit : There is a filter tag on bean:write, but that might not do what you want. It might help if you were clearer on exactly what you are trying to achieve. You're trying to put HTML tags inside HTML comment markers? Why

Getting the contextRealm from an action?

2002-11-18 Thread ROSSEL Olivier
How can I get an action to check a session object LoggingUser against the context Realm (let's say the MemoryRealm in Tomcat)? To check that the user/pass is in the list, or to get the role of an already logged user? Precisely, how can I get the Realm from inside an action? Is it a portable

RE: [OT] Looking for HTML filter code

2002-11-18 Thread Emmanuel Boudrant
...and do you know one ;) Thanx, -emmanuel --- James Childers [EMAIL PROTECTED] a écrit : He's wanting something that provides the functionality that Slashdot allows in user comments: ol, li, b, etc., but is smart enough to strip out potentially harmful code. -= J -Original

RE: How to Redirect ???

2002-11-18 Thread David Bolsover
Hi all For what it is worth. This works in an Action: Good for building dynamic forwards StringBuffer sb = new StringBuffer(); sb.append(http://www.someurl/actionpath?;); sb.append(customer= + customer.getName()); sb.append(address= + customer.getAddress()); etc.. ActionForward forward =

RE: [OT] Looking for HTML filter code

2002-11-18 Thread James Childers
Ummm, no. :) Sorry. -= J -Original Message- From: Emmanuel Boudrant [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 12:04 PM To: Struts Users Mailing List Subject: RE: [OT] Looking for HTML filter code ...and do you know one ;) Thanx, -emmanuel --- James

RE: Howto handle this behavior in Struts+Tiles

2002-11-18 Thread Trieu, Danny
Hello, Usually exception that being thrown by the VIEW(JSP) are rendering related exception. This could be tags/Scriptlet that access resource, JavaBeans, fails. Meaning the Resource is not there. And when these thing happen with composite view thing became A bit tricky. First of all, within

Re: Howto handle this behavior in Struts+Tiles

2002-11-18 Thread atta ur-rehman
Thanks, Danny, for the detailed response. We're running Struts 1.0.x. Does it support ExceptionHandler paradigm? If so could you please point towards some starting points. Thanks again. ATTA - Original Message - From: Trieu, Danny [EMAIL PROTECTED] To: 'Struts Users Mailing List'

RE: How to Redirect ???

2002-11-18 Thread Kris Schneider
By the way, you can't do that in 1.1. After startup the configutation is frozen (and ActionMapping.addForward doesn't exist anymore). In 1.0.2, Struts will examine the redirect attribute and, if it's set to true, will then examine the path attribute to see if it starts with a /. Only if it

Re: Source Files For Struts Scaffold

2002-11-18 Thread V. Cekvenich
Check CVS on Jakarta 1st or struts on sf.net. .V Hohlen, John wrote: Does anyone know where I can find the source code for the Struts Scaffold? I was able to find the binary at http://husted.com/builds/struts-scaffold_1_0.jar, but I can't find the corresponding source code. Thanks! JOHN

RE: How to Redirect ???

2002-11-18 Thread David Graham
This is a known issue and is currently being worked on in 1.1. David From: Kris Schneider [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: How to Redirect ??? Date: Mon, 18 Nov 2002

RE: Howto handle this behavior in Struts+Tiles

2002-11-18 Thread Trieu, Danny
Hello, 1.0 doesn't support declarative exception handling, but it doesn't prevent you from Doing so...:) Anyway, what I would do is: 1) Implement an abstract Action have and Abstract method execute(...) throw Exception. 2) Implement the perform(...) method That will call you're the abstract

RE: Strutstest with tiles - verifyForward behavior

2002-11-18 Thread James Mitchell
What version of StrutsTestCase are you using? from the release 1.9 readme.txt snip/ New Features: snip/ - Added more support for Tiles plugin. Previously, StrutsTestCase was relying on the deprecated ActionComponentServlet; now the code uses more up-to-date mechanisms for

j_security_check

2002-11-18 Thread Darren Hill
Wow. I had this working awesome ... now I get a HTTP ERROR: 404 Not Found RequestURI=/CMWeb/WEB-INF/pages/j_security_check from the following jsp form method=POST action=j_security_check trtd colspan=2/td/tr trtdbean:message key=login.page.form.email.label//tdtdinput type=text

RE: Strutstest with tiles - verifyForward behavior

2002-11-18 Thread Pete Gieser
Thanks for the reply. As I stated in my message, I am in fact using release 1.9, and had read the readme notes. That's why I'm expecting what I'm doing to work...but it don't. -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 2:16 PM

Re: Howto handle this behavior in Struts+Tiles

2002-11-18 Thread atta ur-rehman
Hi, This definitely is helpful. As I'm not very experiences in Struts, does your point 3 refers to error-page exception-typejava.lang.Exception/exception-type location/ErrorPage.jsp/location /error-page construct in web.xml or is it something different? If its the same thing, how do I

RE: Howto handle this behavior in Struts+Tiles

2002-11-18 Thread Trieu, Danny
You are almost close ... :) Yes my point 3 is that mapping in the web.xml. But Instead of going to the JSP, location/ErrorPage.jsp/location, you would want To go to location/errors/catchError.do/location, which map it to a Action that You extended from your abstract action class. This action

Re: j_security_check

2002-11-18 Thread Michael Lee
Dont use struts html:something tags inside your form. bean:message and such are ok. Otherwise, it thinks you want to use an ActionForm. Mike - Original Message - From: Darren Hill [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, November 18, 2002 2:21 PM

bean:write, mapped properties and Struts1.0.2?

2002-11-18 Thread Andy Kriger
In Struts 1.0.2, is it possible to do bean:write name=myBean property=property(key)/ where myBean has methods public String getProperty(String key) public void setProperty(String key, Object value) and there is a map backing the (get|set)Property? thx andy -- To unsubscribe, e-mail:

RE: j_security_check

2002-11-18 Thread Paananen, Tero
Wow. I had this working awesome ... now I get a HTTP ERROR: 404 Not Found RequestURI=/CMWeb/WEB-INF/pages/j_security_check This doesn't look right. Couple of possibilities I can think of. 1. Doublecheck that you have form based authentication enabled in your web.xml 2. Try changing

Re: Howto handle this behavior in Struts+Tiles

2002-11-18 Thread atta ur-rehman
okay, let me give it a try and I'll get back to you! thanks. by the way, do you if this feature is available thru servlet 2.2 specs? ATTA - Original Message - From: Trieu, Danny [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, November 18, 2002 11:54 AM

RE: Howto handle this behavior in Struts+Tiles

2002-11-18 Thread Trieu, Danny
I thinks so ... Good luck...:) --danny -Original Message- From: atta ur-rehman [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 1:05 PM To: Struts Users Mailing List Subject: Re: Howto handle this behavior in Struts+Tiles okay, let me give it a try and I'll get back to you!

[Validator] Not validating any more since update? - Urgent

2002-11-18 Thread Axel Stahlhut
Hi. After updating struts and all common libs (including common-validator) from nightly-build 2002-07-31 to nightly-build 2002-11-11 (and later on nightly-build 2002-11-18, too), all our forms usually validated by the Struts-Validator-Framework are not validated any more. It seems as if all that

Re: Howto handle this behavior in Struts+Tiles

2002-11-18 Thread atta ur-rehman
Hi Danny, I'm confused already!!! here is the abstract action class with an abstract execute method: --- import javax.servlet.http.*; import org.apache.struts.action.*; public abstract class AbstractErrorHandlerAction

Newbie: Nested Tag Trouble

2002-11-18 Thread Seth Milder
I have a problem with trying to write out subclass properties from struts. I a have a class called WebappUser that contains a method public Person getPerson(){return(_person);} and Person then has a method public String getLastName(){return(_lastName);} A WebappUser object is stored in the

Keeping up to date with nightly builds

2002-11-18 Thread Wendy Smoak
Does anyone have a procedure for updating an existing project to use all the stuff from a nightly build? So far, I delete my 'jakarta-struts' directory and unzip both of the nightly build files (source binary) again. Then I copy all the .jar files, all the .tld files and the

  1   2   >