Tuesday, August 10, 2010

Display Tag Reference URL

http://www.javaworkspace.com/displayTags.do

Thursday, July 29, 2010

if you have Error while using diplay table ....

*exception*

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.(Introspector.java:359)
java.beans.Introspector.getBeanInfo(Introspector.java:159)
org.apache.jasper.compiler.Generator$TagHandlerInfo.(Generator.java:3713)
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

Remove non empty directory in linux

Remove non empty directory in linux

rm -rf /path/to/directory

Monday, June 14, 2010

Disable form submit on enter keypress

HTML Code


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

OpenCms from Alkacon Software is a professional, easy to use website content management system. OpenCms helps content managers worldwide to create and maintain beautiful websites fast and efficiently.The fully browser based user interface features configurable editors for structured content with well defined fields. Alternatively, content can be created using an integrated WYSIWYG editor similar to well known office applications. A sophisticated template engine enforces a site-wide corporate layout and W3C standard compliance for all content.OpenCms is based on Java and XML technology. It can be deployed in an open source environment (e.g. Linux, Apache, Tomcat, MySQL) as well as on commercial components (e.g. Windows NT, IIS, BEA Weblogic, Oracle).As true open source software, OpenCms is free of licensing costs.

visi: http://www.opencms.org/en/

Friday, March 26, 2010

Encrypted Paypal Integration

Edit java.security file inside inside jre/lib/security file and add the below line and replace the US_export_policy.jar and local_policy.jar with BouncyCastleProvider jars security.provider.9=org.bouncycastle.jce.provider.BouncyCastleProvider

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

  1. Navigate to your xampp\apache\conf\extra folder
  2. Using a text editor, open httpd-xampp.conf
  3. Find the following line:

    Allow from localhost

  4. Change the line to:

    Allow from 127.0.0.1

  5. Save the file and restart your XAMPP server
  6. 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()?

When you want to preserve the current request/response objects and transfer them to another resource WITHIN the context, you must use 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.