|
Re: HttpServletRequest cannot be resolved to a type [message #869482 is a reply to message #869473] |
Thu, 03 May 2012 13:06 |
Rüdiger Herrmann Messages: 335 Registered: July 2009 |
Senior Member |
|
|
Sean,
if with 'importing' you refer to specifying OSGi package-imports, then
you'll also want to import javax.servlet.http. This is the package where
HttpServletRequest is in.
HTH
Rüdiger
On 03.05.2012 14:57, Sean Gilley wrote:
> Maybe this isn't related to RAP, but the solutions I've tried from the
> web don't work for one reason or another, and I have a feeling I'm
> missing something obvious. I'm hoping someone can just answer the
> question and I can get this handled.
>
> I'm trying to add in the lines to read a parameter passed in via the
> URL. Right now, I've put in the following test lines:
>
> import org.eclipse.rwt.*;
> HttpServletRequest request = RWT.getRequest();
> String var1 = request.getParameter( "var1" );
> String var2 = request.getParameter( "var2" );
>
> I'm seeing the error:
>
> HttpServletRequest cannot be resolved to a type.
>
> I've done a lot of searching, but nothing I've found resolves the error.
> I suspect I'm just not importing the right thing, but from my searches
> it looks like the "right thing" is javax.servlet.*, but while that's in
> the build path, I can't import it.
>
> Any ideas?
>
> Thanks,
>
> Sean.
>
--
Rüdiger Herrmann
http://codeaffine.com
|
|
|
|
Powered by
FUDForum. Page generated in 0.03748 seconds