This is the way only I also thought.

1. One url that is the main url for Login. And different modules for
different pages. right?
so I will get the different urls corresponding to different pages. for
example.

Login page. that is the entry point for the application.
http://localhost:8888/examples.Login/Login.html
Welcome.jsp that is  the different module which I have to create.
http://localhost:8888/examples.Welcome/Welcome.html .

When I click the login button I need to pass the
http://localhost:8888/examples.Welcome/Welcome.html. url .

am i right?

If it is this case, do I need to create this one as the entry point?
Or only One entry point and remaining everything I can do
in the Composite right?

Please correct me If I am wrong.

Thanks
Bhanu lakshmi


On Apr 7, 10:11 pm, Tony Strauss <[email protected]>
wrote:
> Just to be sure that I understand, you want two separate URLs and one
> GWT application?  I don't think that you can satisfy both
> requirements.  As far as I know, when you navigate to another page,
> even if that page references the same application, a new instance of
> the application will load on that page.
>
> I can think of the following alternatives for you:
> 1.) Only use one URL, as you've already found.
> 2.) Use two separate GWT applications (and thus get two URLs).  You
> can do this *and* share information between them, if you like.
> Essentially, your login application, on successful login, would move
> to another page, say welcome.jsp (using Window.Location.assign, for
> instance).  welcome.jsp would contain another GWT application.  This
> welcome.jsp GWT application either can:
> a.) Do RPC to the server in order to get information about the user
> (since the user now has a session on the server).
> b.) Have the server fill in any necessary information via JSP
> templating before being returned to the user.  See the Dictionary
> class:http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>
> Tony
> ---
> Tony Strauss
> Designing Patterns, 
> LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com
>
> On Apr 7, 8:32 am, bhanu <[email protected]> wrote:
>
>
>
> > Hi
>
> > My Intention is to create a small login and logout application. then
> > once I got to know the concept and everything,
> > I am planning to do quite big application in GWT. Because it seems to
> > be very interesting.  Now I am using GWT 1.5.3 version.
>
> > I am using Cypsal studio for creating modules. I have already created
> > the module for Login screen.
> > so now I have one Login.java and Login.gwt.xml and of course
> > Login.html.
>
> > Now the real problem starting for me.  I could run the application,
> > and could validate the fields. But I dont know how to connect
> > to the second page.
>
> > Now what I wanted to test is , once the user click OK, it should be
> > forwarded to next page(welcome page) with all session details. I can
> > tell you in JSP point of view.Login.jsp contains the login form. once
> > the user clicks ok, the form is redirected to welcome.jsp and shows
> > his username. and one link for logout. This is how can I implements in
> > GWT. One solution what I got is changing the <div id name>
> > say for example. RootPanel.get("slot").add(welcome panel). But my url
> > will always be the same. right?
>
> > I request you to give a small idea regarding the page forwarding.
>
> > Thanks
> > Bhanu lakshmi
>
> > On Apr 6, 11:53 pm, Tony Strauss <[email protected]>
> > wrote:
>
> > > In general, you need a module file (.gwt.xml) for each GWT module
> > > (anything with onModuleLoad()).
>
> > > Perhaps it would be best at this point if you posted your code and
> > > described in more detail what you're doing.  Which GWT version?  Are
> > > you testing in hosted mode?  With the embedded server?
>
> > > Tony
> > > ---
> > > Tony Strauss
> > > Designing Patterns, 
> > > LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com
>
> > > On Apr 5, 3:34 am, bhanu <[email protected]> wrote:
>
> > > > Hi,
>
> > > > Thanks sir for the reply.I need to use to use form.setAction
> > > > ("newpage"); Because it has to bring the values from login page to
> > > > newpage.
> > > > when I used form.setAction("newpage") I got the the runtime error
> > > > saying newpage-gwt.xml could not find in classpath. So my doubt is,
> > > > for each page
> > > > do I need to create the each module? Sir I am new to gwt. I read lots
> > > > of articles, But i could not find out any article saying forwarding
> > > > pages.
> > > > So I request you I may make many mistakes and foolish questions. sorry
> > > > for that.
>
> > > > thanks
> > > > Bhanu lakshmi.
>
> > > > On Apr 5, 10:32 am, Tony Strauss <[email protected]>
> > > > wrote:
>
> > > > > The Window.Location.assign() method allows you to move to a different
> > > > > page.http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/com/google/g...
>
> > > > > ---
> > > > > Tony Strauss
> > > > > Designing Patterns, 
> > > > > LLChttp://www.designingpatterns.comhttp://blogs.designingpatterns.com
>
> > > > > On Apr 4, 3:15 pm, bhanu <[email protected]> wrote:
>
> > > > > > Hi Friends,
>
> > > > > > I am new to GWT. I have been going through some tutorials and some
> > > > > > other stuffs. But I could not find out
> > > > > > any thing regarding to open new different page.  A Simple example is
> > > > > > Login screen. Once the user successfully
> > > > > > logged in, it should be able to open new page and should show his 
> > > > > > name
> > > > > > like Welcome username.
>
> > > > > > One I found out, using formpanel. form.setAction("\newpage"); I 
> > > > > > tried
> > > > > > to use. But i got some error when I tried to
> > > > > > click login button regarding module name not found in classpath. My
> > > > > > login screen has the entry point.
> > > > > > when I click login button, it should go to the new page .so that new
> > > > > > page should have a session details from the login screen.
>
> > > > > > can you please help me?
>
> > > > > > Thanks
> > > > > > Bhanu lakshmi- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to