Tuesday, August 10, 2010
Thursday, July 29, 2010
if you have Error while using diplay table ....
javax.servlet.ServletException: org/apache/commons/lang/UnhandledException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
(MonitorFilter.java:368)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)
org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:241)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(
HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter
(MonitorFilter.java:368)
*root cause*
java.lang.NoClassDefFoundError: org/apache/commons/lang/UnhandledException
java.lang.Class.getDeclaredConstructors0(Native Method)
java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
java.lang.Class.getConstructor0(Class.java:2671)
java.lang.Class.newInstance0(Class.java:321) java.lang.Class.newInstance(
Class.java:303) java.beans.Introspector.instantiate(Introspector.java:1432)
java.beans.Introspector.findExplicitBeanInfo(Introspector.java:410)
java.beans.Introspector.
java.beans.Introspector.getBeanInfo(Introspector.java:159)
org.apache.jasper.compiler.Generator$TagHandlerInfo.
org.apache.jasper.compiler.Generator$GenerateVisitor.getTagHandlerInfo(
Generator.java:2120)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1599)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1705)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1705)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
org.apache.jasper.compiler.Generator.generate(Generator.java:3305)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:198)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(
MonitorFilter.java:368) org.apache.struts.action.RequestProcessor.doForward(
RequestProcessor.java:1085)
org.apache.struts.action.RequestProcessor.processForwardConfig(
RequestProcessor.java:398) org.apache.struts.action.RequestProcessor.process
(RequestProcessor.java:241) org.apache.struts.action.ActionServlet.process(
ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doPost(
ActionServlet.java:432) javax.servlet.http.HttpServlet.service(
HttpServlet.java:709) javax.servlet.http.HttpServlet.service(
HttpServlet.java:802) org.displaytag.filter.ResponseOverrideFilter.doFilter(
ResponseOverrideFilter.java:125)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(
MonitorFilter.java:368).
Include all apache common lang jar
Friday, June 18, 2010
Monday, June 14, 2010
Disable form submit on enter keypress
Javascript
function disableEnterKey(e)
{
var key;
if(window.event)
key = window.event.keyCode; //IE
else
key = e.which; //firefox
if(key == 13)
return false;
else
return true;
}
Monday, June 7, 2010
openCMS
visi: http://www.opencms.org/en/
Friday, March 26, 2010
Encrypted Paypal Integration
https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_encryptedwebpayments
Sunday, February 14, 2010
Access Forbidden XAMPP Error while try to chnage the security
Access forbidden!
You don't have permission to access the requested object. It is either read-protected or not readable by the server.
If you think this is a server error, please contact the webmaster.
Error 403
localhost
Apache/2.2.11 (Win32) DAV/2 mod_ssl/2.2.11 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.8
How to get access to the XAMPP Security Page
- Navigate to your xampp\apache\conf\extra folder
- Using a text editor, open httpd-xampp.conf
- Find the following line:
Allow from localhost
- Change the line to:
Allow from 127.0.0.1
- Save the file and restart your XAMPP server
- Try to access http://localhost/security/lang.php?en
You should now have no problems accessing the XAMPP Security Page via localhost or 127.0.0.1
Saturday, January 23, 2010
What are the different cases for using sendRedirect() vs. getRequestDispatcher()?
If you want to dispatch to resources OUTSIDE the context, then you must use sendRedirect. In this case you won't be sending the original request/response objects, but you will be sending a header asking to the browser to issue a request to the new URL.
If you don't need to preserve the request/response objects, you can use either.