• 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

Problem installing demo webapp

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am trying to installing the demo login web app from the (excellent) article of Thomas Paul. I'm working with Tomcat-3.3.2 and struts-1.0.2.

Entering http://127.0.0.:8080/struts/jsp/LoginView.jsp I do get the login screen; the validation works; however entering admin/admin gives my a blank screen; the url changes to http://127.0.0.1:8080/struts/login.do
No messages whatsoever in the console.

The target page is there, I can invoke it directly, entering http://127.0.0.:8080/struts/jsp/MainMenu.jsp

Why cannot I go from LoginView.jsp to MainMenu.jsp via the webapp ?

Thanks in advance.
 
Jan van Doorn
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am still confues about the location of servlet.jar and struts.jar.
Obviously I want both to be able to compile the java classes (needs jars under jre/lib/ext) but also avoid error messages regarding missing resource msgs (no jars in jre/lib/ext).

Is there a way to have this fixed ?
[ July 03, 2005: Message edited by: Jan van Doorn ]
 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I have my struts.jar under <module>/WEB-INF/lib.

As for servlet.jar, I've included the path to my servlet-api.jar under a subfolder of my jboss's tomcat.

Is "no jars in jre/lib/ext" really the exact message you got for missing resource msgs ? Normally when one mention resource msgs, we would think of the file with name like ApplicationResources.properties where all the messages can be stored to be looked up.

Originally posted by Jan van Doorn:
I am still confues about the location of servlet.jar and struts.jar.
Obviously I want both to be able to compile the java classes (needs jars under jre/lib/ext) but also avoid error messages regarding missing resource msgs (no jars in jre/lib/ext).

Is there a way to have this fixed ?

[ July 03, 2005: Message edited by: Jan van Doorn ]


[ July 03, 2005: Message edited by: Ken Loh ]
 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can u write code for struts-config file....
 
Jan van Doorn
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello bhavik,

It is the code from the first article listed at the top of this Struts forum: http://www.javaranch.com/newsletter/Mar2002/newslettermar2002.jsp#struts

struts-config.xml is listed in listing 2: http://www.javaranch.com/newsletter/Mar2002/listing2.html



<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd">

<struts-config>

<!-- ========== Form Bean Definitions ============ -->
<form-beans>
<form-bean name="login" type="test.struts.LoginForm" />
</form-beans>


<!-- ========== Global Forward Definitions ========= -->
<global-forwards>
</global-forwards>


<!-- ========== Action Mapping Definitions ======== -->
<action-mappings>
<action
path="/login"
type="test.struts.LoginAction" >

<forward name="valid" path="/jsp/MainMenu.jsp" />
<forward name="invalid" path="/jsp/LoginView.jsp" />
</action>
</action-mappings>

</struts-config>
 
Jan van Doorn
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ken,

I think I have my struts.jar under <module>/WEB-INF/lib.


So do I, that is where it should be according to the article (see link in previous post).


As for servlet.jar, I've included the path to my servlet-api.jar under a subfolder of my jboss's tomcat.



I do not know about servlet-api.jar. I do know I have servlet.jar in the standard directory: C:\Program Files\Apache Group\Tomcat 4.1\common\lib

A long time ago the author of the article Thomas Paul was a bartender of this thread. He did mention the problem but did not give a satisfactorily answer to this problem.

Ken: are you able to both
- compile the java classes from the console ?
- able to execute the the web app ?


Is "no jars in jre/lib/ext" really the exact message you got for missing resource msgs ? Normally when one mention resource msgs, we would think of the file with name like ApplicationResources.properties where all the messages can be stored to be looked up.


No, this is not the message I get. I get "missing heading.login" or something similar, which is a key from the resourcefile (MessageResource.properties) from the demo app I am talking about.
reply
    Bookmark Topic Watch Topic
  • New Topic