Unit Testing in Struts 2.1.6

2009-10-13 Thread Dan R. Olsen III
I have gone to the page found at http://struts.apache.org/2.1.6/docs/how-can-we-test-actions.html. However, the code on that page is not possible with Struts 2.1.6 although it is found in the docs for Struts 2.1.6. How can we get this page updated to show how to test actions in Struts 2.1.6 so

Re: Struts2 and TestNG

2009-10-07 Thread Dan R. Olsen III
The convention plugin is in the classpath for the tests. On 10/6/2009 3:57 PM, Musachy Barroso wrote: also, make sure the convention plugin is in the classpath for the tests. musachy On Tue, Oct 6, 2009 at 2:22 PM, Alex Siman wrote: dolsen-2 wrote: Does this method work if I decl

Re: Struts2 and TestNG

2009-10-06 Thread Dan R. Olsen III
Does this method work if I declare my actions with annotations instead of declaring them in struts.xml? It looks like from the errors I get that it is trying to read the action definitions from the struts.xml file. On 10/5/2009 10:00 PM, Alex Siman wrote: Look here: http://struts.apache.org/2.

Struts2 and TestNG

2009-10-05 Thread Dan R. Olsen III
I am looking for some good ways of using TestNG to test my actions. I know I can test them like any other POJO but I would like it to include all the interceptors if possible. Can anyone give me any good resources on how to do this. I am using Struts 2.1.6 and have the TestNG plugin. I am also

Re: Access Denied error with Struts 2.1.8

2009-10-05 Thread Dan R. Olsen III
AM, Allen Lee wrote: It kind of looks like a security manager / policy permissions issue to me from the access denied message. Like your app server has a grant codebase set for the old struts jar but not the new one. I'm not sure how to set the grant codebase perms on Jetty thoug

Re: Access Denied error with Struts 2.1.8

2009-10-05 Thread Dan R. Olsen III
truts jar but not the new one. I'm not sure how to set the grant codebase perms on Jetty though (jetty.policy?). On Thu, Oct 1, 2009 at 3:04 PM, Dan R. Olsen III wrote: When I am trying to run my Struts application under 2.1.8 I am getting an "Access Denied" error. I h

Re: Access Denied error with Struts 2.1.8

2009-10-05 Thread Dan R. Olsen III
t the grant codebase perms on Jetty though (jetty.policy?). On Thu, Oct 1, 2009 at 3:04 PM, Dan R. Olsen III wrote: When I am trying to run my Struts application under 2.1.8 I am getting an "Access Denied" error. I have checked the file permissions on the struts-core-2.1.8.jar file

Re: Access Denied error with Struts 2.1.8

2009-10-04 Thread Dan R. Olsen III
I am on a Windows box and the permissions are the same as the permissions version 2.1.6 which is working. When I click the MD5 link I get a page not found so I can't check the checksum. On 10/3/2009 9:23 AM, Dale Newfield wrote: Dan R. Olsen III wrote: I moved the project to a path wi

Setting a checkbox

2009-10-02 Thread Dan R. Olsen III
I have the following tag: isChecked is a boolean variable that is set in the action. When I put a variable in the name field for a textfield tag it will bring up the value of the variable in the text box. I want the checkbox above to be checked if isChecked is true and not checked if isCheck

Re: Access Denied error with Struts 2.1.8

2009-10-02 Thread Dan R. Olsen III
f that fixes it, file a bug, it should be reproducible. -Wes On Thu, Oct 1, 2009 at 6:38 PM, Dan R. Olsen III wrote: I don't set that path. It seems to be building that path in one of the functions listed in the stack trace. Like I said, if I switch out the jar files to the Struts 2.1.6 jar

Re: Access Denied error with Struts 2.1.8

2009-10-01 Thread Dan R. Olsen III
I don't set that path. It seems to be building that path in one of the functions listed in the stack trace. Like I said, if I switch out the jar files to the Struts 2.1.6 jars it works just fine. On 10/1/2009 4:34 PM, Dale Newfield wrote: Dan R. Olsen III wrote: jar:file:\C:\Document

Access Denied error with Struts 2.1.8

2009-10-01 Thread Dan R. Olsen III
When I am trying to run my Struts application under 2.1.8 I am getting an "Access Denied" error. I have checked the file permissions on the struts-core-2.1.8.jar file and it is the same as my 2.1.6 file. Under 2.1.6 it works just fine. Any ideas? The error and stack trace I get are below.