Re: [S2] Problem with list of submit buttons

2008-08-29 Thread James Neff
Ylva Degerfeldt wrote: Hi everyone, ... Maybe I could use the onclick attribute of s:submit but I don't know the syntax for sending a value to the Action there. (Isn't that javascript?) Can somebody please help me with this? Thanks in advance! /Ylva Are you asking on how to get

Re: [S2] Problem with list of submit buttons

2008-08-29 Thread James Neff
Dave Newton wrote: --- On Fri, 8/29/08, James Neff wrote: s:form id=myForm name=myForm action=OriginalAction theme=simple input type='button' onclick=myJavaScriptMethod(); value='button label here'/ /s:form In the head section: function myJavaScriptMethod

Re: Action as Welcome File

2008-08-21 Thread James Neff
Felipe Lorenz wrote: Hi.. Did you try change in web.xml file? Change from index.jsp to your_action.action!! i dont know if it work... Felipe. On Thu, Aug 21, 2008 at 7:24 AM, Roger [EMAIL PROTECTED] wrote: Sorry, I know that I've read about this here before, but I can't find the thread.

Re: return ajax text or xml

2008-08-21 Thread James Neff
cpanon wrote: Hello What is the best way to return simple text/html or an xml document from an action? Do I have to forward to a servlet and open an output stream and write the stream? Is there a simpler/better way? tia. I'm not sure what your asking but just recently I have added a

Struts 2 and Crystal Reports XI

2008-08-18 Thread James Neff
I am trying to find a good example of how to use Crystal Reports XI with Struts 2. I found this: http://www.jroller.com/njain/entry/crystal_reports_plus_struts But the code does not work. I need to see the struts.xml example and the author doesn't provide a list of required jar's. I see

Re: Struts 2 and Crystal Reports XI

2008-08-18 Thread James Neff
James Neff wrote: I am trying to find a good example of how to use Crystal Reports XI with Struts 2. I found this: http://www.jroller.com/njain/entry/crystal_reports_plus_struts But the code does not work. I need to see the struts.xml example and the author doesn't provide a list

expressions in s:a tag attributes

2008-06-18 Thread James Neff
I'm trying to add a tooltip to an s:a tag. I couldn't get the tooltip attribute to work so now I am trying to get a tooltip via an onmouseover Javascript. The Javascript code works and I get my tooltip but the text in the tooltip I want when I create the s:a tag. Here is my code:

Re: expressions in s:a tag attributes

2008-06-18 Thread James Neff
Lukasz Lenart wrote: Hi, Try s:iterator value=codes s:a href=# onmouseover=ddrivetip('%{codeDescription}', 300) onmouseout=hideddrivetip() s:property value=code/ /s:a /s:iterator Regards Thank you! --James -

[Struts2] Is tooltip possible for s:label?

2008-06-16 Thread James Neff
I'm trying to get an s:label tag to also have a tool-tip but it doesn't seem to be working. Here is the documentation I am trying to follow: http://struts.apache.org/2.0.11.1/docs/label.html Here is my code: s:iterator value=codes s:label

Is tooltip possible for s:label?

2008-06-16 Thread James Neff
I'm trying to get an s:label tag to also have a tool-tip but it doesn't seem to be working. Here is the documentation I am trying to follow: http://struts.apache.org/2.0.11.1/docs/label.html Here is my code: s:iterator value=codes s:label value=%{code}