Re: Question about OGNL in JSP

2009-11-09 Thread Oscar Calderón
Ohh ok, thanks. I googled about that and i found that i can add a variable
or Object to page context with this:

pageContext.setAttribute("obj", obj);

Thanks.

2009/11/9 Musachy Barroso 

> That's because creating an object in a scriptlet doesn't mean it will
> be in the page context, you need to actually add it to the context.
>
> musachy
>
> On Mon, Nov 9, 2009 at 1:47 PM, Oscar Calderón 
> wrote:
> > Hi to all, this is my first question here. I have a doubt about the use
> of
> > OGNL expressions on JSP to access to an object that i declared in a
> > scriptlet in the same JSP.
> >
> > I have the following code:
> >
> > <%
> >   AnObject obj = request.getSession().getAttribute(AnObject.OBJECT_NAME);
> >
> > %>
> >
> > 
> >visitor
> >
> >
> >something else
> >
> >
> > I read in some books that when you call attr it searches in the page and
> > other scopes to find the variable that you specify, in my case obj, but
> it
> > doesn't find it. This is the right way to access to that object?
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Visita mi blog
http://codigo-java.com
http://aeblogs.com/uiq


Re: Question about OGNL in JSP

2009-11-09 Thread Musachy Barroso
That's because creating an object in a scriptlet doesn't mean it will
be in the page context, you need to actually add it to the context.

musachy

On Mon, Nov 9, 2009 at 1:47 PM, Oscar Calderón  wrote:
> Hi to all, this is my first question here. I have a doubt about the use of
> OGNL expressions on JSP to access to an object that i declared in a
> scriptlet in the same JSP.
>
> I have the following code:
>
> <%
>   AnObject obj = request.getSession().getAttribute(AnObject.OBJECT_NAME);
>
> %>
>
> 
>                                        visitor
>                                    
>                                    
>                                        something else
>                                    
>
> I read in some books that when you call attr it searches in the page and
> other scopes to find the variable that you specify, in my case obj, but it
> doesn't find it. This is the right way to access to that object?
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Question about OGNL in JSP

2009-11-09 Thread Oscar Calderón
Hi to all, this is my first question here. I have a doubt about the use of
OGNL expressions on JSP to access to an object that i declared in a
scriptlet in the same JSP.

I have the following code:

<%
   AnObject obj = request.getSession().getAttribute(AnObject.OBJECT_NAME);

%>


visitor


something else


I read in some books that when you call attr it searches in the page and
other scopes to find the variable that you specify, in my case obj, but it
doesn't find it. This is the right way to access to that object?


Re: advice on building front-end rapidly

2009-11-09 Thread Ronny Løvtangen
You could easily interactively debug from our IDE when running tomcat  
or other servers outside the IDE as well. As long as you start your  
server with some command line parameters.
e.g. -Xdebug - 
Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

I usually just run 'mvn tomcat:run'.


On Nov 9, 2009, at 9:44 PM, Bill Bohnenberger wrote:

I've used the standard edition for years, also. But for web projects  
I think
the enterprise edition is better because I can run my web server  
(Tomcat)
from within the IDE and therefore interactively debug servlet (in  
this case,

struts2) code.

- Bill

2009/11/9 Paweł Wielgus 


Hi all,
i have been using eclipse (standard edition) + amateras jsp/html/xml
editor for years now.
What i like in it best is full support for CTRL+Space.
It also has some kind of wysiwyg editor but i have never used it so i
can't say if it's ok.
You can check it out here:

http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor

Best greetings,
Paweł Wielgus.


2009/11/9  :
That's what I use (vim). Although my front ends are Java code and  
not

HTML/CSS.


Hand-coding takes longer but in my experience results in a better  
product

and also in my opinion makes you a better programmer.


With that said I partnered on a project with a guy who did the  
HTML front
end and he got good results with Dreamweaver. I then used vim to  
insert the

tag work, scriptlets, etc., into his files.


Erik


-Original Message-

From: Musachy Barroso 
Sent: Nov 9, 2009 12:24 PM
To: Struts Users Mailing List 
Subject: Re: advice on building front-end rapidly

Vi

just kidding, it is monday you know :)

On Sun, Nov 8, 2009 at 5:39 AM, Farshad Rabbani
 wrote:


Hello:



I am currently building all my JSPs using notepad.  It is a very  
slow
and tedius process to get the struts tags to align and show exactly  
as I

want and also to format the page so it looks good.  Is there a tool -
something that will allow me to quickly build well-designed pages by
providing me with a WYSIWYG interface where I can drag and drop  
struts
elements, format them and the page easily and then see what the  
outcome will
look like?  If there is such a tool that you are using (and it is  
easy to

configure etc. :-) ) can you please let me know.  If there isn't, how
exactly are you all building your pages?  I apologize if this is an  
absurd
question but I find myself spending unnecessary time on this  
issue.  Thank

you all in advance, any advice is very much appreciated.




Regards,

Farshad


_
Find the right PC with Windows 7 and Windows Live.


http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org





-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: advice on building front-end rapidly

2009-11-09 Thread Paweł Wielgus
Hi Bill,
You can also run Tomcat from eclipse standard edition,
there is Sysdeo TomcatEclipsePlugin for it.
Which i also use for a long time
and i also think that's more comfortable to run it from eclipse.

Best greetings,
Paweł Wielgus.

2009/11/9 Bill Bohnenberger :
> I've used the standard edition for years, also. But for web projects I think
> the enterprise edition is better because I can run my web server (Tomcat)
> from within the IDE and therefore interactively debug servlet (in this case,
> struts2) code.
>
> - Bill
>
> 2009/11/9 Paweł Wielgus 
>
>> Hi all,
>> i have been using eclipse (standard edition) + amateras jsp/html/xml
>> editor for years now.
>> What i like in it best is full support for CTRL+Space.
>> It also has some kind of wysiwyg editor but i have never used it so i
>> can't say if it's ok.
>> You can check it out here:
>>
>> http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor
>>
>> Best greetings,
>> Paweł Wielgus.
>>
>>
>> 2009/11/9  :
>> > That's what I use (vim). Although my front ends are Java code and not
>> HTML/CSS.
>> >
>> > Hand-coding takes longer but in my experience results in a better product
>> and also in my opinion makes you a better programmer.
>> >
>> > With that said I partnered on a project with a guy who did the HTML front
>> end and he got good results with Dreamweaver. I then used vim to insert the
>> tag work, scriptlets, etc., into his files.
>> >
>> > Erik
>> >
>> >
>> > -Original Message-
>> >>From: Musachy Barroso 
>> >>Sent: Nov 9, 2009 12:24 PM
>> >>To: Struts Users Mailing List 
>> >>Subject: Re: advice on building front-end rapidly
>> >>
>> >>Vi
>> >>
>> >>just kidding, it is monday you know :)
>> >>
>> >>On Sun, Nov 8, 2009 at 5:39 AM, Farshad Rabbani
>> >> wrote:
>> >>>
>> >>> Hello:
>> >>>
>> >>>
>> >>>
>> >>> I am currently building all my JSPs using notepad.  It is a very slow
>> and tedius process to get the struts tags to align and show exactly as I
>> want and also to format the page so it looks good.  Is there a tool -
>> something that will allow me to quickly build well-designed pages by
>> providing me with a WYSIWYG interface where I can drag and drop struts
>> elements, format them and the page easily and then see what the outcome will
>> look like?  If there is such a tool that you are using (and it is easy to
>> configure etc. :-) ) can you please let me know.  If there isn't, how
>> exactly are you all building your pages?  I apologize if this is an absurd
>> question but I find myself spending unnecessary time on this issue.  Thank
>> you all in advance, any advice is very much appreciated.
>> >>>
>> >>>
>> >>>
>> >>> Regards,
>> >>>
>> >>> Farshad
>> >>>
>> >>>
>> >>> _
>> >>> Find the right PC with Windows 7 and Windows Live.
>> >>>
>> http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009
>> >>
>> >>-
>> >>To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> >>For additional commands, e-mail: user-h...@struts.apache.org
>> >>
>> >
>> >
>> > -
>> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> > For additional commands, e-mail: user-h...@struts.apache.org
>> >
>> >
>>
>> -
>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>> For additional commands, e-mail: user-h...@struts.apache.org
>>
>>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: advice on building front-end rapidly

2009-11-09 Thread Bill Bohnenberger
I've used the standard edition for years, also. But for web projects I think
the enterprise edition is better because I can run my web server (Tomcat)
from within the IDE and therefore interactively debug servlet (in this case,
struts2) code.

- Bill

2009/11/9 Paweł Wielgus 

> Hi all,
> i have been using eclipse (standard edition) + amateras jsp/html/xml
> editor for years now.
> What i like in it best is full support for CTRL+Space.
> It also has some kind of wysiwyg editor but i have never used it so i
> can't say if it's ok.
> You can check it out here:
>
> http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor
>
> Best greetings,
> Paweł Wielgus.
>
>
> 2009/11/9  :
> > That's what I use (vim). Although my front ends are Java code and not
> HTML/CSS.
> >
> > Hand-coding takes longer but in my experience results in a better product
> and also in my opinion makes you a better programmer.
> >
> > With that said I partnered on a project with a guy who did the HTML front
> end and he got good results with Dreamweaver. I then used vim to insert the
> tag work, scriptlets, etc., into his files.
> >
> > Erik
> >
> >
> > -Original Message-
> >>From: Musachy Barroso 
> >>Sent: Nov 9, 2009 12:24 PM
> >>To: Struts Users Mailing List 
> >>Subject: Re: advice on building front-end rapidly
> >>
> >>Vi
> >>
> >>just kidding, it is monday you know :)
> >>
> >>On Sun, Nov 8, 2009 at 5:39 AM, Farshad Rabbani
> >> wrote:
> >>>
> >>> Hello:
> >>>
> >>>
> >>>
> >>> I am currently building all my JSPs using notepad.  It is a very slow
> and tedius process to get the struts tags to align and show exactly as I
> want and also to format the page so it looks good.  Is there a tool -
> something that will allow me to quickly build well-designed pages by
> providing me with a WYSIWYG interface where I can drag and drop struts
> elements, format them and the page easily and then see what the outcome will
> look like?  If there is such a tool that you are using (and it is easy to
> configure etc. :-) ) can you please let me know.  If there isn't, how
> exactly are you all building your pages?  I apologize if this is an absurd
> question but I find myself spending unnecessary time on this issue.  Thank
> you all in advance, any advice is very much appreciated.
> >>>
> >>>
> >>>
> >>> Regards,
> >>>
> >>> Farshad
> >>>
> >>>
> >>> _
> >>> Find the right PC with Windows 7 and Windows Live.
> >>>
> http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009
> >>
> >>-
> >>To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> >>For additional commands, e-mail: user-h...@struts.apache.org
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: advice on building front-end rapidly

2009-11-09 Thread Paweł Wielgus
Hi all,
i have been using eclipse (standard edition) + amateras jsp/html/xml
editor for years now.
What i like in it best is full support for CTRL+Space.
It also has some kind of wysiwyg editor but i have never used it so i
can't say if it's ok.
You can check it out here:
http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor

Best greetings,
Paweł Wielgus.


2009/11/9  :
> That's what I use (vim). Although my front ends are Java code and not 
> HTML/CSS.
>
> Hand-coding takes longer but in my experience results in a better product and 
> also in my opinion makes you a better programmer.
>
> With that said I partnered on a project with a guy who did the HTML front end 
> and he got good results with Dreamweaver. I then used vim to insert the tag 
> work, scriptlets, etc., into his files.
>
> Erik
>
>
> -Original Message-
>>From: Musachy Barroso 
>>Sent: Nov 9, 2009 12:24 PM
>>To: Struts Users Mailing List 
>>Subject: Re: advice on building front-end rapidly
>>
>>Vi
>>
>>just kidding, it is monday you know :)
>>
>>On Sun, Nov 8, 2009 at 5:39 AM, Farshad Rabbani
>> wrote:
>>>
>>> Hello:
>>>
>>>
>>>
>>> I am currently building all my JSPs using notepad.  It is a very slow and 
>>> tedius process to get the struts tags to align and show exactly as I want 
>>> and also to format the page so it looks good.  Is there a tool - something 
>>> that will allow me to quickly build well-designed pages by providing me 
>>> with a WYSIWYG interface where I can drag and drop struts elements, format 
>>> them and the page easily and then see what the outcome will look like?  If 
>>> there is such a tool that you are using (and it is easy to configure etc. 
>>> :-) ) can you please let me know.  If there isn't, how exactly are you all 
>>> building your pages?  I apologize if this is an absurd question but I find 
>>> myself spending unnecessary time on this issue.  Thank you all in advance, 
>>> any advice is very much appreciated.
>>>
>>>
>>>
>>> Regards,
>>>
>>> Farshad
>>>
>>>
>>> _
>>> Find the right PC with Windows 7 and Windows Live.
>>> http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009
>>
>>-
>>To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>For additional commands, e-mail: user-h...@struts.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
2009/11/9 Fernandes Celinio :
> Any idea ? Thanks

Dozen! First of all - remove all jars from server/default/lib - you
shouldn't mix your jars between apps. As I remember only jdbc drivers
should be shared. As you can see, you have duplicated ognl.jar and
freemarker.jar.

Put only those files in application lib folder:
commons-fileupload-1.2.1.jar
commons-io-1.3.2.jar
commons-logging-1.1.jar
freemarker-2.3.15.jar
log4j-1.2.12.jar
logkit-1.0.1.jar
ognl-2.7.3.jar
struts2-convention-plugin-2.1.8.jar
struts2-core-2.1.8.jar
xwork-core-2.1.6.jar

The minimal set needed for Convention plugin to work. You're mixing
Convention plugin with Codebehind plugin - either one can be used at
the same time.


Regards
-- 
Lukasz
http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-09 Thread Musachy Barroso
using the maven archetype to get an app setup is a good idea, it can
save you a lot of frustration.

musachy

On Mon, Nov 9, 2009 at 6:07 AM, reason  wrote:
>
> Hello Jozef
>
> Great bit of help, along with the other guys! After dozens of hours of
> frustration finally got the app running!
> Struts seem to have a steep learning curve but i'll get there in the end...
> ;)
>
> many thanks,
> kostis
>
>
> Hello,
>
> couple of things:
>
>
> --
> View this message in context: 
> http://old.nabble.com/struts-2-helloWorld-example-not-properly-working-in-tomcat-5.5-tp26240890p26266984.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-09 Thread Jozef Fiflik
Hello Kostis,

I am glad you finally got the app running!

Your first app, my first comments in this forum...  so I am double glad :-)

Jozef.


On Mon, Nov 9, 2009 at 2:07 PM, reason  wrote:

>
> Hello Jozef
>
> Great bit of help, along with the other guys! After dozens of hours of
> frustration finally got the app running!
> Struts seem to have a steep learning curve but i'll get there in the end...
> ;)
>
> many thanks,
> kostis
>
>
> Hello,
>
> couple of things:
>
>
> --
> View this message in context:
> http://old.nabble.com/struts-2-helloWorld-example-not-properly-working-in-tomcat-5.5-tp26240890p26266984.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


RE: Problem Sumitting Struts Form containing a drop down list

2009-11-09 Thread Kawczynski, David
I'd love to be able to help but am confused with what you are having
trouble with.  I think I heard something about wanting to modify the
action of a form based on the value selected in a drop-down.  I also
heard something about forwarding to another jsp page.  If you can
clarify your intent you may end up with a good pointer or two.
:)

> -Original Message-
> From: Hanen Ben Rhouma [mailto:hanen...@gmail.com] 
> Sent: Monday, November 09, 2009 12:49 PM
> To: Struts Users Mailing List
> Subject: Problem Sumitting Struts Form containing a drop down 
> list 
> 
> Please, I need your help: I've spent more than one week on trying to
figure out how to submit a struts 1 form containing a drop down list
(using optionsCollection). The problem is that the items in the
optionsCollection refer to the action assigned to the form while I need
that same action to submit my form and trigger the forward to another
jsp page.  I'm loosing my cool temper in front of such futility, any
ideas PLEASE???
Notice:  This e-mail message, together with any attachments, contains 
information of Merck & Co., Inc. (One Merck Drive, Whitehouse Station, New 
Jersey, USA 08889), and/or its affiliates Direct contact information for 
affiliates is available at http://www.merck.com/contact/contacts.html) that may 
be confidential, proprietary copyrighted and/or legally privileged. It is 
intended solely for the use of the individual or entity named on this message. 
If you are not the intended recipient, and have received this message in error, 
please notify us immediately by reply e-mail and then delete it from your 
system.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Problem Sumitting Struts Form containing a drop down list

2009-11-09 Thread Hanen Ben Rhouma
Please, I need your help: I've spent more than one week on trying to figure
out how to submit a struts 1 form containing a drop down list (using
optionsCollection). The problem is that the items in the optionsCollection
refer to the action assigned to the form while I need that same action to
submit my form and trigger the forward to another jsp page.


I'm loosing my cool temper in front of such futility, any ideas PLEASE???


Re: advice on building front-end rapidly

2009-11-09 Thread erikweber
That's what I use (vim). Although my front ends are Java code and not HTML/CSS.

Hand-coding takes longer but in my experience results in a better product and 
also in my opinion makes you a better programmer.

With that said I partnered on a project with a guy who did the HTML front end 
and he got good results with Dreamweaver. I then used vim to insert the tag 
work, scriptlets, etc., into his files.

Erik


-Original Message-
>From: Musachy Barroso 
>Sent: Nov 9, 2009 12:24 PM
>To: Struts Users Mailing List 
>Subject: Re: advice on building front-end rapidly
>
>Vi
>
>just kidding, it is monday you know :)
>
>On Sun, Nov 8, 2009 at 5:39 AM, Farshad Rabbani
> wrote:
>>
>> Hello:
>>
>>
>>
>> I am currently building all my JSPs using notepad.  It is a very slow and 
>> tedius process to get the struts tags to align and show exactly as I want 
>> and also to format the page so it looks good.  Is there a tool - something 
>> that will allow me to quickly build well-designed pages by providing me with 
>> a WYSIWYG interface where I can drag and drop struts elements, format them 
>> and the page easily and then see what the outcome will look like?  If there 
>> is such a tool that you are using (and it is easy to configure etc. :-) ) 
>> can you please let me know.  If there isn't, how exactly are you all 
>> building your pages?  I apologize if this is an absurd question but I find 
>> myself spending unnecessary time on this issue.  Thank you all in advance, 
>> any advice is very much appreciated.
>>
>>
>>
>> Regards,
>>
>> Farshad
>>
>>
>> _
>> Find the right PC with Windows 7 and Windows Live.
>> http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009
>
>-
>To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>For additional commands, e-mail: user-h...@struts.apache.org
>


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: advice on building front-end rapidly

2009-11-09 Thread Musachy Barroso
Vi

just kidding, it is monday you know :)

On Sun, Nov 8, 2009 at 5:39 AM, Farshad Rabbani
 wrote:
>
> Hello:
>
>
>
> I am currently building all my JSPs using notepad.  It is a very slow and 
> tedius process to get the struts tags to align and show exactly as I want and 
> also to format the page so it looks good.  Is there a tool - something that 
> will allow me to quickly build well-designed pages by providing me with a 
> WYSIWYG interface where I can drag and drop struts elements, format them and 
> the page easily and then see what the outcome will look like?  If there is 
> such a tool that you are using (and it is easy to configure etc. :-) ) can 
> you please let me know.  If there isn't, how exactly are you all building 
> your pages?  I apologize if this is an absurd question but I find myself 
> spending unnecessary time on this issue.  Thank you all in advance, any 
> advice is very much appreciated.
>
>
>
> Regards,
>
> Farshad
>
>
> _
> Find the right PC with Windows 7 and Windows Live.
> http://www.microsoft.com/Windows/pc-scout/laptop-set-criteria.aspx?cbid=wl&filt=200,2400,10,19,1,3,1,7,50,650,2,12,0,1000&cat=1,2,3,4,5,6&brands=5,6,7,8,9,10,11,12,13,14,15,16&addf=4,5,9&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:112009

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: advice on building front-end rapidly

2009-11-09 Thread Ronny Løvtangen


On Nov 9, 2009, at 5:53 PM, Bill Bohnenberger wrote:


 I suggest you avoid
using MS Word to generate HTML, however, otherwise you will find the  
"clean

it up" phase rather daunting :)


From what I remember, DreamWeaver has a "clean up Word HTML" menu item.
Says something about the ugliness of the Word generated HTML ;)


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Struts tags with Groovy meta programming

2009-11-09 Thread Ronny Løvtangen


How can I from a Struts tag access properties that is overridden by  
Groovy meta programming?

Example:

Bar.groovy
---

class Bar {
String baz
}



FooAction.groovy
-

class FooAction extends ActionSupport {

Bar bar

String retrieveBar() {
bar = new Bar(baz: "original value")
bar.metaClass.getBaz = {"new value"}
return SUCCESS
}
}

foo.jsp


<%@ taglib prefix="s" uri="/struts-tags" %>
Baz is: 




Which yields the output  "Baz is: original value"

I was expecting "Baz is: new value", which is true for this test:


class FooActionTest extends GroovyTestCase {

void testRetrieveBar() {
FooAction action = new FooAction()
action.retrieveBar()
assertEquals "new value", action.bar.baz
}
}


Any idea on how I from a Struts tag can invoke the overridden getBaz  
method instead of the original one?



Ronny

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: advice on building front-end rapidly

2009-11-09 Thread Bill Bohnenberger
Yes, this is frequently my workflow, also. I happen to use Dreamweaver
because I am familiar with it and have it and it generates fairly clean
HTML, but any such wysiwig editor would do I am sure. I suggest you avoid
using MS Word to generate HTML, however, otherwise you will find the "clean
it up" phase rather daunting :)

- Bill

On Mon, Nov 9, 2009 at 8:40 AM, Burton Rhodes wrote:

> I would agree with eclipse as well. However, if you are trying to do
> design too, the typical cycle is you create 'dumb HTML' pages in a
> wysiwyg editor. Then clean up the code in eclipse and convert to JSP.
> A wysiwyg editor will most likely create bloated code. So you will
> have to clean up quite a bit, add CSS, etc. This makes dev in eclipse
> easier becuase you have a base to start from.
>
> On 11/9/09, Fernandes Celinio  wrote:
> >
> > I would recommend Eclipse. www.eclipse.org
> >
> >
> >
> > -Message d'origine-
> > De : terry.gard...@sun.com [mailto:terry.gard...@sun.com]
> > Envoyé : lundi 9 novembre 2009 15:15
> > À : Struts Users Mailing List
> > Objet : Re: advice on building front-end rapidly
> >
> > http://netbeans.org
> >
> > On Nov 8, 2009, at 4:32 PM, Farshad Rabbani wrote:
> >
> >>
> >>
> >> Hi Dave,
> >>
> >>
> >>> Why?! At the very least why wouldn't you use something that can edit
> >>> and understand JSP, custom tags, etc.?
> >>
> >>
> >> So, what would your recommend as something to edit and understand JSP,
> >> custom tags etc.?
> >>
> >>
> >>
> >>> That's what themes and templates are for.
> >>
> >>
> >>
> >> Do you have any specific resources you can guide me to with regards to
> >> themes and templates?
> >>
> >>
> >>
> >> Thanks,
> >>
> >> Farshad
> >>
> >>
> >>
> >> _
> >> Windows 7: Unclutter your desktop.
> >> http://go.microsoft.com/?linkid=9690331&ocid=PID24727::T:WLMTAGL:ON:WL
> >> :en-US:WWL_WIN_evergreen:112009
> >
> >
> > -
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
> >
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: advice on building front-end rapidly

2009-11-09 Thread Burton Rhodes
I would agree with eclipse as well. However, if you are trying to do
design too, the typical cycle is you create 'dumb HTML' pages in a
wysiwyg editor. Then clean up the code in eclipse and convert to JSP.
A wysiwyg editor will most likely create bloated code. So you will
have to clean up quite a bit, add CSS, etc. This makes dev in eclipse
easier becuase you have a base to start from.

On 11/9/09, Fernandes Celinio  wrote:
>
> I would recommend Eclipse. www.eclipse.org
>
>
>
> -Message d'origine-
> De : terry.gard...@sun.com [mailto:terry.gard...@sun.com]
> Envoyé : lundi 9 novembre 2009 15:15
> À : Struts Users Mailing List
> Objet : Re: advice on building front-end rapidly
>
> http://netbeans.org
>
> On Nov 8, 2009, at 4:32 PM, Farshad Rabbani wrote:
>
>>
>>
>> Hi Dave,
>>
>>
>>> Why?! At the very least why wouldn't you use something that can edit
>>> and understand JSP, custom tags, etc.?
>>
>>
>> So, what would your recommend as something to edit and understand JSP,
>> custom tags etc.?
>>
>>
>>
>>> That's what themes and templates are for.
>>
>>
>>
>> Do you have any specific resources you can guide me to with regards to
>> themes and templates?
>>
>>
>>
>> Thanks,
>>
>> Farshad
>>
>>
>>  
>> _
>> Windows 7: Unclutter your desktop.
>> http://go.microsoft.com/?linkid=9690331&ocid=PID24727::T:WLMTAGL:ON:WL
>> :en-US:WWL_WIN_evergreen:112009
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: S2: how to deal with NULL value with s:text tag?

2009-11-09 Thread Musachy Barroso
that should be fixed, could you please open a jira ticket with the details?

http://issues.apache.org/struts/browse/WW

musachy

On Sun, Nov 8, 2009 at 8:31 AM, Burton Rhodes  wrote:
> Thanks for the reply.  There should definately be some sort of
> enhancment to the  tag.  I found a more susinct solution with
> the  tag - it doesn't display the "null" text if the
> value is null.  Anyone know if there is a request to add a "null"
> feature to ?  The  tag handles "null" without
> displaying "null" text.  Wonder why  is different?  I can't
> think of many situations where the UI calls for displaying "null" when
> a value being displayed is in fact null.
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %>
>  maxFractionDigits="0"/>
>
> 
>
>
> On Sat, Nov 7, 2009 at 4:02 PM, Samuel Robert
>  wrote:
>> Hi,
>>
>> I have had same problems when displaying dates.
>> The only solution I found was quite similar but maybe a little more flexible
>> since you can choose to display nothing:
>> 
>>
>> Samuel
>>
>> 2009/11/7 Burton Rhodes 
>>
>>> The following entry works fine, but when "xaction.contractPrice" is
>>> NULL it prints out "null" on my web page.
>>> >> value="#xaction.contractPrice"/>
>>>
>>> This sort of fixes the issue, but I would prefer to not display a "$0".
>>> >> value="%{#xaction.contractPrice==null ? 0 :
>>> #xaction.contractPrice}"/>
>>> This does not work as I get an error: "cannot forward object as a number"
>>> >> value="%{#xaction.contractPrice==null ? ' ' :
>>> #xaction.contractPrice}"/>
>>>
>>> Properties file entry:
>>> format.money = {0,number,\u00A4###,##0}
>>>
>>> Is there something simple I am missing or a better way to do this? Is
>>> there a "$!" like freemarker or a "default value" parameter?
>>>
>>> -
>>> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
>>> For additional commands, e-mail: user-h...@struts.apache.org
>>>
>>>
>>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: RV: migrating from 2.0 to 2.1.8: tag

2009-11-09 Thread Dave Newton

Nicola de Saint-Aubert wrote:

It seems that OGNL # operator isn't anymore interpreted while migrating from
2.0 to 2.1.8 (in a jboss applications server). The same code does work with
version 2.0, but none of OGNL # operator expressions are evaluated in my jsp
with 2.8. Is there something to configure in 2.8 to get it working ?


The "#" character was made optional (in *some* instances) sometime 
during the S2.1 process. IIRC there were a couple of use-cases where 
using it *didn't* work, but for the most part, I would have thought it 
would still work.


Under what conditions is it completely not working for you?

Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: S2: how to deal with NULL value with s:text tag?

2009-11-09 Thread Dave Newton

Burton Rhodes wrote:

Thanks for the reply.  There should definately be some sort of
enhancment to the  tag.  I found a more susinct solution with
the  tag - it doesn't display the "null" text if the
value is null.


If JSTL functionality is the same as the S2 tag then the JSTL tag should 
be preferred anyway.


Dave


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: JQuery UI datepicker doesn't work in a struts 2 ajax page

2009-11-09 Thread fireapple

Thanks, I tried your method and it didn't work out.

I also tried to put all JQuery library and Javascript block in my ajax
page(which is supposed to appear in the s:div). Still doesn't work. 

However, after adding executeScripts="true" in my , if I add
"alert('test');" into my ajax page, I can see it works, which means
Javascript works in my ajax page.

Is it possible this is a JQuery issue?


Sparecreative wrote:
> 
> When using jQuery via ajax you don¹t use jQuery¹s ready function, in you
> case the $(function(){.
> 
> You have two options. The simplest is to set a parameter (eg called
> ajaxRequest) in you action to true, when received via ajax and then change
> your javascript to have a s:if tag and if ajaxRequest is not true then
> include the $(function(){ line.
> 
> For example you javascript block would look like:
> 
> 
>> 
>>   $(function() {
>> 
>> $(".datepicker").datepicker({
>> changeMonth: true,
>> changeYear: true,
>> yearRange: '-5:+5',
>> showOn: 'button', buttonImageOnly: true, buttonImage:
>> 'images/calendar.gif'
>> });
>> 
>> });
>> 
>> 
> 
> 
> The option is to have either separate jsp pages or separate javascript
> blocks.
> 
> 

-- 
View this message in context: 
http://old.nabble.com/JQuery-UI-datepicker-doesn%27t-work-in-a-struts-2-ajax-page-tp26230811p26268920.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Trouble calling action methods from FreeMarker

2009-11-09 Thread Christopher Maloof
I'm just starting to use FreeMarker (2.3.15) with Struts 2.1.8.  It 
mostly works fine: my templates are retrieving bean information with no 
problem.  However, I can't figure out how to call methods defined in my 
action classes.


If my action class looks like this:

public class MyAction extends MyActionSupport {
   public String getMyValue() {
  return "hello";
   }
   public String myMethod() {
  return "world";
   }
}

Then these things work:
${myValue}  (indirect access to bean getter)
${myValue.toUpperCase()}  (method call on object)
<@s.property value="myMethod()"/>   (Struts tag calling a method)

But these things don't:
${myMethod()}
${getMyValue()}  (plain method calls as described in the docs)

Are public action methods not included in the data model for Freemarker, 
for some reason?  The Freemarker docs 
(http://freemarker.org/docs/dgui_template_exp.html#dgui_template_exp_methodcall) 
seem to indicate that they ought to be.


Thanks for any help,
Chris


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: advice on building front-end rapidly

2009-11-09 Thread Fernandes Celinio
 
I would recommend Eclipse. www.eclipse.org



-Message d'origine-
De : terry.gard...@sun.com [mailto:terry.gard...@sun.com] 
Envoyé : lundi 9 novembre 2009 15:15
À : Struts Users Mailing List
Objet : Re: advice on building front-end rapidly

http://netbeans.org

On Nov 8, 2009, at 4:32 PM, Farshad Rabbani wrote:

>
>
> Hi Dave,
>
>
>> Why?! At the very least why wouldn't you use something that can edit 
>> and understand JSP, custom tags, etc.?
>
>
> So, what would your recommend as something to edit and understand JSP, 
> custom tags etc.?
>
>
>
>> That's what themes and templates are for.
>
>
>
> Do you have any specific resources you can guide me to with regards to 
> themes and templates?
>
>
>
> Thanks,
>
> Farshad
>
>
>   
> _
> Windows 7: Unclutter your desktop.
> http://go.microsoft.com/?linkid=9690331&ocid=PID24727::T:WLMTAGL:ON:WL
> :en-US:WWL_WIN_evergreen:112009


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: advice on building front-end rapidly

2009-11-09 Thread Terry Gardner

http://netbeans.org

On Nov 8, 2009, at 4:32 PM, Farshad Rabbani wrote:




Hi Dave,


Why?! At the very least why wouldn't you use something that can  
edit and

understand JSP, custom tags, etc.?



So, what would your recommend as something to edit and understand  
JSP, custom tags etc.?





That's what themes and templates are for.




Do you have any specific resources you can guide me to with regards  
to themes and templates?




Thanks,

Farshad



_
Windows 7: Unclutter your desktop.
http://go.microsoft.com/?linkid=9690331&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009




smime.p7s
Description: S/MIME cryptographic signature


Re: struts 2 helloWorld example not properly working in tomcat 5.5

2009-11-09 Thread reason

Hello Jozef

Great bit of help, along with the other guys! After dozens of hours of
frustration finally got the app running!
Struts seem to have a steep learning curve but i'll get there in the end...
;)

many thanks,
kostis


Hello,

couple of things:


-- 
View this message in context: 
http://old.nabble.com/struts-2-helloWorld-example-not-properly-working-in-tomcat-5.5-tp26240890p26266984.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
It works if i use an exploded EAR and an exploded WAR.

However I get an HTTP 404 error on all actions I try to call.

Has there been any change in actions handling between Struts 2.0 and Struts 
2.1.8 ?




-Message d'origine-
De : Fernandes Celinio [mailto:cfernan...@sopragroup.com] 
Envoyé : lundi 9 novembre 2009 13:38
À : Struts Users Mailing List
Objet : RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on 
JBoss5.1.0: workaround ?


   web.xml full content : 


http://www.w3.org/2001/XMLSchema-instance"; 
xmlns="http://java.sun.com/xml/ns/javaee"; 
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; id="WebApp_ID" version="2.5">
  VenteEnLigneWebStruts2
  
index.html
index.htm
index.jsp
default.html
default.htm
default.jsp
  
  
  

/s
/WEB-INF/struts-tags.tld

  
  
  
struts2  
 

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

   
actionPackages
com.eni.dvtejb.clientStruts2.action
   
   
  
   
   struts2  
   /*
  
  
  

org.apache.struts2.tiles.StrutsTilesListener
  
  




 struts.xml full content :  

 http://struts.apache.org/dtds/struts-2.0.dtd";>
  







  



I do not have any jars in my WEB-INF/lib folder, everything points to the lib 
folder from the Struts 2.1.8 distribution, and I copied everything to 
K:\ENI\DeveloppementEJB3\jboss-5.1.0.GA.jdk6\server\default\lib

I removed a few plugins.

  Full content of 
K:\ENI\DeveloppementEJB3\jboss-5.1.0.GA.jdk6\server\default\lib : 
 

09/11/2009  13:36  .
09/11/2009  13:36  ..
26/12/2008  02:43   358ÿ273 antlr-2.7.2.jar
26/12/2008  02:32 4ÿ467 aopalliance-1.0.jar
26/12/2008  03:1237ÿ854 classworlds-1.1.jar
26/12/2008  02:03   188ÿ671 commons-beanutils-1.7.0.jar
05/01/2009  16:2791ÿ699 commons-chain-1.2.jar
26/12/2008  02:09   571ÿ259 commons-collections-3.2.jar
05/01/2009  19:36   148ÿ783 commons-digester-2.0.jar
26/12/2008  02:0557ÿ779 commons-fileupload-1.2.1.jar
26/12/2008  02:0587ÿ776 commons-io-1.3.2.jar
26/12/2008  03:00   245ÿ274 commons-lang-2.3.jar
26/12/2008  02:0338ÿ015 commons-logging-1.0.4.jar
26/12/2008  02:3944ÿ598 commons-logging-api-1.1.jar
26/12/2008  02:05   138ÿ956 commons-validator-1.3.1.jar
26/12/2008  02:36   184ÿ569 dwr-1.1.1.jar
26/12/2008  03:0077ÿ826 ezmorph-1.0.3.jar
01/05/2008  21:33   863ÿ477 freemarker-2.3.12.jar
20/07/2009  16:23   879ÿ259 freemarker-2.3.15.jar
03/06/2008  08:32   302ÿ352 jsf-facelets.jar
26/12/2008  03:00   124ÿ932 json-lib-2.1.jar
22/05/2009  15:38   393ÿ290 mail.jar
01/05/2008  21:33   168ÿ081 ognl-2.6.11.jar
23/07/2009  17:52   239ÿ803 ognl-2.7.3.jar
07/12/2007  06:08 1ÿ545ÿ954 ojdbc14.jar
22/09/2009  17:36   135ÿ820 org.apache.felix.bundlerepository-1.2.1.jar
22/09/2009  17:36   361ÿ268 org.apache.felix.framework-1.4.1.jar
22/09/2009  17:36   369ÿ804 org.apache.felix.main-1.4.1.jar
22/09/2009  17:3651ÿ390 org.apache.felix.shell-1.0.2.jar
22/09/2009  17:3612ÿ237 org.apache.felix.shell.tui-1.0.2.jar
26/12/2008  02:0365ÿ261 oro-2.0.8.jar
15/07/2009  17:20   289ÿ911 oval-1.31.jar
30/11/2003  18:45   106ÿ577 p6spy.jar
26/12/2008  03:12   219ÿ380 plexus-container-default-1.0-alpha-10.jar
26/12/2008  02:04   172ÿ956 plexus-utils-1.2.jar
01/07/2009  21:43   181ÿ259 sitemesh-2.4.2.jar
17/06/2009  21:25   488ÿ282 spring-beans-2.5.6.jar
17/06/2009  21:25   476ÿ940 spring-context-2.5.6.jar
17/06/2009  21:25   285ÿ491 spring-core-2.5.6.jar
26/12/2008  02:05   180ÿ924 spring-test-2.5.6.jar
09/06/2009  19:46   194ÿ577 spring-web-2.5.6.jar
26/12/2008  02:0526ÿ215 sslext-1.2-0.jar
05/01/2009  16:27   329ÿ441 struts-core-1.3.10.jar
23/09/2009  01:0429ÿ553 struts2-codebehind-plugin-2.1.8.jar
23/09/2009  01:0239ÿ265 struts2-config-browser-plugin-2.1.8.jar
23/09/2009  01:0761ÿ007 struts2-convention-plugin-2.1.8.jar
23/09/2009  00:49   756ÿ085 struts2-core-2.1.8.jar
23/09/2009  01:00 1ÿ728ÿ624 struts2-dojo-plugin-2.1.8.jar
23/09/2009  00:56 5ÿ820 struts2-dwr-plugin-2.1.8.jar
23/09/2009  01:17   540ÿ399 struts2-embeddedjsp-plugin-2.1.8.jar
23/09/2009  01:1017ÿ070 struts2-jasperreports-plugin-2.1.8.jar
23/09/2009  01:0945ÿ735 struts2-javatemplates-plugin-2.1.8.jar
23/09/2009  01:1110ÿ454 struts

RV: migrating from 2.0 to 2.1.8: tag

2009-11-09 Thread Nicola de Saint-Aubert


Hi, 

It seems that OGNL # operator isn't anymore interpreted while migrating from
2.0 to 2.1.8 (in a jboss applications server). The same code does work with
version 2.0, but none of OGNL # operator expressions are evaluated in my jsp
with 2.8. Is there something to configure in 2.8 to get it working ?

Best regards.


-Mensaje original-
De: Nicola de Saint-Aubert [mailto:nsaintaub...@lavanguardia.es] 
Enviado el: jueves, 05 de noviembre de 2009 18:48
Para: 'Struts Users Mailing List'
Asunto: migrating from 2.0 to 2.1.8:  tag

Hi, 

 

I just have migrated from 2.0 to 2.1.8 and can t achieve in including
StringUtils bean

in jsp.

It perfectly works with the 2.0 version. But switching to 2.1.8, the
expression using StringUtils are not evaluated and the log doesn't inform
anything wrong about that. Everything else works fine.

 

Is there something I missed in the migration ?
 

Class:

public class IndexAction  extends ActionSupport

implements SessionAware, ValidationAware {

.

public void setOrder(String order) {

this.order = order;

} // end setOrder()

 

public String getOrder() {

return order;

} // end getOrder()

 

.

}

 

JSP:



.


class="select"  >

.



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: sx:div and executeScript

2009-11-09 Thread Martin Gainty

/* for FF add a window.addEventListener */

window.addEventListener('DOMContentLoaded', init, false);

/* when DOMContentLoaded event is detected the init method is called */
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Mon, 9 Nov 2009 10:04:35 +0100
> Subject: Re: sx:div and executeScript
> From: irenezel...@gmail.com
> To: user@struts.apache.org
> 
> Thanks Martin, I wil try to do it. However, I'm using Firefox and not
> Windows.
> 
> Irene
> 
> 2009/11/9 Martin Gainty 
> 
> >
> > Irene-
> > the standard onLoad="javascript:function" doesnt seem to work (in IE at
> > least) so use this document.write to replace __ie_onload
> > /*information courtesy of dean edwards*/
> > http://dean.edwards.name/weblog/2006/06/again/
> >
> > <%@ page contentType="text/html; charset=UTF-8" %>
> > <%@ taglib prefix="s" uri="/struts-tags" %>
> > <%@ page language="java" contentType="text/html; charset=UTF-8"
> > pageEncoding="UTF-8"%>
> > 
> > 
> > This is the title
> > 
> > function init()
> > { // if set to true then mouseover a table cell will
> > alert('inside init()');
> > //highlight entire column (except sibling headings)
> > document.forms[0].Title.value='newTitle';
> > document.forms[0].Author.value='newAuthor';
> > document.forms[0].Ending.value='newEnding';
> > document.forms[0].Energy.value='newEnergy';
> > document.forms[0].Flatness.value='newFlatness';
> > document.forms[0].Validate.value='newValidate';
> > document.forms[0].Play.value='newPlay';
> > }
> > /** for Internet Explorer (using conditional comments) **/
> > /*...@cc_on @*/
> > /*...@if (@_win32)
> > document.write("