after adding the action name properties to the struts.xml file the Action to the Welcome page works.
On Sep 19, 2:00 pm, Sunshine <[EMAIL PROTECTED]> wrote: > I decided to review the resources and I am using the Getting Started > on Struts 2 link. > Using the jar files from your library and following the sample I can > get the HelloWorld.jsp to work. > But the action to bring up the Welcom.jsp page is not working yet. > I don't have a namespace for the Welocome action it says. > I'm using your samples as I go. > John > > On Sep 19, 12:55 pm, Sunshine <[EMAIL PROTECTED]> wrote: > > > > > Sang: > > Here are the errors without changing the JDK > > Compiling 2 source files to C:\Documents and Settings\John Darby\My > > Documents\training\j2eeHomework\struts2basics\samples\struts2-blank > > \build\web\WEB-INF\classes > > javac: invalid target release: 1.6 > > Usage: javac <options> <source files> > > where possible options include: > > -g Generate all debugging info > > -g:none Generate no debugging info > > -g:{lines,vars,source} Generate only some debugging info > > -nowarn Generate no warnings > > -verbose Output messages about what the compiler > > is doing > > -deprecation Output source locations where deprecated > > APIs are used > > -classpath <path> Specify where to find user class files > > -cp <path> Specify where to find user class files > > -sourcepath <path> Specify where to find input source files > > -bootclasspath <path> Override location of bootstrap class > > files > > -extdirs <dirs> Override location of installed extensions > > -endorseddirs <dirs> Override location of endorsed standards > > path > > -d <directory> Specify where to place generated class > > files > > -encoding <encoding> Specify character encoding used by source > > files > > -source <release> Provide source compatibility with > > specified release > > -target <release> Generate class files for specific VM > > version > > -version Version information > > -help Print a synopsis of standard options > > -X Print a synopsis of nonstandard options > > -J<flag> Pass <flag> directly to the runtime > > system > > > C:\Documents and Settings\John Darby\My Documents\training\j2eeHomework > > \struts2basics\samples\struts2-blank\nbproject\build-impl.xml:392: The > > following error occurred while executing this line: > > C:\Documents and Settings\John Darby\My Documents\training\j2eeHomework > > \struts2basics\samples\struts2-blank\nbproject\build-impl.xml:213: > > Compile failed; see the compiler error output for details. > > BUILD FAILED (total time: 1 second) > > > On Sep 19, 12:28 pm, Sunshine <[EMAIL PROTECTED]> wrote: > > > > The other thing is that My Netbeans is built with JDK 1.5 so upgrading > > > the IDE to JDK 1.6 could be done but may take a while. > > > > On Sep 19, 11:04 am, Sang Shin <[EMAIL PROTECTED]> wrote: > > > > > Sunshine wrote: > > > > > Sang: > > > > > When I tried Exercise 1 using JDK 1.5 and NetBeans 6.1 with Glassfish > > > > > V2 ur2, The project failed because the target plaform was JDK 1.6. > > > > > I reconfigured this project to use Java 6 but Glassfish is still using > > > > > JDK 1.5 and the project did not deploy beacuse of the class > > > > > differences. > > > > > What is the error condition you get when you deploy over GlassFish? > > > > GlassFish should be able to deploy any Web application regardless > > > > of which JDK it was used underneath to create it. > > > > > -Sang Shin > > > > > > I think I can change my JAVA_HOME to point to JDK 1.6 and restart > > > > > Glassfish. > > > > > But maybe you have another suggestion. > > > > > Bottom line - as is I cannot use my current configuration to do these > > > > > exercises or homework assignments. > > > > > Please advise. > > > > > John > > > > > -- > > > > --------------------------------------------------------------- > > > > **** JavaFX course starts from November 15th, 2008 *** > > > > http://www.javapassion.com/javafx > > > > > Sang Shin, [EMAIL PROTECTED] > > > > http://www.javapassion.com/SangShinSchedule.html > > > > (Life is worth living... with Passion!) > > > > ---------------------------------------------------------------- Hide > > > > quoted text - > > > > - Show quoted text -- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Java EE (J2EE) Programming with Passion!" group. To post to this group, send email to java-ee-j2ee-programming-with-passion@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en -~----------~----~----~----~------~----~------~--~---