Category Archives: Struts

How to upload file using struts and hiberate?

How to upload file using struts and hibernate? I spent 5-6 hours figuring out how can I upload a file into Blob in a database. So I decided to write a short article. Add enctype=”multipart/form-data” in the form tag (in … Continue reading

Posted in Hibernate, Struts | 2 Comments

Generating dynamic elements in struts !!

Thanks to http://www.techtamasha.com/generate-dynamic-ids-for-struts-html-tags/ Do you use struts tags to generate html content? If yes, then sooner or later you’ll come across a scenario where you would generate html elements in an arrayI faced a similar predicament recently. I had no … Continue reading

Posted in Struts | Leave a comment

STRUTS : java.lang.IllegalAccessException

STRUTS : java.lang.IllegalAccessException: Class org.apache.struts.util.RequestUtils can not access a member of class view.myAction with modifiers “ PROBLEM When I hit action class, I get the following exception. java.lang.IllegalAccessException: Class org.apache.struts.util.RequestUtils can not access a member of class view.myAction with modifiers … Continue reading

Posted in Struts | Leave a comment

Cannot find bean org.apache.struts.taglib.html.BEAN in any scope

I was getting the following exception when I tried to execute an Action Class…Everything in struts-config.xml, web.xml, the TLDs in place seem to be perfect.But still I got the following exception. 500 Internal Server Error (Click for full stack trace)javax.servlet.jsp.JspException: … Continue reading

Posted in Struts | 1 Comment