|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
WicketSessionFilter setupWhats wrong with this setup
<?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <display-name>upload</display-name> <filter> <filter-name>WicketSessionFilter</filter-name> <filter-class>org.apache.wicket.protocol.http.servlet.WicketSessionFilter</filter-class> <init-param> <param-name>filterName</param-name> <param-value>wicket.upload</param-value> </init-param> </filter> <filter-mapping> <filter-name>WicketSessionFilter</filter-name> <url-pattern>/servlet/FileUploadServlet/*</url-pattern> </filter-mapping> <servlet> <description>Servlet for file uploads</description> <display-name>File Upload Servlet</display-name> <servlet-name>FileUploadServlet</servlet-name> <servlet-class>se.edgesoft.FileUploadServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>FileUploadServlet</servlet-name> <url-pattern>/servlet/FileUploadServlet</url-pattern> </servlet-mapping> <filter> <filter-name>wicket.upload</filter-name> <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class> <init-param> <param-name>applicationClassName</param-name> <param-value>se.edgesoft.WicketApplication</param-value> </init-param> </filter> <filter-mapping> <filter-name>wicket.upload</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> </web-app> |
|
|
Re: WicketSessionFilter setupAny hints on why you're asking?
Mathias Nilsson wrote: > Whats wrong with this setup > > <?xml version="1.0" encoding="ISO-8859-1"?> > <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLoc............ > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: WicketSessionFilter setupYes, sorry.
I want to access Wicket Session in my FileUploadServlet. |
|
|
Re: WicketSessionFilter setupAnd right now I'll get an error if I call Session.get() in the servlet.
|
|
|
Re: WicketSessionFilter setupMathias,
This sounds similar to what I wrote on http://cwiki.apache.org/WICKET/springbean-outside-wicket.html. Its not clear from the javadoc, but I suspect that WicketSessionFilter also requires access to a surrounding normal Wicket filter. If I had access to the code of WicketSessionFilter here, it would be easy to check. Regards, Erik.
|
|
|
Re: WicketSessionFilter setupThanks,
I figured it out. It was an example in the wicket-examples and the HelloWorldServlet |
| Free embeddable forum powered by Nabble | Forum Help |