Alex Pustovit

Greenhorn
+ Follow
since Jul 22, 2009
Alex likes ...
Java
Merit badge: grant badges
Biography
SCJP 1.5, SCJP 1.6, SCWCD 1.5
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Alex Pustovit

Read document "IEEE standard for software test documentation" (IEEE 829-1998).
Usually it's good idea to do testing automatically where it's possible, so Unix shell scripting is good advantage, in addition knowledge of Perl or Ruby is good too (maybe you like other scripting language, but these two are quite popular).
14 years ago
Hi Michal,

I have no info about Vista, but I used the same testing app on both WinXP and Mac OS with the same jemmy library. So my suggestion is:
1) Try the other version of jemmy library
2) Post additional details and probably will find a solution
14 years ago
You can specify new error page in DD. But you can overload page defined in DD using errrorPageattribute of page directive.
See JSP spec
Hi,

in accordance with spec, even if some page defined in DD as error-page, a request should be redirected to the page defined in page directive.

So if you set <%@page errorPage="my_error_new.jsp"%> in you index_new.jsp it should be used.

Probably there is some wrong processing on server side when you throw new Exception object (as in your example). For real exceptions, for example division by zero case, correct page is shown.
Hi,

the original question was quite interesting.
My explanations is: your put string 42 to the map. This value later is coerced to boolean using java.lang.Boolean.valueOf(STRING) function (see JSP 2.0 specification, page 116). Because mentioned function returns true only if STRING value is "true", you get the "false" value for expression map.c and finally true (${not map.c}) on your page.
Just put all stuff which you want to hide to the WEB-INF dir.
Just 1 thing to add: if you do need complicated logic in your JSP to render some info, try to consider using of custom tags.
And your non-java-programmers will be happy with lack of java code in JSP.

The J2EE Tutorial - Custom Tags in JSP pages
14 years ago
JSP
Hi,

Actually you can't access any file within WEB-INF. I you wish to get access to your servlet you have to use deployment descriptor (DD) and address servlet-url defined there.
14 years ago
Hi,

The only way to use Jemmy library is launching your application with new ClassReference("<Main application class>").startApplication(); instruction.
Your application and tested application should run in the same JVM, because Jemmy uses Reflection to get access to GUI.
This approach can be quite complicated for big applications, because you need to know how applications starts and initializes.

Good luck.

14 years ago