Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

MyEclipse + struts2(MailReader)

cvu

2006-12-12



Any one know how to setup MAilReader example in MyEclipse/ Eclipse pls show
me:
I have problem loading the Welcome.jsp in MailReader example Even it doesnot
show any error in container console at all. I am using myeclipse to setup
for MailReader example.
I guess that the tree I setup to run MailReader example may be not right.
This is what I set up: // the web context is struts2
  struts2
   |--src
      |--mailreader2 (contains all java + some properties files like
ApplicationListener, Constants, Welcome, MailReaderSupport,
Logon-Validation.properties, Registration-validation.properties, etc...)
      |(these files are in src folder = alternate_ja.properties,
ApplicationContext.xml, struts..properties, etc...)
  |--WebRoot
        |--css (contains mailreader.css file)
        |(in WebRoot contains all jsp files like ChangePassword,
Error,Footer,Login,MainMenu, Welcome, etc...)
        |--WEB-INF
           
|web.xml,struts.cml,mailreader-default.xml,mailreader-support.xml,
database.xml

 After deploy it and run the webcontainer load the browser :
  it said: Loading.... I know it is from the index.html the console it
shown
  Dec 12, 2006 1:30:19 PM
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider init
INFO: Parsing configuration file [struts-default.xml]
then show nothing - I don't see the Welcome.jsp .
  I know first webcontainer read the web.xml file then struts.xml file
then all the included xml like
mailreader-default and mailreader-support.xml then call the index.html. This
file then read the URL=Welcome.do
which is in mailreader-support mapped to /Welcome.jsp.
I believe it is mapped correctly - see the tree . But it don't see the
Welcome.jsp
Could anyone tell me what is wrong or I missing something.
  Thanks
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.