SCJP 1.4
Originally posted by Anurag Saksena:
Corey,
What is the Exception you are getting on the console ?
-a.
==========
SCJP 1.4
SCWCD 1.4
action: Processing a POST for /SelectBeer
action: Setting locale 'en_US'
action: Looking for ActionForm bean under attribute 'selectBeerForm'
action: Creating new ActionForm instance of class 'edu.mayo.strutstraining.BeerSelectForm'
action: Storing instance under attribute 'selectBeerForm' in scope 'request'
action: Populating bean properties from this request
action: Validating input form properties
action: No errors detected, accepting input
action: Looking for Action instance for class edu.mayo.strutstraining.BeerSelectAction
action: Double checking for Action instance already there
action: Creating new Action instance
Originally posted by Nitish Bahadur:
1. In your struts-config.xml under <action-mappings>, write a new action called: <action path="/HelloWorld" forward="/HelloWorld.jsp"/>
2. Create HelloWorld.jsp at the web-root of your Struts Web App.
<html>
<head>
<title>Hello World</title>
</head>
<body>
<h2>Hello World!</h2>
</body>
</html>
3. Stop and start your App Server. (Test Environment in case of WSAD)
4. What do you see when you access http://localhost:9080/Struts/HelloWorld.do thru a browser. (Tells us if Struts Controller is forwarding the request or not)
5. If you still see a blank page, then try accessing the page directly.
http://localhost:9080/Struts/HelloWorld.jsp
Consider Paul's rocket mass heater. |