• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

compilation fails

 
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm novice user of struts. I'm trying a really simple application (copied from http://javaboutique.internet.com/tutorials/Struts/) for which I've created one SubmitAction and SubmitForm. Both are in tomcat/webapps/pri/playground dir. I've done all appropriate modifications to strut-config.xml, web.xml. But when I try to compile these two action classes it gives me compilation error:
------------------------------------------------------
C:\Tools\Tomcat 4.1\webapps\myproject\WEB-INF\classes\raj\playground>javac Subm
tForm.java
SubmitForm.java:3: package javax.servlet.http does not exist
import javax.servlet.http.HttpServletRequest;
^
SubmitForm.java:4: package org.apache.struts.action does not exist
import org.apache.struts.action.*;
^
SubmitForm.java:6: cannot resolve symbol
symbol : class ActionForm
location: class raj.playground.SubmitForm
public final class SubmitForm extends ActionForm {
^
3 errors
and similar 10 errors for SubmitAction class
Can someone help me out here!
Help appreciated
thanks
PC
 
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looks like you need to set the appropriate jar files in the classpath
 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check your classpath for struts.jar file
 
reply
    Bookmark Topic Watch Topic
  • New Topic