Tag Archives: Java

URL Rewrite for Java Applications

Here are the steps for implementing URL Rewrite in your Java based Web Applications. 1.  Download URL Rewrite Library 2. In your web.xml insert the following lines: <filter> <filter-name>UrlRewriteFilter</filter-name> <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> </filter> <filter-mapping> <filter-name>UrlRewriteFilter</filter-name> <url-pattern>/*</url-pattern> </filter-mapping>   3. Copy urlrewrite.xml inside WEB-INF 4. Configure urlrewrite.xml by adding your “rules” e.g. <rule> <note>User Login</note> <from>/user/login</from> <to type=”redirect”>%{context-path}/manageLogin.do?action=showLoginPage</to> </rule> Explanation: [...]

Continue Reading

The procrastinator is finally a ‘Sun Certified Java Programmer’

After 2-3 years of procrastination, I thought of checkmating myself(yeah, weird!!!) by buying the SCJP Exam Voucher(worth Rs.6000) last year(mid-2009) so that I would force myself into giving the exam atleast before the voucher expired(which was 31st July 2010) otherwise I would lose my money…  Well that plan worked!!!..Ok.. to some extent.. ‘Some extent’ because [...]

Continue Reading

Http Status 503 – Servlet action is currently unavailable in Struts

When you get this problem, it is either because of some problem in your web.xml file or in your struts-config.xml file

Continue Reading

My First JasperReport

This post is targeted at users already accustomed to NetBeans IDE /* This post is INCOMPLETE */Phew! It was kinda hard learning to create reports with Jasper.. Dont get me wrong, it wasnt JasperReports that was tough, JasperReports makes your life very easy. However, I think JasperSoft has to think of some way of giving [...]

Continue Reading

Weird Error: Hitting enter key on a page leads to " does not contain handler parameter named ‘action’" error

I got a weird error about a couple of days back. My JSP page was submitting the contents of my page when I hit the enter key whilst inside the LONE textbox on the page. I googled for the answer and found that it was probably because of the browser that was submitting the page [...]

Continue Reading