GWT + OpenID authentication

2011-08-27 Thread Hareen Bejjanki
Can any one please provide me a procedure to get the google's OpenID
authentication using GWT's in Eclipse...

-- 
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: GWT + HttpServlets

2011-08-26 Thread Hareen Bejjanki
Hi Karim Duran

I don't know any thing about GWT servlet.
Could you please provide me an elaborated example for the same, and where
can I get the plugins for it.

On Thu, Aug 25, 2011 at 10:46 PM, karim duran karim.du...@gmail.com wrote:

 Hi Hareen,

 Could you be more precise. I don't understand what you mean 

 What do you want to do, generate dynamically an image with a servlet ?
 What kind of servlet ? a J2EE standard servlet or a GWT servlet ?

 So, imagine that in your WebApp, your user is logged and you have store
 userID in session as a String.
 Imagine you use doGet(HttpServletRequest req, HttpServletResponse resp)
 servlet method (GET HTTP action)

 1) to retrieve information in session in standard J2EE servlet class just
 do that :
 String userID = (String)req.getSession().getAttribute(userID); // return
 the userID already stored in session

 So, imagine that you get imageID as a request parameter named imageid
 2) to serve an image from your servlet just do that :
 String imageID = req.getParameter(imageid); // retrieve the request
 parameter imageid
 resp.setContentType(image/png); // you want to serve a PNG image

 3) proceed to serve the image in HTTP outputstream
 .../.. get image data in byte array byte[] imageBytes .../...
 ServletOutputStream out = resp.getOutputStream();
 out.write(imageBytes);
 out.close();

 4) Register your servlet getimage in web.xml in order the J2EE container
 knows it exists

 5) call your servlet with a url link in your web page :
 /getimage?imageid=123456

 That's all.

 If you send me more information about what you want to do, i can help you
 more.
 GWT servlet extends standard HttpServlet, so methods are still available.

 I hope it helps.

 Regards.
 Karim Duran



 2011/8/25 Hareen Bejjanki bejjanki.har...@gmail.com

 Can any one please suggest me a way to link an image to a HttpServlet,
 where I can use sessions, requests and etc..

 --
 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.


  --
 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.




-- 
Thanks  Regards
Hareen Bejjanki

-- 
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.



GWT + HttpServlets

2011-08-25 Thread Hareen Bejjanki
Can any one please suggest me a way to link an image to a HttpServlet,
where I can use sessions, requests and etc..

-- 
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.



GWT + JSP

2011-08-19 Thread Hareen Bejjanki
I am including a gwt html page in a jsp page using %@ include
file=x.html %, which is inside a form tag.
This x.html is a gwt html page, where I am adding one textbox.
When the form is been submitted, how to get the gwt textBox value in
the action page?

-- 
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.



unable to set name attribute for TextBox

2011-08-19 Thread Hareen Bejjanki
TextBox textBox = new TextBox();
textBox.setName(name);
or
textBox.getElement().setAttribute(name, name);
is not working,
i mean when I am executing it in a debug mode I am expecting something
like
 input class=gwt-TextBox type=text name=name , but I can see
only,
 input class=gwt-TextBox type=text 
can any one help me to set the name attribute..

-- 
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: GWT + JSP

2011-08-19 Thread Hareen Bejjanki
I have tried it.
Thank you very much

On Fri, Aug 19, 2011 at 8:22 PM, BM bhushan.ma...@gmail.com wrote:

 My first question would be why would you do something like that? The
 whole idea of GWT is have your application AJAX functionality.

 You can do something like this.

 Instead of including x.html in your jsp page, why can't you rename
 your x.html to x.jsp and change the the welcome-file-list entry in
 web.xml to use x.jsp instead?

 Now by this way you can get the value of gwt texbox directly in your
 entry point class as textBox.getValue()


 On Aug 19, 12:42 am, Hareen Bejjanki bejjanki.har...@gmail.com
 wrote:
  I am including a gwt html page in a jsp page using %@ include
  file=x.html %, which is inside a form tag.
  This x.html is a gwt html page, where I am adding one textbox.
  When the form is been submitted, how to get the gwt textBox value in
  the action page?

 --
 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.




-- 
Thanks  Regards
Hareen Bejjanki

-- 
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.