RE: XDoclet

2005-01-29 Thread David G. Friedman
Tim, > From: Tim Christopher [mailto:[EMAIL PROTECTED] > What does everyone think of using XDoclet to build > Struts / Tiles / Validator configuration files? I like using XDoclet for creating the struts-config.xml file. For permanent items that are not in your .java files or which need to be con

Re: JSTL vs logic:present

2005-01-29 Thread Erik Weber
Wendy Smoak wrote: From: "Erik Weber" <[EMAIL PROTECTED]> I see now that the problem appears to be that the c tag is assuming "org.foo.ATTRIBUTE" means org.getFoo(), etc. How can I tell the c tag that "org.foo.ATTRIBUTE" is the name of the request attribute, not "org"? What is the JSTL equival

Re: JSTL vs logic:present

2005-01-29 Thread Eddie Bush
Good stuff! Thanks for the post :-) It actually reminded me of a couple of things I had forgotten ... or mislearned ;-P On Sat, 29 Jan 2005 20:29:54 -0700, Wendy Smoak <[EMAIL PROTECTED]> wrote: > Appendix A of JSTL in Action is available here: > http://www.manning.com/catalog/view.php?book=baye

Re: XDoclet

2005-01-29 Thread Eddie Bush
I think there's been some movement to do this in the past. You might try searching on sourceforge ... or even Google. On Sun, 30 Jan 2005 03:28:27 +, Tim Christopher <[EMAIL PROTECTED]> wrote: > Hi, > > What does everyone think of using XDoclet to build Struts / Tiles / > Validator configura

Re: JSTL vs logic:present

2005-01-29 Thread Wendy Smoak
From: "Erik Weber" <[EMAIL PROTECTED]> I see now that the problem appears to be that the c tag is assuming "org.foo.ATTRIBUTE" means org.getFoo(), etc. How can I tell the c tag that "org.foo.ATTRIBUTE" is the name of the request attribute, not "org"? What is the JSTL equivalent of this logic tag

XDoclet

2005-01-29 Thread Tim Christopher
Hi, What does everyone think of using XDoclet to build Struts / Tiles / Validator configuration files? Is it likely to make life seem like it's worth living, or is a few hours spent trying to learn it going to drive me mad? :o) Cheers for your feedback! Tim Christopher ---

[OT] Re: JSTL vs logic:present

2005-01-29 Thread Erik Weber
Eddie Bush wrote: I thought that's what you were getting at! ;-) Please trim unnecessary dialog from your response when posting :-) And now, here are the complete lyrics to "The Song That Never Ends" . . . Just messin' with ya! :-P On Sat, 29 Jan 2005 21:57:26 -0500, Erik Weber <[EMAIL PROTECT

Re: JSTL vs logic:present

2005-01-29 Thread Erik Weber
Thanks Eddie. That did the trick. Erik Eddie Bush wrote: Erik, Maybe I'm missing something, but do you have a bean in-scope named org, which has a property named foo, which has a property named ATTRIBUTE? Maybe: or Tried that? I could totally be missing your point ... but, if the "name" of the b

Re: JSTL vs logic:present

2005-01-29 Thread Eddie Bush
I thought that's what you were getting at! ;-) Please trim unnecessary dialog from your response when posting :-) On Sat, 29 Jan 2005 21:57:26 -0500, Erik Weber <[EMAIL PROTECTED]> wrote: > I see now that the problem appears to be that the c tag is assuming > "org.foo.ATTRIBUTE" means org.getFoo(

Re: JSTL vs logic:present

2005-01-29 Thread Eddie Bush
Erik, Maybe I'm missing something, but do you have a bean in-scope named org, which has a property named foo, which has a property named ATTRIBUTE? Maybe: or Tried that? I could totally be missing your point ... but, if the "name" of the bean is "org.foo.ATTRIBUTE", you're probably going to

Re: JSTL vs logic:present

2005-01-29 Thread Erik Weber
I see now that the problem appears to be that the c tag is assuming "org.foo.ATTRIBUTE" means org.getFoo(), etc. How can I tell the c tag that "org.foo.ATTRIBUTE" is the name of the request attribute, not "org"? Thanks, Erik Erik Weber wrote: What is the JSTL equivalent of this logic tag? I tri

JSTL vs logic:present

2005-01-29 Thread Erik Weber
What is the JSTL equivalent of this logic tag? I tried this: but it didn't work. Neither did "${!empty org.foo.ATTRIBUTE}". Erik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Blocking direct access to JSPs

2005-01-29 Thread Dakota Jack
Dang, Kishore, you are relentless! I like that! You have the option of setting each tag with the value you want for these and programming them in, if you like. On Sat, 29 Jan 2005 14:40:26 -0600, Kishore Senji <[EMAIL PROTECTED]> wrote: > >response.setContentType(type); > >response.setH

Re: Blocking direct access to JSPs

2005-01-29 Thread Kishore Senji
>response.setContentType(type); >response.setHeader("Cache-Control", ""); >response.setHeader("Pragma", ""); >response.setHeader("Expires", ""); >response.addHeader("Content-Disposition","filename=" + name); With the above headers, is caching turned on or off. Cache-Control is

Re: Struts, XHTML, DOCTYPES, and EL (several newbie questions)

2005-01-29 Thread Eddie Bush
Have you tried examining the source? ;-) Let's do: If you set the code is going to set a PageContext variable indicating XHTML should be used to true. You can find an identical line of code in the XhtmlTag class. I'd say, based off the code, that they're functionally equivalent. For you DOCTY

Re: Create dynamic form ?

2005-01-29 Thread Joe Germuska
At 5:29 PM +0800 1/29/05, Eric Chow wrote: How can I not use the struts-config.xml but I can use my own config to generate a HTML form and use a standard validator to validate the form data ?? When Struts goes to get you a form bean (based on the "name" attribute of an mapping, it goes to the cur

Re: LookupDispatch with ??

2005-01-29 Thread Dakota Jack
http://www.michaelmcgrady.com/button/ Jack On Sat, 29 Jan 2005 21:25:44 +0200, Nils Liebelt <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I am using a LookupDispatch action to add and delete stuff to a form. It > works fine but it seems like quite a hustle to change my add and delete > buttons

LookupDispatch with ??

2005-01-29 Thread Nils Liebelt
Hi everybody, I am using a LookupDispatch action to add and delete stuff to a form. It works fine but it seems like quite a hustle to change my add and delete buttons into linked images. Is there a way of html:image tag in this particular situation? Any suggestions? Regards, Nils --

LookupDispatch with ??

2005-01-29 Thread Nils Liebelt
Hi everybody, I am using a LookupDispatch action to add and delete stuff to a form. It works fine but it seems like quite a hustle to change my add and delete buttons into linked images. Is there a way of html:image tag in this particular situation? Any suggestions? Regards, Nils --

Re: BANDWIDTH CONCERNS and SNIPPING POSTS

2005-01-29 Thread Dakota Jack
I really do think that "Smart Questions" should have a counterpart "Smart Answers". By this I mean that I notice that a lot of the bandwidth is taken up by people who jump in before reading a question carefully and begin to give irrelevant advice and sometimes bad demands (wrong list, etc.) becaus

Re: Blocking direct access to JSPs

2005-01-29 Thread Dakota Jack
On Sat, 29 Jan 2005 12:40:21 -0500, William Stranathan <[EMAIL PROTECTED]> wrote: > Don't put your html resources, CSS, etc. under WEB-INF - just put the > JSP's there. If your images or CSS or .js files have anything you need > to protect from direct access (passwords - perish the thought! > Pro

Re: Blocking direct access to JSPs

2005-01-29 Thread Dakota Jack
lastly, I think, notice that 'resource.do?file=Whatever.jpg' in is merely text, and so can be "nested" all you like. Jack -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ "You can't wake a person who is pretending to be asleep." ~Native Prover

Re: Blocking direct access to JSPs

2005-01-29 Thread Dakota Jack
Perhaps I should have added that you access the resources as follows: The rest should be obvious. Jack -- "You can lead a horse to water but you cannot make it float on its back." ~Dakota Jack~ "You can't wake a person who is pretending to be asleep." ~Native Proverb~ "Each man is good i

Re: Blocking direct access to JSPs

2005-01-29 Thread William Stranathan
Don't put your html resources, CSS, etc. under WEB-INF - just put the JSP's there. If your images or CSS or .js files have anything you need to protect from direct access (passwords - perish the thought! Proprietary information?), put them under WEB-INF and use DownloadAction to send them. w

Re: Blocking direct access to JSPs

2005-01-29 Thread Dakota Jack
On Sat, 29 Jan 2005 16:28:42 +, Tim Christopher <[EMAIL PROTECTED]> wrote: > I've read that if you store your JSP files under the WEB-INF folder it > blocks access to html resources (CSS etc).. What's the work around to > ensure the JSP has access to all the resources it still needs? > > Tim

Re: BANDWIDTH CONCERNS and SNIPPING POSTS

2005-01-29 Thread Ted Husted
On Fri, 28 Jan 2005 13:18:29 -0800, Dakota Jack wrote: > Hopefully, if there is a bandwidth problem, we can all cut down the > repeating of unnecessary matter in our posts. Struts has a large number of international users, so bandwidth on the mailing list is always a concern. A lot of us have bro

Re: Blocking direct access to JSPs

2005-01-29 Thread Tim Christopher
I've read that if you store your JSP files under the WEB-INF folder it blocks access to html resources (CSS etc).. What's the work around to ensure the JSP has access to all the resources it still needs? Tim On Sat, 29 Jan 2005 10:20:25 -0500, David G. Friedman <[EMAIL PROTECTED]> wrote: > Fran

Re: Struts, XHTML, DOCTYPES, and EL (several newbie questions)

2005-01-29 Thread Graham Reeds
I have another question. I seem to only get the JavaDoc help for Struts in the source of JSP files where I have the reference to the tag's via an <[EMAIL PROTECTED] ...%> scriplet. In Java I receive the error "JavaDoc not installed" from Netbeans so I was wondering where the docs folder for

Re: DynaActionForm problem (newbie probably :)

2005-01-29 Thread Robert Taylor
The reason for the error is that the beanutils package cannot convert the date string into a Date object. You can either populate the form with the formatted date or register a Converter to handle the conversion appropriately. I haven't yet used Converter but this problem has been answer many tim

RE: Blocking direct access to JSPs

2005-01-29 Thread David G. Friedman
Frank, I agree with you when a JSP is just a template. However, may people mix JSP's with scriplets and other code nibblets. Having items such as those as publicly accessible can cause security and functionality issues. Luckily, I myself haven't needed to put scriptlets in my JSP's though I sti

Re: Blocking direct access to JSPs

2005-01-29 Thread Frank W. Zammetti
My argument against it is that WEB-INF is meant to be configuration information and "support files", and while I agree with viewing JSPs as templates, I don't view them as support files either. Let me put it another way... WEB-INF should be things that are not application-specific, except for

Re: Blocking direct access to JSPs

2005-01-29 Thread William Stranathan
We had this discussion a lot last week, and it seems to be somewhat divided on whether JSP's belong in WEB-INF. What was your compelling argument AGAINST it? My compelling argument FOR it has always been that WEB-INF is where application artifacts that are not complete web artifacts belong. W

DynaActionForm problem (newbie probably :)

2005-01-29 Thread Robin Ericsson
Hi, This is my form: This is how I populate it: List days = new ArrayList(); --fill list-- form.set("days", (MyClass[]) days.toArray(new MyClass[days.size()])); This is my jsp-code: The generated html seems correct as it finds the actual data in the MyCla

Re: Create dynamic form ?

2005-01-29 Thread Eric Chow
How can I not use the struts-config.xml but I can use my own config to generate a HTML form and use a standard validator to validate the form data ?? On Fri, 28 Jan 2005 10:12:32 -0600, Joe Germuska <[EMAIL PROTECTED]> wrote: > At 8:03 AM -0700 1/28/05, Wendy Smoak wrote: > >From: "Eric Chow" <[E