GWT Servlet and Java Servlet

2009-05-07 Thread Mamadou Alimou DIALLO
Hello group,

I have some problem with GWT Servlet Session and Java Servlet Session. I
have stored a data in GWT Servlet Session like this:

HttpServletRequest request = this.getThreadLocalRequest();
HttpSession session = request.getSession(true);
session.setAttribute(key, data);

 but when I do

HttpSession session = request.getSession(true);
String userSecurityContext = (String )session.getAttribute(key);

from my JAva servlet to get my session data, the returned value was null.

My question is How can I get the data stored in GWT servlet session from
another Java Servlet.

Thanks in advance

dialloma

--~--~-~--~~~---~--~~
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 RPC filter

2009-04-19 Thread Mamadou Alimou DIALLO
I tried to do that but it's not possible. As doFilter method is overrided,
it can not possible to throw a custom Exception. But please, if you have an
example it will be better for me to send me it.

Thanks in advance
dialloma

2009/4/18 hazy1 matt.egyh...@gmail.com


 Yes, use the GWT RPC classes to return failure or exception to the
 client in the servlet filter.

 On Apr 17, 4:49 am, dialloma malim...@gmail.com wrote:
  Hello group,
 
  I would like to implement the method or class that will be called
  before each GWT-RPC. Is there any method in GWT to do that ?
 
  I was trying to implement J2EE Filter on GWT server side. But when I
  throw Exception in my filter throws Exception but my GWT-RPC call
  return success. Is there any method to force my GWT-RPC call to return
  onFailure method when I throw exception in my filter.
  Thanks
  dialloma
 



-- 
Cordialement,
DIALLO M. Alimou
http://dialloma.blogspot.com/
Cel. 00336 13 39 81 88

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



Problem with add method in HTMLPanel

2009-03-20 Thread Mamadou Alimou DIALLO
Hello group,

I have some problem in GWT with HTMLPanel. When I add a widget inside
HTMLPanel, GWT create a html DIV element before, add my widget inside it and
add this DIV in my HTMLPanel. For example:

HTMLPanel htmlPanel = new HTMLPanel(div id='MyId'  /div);
HTML html = new HTML(a href='myWidget' /a);
htmlPanel.add(html, MyId);

It generate this HTML Page:

DIV id=MyId
DIV class=gwt-HTML
A href=
http://localhost:/com.company.exemple.gwt.ExempleGWT/myWidget;/A
/DIV
/DIV


But I would like to that it generate for me a HTML code without gwt-HTML
element i.e:

*DIV id=MyId
A href=http://localhost:/com.company**
.exemple.gwt.ExempleGWT/myWidget/A
/DIV*


Please, Is it possible ti do that ? Hiw ? Thanks in advance
-- 
Cordialement,
DIALLO M. Alimou
http://dialloma.blogspot.com/
Cel. 00336 13 39 81 88

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



Change GWT locale dynamically

2009-03-19 Thread Mamadou Alimou DIALLO
Hello group,

I develop big entreprise application using GWT. My application is
multilanguage (FR, EN, GB). I would like to change dynamically the
application language automaticaly. For example when I lunch application, I
would like to detect the client language and automatically load a good
propertie file. For example when your browser is in French, I would like to
load my application in French. Please do you have an idea about this problem
?

The other think I would like to do is, when I click for example on a button
to change language, I would like to change language without reloading all of
my application (just the current context). How can I do this please ?

thanks in advance

-- 
Cordialement,
DIALLO M. Alimou
http://dialloma.blogspot.com/
Cel. 00336 13 39 81 88

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