0 Replies Latest reply on Aug 25, 2011 6:49 PM by redmond007

    Struts tags not working in AS7

    redmond007

      I'm trying to migrate a webapp from AS5 to AS7. 

       

       

      I copied my webapp to my new project, which adheres to Maven conventions

       

      me@Computer:~/Documents/workspace/myapp$ pwd
      /Users/me/Documents/workspace/myapp
      me@Computer:~/Documents/workspace/myapp$ ls -l
      total 56
      -rw-r--r--   1 me  staff  12849 Aug 25 14:57 pom.xml
      -rw-r--r--   1 me  staff   3434 Aug 25 13:50 readme.html
      -rw-r--r--   1 me  staff   3306 Aug 11 12:32 readme.md
      drwxr-xr-x   4 me  staff    136 Aug 19 09:20 src
      drwxr-xr-x  10 me  staff    340 Aug 25 17:30 target
      me@Computer:~/Documents/workspace/myapp$ ls -l src/main/webapp/
      total 32
      drwxr-xr-x   8 me  staff  272 Aug 25 16:59 WEB-INF
      drwxr-xr-x  10 me  staff  340 Aug 15 11:44 css
      drwxr-xr-x   4 me  staff  136 Aug 15 11:44 dtds
      -rw-r--r--   1 me  staff  351 Aug 10 15:06 favicon.ico
      drwxr-xr-x   5 me  staff  170 Aug 15 11:44 images
      -rw-r--r--   1 me  staff   95 Aug 15 14:43 index.html
      drwxr-xr-x  22 me  staff  748 Aug 15 11:44 javascript
      -rw-r--r--   1 me  staff  380 Aug 10 15:06 noAccess.html
      drwxr-xr-x   4 me  staff  136 Aug 11 12:32 resources
      me@Computer:~/Documents/workspace/myapp$ ls -l src/main/webapp/WEB-INF/
      total 152
      drwxr-xr-x  22 me  staff    748 Aug 15 14:04 jspincludes
      drwxr-xr-x  55 me  staff   1870 Aug 25 14:08 lib
      -rw-r--r--   1 me  staff  44718 Aug 10 15:06 struts-config.xml
      drwxr-xr-x  12 me  staff    408 Aug 15 14:15 tags
      drwxr-xr-x   2 me  staff     68 Aug 18 15:04 templates
      -rw-r--r--   1 me  staff  31469 Aug 25 13:32 web.xml
      
      

       

       

      I'm able to compile and deploy my app successfully, but my jsps do not look right.

       

       

      Looks like my struts tags are not being recognized.  I look at my page source and inputs look like

       

       

       

       

          <html:text  property="username" size="30" maxlength="30"/>

       

       

       

       

      instead of

       

       

       

       

          <input type="text" name="username" maxlength="30" size="30" value="">

       

       

       

       

      I'm guessing I have to include struts as a Dependency?  I try to do this with MANIFEST.MF.  My MANIFEST.MF exists in <app>/src/main/resources/META-INF and looks like

       

       

      Manifest-Version: 1.0
      Dependencies: org.apache.log4j org.apache.struts
      

       

      Doesn't seem to be working?  Is this correct?  Is there something I should be enabling in order to get struts tags to work?  Thanks for any advice.  I should also add that I get no deployment errors or runtime errors in my server logs.