Re: How to use doPost method in Formpanel submit button. How to map that servlet in web.xml.

2012-01-09 Thread Thad
You need the module name for your GWT app. For my module, MyModule,
use

/mymodule/AddNewUser

In my code, call

form.setAction(GWT.getModuleBaseURL() + "AddNewUser");

If you are using UiBinder, you can put something like this in your
ui.xml file


...


On Jan 9, 3:27 pm, "Pandy .k"  wrote:
> i got an idea about how to use GWT Form Panel in Eclipse...
>
> At Same time,
>
> My Class Name is: User.Java
> inside of "/src/sample/model/"
>
> My servlet name is  : AddUserSerivesImpl
> inside of "/src/sample/server/"
>
> My Main Class Name is  : Sample.java
> inside of "/src/sample/client/"
>
> from Sample.java class i am using Form Panel.
> which url i want to submit button Action.
> FormPanel form=new FormPanel();
> form.setAction="  ?         ";
>
> method is doPost.
>
> while,
>
> how to map that  servlet inside the web.xml
>
> 
> AddNewUser
> sample.server.AddUserServiceImpl
> 
> 
> AddNewUser
>  ? 
> 
>
> My Question is..
>
> 1) In that question mark symbol place i want to give same address?
>
> 2) inside the url address, which url address i want to give for map that
> servlet?
>
> 3) Inside the setAction, which url i want to give the call the servlet (
> AddUserServiceImpl.java). ?
>
> i tried this way..
>
> 1st Way
> inside the  setAction... form.setAction("AddNewUser");
> inside the url in web.xml.../AddNewUser
>
> 2nd Way...
> inside the  setAction... form.setAction("/AddNewUser");
> inside the url in web.xml.../AddNewUser
>
> 3rd Way..
> inside the  setAction... form.setAction("/AddNewUser");
> inside the url in
> web.xml.../sample/server/AddNewUser
>
> 4th Way..
> inside the  setAction... form.setAction("AddNewUserServiceImpl");
> inside the url in web.xml...
> /sample/server/AddNewUser 
>
> those 4's way i didn't add the value to the database. i have doubt first
> that action and servlet url is correct or not?
>
> pl sir, give the solution according  my project  how to give url inside
> the setAction and web.xml.
>
> By,
> pandy.k
> DEAS Technology Private Limited, Chennai.
> pandy.k0...@gmail.com
> +91- 9976743975

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to use doPost method in Formpanel submit button. How to map that servlet in web.xml.

2012-01-09 Thread Pandy .k
i got an idea about how to use GWT Form Panel in Eclipse...

At Same time,

My Class Name is: User.Java
inside of "/src/sample/model/"


My servlet name is  : AddUserSerivesImpl
inside of "/src/sample/server/"

My Main Class Name is  : Sample.java
inside of "/src/sample/client/"

from Sample.java class i am using Form Panel.
which url i want to submit button Action.
FormPanel form=new FormPanel();
form.setAction="  ? ";

method is doPost.

while,

how to map that  servlet inside the web.xml


AddNewUser
sample.server.AddUserServiceImpl


AddNewUser
 ? 


My Question is..

1) In that question mark symbol place i want to give same address?

2) inside the url address, which url address i want to give for map that
servlet?

3) Inside the setAction, which url i want to give the call the servlet (
AddUserServiceImpl.java). ?

i tried this way..

1st Way
inside the  setAction... form.setAction("AddNewUser");
inside the url in web.xml.../AddNewUser

2nd Way...
inside the  setAction... form.setAction("/AddNewUser");
inside the url in web.xml.../AddNewUser

3rd Way..
inside the  setAction... form.setAction("/AddNewUser");
inside the url in
web.xml.../sample/server/AddNewUser

4th Way..
inside the  setAction... form.setAction("AddNewUserServiceImpl");
inside the url in web.xml...
/sample/server/AddNewUser 

those 4's way i didn't add the value to the database. i have doubt first
that action and servlet url is correct or not?

pl sir, give the solution according  my project  how to give url inside
the setAction and web.xml.



By,
pandy.k
DEAS Technology Private Limited, Chennai.
pandy.k0...@gmail.com
+91- 9976743975

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: How to use doPost method in Formpanel submit button. How to map that servlet in web.xml.

2012-01-09 Thread Eric Metcalf
It's very well explained in the documentation for FormPanel.

http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/FormPanel.html

Where myFormHandler in "form.setAction("/myFormHandler");" is your
 in web.xml.


Declaring servlet url name and mapping is also very well documented
here: http://code.google.com/webtoolkit/doc/latest/tutorial/RPC.html#services



On Jan 8, 1:15 pm, "pandy .k"  wrote:
> hi, i need one help... i am using eclipse helios.. Google app
> engin ... i am developing one project. now i am stuck a problem.
> that's ... how to use FormPanel in GWT. at same time how to map that
> servlet in web.xml, which url i want to give in submit button action.
>
> just give a small example program 
>
> 1.create a FormPanle.
> 2.seturl path to servletclass in submit button action.
> 3.declare servlet url name..
> 4.map that servlet and give the url inside the servlet mapping in
> web.xml
>
> Two value to datastore using form panel. and retrive those
> value ...
>
> example of username password saving, and username, password checking
> and open a new page.
>
> pl i hope, after this post i will get a solution
>
> by,
> pandy..k
> DEAS Technology Private Limited.
> Chennai.
> pandy.k0...@gmail.com

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



How to use doPost method in Formpanel submit button. How to map that servlet in web.xml.

2012-01-08 Thread pandy .k
hi, i need one help... i am using eclipse helios.. Google app
engin ... i am developing one project. now i am stuck a problem.
that's ... how to use FormPanel in GWT. at same time how to map that
servlet in web.xml, which url i want to give in submit button action.

just give a small example program 

1.create a FormPanle.
2.seturl path to servletclass in submit button action.
3.declare servlet url name..
4.map that servlet and give the url inside the servlet mapping in
web.xml

Two value to datastore using form panel. and retrive those
value ...

example of username password saving, and username, password checking
and open a new page.

pl i hope, after this post i will get a solution

by,
pandy..k
DEAS Technology Private Limited.
Chennai.
pandy.k0...@gmail.com

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.