Isa,
Yes that URL does work.
What's weird, is that I get the 'Error 404' even if I enter a URL to a JSP does
not exist!
I tried your suggestion about using a index.html, Now, the message is:
Error: 400
HTTP method POST is not supported by this URL
Interestingly, I received the same error message when I replaced 'index.html'
with the name of the current (or any other valid) servlet
Something is very wrong here....
- Neville
Isa Hashim <[EMAIL PROTECTED]> on 05/24/99 02:24:01 PM
Please respond to Isa Hashim <[EMAIL PROTECTED]>
To: Neville Soares/Whittman-Hart LP@W-H
cc:
Subject: Re: Model II Problem
My guess is that the URL you are passing to getRequestDispatcher()
is somehow not a valid one as far as the servlet engine is concerned.
Does
http://yourhost:yourport/examples/jsp/hello/hello.jsp
work if you type the above URL in a browser ?
You can try passing in something that should work like "/index.html"
to getRequestDispatcher() and see if you see the main index page.
regards,
-i
]X-Lotus-FromDomain: W-H
]Mime-Version: 1.0
]Content-Disposition: inline
]Date: Mon, 24 May 1999 13:41:37 -0400
]From: Neville Soares <[EMAIL PROTECTED]>
]Subject: Re: Model II Problem
]To: [EMAIL PROTECTED]
]
]Isa,
]
]Well, that fixed part of the problem...I changed the 'name' in the putValue()
to
]match that used by my JSP, then had my servlet return an HTML page with a link
]to the JSP
]The JSP now 'sees' the data set into the bean by the servlet...Thanks for the
]tip
]
]However, I still get:
]Error: 404
]No detailed message
]
]when I try to use RequestDispatcher.forward()
]
]Any ideas?
]
]- Neville
]
]
]
]
]Please respond to Isa Hashim <[EMAIL PROTECTED]>
]
]To: Neville Soares/Whittman-Hart LP@W-H
]cc:
]Subject: Re: Model II Problem
]
]
]
]
]
]Hi Neville,
]
]I see you have the following servlet code:
]
]]2. Here's the servlet: (it compiles fine)
]...
]] //create the 'there' class
]] there thing = new there() ;
]] String text = "{" + request.getParameterValues("sample")[0] + "}" ;
]]
]] thing.setSample (text);
]] session.putValue("thing", thing);
]
]and JSP:
]
]]4. Here's the JSP:
]]
]]<jsp:useBean id="foo" scope="session" class="hello.there" />
]]<jsp:setProperty name="foo" property="*" />
]]<html>
]]<head>
]] <title>Hello</title>
]]</head>
]]<body>
]]<jsp:getProperty name="foo" property="Sample"/>
]]</body>
]]</html>
]
]I believe the name you pass in to session.putValue("thing", thing)
]has to match the 'id' attribute in the jsp:useBean tag (or the 'name'
]attr in jsp:getProperty) . i.e. Try doing this instead:
]
] session.putValue("foo", thing);
]
]regards,
]-isa
]
]===========================================================================
]To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
]of the message "signoff JSP-INTEREST". For general help, send email to
][EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".