You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
hi guys..i was trying out the Dispatch action and was not able to succeed..so i changed the coding to normal forward action..
but i get the following error...(immediately after the error below i have given the codes of different files being used)
javax.servlet.ServletException: Exception creating bean of class ch03.Dispatch: {1}
org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:825)
.....
..... in browser
Jan 29, 2007 2:23:55 PM org.apache.struts.util.PropertyMessageResources loadLocale
WARNING: Resource org/apache/struts/action/ActionResources_en_US.properties Not Found.
Jan 29, 2007 2:23:55 PM org.apache.struts.util.PropertyMessageResources loadLocale
WARNING: Resource org/apache/struts/action/ActionResources_en.properties Not Found.
Jan 29, 2007 2:23:55 PM org.apache.struts.util.RequestUtils createActionForm
SEVERE: Error creating form bean of class ch03.Dispatch
java.lang.IllegalAccessException: Class org.apache.struts.config.FormBeanConfig can not access a member of class ch03.Dispatch with modifiers ""
at sun.reflect.Reflection.ensureMemberAccess(Reflecti on.java:57)
at java.lang.Class.newInstance0(Class.java:302)
at java.lang.Class.newInstance(Class.java:261)
.....
.....in the console
to be used
<html:select property="method" size="12">
<html:option value="jump">jump</html:option>
<html:option value="stay">stay</html:option>
</html:select>