When ActionDispatcher to be used ?

2006-08-24 Thread Raghuveer
When does ActionDispatcher action to be used? org.apache.struts.actions.ActionDispatcher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with JSTL and Struts html:link tag But Not with a

2006-08-24 Thread James Mitchell
You are correct. Nesting tags do *not* work. Try this... jsp:useBean id=paramMap class=java.util.HashMap scope=page/ c:set target=${paramMap} property=id value=${obj.id}/ c:choose c:when test=${var=='dog'} html:link action=/strutsAction name=paramMaptext/ html:link

When Tiles definations in tiles-def.xml loaded?

2006-08-24 Thread Raghuveer
In my web application i have 10 definations for 10 jsp's. When does all this definations are loaded ? Does this happens when ActionServlet is initialised for config elements from struts-config.xml - To unsubscribe, e-mail:

Validation in Struts DisptachAction

2006-08-24 Thread Vaneet Sharma
Hii I am using Struts DispatchAction and i am facing a peculiar problem while validating . Now i want to validate ,my action form only in insert or update mode. For read mode i want to prevent validation. To achive this is am writing validation=false in the action mapping , and i am manually

RE: Problem with JSTL and Struts html:link tag But Not with a

2006-08-24 Thread Vishal Seth
Yeah or other way..but with usage of scriplet is .. %=pageContext.getAttribute(key name)% -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Thursday, August 24, 2006 3:41 PM To: Struts Users Mailing List Subject: Re: Problem with JSTL and Struts html:link tag But

Re: When Tiles definations in tiles-def.xml loaded?

2006-08-24 Thread Antonio Petrelli
Raghuveer ha scritto: In my web application i have 10 definations for 10 jsp's. When does all this definations are loaded ? Does this happens when ActionServlet is initialised for config elements from struts-config.xml If you are talking about Struts-Tiles, well, yes, exactly they are

RE: When Tiles definations in tiles-def.xml loaded?

2006-08-24 Thread Vishal Seth
Yes ..these definitions are loaded duing plugin load time... But for you own action you can modify the the tiles definition by writing a controller class for the respective tile definition. -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Thursday, August 24,

RE: Validation in Struts DisptachAction

2006-08-24 Thread Saeed, Rada
Sharma, If insert, update and read modes, are represented by 3 different submits that trigger the actions, make them 3 different action mappings, then put validate=false in the read action mapping, and true in the rest. action path=/readAction name=yourForm validate=false scope=session

RE: Validation in Struts DisptachAction

2006-08-24 Thread Sherwood, Reg
Hi Vaneet I'm no expert on this to be sure; but I ran into a similiar issue. What I did was provided the check for the Read only mode in the forms validate method; if read only mode the validate method returned null; otherwise it invoked the super.validate method which performs the normal

Validating Collections in Struts

2006-08-24 Thread contest\.vix
Hi, Please, could somebody help me? Does anyone knows how can I validate a collection with Validator? My Form is declared as de folowing: begin form class EmailForm extends ValidatorForm{ /** selected responsables' email. */ private String [] selectedEmails = null; /** List of

RE: Re: select tag and value issue

2006-08-24 Thread Jonathan Drnek
It figures I was making it too complicated. Thanks for your help Jon -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Wednesday, August 23, 2006 4:14 PM To: user@struts.apache.org Subject: Re: select tag and value issue If you hardcode value=42,

RE: [OT] request.getServletPath() val not same in Filter Servlet

2006-08-24 Thread pantichd
David, Maybe I'm missing something in your reply but I don't think I'm doing either a forward or a dispatch. Here's the scenario... - Simple app has (let's say) 10 pages - A couple of pages are jsps using Struts forms. These are considered 'secure' pages and require a person to be logged in -

Re: Problem with JSTL and Struts html:link tag But Not with a

2006-08-24 Thread Mississippi John Hurt
Hi thanks for the help. I tried using the pageContext, but it seems for some reason, the render engine is not interpreting the scriptlet ie ( %= ..%) Its taking it literally (ie link has %= chars in it after rendered in html), weird. BTW, the above code is enclosed by a displaytag:table and

Re: When ActionDispatcher to be used ?

2006-08-24 Thread Michael Jouravlev
On 8/23/06, Raghuveer [EMAIL PROTECTED] wrote: When does ActionDispatcher action to be used? org.apache.struts.actions.ActionDispatcher http://struts.apache.org/1.x/struts-extras/apidocs/org/apache/struts/actions/ActionDispatcher.html

[JAVA]How to get datatbase connection from lookup to datatsource name in a standalone java application

2006-08-24 Thread temp temp
My java standalone application wants connection to database with lookup to datasource name which is configured in the oc4j app server. Please guide me with some ideas to achieve this. - Do you Yahoo!? Everyone is

Forward to the same page

2006-08-24 Thread Thomas Hamacher
Hello everyone, I´m returning to a problem I already had, but after googling for a while I could not find a good solution to that. So I´d like to ask you again, hoping that someone has a solution and I simply overlooked something. How do I forward to the same page I was coming from? The

Question: Successive use of a taglib by the container (i.e.: tagpool), what function reset the tag between usage????

2006-08-24 Thread David Gagnon
Hi all, I'm upgrading my old struts right now and several years ago I ran into the problem that since Tomcat has a TagPool and reuse tags, the state of the tag wasn't reseted beetween usage. I looked into the new version of struts and I cannot find how the tag is resetted between usage. I

[HELP] html-el causing jrunx.compiler.DefaultCFE: Compiler errors

2006-08-24 Thread Garner Shawn
html-el:text used the indexed=true ... This works fine in two development environments and doesn't work in the system test machine and one development environment. jrunx.compiler.DefaultCFE: Compiler errors: Found 3 semantic errors compiling

Re: Problem with JSTL and Struts html:link tag But Not with a

2006-08-24 Thread Wendy Smoak
On 8/24/06, Mississippi John Hurt [EMAIL PROTECTED] wrote: Hi thanks for the help. I tried using the pageContext, but it seems for some reason, the render engine is not interpreting the scriptlet ie ( %= ..%) Its taking it literally (ie link has %= chars in it after rendered in html), weird.

Re: Question: Successive use of a taglib by the container (i.e.: tagpool), what function reset the tag between usage????

2006-08-24 Thread Niall Pemberton
My understanding is that servlet containers are free to use whatever pooling strategy they like and AFAIK Tomcat pools tags with the same attribute values which is why it doesn't call release() or the setters for the attributes. Its up to the container to decide the pooling strategy and when to

Re: [JAVA]How to get datatbase connection from lookup to datatsource name in a standalone java application

2006-08-24 Thread Caroline Jen
Context ctx = new InitialContect(); DataSource ds = (DataSource)ctx.lookup(java:com/env/jdbc/DBName); Connection con = ds.getConnection(); --- Scott Van Wart [EMAIL PROTECTED] wrote: temp temp wrote: My java standalone application wants connection to database with lookup to datasource name

[ANNOUNCE] JSControlsTags taglib for manage javascript controls

2006-08-24 Thread Angelo zerr
Hello, I mail you to announce that JSControlsTags project is created on sourceforge. JSControlsTags is a taglib to easily manage javascript controls on client side (without AJAX) in your JSP. It is based on Prototype.js and Scriptaculous.js. It looks like AjaxTags, but it manages only controls

Re: [JAVA]How to get datatbase connection from lookup to datatsource name in a standalone java application

2006-08-24 Thread Scott Van Wart
temp temp wrote: My java standalone application wants connection to database with lookup to datasource name which is configured in the oc4j app server. Please guide me with some ideas to achieve this. You need to bind it yourself, to some provider. I use the DBCP provided with Tomcat

Re: [JAVA]How to get datatbase connection from lookup to datatsource name in a standalone java application

2006-08-24 Thread Scott Van Wart
Caroline Jen wrote: Context ctx = new InitialContect(); DataSource ds = (DataSource)ctx.lookup(java:com/env/jdbc/DBName); Connection con = ds.getConnection(); Right, but that's assuming it's already bound, which is the hard part, and unless he's running it under OC4J, no such luck... -

Re: Question: Successive use of a taglib by the container (i.e.: tagpool), what function reset the tag between usage????

2006-08-24 Thread David Gagnon
Thanks for the great answer! Best Regards /David Niall Pemberton wrote: My understanding is that servlet containers are free to use whatever pooling strategy they like and AFAIK Tomcat pools tags with the same attribute values which is why it doesn't call release() or the setters for the

RE: [OT] request.getServletPath() val not same in Filter Servlet

2006-08-24 Thread David Friedman
First, is '/servlet' the name of your webapp? If so then this might just make sense. Why? The HttpServletRequest.getServletPath() object is described to: Returns the part of this request's URL that calls the servlet. In a filter, that is the mapping '/*' which as you wrote resulted in

Re: Problem with JSTL and Struts html:link tag But Not with a

2006-08-24 Thread Mississippi John Hurt
Yes, thanks, I tried displaytag-el, with html-el but still couldn't get it to work. Anyway I just used the Map feature of html:link and its working fine. Thanks all. On 8/24/06, Wendy Smoak [EMAIL PROTECTED] wrote: On 8/24/06, Mississippi John Hurt [EMAIL PROTECTED] wrote: Hi thanks for the

[1.3] Session ActionMessages won't go away

2006-08-24 Thread Scott Van Wart
Hi, I have something very close to the following in each of my pages (actually, just in the layout page for tiles, but whatever). Worked fine in Struts 1.2.9 (even though I'm not so sure it's the best way to print messages and errors, but oh well...) logic:messagesPresent message=true

Re: [OT] request.getServletPath() val not same in Filter Servlet

2006-08-24 Thread Scott Van Wart
pantichd wrote: Hello, Sorry for posting this in Struts mailing list but I can't seem to get an answer on any other discussion groups. I've always had great results getting good answers here so here goes... I have a Filter in my app that uses the request.getServletPath() method to get the name