multipart dynavalidator form

2005-09-24 Thread raghu
How do you use dynavalidator forms with or whatever I need to specify the type as a file. I need the other fields to be validated and I dont want to create a compilable ActionForm or ValidatorFrom. I would like to continue using form-property

Re: CactusStrutsTestCase working problem with tiles extension

2005-09-24 Thread Laurie Harper
Firstly, when starting a new topic it's a better idea to post a new message rather than replying to an existing one. Anyone not following the thread you reply on wont see you message if you do that. As far as your problem goes, it's not clear what the problem is because it doesn't look like yo

Re: CactusStrutsTestCase working problem with tiles extension

2005-09-24 Thread Carl Smith
Is there any helps here? Thank you in advance. Carl Smith <[EMAIL PROTECTED]> wrote: I am sorry for this a little long question, but you will be finding it interesting... Simply put, I have (1),(2) and (3), then we I run struts testing, I got error described as (4) (1) item in struts-config.x

Re: display image, image path in database

2005-09-24 Thread Laurie Harper
vijay wrote: Hello, I am trying to use the html:img tag to display an image. The image's filename(eg, photo1.jpg) is stored in the database and the actual images are stored in the "ContextPath/out/" folder. I have set the value of the image_path in the form bean but I am not able to display the

Re: xhtml 1.1 strict & lang attributes

2005-09-24 Thread Laurie Harper
Note that the 'locale' attribute is deprecated. What happens if you remove it? I think that might be what's causing the 'lang' attribute to be generated. L. Xavier Vanderstukken wrote: In the top on my jsp page : The generated html page looks like that : http://www.w3.org/1999/xhtml"; lang

Re: tag within tag

2005-09-24 Thread Laurie Harper
You can't nest a custom tag in an attribute of another custom tag. It's illegal JSP syntax. You have (at least) a couple of options, depending on what level of the servlet spec you're using: should work everywhere. An alternative if you have JSTL available: tha

Re: Populating a select box from a database

2005-09-24 Thread Laurie Harper
Yes, that's the 'standard' pattern. L. Rob Turknett wrote: Thanks for the help. Are you suggesting, in other words, to have a separate Action that retrieves the data to populate the select box, that is executed prior to the ActionForm? Rob -Original Message- From: news [mailto:[EM

Re: [OT] How to make work in Tiles?

2005-09-24 Thread Laurie Harper
梁炳場 wrote: In the header.jsp, I try to add something like "About Us", "Contact Us". Make them align to the right. But it does not work. I spread across the header section. I do this in the header.jsp (and use classLayout.jsp). ... How can I make it work? This is nothing to d

Re: Struts action servlet mapping, getPathInfo() returns null

2005-09-24 Thread Laurie Harper
Did you look at the documentation on wildcard mappings yet? If you use /do/admin/** it'll match arbitrarily 'deep' URLs. L. emre akbas wrote: Thank you Dave. I'm afraid predefined mapping schemes like /do/admin/*/*" and "/do/admin/*/*/* won't work for me since I want to implement a generic fil

display image, image path in database

2005-09-24 Thread vijay
Hello, I am trying to use the html:img tag to display an image. The image's filename(eg, photo1.jpg) is stored in the database and the actual images are stored in the "ContextPath/out/" folder. I have set the value of the image_path in the form bean but I am not able to display the image using th

Re: [OT] Maven dependencies Commercial

2005-09-24 Thread Adam Hardy
Peter A. Pilgrim on 24/09/05 12:41, wrote: I am getting into Maven using Struts and the OReilly "A Developer Notebook" edition. One thing I am clueless about is how to tell Maven about a build that is not in a repository like "weblogic.jar" ? How do tell Maven about ``commercial'' dependen

RE: Bean association with form

2005-09-24 Thread Michael Oliver
Murry, Thanks but NO as I think you suspected you DO NOT need to put the ".do" on the end, the tag looks in the struts-config.xml to find the action. I have more than a dozen struts applications all working fine and even other forms within the problematic application also working fine. As a mat

Re: JavaScript file in JSP with Struts

2005-09-24 Thread Francisco - São Paulo - Brazil
Thank you very much, I solved the problem. Francisco - São Paulo - Brazil escreveu: Hi all, How can I insert/use an .JS (javaScript) file in my .jsp which is using Struts? I have this: script.js: alert('testing...'); in my .jsp : ... But nothing happens whey I run the JSP file. It

JavaScript file in JSP with Struts

2005-09-24 Thread Francisco - São Paulo - Brazil
Hi all, How can I insert/use an .JS (javaScript) file in my .jsp which is using Struts? I have this: script.js: alert('testing...'); in my .jsp : ... But nothing happens whey I run the JSP file. It should show a window dialog saying "testing...", right? PS. Both, .js and .jsp are

[OT] Maven dependencies Commercial

2005-09-24 Thread Peter A. Pilgrim
I am getting into Maven using Struts and the OReilly "A Developer Notebook" edition. One thing I am clueless about is how to tell Maven about a build that is not in a repository like "weblogic.jar" ? How do tell Maven about ``commercial'' dependencies? Have any of you guys (and gals) alread

Re: Tiles and tile definitions

2005-09-24 Thread Graham Reeds
Remove the dots, leave the slash: path="/_common/..." I had tried that but the page is blank. I found the problem eventually. _header.jsp has a getAsString used for the username and I hadn't given any text because I had forgotten about it. Thanks for your time, Graham Reeds. --

Re: Tiles and tile definitions

2005-09-24 Thread Graham Reeds
Greg Reddin wrote: On Sep 23, 2005, at 9:17 PM, Graham Reeds wrote: Now nothing appears when I try to open Test.jsp from a page that has uses the method I'm not quite following what you mean there. Are you saying you have a page with the following? and you expect Test.jsp to includ

Re: Populating a select box from a database

2005-09-24 Thread Leon Rosenberg
<2cents> I think you should check Rick Reumans lessons on struts. Unfortunately I forgot the link, but you can easily google it out. In short words, nothing in your classes which has an import to *.struts or javax.http.* should even know anything about the database or that there is a database. Yo

RE: tag within tag

2005-09-24 Thread rahul
thanks for the help see inline comments > -Original Message- > From: Sławek Tuleja [mailto:[EMAIL PROTECTED] > Sent: Saturday, September 24, 2005 1:57 PM > To: Struts Users Mailing List > Subject: Re: tag within tag > > > rahul wrote: > > >Hi all, > > > >Can anyone tell me how to us

Re: tag within tag

2005-09-24 Thread Sławek Tuleja
rahul wrote: Hi all, Can anyone tell me how to use tag inside I tried it like: but its not working, it is generating the following html http://localhost:8080/someAction.do?id=">My Desc what's the correct way of doing this? --RahulJoshi

Re: Submit form with and

2005-09-24 Thread Jason Lea
I like the tag due to the ability to have markup inside the button, except that it is no use because IE doesn't follow the standard. You can use with fancy html in here like bold for example which makes nice buttons with mark-up and stuff. You can have several of these type="submit" bu

Re: Struts action servlet mapping, getPathInfo() returns null

2005-09-24 Thread emre akbas
Thank you Dave. I'm afraid predefined mapping schemes like /do/admin/*/*" and "/do/admin/*/*/* won't work for me since I want to implement a generic file server. I cannot know the length of the URL nor its number of tokens separated with "/". Actually, I have written such a fileserver using plain o

tag within tag

2005-09-24 Thread rahul
Hi all, Can anyone tell me how to use tag inside I tried it like: but its not working, it is generating the following html http://localhost:8080/someAction.do?id=">My Desc what's the correct way of doing this? --RahulJoshi

xhtml 1.1 strict & lang attributes

2005-09-24 Thread Xavier Vanderstukken
In the top on my jsp page : The generated html page looks like that : http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en"> --> 2lang attributes and the w3c validation fails : /Result: Failed validation, 1 error / / Error /Line 8 column 48/: there is no attribute "lang"./ /|http