xhtml 1.1 strict lang attributes

2005-09-24 Thread Xavier Vanderstukken
In the top on my jsp page : html:html xhtml=true locale=true The generated html page looks like that : html xmlns=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/:

bean:write tag within html:link tag

2005-09-24 Thread rahul
Hi all, Can anyone tell me how to use bean:write tag inside html:href I tried it like: logic:iterate id=element name=myBeanList html:link href=/someAction.do?id=bean:write name='element' property='id bean:write name=element property=idDescription / /html:link

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 old

Re: Submit form with html:submit and html:button

2005-09-24 Thread Jason Lea
I like the button 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 button type=submit ... with ifancy/i html in here like bbold/b for example/button which makes nice buttons with mark-up and stuff. You

Re: bean:write tag within html:link tag

2005-09-24 Thread Sławek Tuleja
rahul wrote: Hi all, Can anyone tell me how to use bean:write tag inside html:href I tried it like: logic:iterate id=element name=myBeanList html:link href=/someAction.do?id=bean:write name='element' property='id bean:write name=element property=idDescription /

RE: bean:write tag within html:link 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: bean:write tag within html:link tag rahul wrote: Hi all, Can anyone tell me how

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

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 tiles:insert method I'm not quite following what you mean there. Are you saying you have a page with the following? tiles:insert

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.

[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) already

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 : ... head script type=text/javascript src=script.js/script /head But nothing happens whey I run the JSP file. It should show a window dialog

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 : ... head script type=text/javascript

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 html:form... 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

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

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 the

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 file

Re: [OT] How to make span style= float: right;/ 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). tr span style= float;right; / td logic:iterate ..

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

Re: bean:write tag within html:link 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: html:link jsp:attribute name=href bean:write name='element' property='id'/

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 : html:html xhtml=true locale=true The generated html page looks like that :

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

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

multipart dynavalidator form

2005-09-24 Thread raghu
How do you use dynavalidator forms with form-property name=someFile type=org.apache.struts.upload.FormFile / 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