Hi,
When I try to compile I get this:
C:\Tomcat_4_1\webapps\pixieapp>javac GuestbookForm.java
GuestbookForm.java:16: illegal start of expression
public String setGuestName(String guestname){
^
GuestbookForm.java:33: ';' expected
}
^
GuestbookForm.java:4: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionForm;
^
GuestbookForm.java:5: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionMapping;
^
GuestbookForm.java:7: cannot resolve symbol
symbol : class ActionForm
location: class pixie.GuestbookForm
public class GuestbookForm extends ActionForm {
^
5 errors
--------------------
What .jar file am I missing?
here is my code FYI:
--------------------------
package pixie;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
public class GuestbookForm extends ActionForm {
private String guestname = null;
private String comment = null;
public String getGuestName(){
return (guestname);
{
public String setGuestName(String guestname){
this.guestname = guestname;
{
public void getGuestComment(){
return (comment);
{
public void setGuestComment(String comment){
this.comment = comment;
{
public void reset(ActionMapping mapping,HttpServeletRequest request) {
this.guestname = null;
this.comment = null;
}
}
---------------------------
Thanks!!!
When I try to compile I get this:
C:\Tomcat_4_1\webapps\pixieapp>javac GuestbookForm.java
GuestbookForm.java:16: illegal start of expression
public String setGuestName(String guestname){
^
GuestbookForm.java:33: ';' expected
}
^
GuestbookForm.java:4: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionForm;
^
GuestbookForm.java:5: package org.apache.struts.action does not exist
import org.apache.struts.action.ActionMapping;
^
GuestbookForm.java:7: cannot resolve symbol
symbol : class ActionForm
location: class pixie.GuestbookForm
public class GuestbookForm extends ActionForm {
^
5 errors
--------------------
What .jar file am I missing?
here is my code FYI:
--------------------------
package pixie;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
public class GuestbookForm extends ActionForm {
private String guestname = null;
private String comment = null;
public String getGuestName(){
return (guestname);
{
public String setGuestName(String guestname){
this.guestname = guestname;
{
public void getGuestComment(){
return (comment);
{
public void setGuestComment(String comment){
this.comment = comment;
{
public void reset(ActionMapping mapping,HttpServeletRequest request) {
this.guestname = null;
this.comment = null;
}
}
---------------------------
Thanks!!!