Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 28th, 2006, 10:15 AM
Registered User
 
Join Date: Jul 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default problem in struts

I am a new beginner to struts.

I have started by following the book of 'Proffesional Jakarta Struts'
by Wrox publication.

I have followed the instructions to set the struts application as per the book.
Also I have set the classpath for struts.jar;

Now i face two problems :
1) In the index.jsp of ch03 application in chapter3.(the first one)
   I am unable to excess the index.jsp file through TOMCAT server.
   it is unable to compile.
   the problem is in the html:form taglibrary.
2) I am able to compile the bean class.
   i.e, LookupForm.java
   But as soon as i compile the LookupAction.java file(the action class) , it shows unable to find Class LookupForm.

   The point of error:
   LookupForm look = (LookupForm)lookup;

Please advice.

javed.
 
Old August 2nd, 2006, 12:34 AM
Authorized User
 
Join Date: Aug 2006
Location: , , .
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to sachin.tathod
Default

Check for following taglib entries in the web.xml and import statement for the same should checked in the JSP.
<taglib>
            <taglib-uri>/WEB-INF/struts/struts-bean.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts/struts-bean.tld</taglib-location>
        </taglib>

        <taglib>
            <taglib-uri>/WEB-INF/struts/struts-html.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts/struts-html.tld</taglib-location>
        </taglib>

        <taglib>
            <taglib-uri>/WEB-INF/struts/struts-logic.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts/struts-logic.tld</taglib-location>
        </taglib>

          <taglib>
            <taglib-uri>/WEB-INF/struts/struts-tiles.tld</taglib-uri>
            <taglib-location>/WEB-INF/struts/struts-tiles.tld</taglib-location>
        </taglib>

Thanks.
Sachin






Similar Threads
Thread Thread Starter Forum Replies Last Post
Struts with Ajax problem vikassheelgupta Struts 5 September 26th, 2007 05:32 AM
problem in using struts validator skmmail Struts 0 September 4th, 2007 06:00 AM
Problem in Struts Validation meetravig Struts 0 July 24th, 2007 01:32 AM
problem in struts svarupula Apache Tomcat 1 January 24th, 2005 04:42 AM
Problem running Struts Eldo Zacharia Apache Tomcat 1 November 15th, 2004 11:50 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.