Validation Configuration for Multiple Modules

2005-10-11 Thread tarek . nabil
Hi everyone, I'm using *Struts 1.1* to build an application with multiple Struts modules. I put my validations for each module in a seperate validations.xml file. For example, I have validations-a.xml for module a and validations-b.xml for module b. I then found out that although the

Re: html:text not interpreted :-(

2005-10-11 Thread bib_lucene bib
ok I attached files , I access this page using http://localhost:8090/rs/tiles/example.jsp It displays header, left pane, content, footer. But does not show text box in content. Thanks for your help. bibWendy Smoak [EMAIL PROTECTED] wrote: From: "bib_lucene bib" <[EMAIL PROTECTED]> I still cannot

Re: [OT] Re: log4j:WARN No appenders could be found for logger.

2005-10-11 Thread Manfred Wolff
Forget it! This is because the digester class uses the logging before you initializes it. Manfred Deep Chand schrieb: Even if it is a warning why do I see that...what's wrong with the configurationand i waited for like 30 seconds it keeps on printing somethingbelow is the initial log:

Re: html:text not interpreted :-(

2005-10-11 Thread Sunil_Sahu
Have u map it with form-bean. bib_lucene bib [EMAIL PROTECTED] 10/11/2005 11:54 AM Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: html:text not interpreted :-( ok I attached files , I access this

Re: html:text not interpreted :-(

2005-10-11 Thread bib_lucene bib
no, just put a simple html:text to see if a text box appears, I thought I will get this done and then continue adding more elements adding action classes etc? Is that wrong approach? [EMAIL PROTECTED] wrote: Have u map it with form-bean. bib_lucene bib 10/11/2005 11:54 AM Please respond to

Directory acces depending on user connected...

2005-10-11 Thread Gaet
Hi, I have an application where I store PDF of each of my client... I would like to know how to restrict the view of PDF to the client that PDF belongs to Actually to view PDF I have a link like this : www.mywebsite.com/mystrutslink.do?pdf=/pdf/clientId/test.pdf As you may notice, the

Re: html tags not parsed by taglibs

2005-10-11 Thread Gareth Evans
try using filter=false e.g. bean:write name=myBean property=myProp filter=false / Gareth Kishore Senji wrote: When you say bean:write is not parsed, you mean that in the html source that's generated you see bean:write in it? If so, you might have just forgot the bean taglib reference (%@

how to sustain the sanity of the connection pool

2005-10-11 Thread emre akbas
Hi, I have some general questions about connection pooling and exception handling. Struts suggests that developers use declarative exception handling. In declarative exception handling, there are almost no try { } catch() {} blocks in the Action classes. Exception occuring in Action classes are

Re: how to sustain the sanity of the connection pool

2005-10-11 Thread Murray Collingwood
A pertinent question, had the same problem myself this afternoon. I use Tomcat DBCP and found that each connection really does need to be closed. If you don't your pool of connections is quickly depleted. From the many code samples I have looked at (not that many really) I find many people

Re: how to sustain the sanity of the connection pool

2005-10-11 Thread Ronald Holshausen
Another solution is to use a proxing framework (like spring), that opens and closes the connections for you. This way you know that the connection will always be closed after the method call, regardless if there was an error or not. You can also create a base class for all your actions that has a

This is an easy one

2005-10-11 Thread Mario_Hernandez
I should know this, but how do I use '' in a tiles xml? I guess this makes me the whipping boy for a while.

Re: This is an easy one

2005-10-11 Thread Ronald Holshausen
amp; On 11/10/05, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I should know this, but how do I use '' in a tiles xml? I guess this makes me the whipping boy for a while. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re:How to minimize security related code in Action classes

2005-10-11 Thread ooper
Yes, I am still wondering. Thanks Adam, I'll look into your suggestion. - a href=http://Struts_User_List.roomity.com;roomity.com/a Your Roomity Broadband Webapp ~~1129041675336~~

Re: html tags not parsed by taglibs

2005-10-11 Thread Eric Plante
no, it's not the taglib that isn't parsed but the html tags in the property's string to be written by the taglib. - Original Message - From: Kishore Senji [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, October 11, 2005 12:18 AM Subject: Re: html

Re: html:text not interpreted :-(

2005-10-11 Thread Eric Plante
is it within html:form­­ and /html:form tags? here's the header of my own jsp page concerning the taglibs just in cast it works for you since it works well for me. %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean% %@ taglib uri=/WEB-INF/struts-html.tld prefix=html% %@ taglib

Re: html tags not parsed by taglibs

2005-10-11 Thread Eric Plante
Many thanks! It worked! try using filter=false e.g. bean:write name=myBean property=myProp filter=false / Gareth Kishore Senji wrote: When you say bean:write is not parsed, you mean that in the html source that's generated you see bean:write in it? If so, you might have just forgot

Re: how to sustain the sanity of the connection pool

2005-10-11 Thread Eric Plante
It is very usual that we open a connection to the database at the beginning of the Action class and then close it at the end. When an exception occurs, an exception-handler outside of our Action class (in which the exception is thrown) handles the exception. Then, what happens to the connection?

Re: how to sustain the sanity of the connection pool

2005-10-11 Thread Ronald Holshausen
DBCP has some properties to help with connection pool leaks: removeAbandoned, logAbandoned. See http://jakarta.apache.org/commons/dbcp/configuration.html On 11/10/05, emre akbas [EMAIL PROTECTED] wrote: Hi, I have some general questions about connection pooling and exception handling. Struts

[JSF] Is it possible to submit to different URL/page?

2005-10-11 Thread Michael Jouravlev
So, is it possible to submit a form to another page, either with submit button or with a link? OutputLink does not seem to submit a form. Michael. -- Forwarded message -- I looked up for an attribute of h:commandButton which would allow to submit to another URL, and I could not

Postback not occuring for Clay html full view

2005-10-11 Thread Ryan Wynn
I am using shale/clay html full view. I have an initial page, index.html, which contains a commandLink to another page, page2.html. index.html html body form jsfid=form a jsfid=page2LinkPage 2/a /form /body /html clay-config.xml ... component jsfid=page2Link extends=commandLink

Accessing Struts portal via Netscreen

2005-10-11 Thread Radhika Sarang
We've installed a Struts based portal on our test system(Solaris box). When we test inside the network everything works fine. But if we log in from outside the network via Netscreen(there is an IP address translation that happens), the first login page takes over 5 minutes to appear. But once the

Re: [JSF] Is it possible to submit to different URL/page?

2005-10-11 Thread Craig McClanahan
On 10/11/05, Michael Jouravlev [EMAIL PROTECTED] wrote: So, is it possible to submit a form to another page, either with submit button or with a link? There is no such attribute on the h:commandButton or h:commandLink components, because in HTML that is not what determines where the submit

startup time validator validation?

2005-10-11 Thread Mick Knutson
I am trying to figure out if there is a way to have the Validator framwork verify that the form element names defined in the validation.xml, are in synch with my ActionForms, but not jst at runtime. Right now if there is a mismatch, then I get an error in the form of an error, sometimes obscure,

Re: Submit buttons getting their value

2005-10-11 Thread Richard Yee
D.J., Perhaps you should try it yourself. It works for me. If the html:submit tag is used, and the property attribute is specified, then that property is available in the action class as request.getParameter(the_submit_button_property_name); I don't see any code that wraps HttpServletRequest.

DynaActionForm, Boolean checkboxes, and Initial

2005-10-11 Thread katre
Hello all. In my app, I use the DynaActionForm, because it makes it much easier to declare all the forms I need. However, it is giving me a problem with Boolean type variables used in checkboxes. Specifically, I have the following form-bean: form-bean name=test_form

Re: startup time validator validation?

2005-10-11 Thread Dave Newton
Mick Knutson wrote: I am trying to figure out if there is a way to have the Validator framwork verify that the form element names defined in the validation.xml, are in synch with my ActionForms, but not jst at runtime. Right now if there is a mismatch, then I get an error in the form of an

Re: Postback not occuring for Clay html full view

2005-10-11 Thread Martin Gainty
Ryan the Clay dcumentation at http://struts.apache.org/shale/features.html#view For each JavaServer Faces view that you wish to associate with a ViewController backing bean, you must: a.. Implement the ViewController interface. The most convenient way to do this is likely to be extending

Re: startup time validator validation?

2005-10-11 Thread Mick Knutson
It could be at build time just fine, but I am using maven. So how could I integrate this into my build then? Dave Newton wrote: Mick Knutson wrote: I am trying to figure out if there is a way to have the Validator framwork verify that the form element names defined in the validation.xml,

[OT] Re: startup time validator validation?

2005-10-11 Thread Dave Newton
Mick Knutson wrote: It could be at build time just fine, but I am using maven. So how could I integrate this into my build then? I have no idea :) In my case, with ant, I was just running an external task. I don't even remember how I was getting status information back and all that. Just

RE: startup time validator validation?

2005-10-11 Thread David G. Friedman
Wouldn't XDoclet's Struts Validator features work for you in this regard? It wouldn't be i nthe JSP or at startup but at build/compile time. See: http://xdoclet.sourceforge.net/xdoclet/tags/[EMAIL PROTECTED] evel_Tags I am trying to figure out if there is a way to have the Validator framwork

Re: Postback not occuring for Clay html full view

2005-10-11 Thread Gary VanMatre
Hi Ryan, I am using shale/clay html full view. I have an initial page, index.html, which contains a commandLink to another page, page2.html. index.html [snippet] index is configured as in faces-config.xml and implements ViewController. When I click on page2Link I see that the following is

Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-11 Thread Preston CRAWFORD
I've done this in the past. Used modules to logically (and for the sake of having sane config files) break up these config files. However I'm wondering if anyone avoids using modules and maybe merges the files using ANT or something? Reason I ask is because I know there are pitfalls to using

Re: Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-11 Thread Frank W. Zammetti
Some people prefer to stay away from modules (I have a vague memory of at least one Struts committer saying they generally try to avoid them for example). One option that Craig turned me on to (and I hope I'm remembering this right!) is using entities to import XML into another. If the only real

Re: Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-11 Thread Preston CRAWFORD
No, in our case it's mostly to make the code manageable. We're putting code into separate packages and separate JSP directories, but it's all going to be part of the same application in the end. And avoiding modules wold be nice if possible. Preston [EMAIL PROTECTED] 10/11/2005 2:02:48 PM Some

Re: startup time validator validation?

2005-10-11 Thread Mick Knutson
no, because my code is being generated from wsdl2java, and not xdoclet. David G. Friedman wrote: Wouldn't XDoclet's Struts Validator features work for you in this regard? It wouldn't be i nthe JSP or at startup but at build/compile time. See:

Re: Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-11 Thread Preston CRAWFORD
Just tried this. This works nice. Only downside is that then you don't get any context help in the editor as you can't have a full XML file with a doctype at the top (for the included files). Bummer. Preston [EMAIL PROTECTED] 10/11/2005 2:02:48 PM Some people prefer to stay away from modules

Re: Is the best way to have multiple struts-config.xml andtiles-defs.xml files, modules?

2005-10-11 Thread Wendy Smoak
From: Preston CRAWFORD [EMAIL PROTECTED] I've done this in the past. Used modules to logically (and for the sake of having sane config files) break up these config files. However I'm wondering if anyone avoids using modules and maybe merges the files using ANT or something? You can have

Re: Is the best way to have multiplestruts-config.xmlandtiles-defs.xml files, modules?

2005-10-11 Thread Preston CRAWFORD
Oooh. I like that. That works relatively well so far, although it's not picking up on my secondary tiles-defs.xml file. Preston [EMAIL PROTECTED] 10/11/2005 2:26:22 PM From: Preston CRAWFORD [EMAIL PROTECTED] I've done this in the past. Used modules to logically (and for the sake of having

sample please ....

2005-10-11 Thread bib_lucene bib
Hi Can I get a working sample which has struts and tiles. Basically has some layout like head body and footer. Body includes a jsp with a form that has html:text. My example just dont work. Thanks bib - Yahoo! Music Unlimited - Access

RE: sample please ....

2005-10-11 Thread David G. Friedman
Bib, Can you include your Tiles definition and your jsp using tiles so we can look at it? Are you observing any errors in your logs? Do the logs show that the TilesRequestProcessor has initialized? Regards, David -Original Message- From: bib_lucene bib [mailto:[EMAIL PROTECTED] Sent:

Re: Postback not occuring for Clay html full view

2005-10-11 Thread Ryan Wynn
[EMAIL PROTECTED] (Gary VanMatre) wrote on 10/11/2005 04:29:47 PM: If you are using myfaces runtime, you need to add a preprocess filter command. The usecase has an example (http://svn.apache. org/viewcvs.cgi/struts/shale/trunk/use-cases/src/web/WEB-INF/chain- config.xml?view=markup). This

Why I Hate Struts Modules

2005-10-11 Thread Paul Benedict
Great subject line, isn't it? :) OK. I've been doing Struts for like 2-3 years now, and Struts Modules I loved for awhile but now I absolutely can't stand them First off, my initial appeal to modules was to split up the configuration files so different developers can work on the project

RE: Why I Hate Struts Modules

2005-10-11 Thread David G. Friedman
Paul, See, after all these years, I really wanted was to split files up. Modules don't gain me anything, do they? I know (or I think) when Craig wrote Struts 0.x, he had an action.xml which did something similar Now I could create file of just actions and use XML ENTITIES to include

Re: Why I Hate Struts Modules

2005-10-11 Thread Frank W. Zammetti
Paul, you are aware that you can specify multiple configuration files, right? There isn't even a need to use XML entities, which I suspect isn't as well-known as it probably should be, and another poster pointed out that it presents some troubleshooting (or was it validation?) problems. I