You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by fireapple <ta...@gmail.com> on 2009/04/28 15:47:54 UTC

Any hint of JQuery on struts2 tutorial, thanks!

Because our team is using struts2 to develop the web application and I'm in
charge of the UI part, I have to restrict the UI to struts2.

I heard that JQuery is very popular and I love it. Also, I know some people
are using it in struts2. However, I couldn't find any related tutorial. Any
tutorial online or shall I buy some book about this issue?

Thank you very much!
-- 
View this message in context: http://www.nabble.com/Any-hint-of-JQuery-on-struts2-tutorial%2C-thanks%21-tp23277517p23277517.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by Dave Newton <ne...@yahoo.com>.
fireapple wrote:
> Because our team is using struts2 to develop the web application and I'm in
> charge of the UI part, I have to restrict the UI to struts2.
> 
> I heard that JQuery is very popular and I love it. Also, I know some people
> are using it in struts2. However, I couldn't find any related tutorial. Any
> tutorial online or shall I buy some book about this issue?

See my reply on JavaRanch. There's nothing particularly special about 
using jQuery with S2 if you're using "plain old jQuery" (no custom tags, 
etc.) although there's a plugin in the works that will handle simple 
use-cases.

Dave


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


Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by Wes Wannemacher <we...@wantii.com>.
Yeah, I had mentioned a while back (on another thread) that the new
plugin will not make an attempt to be a catchall solution the way the
first set of AJAX tags were. Right now, the plugin has form tags so
that you can use Struts' validation through AJAX. It's not complex and
can be done by hand, but the new plugin will be useful for those
mundane things, while leaving JQuery exposed to do the stuff it's good
for.

-Wes

On Thu, Apr 30, 2009 at 9:11 PM, Zoran Avtarovski
<zo...@sparecreative.com> wrote:
> We¹ve been using jQuery in a Struts2 project without any real issues. We¹re
> not using the plugin.
>
> If you¹ve got your head around struts and jQuery, I don¹t see what the
> problem is. Using jQuery with S2 is just like using jQuery anywhere. In fact
> it¹s quite liberating not to be limited by the predefined tags.
>
> Z.
>>
>>
>> Thanks, actually I want more, like examples from this link:
>> http://www.instantshift.com/2009/02/05/40-excellent-jquery-tutorials/
>>
>> Is it durable for me to learn how to implement them in struts2?
>> If there're online tutorial or book tutorial about this issue, it will be
>> fantastic for me
>>
>>
>> dusty wrote:
>>> >
>>> > Perhaps you are looking for some basic "tidbits" you may commonly use:
>>> >
>>> > a) Calendar pop-up
>>> > b) Ajax calls with JSON response from Struts
>>> > c) Simple element hide/show
>>> >
>>> > Can you build a list like this of things you need to build your UI or are
>>> > you looking more for skill building sources?
>>> >
>>> >
>>> > fireapple wrote:
>>>> >>
>>>> >> Thank you! It seems I have a lot to learn:-)
>>>> >>
>>>> >>
>>>> >> Wes Wannemacher wrote:
>>>>> >>>
>>>>> >>> On Tue, Apr 28, 2009 at 10:39 AM, fireapple <ta...@gmail.com>
>>>>> >>> wrote:
>>>>>> >>>>
>>>>>> >>>> Hi, Wes, on the table of content of the book, I didn't find anything
>>>>>> >>>> related
>>>>>> >>>> to JQuery and Struts2. Since JQuery is similar with JavaScript, can
> we
>>>>>> >>>> say
>>>>>> >>>> we can use JQuery in Struts2 as soon as we can use JavaScript in
>>>>>> >>>> Struts2?
>>>>>> >>>> Thank you. I'm a new programmer with stupid questions,:-)
>>>>>> >>>>
>>>>>> >>>>
>>>>>> >>>>
>>>>> >>>
>>>>> >>> JQuery is a JavaScript framework/library, so if you are using JQuery
>>>>> >>> with Struts2, then you are using JavaScript with Struts2. Depending on
>>>>> >>> how new you are to programming, there may be better places to start.
>>>>> >>> JQuery isn't similar to JavaScript, it is JavaScript in the same way
>>>>> >>> that Struts is Java. JQuery takes many of the things that are
>>>>> >>> difficult in JavaScript and makes them easier. You are still using
>>>>> >>> JavaScript, but rather than writing 20 lines of code, you write just a
>>>>> >>> few. Looking back through the ToC, I guess I don't make it clear that
>>>>> >>> there is JQuery coverage specifically, but as I mentioned before, the
>>>>> >>> examples so far are already using JQuery. It may be hard to pick
>>>>> >>> things up through the examples if you are not already experienced with
>>>>> >>> the other topics. The example I mentioned to earlier incorporates
>>>>> >>> Struts 2 with Spring, JPA, a generic DAO setup, JSON, Struts 2
>>>>> >>> Conventions and JQuery. If you've never used JPA or Spring, there
>>>>> >>> would be quite a bit thrown at you in one example.
>>>>> >>>
>>>>> >>> Depending on your goal, there are a few other routes you might want to
>>>>> >>> take before jumping into an advanced book. If you are looking to learn
>>>>> >>> more about Struts 2, my book is a follow-up to another book called
>>>>> >>> Struts 2 In Action that is a very well-written introduction and
>>>>> >>> reference on Struts 2 core topics. If you are already familiar with
>>>>> >>> Struts 2, but want to learn more about AJAX, then start by learning a
>>>>> >>> bit about JavaScript core and AJAX... Manning has another book
>>>>> >>> (http://manning.com/crane/) that has been a good seller for them.
>>>>> >>>
>>>>> >>> My book isn't meant to be a reference only on Struts 2 and AJAX. It is
>>>>> >>> meant to give examples and best practices for integration with many of
>>>>> >>> the popular topics that come up on this list. Plus, it will give
>>>>> >>> examples on more advanced topics that haven't come up yet, but will
>>>>> >>> (OSGi?)
>>>>> >>>
>>>>> >>> -Wes
>>>>> >>>
>>>>> >>>
>>>>> >>> --
>>>>> >>> Wes Wannemacher
>>>>> >>> Author - Struts 2 In Practice
>>>>> >>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>>>>> >>> http://www.manning.com/wannemacher
>>>>> >>>
>>>>> >>> ---------------------------------------------------------------------
>>>>> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>>> >>> For additional commands, e-mail: user-help@struts.apache.org
>>>>> >>>
>>>>> >>>
>>>>> >>>
>>>> >>
>>>> >>
>>> >
>>> >
>
>
>



-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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


RE: Any hint of JQuery on struts2 tutorial, thanks!

Posted by Andy <an...@hotmail.com>.
I agree with you 100%.  For me, same goes for DWR.

Andy


> Date: Fri, 1 May 2009 11:11:02 +1000
> Subject: Re: Any hint of JQuery on struts2 tutorial, thanks!
> From: zoran@sparecreative.com
> To: user@struts.apache.org
> 
> We¹ve been using jQuery in a Struts2 project without any real issues. We¹re
> not using the plugin.
> 
> If you¹ve got your head around struts and jQuery, I don¹t see what the
> problem is. Using jQuery with S2 is just like using jQuery anywhere. In fact
> it¹s quite liberating not to be limited by the predefined tags.
> 
> Z.
> > 
> > 
> > Thanks, actually I want more, like examples from this link:
> > http://www.instantshift.com/2009/02/05/40-excellent-jquery-tutorials/
> > 
> > Is it durable for me to learn how to implement them in struts2?
> > If there're online tutorial or book tutorial about this issue, it will be
> > fantastic for me
> > 
> > 
> > dusty wrote:
> >> > 
> >> > Perhaps you are looking for some basic "tidbits" you may commonly use:
> >> > 
> >> > a) Calendar pop-up
> >> > b) Ajax calls with JSON response from Struts
> >> > c) Simple element hide/show
> >> > 
> >> > Can you build a list like this of things you need to build your UI or are
> >> > you looking more for skill building sources?
> >> > 
> >> > 
> >> > fireapple wrote:
> >>> >> 
> >>> >> Thank you! It seems I have a lot to learn:-)
> >>> >> 
> >>> >> 
> >>> >> Wes Wannemacher wrote:
> >>>> >>> 
> >>>> >>> On Tue, Apr 28, 2009 at 10:39 AM, fireapple <ta...@gmail.com>
> >>>> >>> wrote:
> >>>>> >>>>
> >>>>> >>>> Hi, Wes, on the table of content of the book, I didn't find anything
> >>>>> >>>> related
> >>>>> >>>> to JQuery and Struts2. Since JQuery is similar with JavaScript, can
> we
> >>>>> >>>> say
> >>>>> >>>> we can use JQuery in Struts2 as soon as we can use JavaScript in
> >>>>> >>>> Struts2?
> >>>>> >>>> Thank you. I'm a new programmer with stupid questions,:-)
> >>>>> >>>>
> >>>>> >>>>
> >>>>> >>>>
> >>>> >>> 
> >>>> >>> JQuery is a JavaScript framework/library, so if you are using JQuery
> >>>> >>> with Struts2, then you are using JavaScript with Struts2. Depending on
> >>>> >>> how new you are to programming, there may be better places to start.
> >>>> >>> JQuery isn't similar to JavaScript, it is JavaScript in the same way
> >>>> >>> that Struts is Java. JQuery takes many of the things that are
> >>>> >>> difficult in JavaScript and makes them easier. You are still using
> >>>> >>> JavaScript, but rather than writing 20 lines of code, you write just a
> >>>> >>> few. Looking back through the ToC, I guess I don't make it clear that
> >>>> >>> there is JQuery coverage specifically, but as I mentioned before, the
> >>>> >>> examples so far are already using JQuery. It may be hard to pick
> >>>> >>> things up through the examples if you are not already experienced with
> >>>> >>> the other topics. The example I mentioned to earlier incorporates
> >>>> >>> Struts 2 with Spring, JPA, a generic DAO setup, JSON, Struts 2
> >>>> >>> Conventions and JQuery. If you've never used JPA or Spring, there
> >>>> >>> would be quite a bit thrown at you in one example.
> >>>> >>> 
> >>>> >>> Depending on your goal, there are a few other routes you might want to
> >>>> >>> take before jumping into an advanced book. If you are looking to learn
> >>>> >>> more about Struts 2, my book is a follow-up to another book called
> >>>> >>> Struts 2 In Action that is a very well-written introduction and
> >>>> >>> reference on Struts 2 core topics. If you are already familiar with
> >>>> >>> Struts 2, but want to learn more about AJAX, then start by learning a
> >>>> >>> bit about JavaScript core and AJAX... Manning has another book
> >>>> >>> (http://manning.com/crane/) that has been a good seller for them.
> >>>> >>> 
> >>>> >>> My book isn't meant to be a reference only on Struts 2 and AJAX. It is
> >>>> >>> meant to give examples and best practices for integration with many of
> >>>> >>> the popular topics that come up on this list. Plus, it will give
> >>>> >>> examples on more advanced topics that haven't come up yet, but will
> >>>> >>> (OSGi?)
> >>>> >>> 
> >>>> >>> -Wes
> >>>> >>> 
> >>>> >>> 
> >>>> >>> -- 
> >>>> >>> Wes Wannemacher
> >>>> >>> Author - Struts 2 In Practice
> >>>> >>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> >>>> >>> http://www.manning.com/wannemacher
> >>>> >>> 
> >>>> >>> ---------------------------------------------------------------------
> >>>> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>>> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>>> >>> 
> >>>> >>> 
> >>>> >>> 
> >>> >> 
> >>> >> 
> >> > 
> >> > 
> 
> 

_________________________________________________________________
Windows Live™ Hotmail®:…more than just e-mail.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_more_042009

Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by Zoran Avtarovski <zo...@sparecreative.com>.
We¹ve been using jQuery in a Struts2 project without any real issues. We¹re
not using the plugin.

If you¹ve got your head around struts and jQuery, I don¹t see what the
problem is. Using jQuery with S2 is just like using jQuery anywhere. In fact
it¹s quite liberating not to be limited by the predefined tags.

Z.
> 
> 
> Thanks, actually I want more, like examples from this link:
> http://www.instantshift.com/2009/02/05/40-excellent-jquery-tutorials/
> 
> Is it durable for me to learn how to implement them in struts2?
> If there're online tutorial or book tutorial about this issue, it will be
> fantastic for me
> 
> 
> dusty wrote:
>> > 
>> > Perhaps you are looking for some basic "tidbits" you may commonly use:
>> > 
>> > a) Calendar pop-up
>> > b) Ajax calls with JSON response from Struts
>> > c) Simple element hide/show
>> > 
>> > Can you build a list like this of things you need to build your UI or are
>> > you looking more for skill building sources?
>> > 
>> > 
>> > fireapple wrote:
>>> >> 
>>> >> Thank you! It seems I have a lot to learn:-)
>>> >> 
>>> >> 
>>> >> Wes Wannemacher wrote:
>>>> >>> 
>>>> >>> On Tue, Apr 28, 2009 at 10:39 AM, fireapple <ta...@gmail.com>
>>>> >>> wrote:
>>>>> >>>>
>>>>> >>>> Hi, Wes, on the table of content of the book, I didn't find anything
>>>>> >>>> related
>>>>> >>>> to JQuery and Struts2. Since JQuery is similar with JavaScript, can
we
>>>>> >>>> say
>>>>> >>>> we can use JQuery in Struts2 as soon as we can use JavaScript in
>>>>> >>>> Struts2?
>>>>> >>>> Thank you. I'm a new programmer with stupid questions,:-)
>>>>> >>>>
>>>>> >>>>
>>>>> >>>>
>>>> >>> 
>>>> >>> JQuery is a JavaScript framework/library, so if you are using JQuery
>>>> >>> with Struts2, then you are using JavaScript with Struts2. Depending on
>>>> >>> how new you are to programming, there may be better places to start.
>>>> >>> JQuery isn't similar to JavaScript, it is JavaScript in the same way
>>>> >>> that Struts is Java. JQuery takes many of the things that are
>>>> >>> difficult in JavaScript and makes them easier. You are still using
>>>> >>> JavaScript, but rather than writing 20 lines of code, you write just a
>>>> >>> few. Looking back through the ToC, I guess I don't make it clear that
>>>> >>> there is JQuery coverage specifically, but as I mentioned before, the
>>>> >>> examples so far are already using JQuery. It may be hard to pick
>>>> >>> things up through the examples if you are not already experienced with
>>>> >>> the other topics. The example I mentioned to earlier incorporates
>>>> >>> Struts 2 with Spring, JPA, a generic DAO setup, JSON, Struts 2
>>>> >>> Conventions and JQuery. If you've never used JPA or Spring, there
>>>> >>> would be quite a bit thrown at you in one example.
>>>> >>> 
>>>> >>> Depending on your goal, there are a few other routes you might want to
>>>> >>> take before jumping into an advanced book. If you are looking to learn
>>>> >>> more about Struts 2, my book is a follow-up to another book called
>>>> >>> Struts 2 In Action that is a very well-written introduction and
>>>> >>> reference on Struts 2 core topics. If you are already familiar with
>>>> >>> Struts 2, but want to learn more about AJAX, then start by learning a
>>>> >>> bit about JavaScript core and AJAX... Manning has another book
>>>> >>> (http://manning.com/crane/) that has been a good seller for them.
>>>> >>> 
>>>> >>> My book isn't meant to be a reference only on Struts 2 and AJAX. It is
>>>> >>> meant to give examples and best practices for integration with many of
>>>> >>> the popular topics that come up on this list. Plus, it will give
>>>> >>> examples on more advanced topics that haven't come up yet, but will
>>>> >>> (OSGi?)
>>>> >>> 
>>>> >>> -Wes
>>>> >>> 
>>>> >>> 
>>>> >>> -- 
>>>> >>> Wes Wannemacher
>>>> >>> Author - Struts 2 In Practice
>>>> >>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>>>> >>> http://www.manning.com/wannemacher
>>>> >>> 
>>>> >>> ---------------------------------------------------------------------
>>>> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> >>> For additional commands, e-mail: user-help@struts.apache.org
>>>> >>> 
>>>> >>> 
>>>> >>> 
>>> >> 
>>> >> 
>> > 
>> > 



Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by fireapple <ta...@gmail.com>.
Thanks, actually I want more, like examples from this link:
http://www.instantshift.com/2009/02/05/40-excellent-jquery-tutorials/

Is it durable for me to learn how to implement them in struts2?
If there're online tutorial or book tutorial about this issue, it will be
fantastic for me


dusty wrote:
> 
> Perhaps you are looking for some basic "tidbits" you may commonly use:
> 
> a) Calendar pop-up
> b) Ajax calls with JSON response from Struts
> c) Simple element hide/show
> 
> Can you build a list like this of things you need to build your UI or are
> you looking more for skill building sources?
> 
> 
> fireapple wrote:
>> 
>> Thank you! It seems I have a lot to learn:-)
>> 
>> 
>> Wes Wannemacher wrote:
>>> 
>>> On Tue, Apr 28, 2009 at 10:39 AM, fireapple <ta...@gmail.com>
>>> wrote:
>>>>
>>>> Hi, Wes, on the table of content of the book, I didn't find anything
>>>> related
>>>> to JQuery and Struts2. Since JQuery is similar with JavaScript, can we
>>>> say
>>>> we can use JQuery in Struts2 as soon as we can use JavaScript in
>>>> Struts2?
>>>> Thank you. I'm a new programmer with stupid questions,:-)
>>>>
>>>>
>>>>
>>> 
>>> JQuery is a JavaScript framework/library, so if you are using JQuery
>>> with Struts2, then you are using JavaScript with Struts2. Depending on
>>> how new you are to programming, there may be better places to start.
>>> JQuery isn't similar to JavaScript, it is JavaScript in the same way
>>> that Struts is Java. JQuery takes many of the things that are
>>> difficult in JavaScript and makes them easier. You are still using
>>> JavaScript, but rather than writing 20 lines of code, you write just a
>>> few. Looking back through the ToC, I guess I don't make it clear that
>>> there is JQuery coverage specifically, but as I mentioned before, the
>>> examples so far are already using JQuery. It may be hard to pick
>>> things up through the examples if you are not already experienced with
>>> the other topics. The example I mentioned to earlier incorporates
>>> Struts 2 with Spring, JPA, a generic DAO setup, JSON, Struts 2
>>> Conventions and JQuery. If you've never used JPA or Spring, there
>>> would be quite a bit thrown at you in one example.
>>> 
>>> Depending on your goal, there are a few other routes you might want to
>>> take before jumping into an advanced book. If you are looking to learn
>>> more about Struts 2, my book is a follow-up to another book called
>>> Struts 2 In Action that is a very well-written introduction and
>>> reference on Struts 2 core topics. If you are already familiar with
>>> Struts 2, but want to learn more about AJAX, then start by learning a
>>> bit about JavaScript core and AJAX... Manning has another book
>>> (http://manning.com/crane/) that has been a good seller for them.
>>> 
>>> My book isn't meant to be a reference only on Struts 2 and AJAX. It is
>>> meant to give examples and best practices for integration with many of
>>> the popular topics that come up on this list. Plus, it will give
>>> examples on more advanced topics that haven't come up yet, but will
>>> (OSGi?)
>>> 
>>> -Wes
>>> 
>>> 
>>> -- 
>>> Wes Wannemacher
>>> Author - Struts 2 In Practice
>>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>>> http://www.manning.com/wannemacher
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>> 
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Any-hint-of-JQuery-on-struts2-tutorial%2C-thanks%21-tp23277517p23295874.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by dusty <du...@yahoo.com>.
Perhaps you are looking for some basic "tidbits" you may commonly use:

a) Calendar pop-up
b) Ajax calls with JSON response from Struts
c) Simple element hide/show

Can you build a list like this of things you need to build your UI or are
you looking more for skill building sources?


fireapple wrote:
> 
> Thank you! It seems I have a lot to learn:-)
> 
> 
> Wes Wannemacher wrote:
>> 
>> On Tue, Apr 28, 2009 at 10:39 AM, fireapple <ta...@gmail.com>
>> wrote:
>>>
>>> Hi, Wes, on the table of content of the book, I didn't find anything
>>> related
>>> to JQuery and Struts2. Since JQuery is similar with JavaScript, can we
>>> say
>>> we can use JQuery in Struts2 as soon as we can use JavaScript in
>>> Struts2?
>>> Thank you. I'm a new programmer with stupid questions,:-)
>>>
>>>
>>>
>> 
>> JQuery is a JavaScript framework/library, so if you are using JQuery
>> with Struts2, then you are using JavaScript with Struts2. Depending on
>> how new you are to programming, there may be better places to start.
>> JQuery isn't similar to JavaScript, it is JavaScript in the same way
>> that Struts is Java. JQuery takes many of the things that are
>> difficult in JavaScript and makes them easier. You are still using
>> JavaScript, but rather than writing 20 lines of code, you write just a
>> few. Looking back through the ToC, I guess I don't make it clear that
>> there is JQuery coverage specifically, but as I mentioned before, the
>> examples so far are already using JQuery. It may be hard to pick
>> things up through the examples if you are not already experienced with
>> the other topics. The example I mentioned to earlier incorporates
>> Struts 2 with Spring, JPA, a generic DAO setup, JSON, Struts 2
>> Conventions and JQuery. If you've never used JPA or Spring, there
>> would be quite a bit thrown at you in one example.
>> 
>> Depending on your goal, there are a few other routes you might want to
>> take before jumping into an advanced book. If you are looking to learn
>> more about Struts 2, my book is a follow-up to another book called
>> Struts 2 In Action that is a very well-written introduction and
>> reference on Struts 2 core topics. If you are already familiar with
>> Struts 2, but want to learn more about AJAX, then start by learning a
>> bit about JavaScript core and AJAX... Manning has another book
>> (http://manning.com/crane/) that has been a good seller for them.
>> 
>> My book isn't meant to be a reference only on Struts 2 and AJAX. It is
>> meant to give examples and best practices for integration with many of
>> the popular topics that come up on this list. Plus, it will give
>> examples on more advanced topics that haven't come up yet, but will
>> (OSGi?)
>> 
>> -Wes
>> 
>> 
>> -- 
>> Wes Wannemacher
>> Author - Struts 2 In Practice
>> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
>> http://www.manning.com/wannemacher
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>> 
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Any-hint-of-JQuery-on-struts2-tutorial%2C-thanks%21-tp23277517p23290342.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by fireapple <ta...@gmail.com>.
Thank you! It seems I have a lot to learn:-)


Wes Wannemacher wrote:
> 
> On Tue, Apr 28, 2009 at 10:39 AM, fireapple <ta...@gmail.com>
> wrote:
>>
>> Hi, Wes, on the table of content of the book, I didn't find anything
>> related
>> to JQuery and Struts2. Since JQuery is similar with JavaScript, can we
>> say
>> we can use JQuery in Struts2 as soon as we can use JavaScript in Struts2?
>> Thank you. I'm a new programmer with stupid questions,:-)
>>
>>
>>
> 
> JQuery is a JavaScript framework/library, so if you are using JQuery
> with Struts2, then you are using JavaScript with Struts2. Depending on
> how new you are to programming, there may be better places to start.
> JQuery isn't similar to JavaScript, it is JavaScript in the same way
> that Struts is Java. JQuery takes many of the things that are
> difficult in JavaScript and makes them easier. You are still using
> JavaScript, but rather than writing 20 lines of code, you write just a
> few. Looking back through the ToC, I guess I don't make it clear that
> there is JQuery coverage specifically, but as I mentioned before, the
> examples so far are already using JQuery. It may be hard to pick
> things up through the examples if you are not already experienced with
> the other topics. The example I mentioned to earlier incorporates
> Struts 2 with Spring, JPA, a generic DAO setup, JSON, Struts 2
> Conventions and JQuery. If you've never used JPA or Spring, there
> would be quite a bit thrown at you in one example.
> 
> Depending on your goal, there are a few other routes you might want to
> take before jumping into an advanced book. If you are looking to learn
> more about Struts 2, my book is a follow-up to another book called
> Struts 2 In Action that is a very well-written introduction and
> reference on Struts 2 core topics. If you are already familiar with
> Struts 2, but want to learn more about AJAX, then start by learning a
> bit about JavaScript core and AJAX... Manning has another book
> (http://manning.com/crane/) that has been a good seller for them.
> 
> My book isn't meant to be a reference only on Struts 2 and AJAX. It is
> meant to give examples and best practices for integration with many of
> the popular topics that come up on this list. Plus, it will give
> examples on more advanced topics that haven't come up yet, but will
> (OSGi?)
> 
> -Wes
> 
> 
> -- 
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Any-hint-of-JQuery-on-struts2-tutorial%2C-thanks%21-tp23277517p23284541.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by Wes Wannemacher <we...@wantii.com>.
On Tue, Apr 28, 2009 at 10:39 AM, fireapple <ta...@gmail.com> wrote:
>
> Hi, Wes, on the table of content of the book, I didn't find anything related
> to JQuery and Struts2. Since JQuery is similar with JavaScript, can we say
> we can use JQuery in Struts2 as soon as we can use JavaScript in Struts2?
> Thank you. I'm a new programmer with stupid questions,:-)
>
>
>

JQuery is a JavaScript framework/library, so if you are using JQuery
with Struts2, then you are using JavaScript with Struts2. Depending on
how new you are to programming, there may be better places to start.
JQuery isn't similar to JavaScript, it is JavaScript in the same way
that Struts is Java. JQuery takes many of the things that are
difficult in JavaScript and makes them easier. You are still using
JavaScript, but rather than writing 20 lines of code, you write just a
few. Looking back through the ToC, I guess I don't make it clear that
there is JQuery coverage specifically, but as I mentioned before, the
examples so far are already using JQuery. It may be hard to pick
things up through the examples if you are not already experienced with
the other topics. The example I mentioned to earlier incorporates
Struts 2 with Spring, JPA, a generic DAO setup, JSON, Struts 2
Conventions and JQuery. If you've never used JPA or Spring, there
would be quite a bit thrown at you in one example.

Depending on your goal, there are a few other routes you might want to
take before jumping into an advanced book. If you are looking to learn
more about Struts 2, my book is a follow-up to another book called
Struts 2 In Action that is a very well-written introduction and
reference on Struts 2 core topics. If you are already familiar with
Struts 2, but want to learn more about AJAX, then start by learning a
bit about JavaScript core and AJAX... Manning has another book
(http://manning.com/crane/) that has been a good seller for them.

My book isn't meant to be a reference only on Struts 2 and AJAX. It is
meant to give examples and best practices for integration with many of
the popular topics that come up on this list. Plus, it will give
examples on more advanced topics that haven't come up yet, but will
(OSGi?)

-Wes


-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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


Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by fireapple <ta...@gmail.com>.
Hi, Wes, on the table of content of the book, I didn't find anything related
to JQuery and Struts2. Since JQuery is similar with JavaScript, can we say
we can use JQuery in Struts2 as soon as we can use JavaScript in Struts2?
Thank you. I'm a new programmer with stupid questions,:-)



Wes Wannemacher wrote:
> 
> On Tue, Apr 28, 2009 at 9:52 AM, Martin Gainty <mg...@hotmail.com>
> wrote:
>>
>> Struts2 in Practice book from manning
>>
>> http://www.manning.com/wannemacher
>>
>> feel free to Ping wes or myself offline for any
>> questions/comments/tutorials
>>
>> Thanks,
>> Martin Gainty
> 
> 
> Checking in! Did I hear my name?
> 
> Yeah, I have quite a bit of JQuery coverage, but it's a moving target.
> It is likely that we'll have a fair amount of JQuery integration
> within Struts by the time the book is published (coincidence?) If you
> join the MEAP program and read it as I go, there is at least one
> chapter already with a decent JQuery + Spring + JPA example.
> 
> -Wes
> 
> -- 
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Any-hint-of-JQuery-on-struts2-tutorial%2C-thanks%21-tp23277517p23278445.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


RE: Any hint of JQuery on struts2 tutorial, thanks!

Posted by Martin Gainty <mg...@hotmail.com>.
i worked in ohio once..some hard working folks there that need some training in
current technologies
I like the MEAP but i am still looking for the publication preview
comprehensive examples are a good idea..makes it easy to teach from

Martin Gainty 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents.
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: Tue, 28 Apr 2009 10:05:09 -0400
> Subject: Re: Any hint of JQuery on struts2 tutorial, thanks!
> From: wesw@wantii.com
> To: user@struts.apache.org
> 
> On Tue, Apr 28, 2009 at 9:52 AM, Martin Gainty <mg...@hotmail.com> wrote:
> >
> > Struts2 in Practice book from manning
> >
> > http://www.manning.com/wannemacher
> >
> > feel free to Ping wes or myself offline for any questions/comments/tutorials
> >
> > Thanks,
> > Martin Gainty
> 
> 
> Checking in! Did I hear my name?
> 
> Yeah, I have quite a bit of JQuery coverage, but it's a moving target.
> It is likely that we'll have a fair amount of JQuery integration
> within Struts by the time the book is published (coincidence?) If you
> join the MEAP program and read it as I go, there is at least one
> chapter already with a decent JQuery + Spring + JPA example.
> 
> -Wes
> 
> -- 
> Wes Wannemacher
> Author - Struts 2 In Practice
> Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> http://www.manning.com/wannemacher
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Windows Live™ SkyDrive™: Get 25 GB of free online storage.  
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_042009

Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by Wes Wannemacher <we...@wantii.com>.
On Wednesday 29 April 2009 11:14:08 am Doug Pham wrote:
> Wes,
>      When will the book be ready?  About a year ago, I tried the basic S2,
> Spring & Hibernate and I have the hardest of time to do things as the
> connection keep getting closed before I could update things.  Hopefully,
> your book will help me understand why that was.  I have been using S2,
> Hibernate & Sitemesh which is doing OK for me.  Hopefully, you have some
> unit testing setup and strategy as that is my main weakness.
>

I've been ramping back up working on the book, so if you are in the 
publisher's early access program, you should start seeing new chapters soon. 

When you say Hibernate, are you using it as a JPA provider? I'd have to look, 
but I think I am using Hibernate in the book as the JPA provider (it's either 
Hibernate or OpenJPA). Are you currently using Spring? I can't really tell if 
you are saying that you are or aren't. If so, make sure you add the 
OpenEntityManagerInView filter (I think that's what it is called). The example 
app I have up on the google code site for the book has a set of spring configs 
that should work, although I don't know if it is the one I use with pooling. 
Let me know and I can post one that uses commons-dbcp for connection pooling. 
If you aren't using Spring there is an opensessioninview interceptor (or is it 
a filter?) in the struts wiki somewhere. Although Hibernate's session and 
JPA's EntityManager aren't exactly identical, the need for something to keep 
the session/entitymanager open while the view is rendering remains. 

Anyhow, I will have a section on unit testing in the book. I plan to cover 
basics of JUnit, but to give more details on the mock classes and helper 
classes like StrutsTestCase that can be helpful if you need the dispatcher 
initialized. 

-Wes

-- 

Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher


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


Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by Doug Pham <do...@yahoo.com>.
Wes,
     When will the book be ready?  About a year ago, I tried the basic S2, Spring & Hibernate and I have the hardest of time to do things as the connection keep getting closed before I could update things.  Hopefully, your book will help me understand why that was.  I have been using S2, Hibernate & Sitemesh which is doing OK for me.  Hopefully, you have some unit testing setup and strategy as that is my main weakness.

Cheers,
Doug

--- On Tue, 4/28/09, Wes Wannemacher <we...@wantii.com> wrote:
From: Wes Wannemacher <we...@wantii.com>
Subject: Re: Any hint of JQuery on struts2 tutorial, thanks!
To: "Struts Users Mailing List" <us...@struts.apache.org>
Date: Tuesday, April 28, 2009, 9:05 AM

On Tue, Apr 28, 2009 at 9:52 AM, Martin Gainty <mg...@hotmail.com>
wrote:
>
> Struts2 in Practice book from manning
>
> http://www.manning.com/wannemacher
>
> feel free to Ping wes or myself offline for any
questions/comments/tutorials
>
> Thanks,
> Martin Gainty


Checking in! Did I hear my name?

Yeah, I have quite a bit of JQuery coverage, but it's a moving target.
It is likely that we'll have a fair amount of JQuery integration
within Struts by the time the book is published (coincidence?) If you
join the MEAP program and read it as I go, there is at least one
chapter already with a decent JQuery + Spring + JPA example.

-Wes

-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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




      

Re: Any hint of JQuery on struts2 tutorial, thanks!

Posted by Wes Wannemacher <we...@wantii.com>.
On Tue, Apr 28, 2009 at 9:52 AM, Martin Gainty <mg...@hotmail.com> wrote:
>
> Struts2 in Practice book from manning
>
> http://www.manning.com/wannemacher
>
> feel free to Ping wes or myself offline for any questions/comments/tutorials
>
> Thanks,
> Martin Gainty


Checking in! Did I hear my name?

Yeah, I have quite a bit of JQuery coverage, but it's a moving target.
It is likely that we'll have a fair amount of JQuery integration
within Struts by the time the book is published (coincidence?) If you
join the MEAP program and read it as I go, there is at least one
chapter already with a decent JQuery + Spring + JPA example.

-Wes

-- 
Wes Wannemacher
Author - Struts 2 In Practice
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
http://www.manning.com/wannemacher

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


RE: Any hint of JQuery on struts2 tutorial, thanks!

Posted by Martin Gainty <mg...@hotmail.com>.
Struts2 in Practice book from manning

http://www.manning.com/wannemacher

feel free to Ping wes or myself offline for any questions/comments/tutorials

Thanks,
Martin Gainty 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then we ask politely to report. Each unauthorized forwarding or manufacturing of a copy is inadmissible. This message serves only for the exchange of information and has no legal binding effect. Due to the easy manipulation of emails we cannot take responsibility over the the contents.
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: Tue, 28 Apr 2009 06:47:54 -0700
> From: taizhang1981@gmail.com
> To: user@struts.apache.org
> Subject: Any hint of JQuery on struts2 tutorial, thanks!
> 
> 
> Because our team is using struts2 to develop the web application and I'm in
> charge of the UI part, I have to restrict the UI to struts2.
> 
> I heard that JQuery is very popular and I love it. Also, I know some people
> are using it in struts2. However, I couldn't find any related tutorial. Any
> tutorial online or shall I buy some book about this issue?
> 
> Thank you very much!
> -- 
> View this message in context: http://www.nabble.com/Any-hint-of-JQuery-on-struts2-tutorial%2C-thanks%21-tp23277517p23277517.html
> Sent from the Struts - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

_________________________________________________________________
Windows Live™ Hotmail®:…more than just e-mail.
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_more_042009