Tag Archives: Struts

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

Using MessageResources in Struts

MessageResources allows you to internationalize your application by defining fields and their values in a global file and accessing them elsewhere in the application. This is a simple example of how you can use MessageResources. 1. Create a file, say “ApplicationResource.properties” in your package, say at “com.michaelfernando.resource” and type the following into this new file: [...]

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

User Management in Struts

Here’s some help for people trying to allow only SINGLE LOGIN AT A TIME by a SINGLE USERNAME. Meaning, if more than one user try to login with the SAME USERNAME, the LATEST USER who has logged in will remain logged in while the OLDER user will get logged out. Please Note: I will give [...]

Continue Reading