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 problem

Re: html tags not parsed by taglibs

2005-10-11 Thread Gareth Evans
try using filter="false" e.g. 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 (<%@ taglib ...%>) On 10/10/05, Eric Plante <[EMAIL PR

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 h

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
& 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 addi

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. - http://Struts_User_List.roomity.com";>roomity.com 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" Sent: Tuesday, October 11, 2005 12:18 AM Subject: Re: html tags not parsed by

Re: html:text not interpreted :-(

2005-10-11 Thread Eric Plante
is it within and 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 uri="/WEB-INF/struts-logic.

Re: html tags not parsed by taglibs

2005-10-11 Thread Eric Plante
Many thanks! It worked! > try using filter="false" > > e.g. > > > > 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 (<%@ t

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 >connect

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. > St

[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 fi

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 Page 2 clay-config.xml ... ... index is configured as in faces-

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 or components, because in HTML that is not what determines where the submit goes -- it's the "action"

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, on

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: In my JSP, I have: This is properly checke

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 error

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 the

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.

[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 foll

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 module

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 >>>

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: > > http://xdoclet.sourceforge.net/xdoclet/t

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 mod

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 mu

findforward w/session objects

2005-10-11 Thread Chris Pat
Hello When I use the code below the Action "playThis" claims the file attribute is null. It is not unless I am loosing the session on the findforward. How can I store a value in the session and forward to an Action? The first line of the "playThis action is String file = (String) request.getAttr

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 >

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

2005-10-11 Thread Kishore Senji
TilesPlugin doesn't configure the TilesDefinitionsFactory once it is already configured, so, if you use comma-separated xml files you would to declare all your tiles-definitions in only one xml file. Similarly for Validator -- ValidatorPlugin overrides the resources from subsequent calls to its ini

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 over

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: T

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). T

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 witho

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 inclu

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 thi