how to navigate from login page to home page in gxt
how to navigate from login page to home page in gxt
Hi,
I am new to GWT & gxt. I am confused on how to integrate a couple of pages in gxt application.
I am using GWT, gxt and JSon.
Here is my scenerio:
I had 2 pages.
1) Login page which is designed using the FormPanel - Used to authenticate user.
2) Home page containing gxt Basic Grid showing all the existing users.
Individually these pages are well displayed.
Now i want to integrate these pages. Once the user is authenticated in login page i want to display the home page. So how to redirect or display the home page in gxt.
You should create two seperate applications then.
The first one is using a servlet, to validate the user (within a database for example) and save this into the session.
The second application should check via a servlet for the userdata in the session.
This would be just the solution i would suggest, if u need to use 2 different html pages.
There are sure other ways to solve this, but all of them will use only ONE html page for all this stuff.
To do so, you will need to learn the MVC pattern first. Its a common pattern for web application design.
An Ext GWT application using this pattern is the mail example. (plus, it has a login panel)
You should read this blog, it sure will help you a lot http://christianposta.com/blog/?p=6
To do so, you will need to learn the MVC pattern first. Its a common pattern for web application design.
An Ext GWT application using this pattern is the mail example. (plus, it has a login panel)
You should read this blog, it sure will help you a lot http://christianposta.com/blog/?p=6
sorry for interrupting here, but i think what he wants to implement is a PURE html page for loggin in, i guess for saving cookie and remember me after the login it will start the GXT app.
I think it should be such problem.
@venu it is depending if you are using a framework like spring security or a manual implemented method. (from some secret source i know that this guy who is writing this blog has implemented a pure html page login with a GXT app )
sorry for interrupting here, but i think what he wants to implement is a PURE html page for loggin in,
Well, then why should he say
Can you send me an example or direct me to any web resource that shows how to do the below explained scenario using a single html page.
In a single html page you will need to use more then just html. It would be not very helpful, to use html page to login and then show the application on the same.
@venu,
there are lots of different ways to solve this problem:
1. way
2 html page
login - use html
application - use gxt in another html page
This should be the easy way, to build your application. You will need a good knowledge in session handling, html and gxt.
2. way
1 html page
login - use html
app - use gxt in the same page
Not that clever solution... in my opinion.
3. way
1 html page
login - use gxt
app - use gxt
This way you will need to learn MVC and all the stuff i linked above...
how to use formpanel in GWT to set the action servlet.I need servlet code please
how to use formpanel in GWT to set the action servlet.I need servlet code please
I also have the same problem.. I need the sample login application implemented with servlet in gwt. it may use ext or not.. if anybody have kindly post it.. it is urgent pls..Thank u in advance