Re: unit testing with junit + spring + struts2, NullPointerException with HttpServletRequest

2011-10-15 Thread dan.zheng
I think the action will not affect the unit test process,it only part of the
convention classloader getresource,the workaround is
http://stackoverflow.com/questions/7734695/couldnt-get-resource-paths-for-class-path-resource

hope it will be effective

On Sat, Oct 15, 2011 at 3:13 AM, jaredtims  wrote:

> So will the Struts2 jUnit Plugin work with the Struts2 Convention Plugin?
>  I
> keep getting errrors such as this:
>
> 2011-10-14 14:15:42,380 WARN
> org.springframework.mock.web.MockServletContext.getResourcePaths:212 -
> Couldn't get resource paths for class path resource [WEB-INF/content/]
> java.io.FileNotFoundException: class path resource [WEB-INF/content/]
> cannot
> be resolved to URL because it does not exist
>
> All our code uses the convention annotations, so I'd rather not have to
> create xml action mappings just so i can run tests against my actions.
> Anybody know any work arounds?
>
> thanks
>
> --
> View this message in context:
> http://struts.1045723.n5.nabble.com/unit-testing-with-junit-spring-struts2-NullPointerException-with-HttpServletRequest-tp4394036p4903696.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


ajax validation with css_xhtml theme

2011-10-15 Thread Mano Pájaro
Hello list! I have an issue using ajax validation with a form that uses the
css_xhtml theme. Simply is not working! I've checked the interceptor and the
extra js files that you have to add and it is all fine, when I change to
xhtml theme it works! but i dont know what is happening with the css_xhtml.
even wierder, it used to work, i don't know bu suddenly it stoped working.
I'm using Struts 2.2.1, Struts jquery plugin 3.1.0, and the extra js files
im using are the ones in the jar: are in /struts/utils.js and
/struts/css_xhtml/validation.js
Some extra info: I'm working in a various-steps-form, i mean, with the
next-->next-->finish button, so, i'm using the jquery plugin submit button
for the submmit.
I hope you guys can help me.
Greetings


-- 
Manolo Pájaro Santander
Ingeniero de Sistemas IX Semestre (Actual)
<>
CUSOL-UAC
Linux Registered User # 522026