Monday, April 25, 2011

Re: Nobody is using Struts1 with GWT successfully?

How to you communicate from your EntryPoint class to the Struts Action
class?
For example, I have:

In my Struts DispatchAction class:

ActionForward search(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response);

In my EntryPoint class:

public void onModuleLoad() {
.... some UI code here
.....
//call my struts:
search(.... );
}

How do you communicate between these two class? That's what I'm
missing here.
e.g. search() method takes 4 parameters, GWT EntryPoint class does not
give the same session handling like Struts. I have no idea what to put
in these parameters.

On Apr 24, 4:15 am, dmen <dmenou...@gmail.com> wrote:
> Since you are using Struts and interested in using GWT-EXT components,
> I would suggest to consider standard ExtJS.
>
> <div id="someid" />
>
> <script type="text/javascript">
>
>     new Ext.form.TextField({
>         renderTo: "someid"
>     });
>
> </script>
>
> To use GWT components you will have to create a module with an entry
> point per page, as Jeff wrote, and then include that to your HTML.
>
> <script type="text/javascript" src="your/module.nocache.js"></script>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment