Friday, July 22, 2011

Struck in compatibility problem? Find the version of java components you use.

Often messed up with incompatible jsp/servlet/application server version...
A hack to find it all....

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
Working with server: <%= application.getServerInfo() %><br>
Your servlet version is: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %> <br>
Your jsp version is: <%= JspFactory.getDefaultFactory().getEngineInfo().getSpecificationVersion() %><br>
Save as .jsp and run in eclipse!!

No comments:

Post a Comment

Feel free to comment or post your query