Tag Archives: Java

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

Using Superscript in the text displayed in JTable in Java Swing

Being new to Java Swing, I was wondering the other day if I could display a quantity value as for e.g. meter cube..i.e. m3. I had to display the value in a JTable. The solution that I found finally was simple.In my TableCellRenderer, I replaced m3by < html >m< sup >3< / sup >< / [...]

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