Hi All, I have written a very simple login application on WSAD5.0., after deploying the related beans and running the application.. when i click on submit button.. I m gettin the exception :
[4/24/05 13:47:52:069 EDT] 2620157b WebGroup I SRVE0180I: [LogInWebPrj] [/LogInWebPrj] [Servlet.LOG]: /login/jsp/userLogIn.jsp: init [4/24/05 13:47:56:806 EDT] 2620157b OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /userLogIn has not been defined
i have written my application on struts..and in the struts-config the mapping are as follows:
and the web.xml is as follows: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app id="WebApp"> <display-name>LogInWebPrj</display-name>
i 'm unable to figure out the problem.. as the mapping seem to be correct to me.. I have tried to serch on the internet..but not found anything helping me out May be I'm missing some unlearnt point.. I wud be very greatful..if somebody can help me out of it..
you're missing the .dohhhhhhhh! <form method="POST" action="/userLogIn.do">
if you are calling the action from the old HTML form tag, you must specify the full action name (and path). if you use html:form, struts appends the suffix for you.
i HIGHLY recommend using the struts-html library to build your forms. it will come back to haunt you later if you don't, especially in time of pre-population upon validation and when you run into indexed properties (among other useful struts features). [ April 25, 2005: Message edited by: alan do ]
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>