You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Cheng Wei Lee <zh...@gmail.com> on 2008/01/08 08:04:16 UTC

Struts 2: client side validation message kept displaying repeatedly

I enabled client side validation for a form, when the user submits, the
validation kicks in and the messages are shown. If the user didn't make any
changes and proceed to submit again, the set messages are shown again. The
messages kept increasing. Is there a way to clear the old messages before
showing the new ones?

Re: Struct Logging

Posted by Cheng Wei Lee <zh...@gmail.com>.
Haven't used Struts 1 for quite some time. Just to check, none of your
actions worked? Would you be able to build your application using the sample
blank WAR file to see if it can work part by part?

On Jan 8, 2008 4:09 PM, Sohil Rupani <so...@gslab.com> wrote:

> hi i m using Struts 1
>
> Following is the content of my web.xml file.
> Please let me know if i m making some mistake in this ..
> Thanks
>
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> <web-app>
> <!-- Action Servlet Configuration -->
>    <servlet>
>        <servlet-name>action</servlet-name>
>
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>
>            <init-param>
>                <param-name>config</param-name>
>                <param-value>/WEB-INF/struts-config.xml</param-value>
>            </init-param>
>
>            <init-param>
>                <param-name>debug</param-name>
>                <param-value>2</param-value>
>            </init-param>
>
>            <init-param>
>                <param-name>detail</param-name>
>                <param-value>2</param-value>
>            </init-param>
>
>        <load-on-startup>2</load-on-startup>
>    </servlet>
>
>
>    <servlet>
>        <servlet-name>velocity</servlet-name>
>
> <servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet
> </servlet-class>
>
>            <init-param>
>
>                <param-name>toolbox</param-name>
>                <param-value>/WEB-INF/toolbox.xml</param-value>
>            </init-param>
>
>            <load-on-startup>10</load-on-startup>
>    </servlet>
>
>
>    <!-- Action Servlet Mapping -->
>
>    <servlet-mapping>
>        <servlet-name>velocity</servlet-name>
>        <url-pattern>*.vm</url-pattern>
>    </servlet-mapping>
>
>    <servlet-mapping>
>        <servlet-name>action</servlet-name>
>        <url-pattern>*.do</url-pattern>
>    </servlet-mapping>
>
> <!-- Struts Tag Library Descriptors -->
>
>    <taglib>
>        <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>        <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>        <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>    </taglib>
>
>    <taglib>
>        <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
>        <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
>    </taglib>
> </web-app>
>
>
>
> Cheng Wei Lee wrote:
> > Are you using Struts 1? Please check your web.xml file.
> >
> > On Jan 8, 2008 3:56 PM, Sohil Rupani <so...@gslab.com> wrote:
> >
> >
> >> Hi ,
> >> Thanks for the reply.. appreciate you time.
> >>
> >> Following is the error i m getting on the browser..
> >>
> >> HTTP Status 404 - Servlet action is not available
> >> type Status report
> >> message Servlet action is not available
> >> description The requested resource (Servlet action is not available) is
> >> not available.
> >> Apache Tomcat/5.5.25
> >>
> >> I searched throught thru the log file of tomcat.  however it doesnt
> show
> >> any error ..
> >>
> >> Thanks,
> >> Sohil
> >>
> >> Thanks,
> >> Sohil.
> >>
> >> Cheng Wei Lee wrote:
> >>
> >>> Hi Sohil,
> >>>
> >>> Could you provide the stacktrace for troubleshooting?
> >>>
> >>> Thanks.
> >>>
> >>> On Jan 8, 2008 3:37 PM, Sohil Rupani <so...@gslab.com> wrote:
> >>>
> >>>
> >>>
> >>>> Hi,
> >>>>
> >>>> I m new to struts , using tomcat and jdk 1.5.  i m getting a error
> >>>> Servlet action not avaliable..
> >>>> which on browsing i learn that is a very common error
> >>>> i searched through the tomcat log where i dont see any error
> messages..
> >>>> i would like to know where does struts creates its log.. so that i
> can
> >>>> understand more about the error..
> >>>> Thanks
> >>>> Sohil
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>>> For additional commands, e-mail: user-help@struts.apache.org
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >
> >
>

Re: Struct Logging

Posted by Wendy Smoak <ws...@gmail.com>.
On Jan 8, 2008 9:04 PM, Sohil Rupani <so...@gslab.com> wrote:

> i m using struct 1.3.8
...
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE struts-config PUBLIC
>        "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
>        "http://struts.apache.org/dtds/struts-config_1_3.dtd">

And earlier:
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">

Possibly unrelated to the problem you are reporting here, but Struts
1.3 has a minimum requirement of Servlet 2.3.

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struct Logging

Posted by Sohil Rupani <so...@gslab.com>.
sorry for making two post ..
appreciate your help and time.
also the struct examples are working fine..
i m using velocity tools 1.3 for view

however i installed another tomcat but the same version 5.5.25 .. and 
could see the logs

"hi , i m getting the following error
of which i understand there might be a problem with my struts-config file
but i checked it and couldn fine any

i m using struct 1.3.8
below i have pasted my structs-config file

SEVERE:            javax.servlet.UnavailableException: Parsing error 
processing resource path jndi:
/localhost/struts/WEB-INF/struts-config.xml
       at 
org.apache.struts.action.ActionServlet.handleConfigException(ActionSe
rvlet.java:774)




<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE struts-config PUBLIC
       "-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"
       "http://struts.apache.org/dtds/struts-config_1_3.dtd">
<struts-config>

   <form-beans>
       <form-bean name="registerForm" type="RegisterForm"/>
   </form-beans>


   <action-mappings>
       <action path="/struts" type="RegisterAction" name="registerForm">
              <forward name="success" path="/success.vm"/>
       <forward name="failure" path="/failure.vm"/>
              </action>

   </action-mappings>
</struts-config> "

Thanks,
Sohil

Robert Slama wrote:
> send your struts-config.xml and requested url
>
>
> r^
>
>
>
> Dave Newton  wrote / napísal(a):
>> It's probable there's an error in one (or more) of your S1 configuration
>> files.
>>
>> d.
>>
>> --- Sohil Rupani <so...@gslab.com> wrote:
>>
>>  
>>> hi i m using Struts 1
>>>
>>> Following is the content of my web.xml file.
>>> Please let me know if i m making some mistake in this ..
>>> Thanks
>>>
>>>
>>> <?xml version="1.0" encoding="ISO-8859-1"?>
>>> <!DOCTYPE web-app
>>> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>>> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>>> <web-app>
>>> <!-- Action Servlet Configuration -->
>>>     <servlet>
>>>         <servlet-name>action</servlet-name>
>>>         
>>> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>>>                <init-param>
>>>                 <param-name>config</param-name>
>>>                 <param-value>/WEB-INF/struts-config.xml</param-value>
>>>             </init-param>
>>>                        <init-param>
>>>                 <param-name>debug</param-name>
>>>                 <param-value>2</param-value>
>>>             </init-param>
>>>
>>>             <init-param>
>>>                 <param-name>detail</param-name>
>>>                 <param-value>2</param-value>
>>>             </init-param>
>>>
>>>         <load-on-startup>2</load-on-startup>
>>>     </servlet>
>>>
>>>
>>>     <servlet>
>>>         <servlet-name>velocity</servlet-name>
>>>        
>>>     
>> <servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class> 
>>
>>  
>>>                        <init-param>
>>>                            <param-name>toolbox</param-name>
>>>                 <param-value>/WEB-INF/toolbox.xml</param-value>
>>>             </init-param>
>>>
>>>             <load-on-startup>10</load-on-startup>
>>>     </servlet>
>>>
>>>
>>>     <!-- Action Servlet Mapping -->
>>>            <servlet-mapping>
>>>         <servlet-name>velocity</servlet-name>
>>>         <url-pattern>*.vm</url-pattern>
>>>     </servlet-mapping>
>>>            <servlet-mapping>
>>>         <servlet-name>action</servlet-name>
>>>         <url-pattern>*.do</url-pattern>
>>>     </servlet-mapping>
>>>
>>> <!-- Struts Tag Library Descriptors -->
>>>        <taglib>
>>>         <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>>>         <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>>>     </taglib>
>>>        <taglib>
>>>         <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>>>         <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>>>     </taglib>
>>>
>>>     <taglib>
>>>         <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
>>>         <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
>>>     </taglib>
>>> </web-app>
>>>
>>>
>>>
>>> Cheng Wei Lee wrote:
>>>    
>>>> Are you using Struts 1? Please check your web.xml file.
>>>>
>>>> On Jan 8, 2008 3:56 PM, Sohil Rupani <so...@gslab.com> wrote:
>>>>
>>>>        
>>>>> Hi ,
>>>>> Thanks for the reply.. appreciate you time.
>>>>>
>>>>> Following is the error i m getting on the browser..
>>>>>
>>>>> HTTP Status 404 - Servlet action is not available
>>>>> type Status report
>>>>> message Servlet action is not available
>>>>> description The requested resource (Servlet action is not 
>>>>> available) is
>>>>> not available.
>>>>> Apache Tomcat/5.5.25
>>>>>
>>>>> I searched throught thru the log file of tomcat.  however it 
>>>>> doesnt show
>>>>> any error ..
>>>>>
>>>>> Thanks,
>>>>> Sohil
>>>>>
>>>>> Thanks,
>>>>> Sohil.
>>>>>
>>>>> Cheng Wei Lee wrote:
>>>>>            
>>>>>> Hi Sohil,
>>>>>>
>>>>>> Could you provide the stacktrace for troubleshooting?
>>>>>>
>>>>>> Thanks.
>>>>>>
>>>>>> On Jan 8, 2008 3:37 PM, Sohil Rupani <so...@gslab.com> wrote:
>>>>>>
>>>>>>
>>>>>>                
>>>>>>> Hi,
>>>>>>>
>>>>>>> I m new to struts , using tomcat and jdk 1.5.  i m getting a error
>>>>>>> Servlet action not avaliable..
>>>>>>> which on browsing i learn that is a very common error
>>>>>>> i searched through the tomcat log where i dont see any error
>>>>>>>             
>>> messages..
>>>    
>>>>>>> i would like to know where does struts creates its log.. so that 
>>>>>>> i can
>>>>>>> understand more about the error..
>>>>>>> Thanks
>>>>>>> Sohil
>>>>>>>
>>>>>>> --------------------------------------------------------------------- 
>>>>>>>
>>>>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>                     
>>>>>>                 
>>>>         
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>> __________ Informacia od NOD32 2772 (20080107) __________
>>
>> Tato sprava bola preverena antivirusovym systemom NOD32.
>> http://www.eset.sk
>>
>>
>>
>>   
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struct Logging

Posted by Robert Slama <rs...@spiritline.org>.
send your struts-config.xml and requested url


r^



Dave Newton  wrote / napísal(a):
> It's probable there's an error in one (or more) of your S1 configuration
> files.
>
> d.
>
> --- Sohil Rupani <so...@gslab.com> wrote:
>
>   
>> hi i m using Struts 1
>>
>> Following is the content of my web.xml file.
>> Please let me know if i m making some mistake in this ..
>> Thanks
>>
>>
>> <?xml version="1.0" encoding="ISO-8859-1"?>
>> <!DOCTYPE web-app
>> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
>> <web-app>
>> <!-- Action Servlet Configuration -->
>>     <servlet>
>>         <servlet-name>action</servlet-name>
>>         
>> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>>    
>>             <init-param>
>>                 <param-name>config</param-name>
>>                 <param-value>/WEB-INF/struts-config.xml</param-value>
>>             </init-param>
>>            
>>             <init-param>
>>                 <param-name>debug</param-name>
>>                 <param-value>2</param-value>
>>             </init-param>
>>
>>             <init-param>
>>                 <param-name>detail</param-name>
>>                 <param-value>2</param-value>
>>             </init-param>
>>
>>         <load-on-startup>2</load-on-startup>
>>     </servlet>
>>
>>
>>     <servlet>
>>         <servlet-name>velocity</servlet-name>
>>         
>>
>>     
> <servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class>
>   
>>            
>>             <init-param>
>>            
>>                 <param-name>toolbox</param-name>
>>                 <param-value>/WEB-INF/toolbox.xml</param-value>
>>             </init-param>
>>
>>             <load-on-startup>10</load-on-startup>
>>     </servlet>
>>
>>
>>     <!-- Action Servlet Mapping -->
>>        
>>     <servlet-mapping>
>>         <servlet-name>velocity</servlet-name>
>>         <url-pattern>*.vm</url-pattern>
>>     </servlet-mapping>
>>        
>>     <servlet-mapping>
>>         <servlet-name>action</servlet-name>
>>         <url-pattern>*.do</url-pattern>
>>     </servlet-mapping>
>>
>> <!-- Struts Tag Library Descriptors -->
>>    
>>     <taglib>
>>         <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>>         <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>>     </taglib>
>>    
>>     <taglib>
>>         <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>>         <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>>     </taglib>
>>
>>     <taglib>
>>         <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
>>         <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
>>     </taglib>
>> </web-app>
>>
>>
>>
>> Cheng Wei Lee wrote:
>>     
>>> Are you using Struts 1? Please check your web.xml file.
>>>
>>> On Jan 8, 2008 3:56 PM, Sohil Rupani <so...@gslab.com> wrote:
>>>
>>>   
>>>       
>>>> Hi ,
>>>> Thanks for the reply.. appreciate you time.
>>>>
>>>> Following is the error i m getting on the browser..
>>>>
>>>> HTTP Status 404 - Servlet action is not available
>>>> type Status report
>>>> message Servlet action is not available
>>>> description The requested resource (Servlet action is not available) is
>>>> not available.
>>>> Apache Tomcat/5.5.25
>>>>
>>>> I searched throught thru the log file of tomcat.  however it doesnt show
>>>> any error ..
>>>>
>>>> Thanks,
>>>> Sohil
>>>>
>>>> Thanks,
>>>> Sohil.
>>>>
>>>> Cheng Wei Lee wrote:
>>>>     
>>>>         
>>>>> Hi Sohil,
>>>>>
>>>>> Could you provide the stacktrace for troubleshooting?
>>>>>
>>>>> Thanks.
>>>>>
>>>>> On Jan 8, 2008 3:37 PM, Sohil Rupani <so...@gslab.com> wrote:
>>>>>
>>>>>
>>>>>       
>>>>>           
>>>>>> Hi,
>>>>>>
>>>>>> I m new to struts , using tomcat and jdk 1.5.  i m getting a error
>>>>>> Servlet action not avaliable..
>>>>>> which on browsing i learn that is a very common error
>>>>>> i searched through the tomcat log where i dont see any error
>>>>>>             
>> messages..
>>     
>>>>>> i would like to know where does struts creates its log.. so that i can
>>>>>> understand more about the error..
>>>>>> Thanks
>>>>>> Sohil
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>>>
>>>>>>
>>>>>>
>>>>>>         
>>>>>>             
>>>>>       
>>>>>           
>>>   
>>>       
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>
> __________ Informacia od NOD32 2772 (20080107) __________
>
> Tato sprava bola preverena antivirusovym systemom NOD32.
> http://www.eset.sk
>
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struct Logging

Posted by Dave Newton <ne...@yahoo.com>.
It's probable there's an error in one (or more) of your S1 configuration
files.

d.

--- Sohil Rupani <so...@gslab.com> wrote:

> hi i m using Struts 1
> 
> Following is the content of my web.xml file.
> Please let me know if i m making some mistake in this ..
> Thanks
> 
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE web-app
> PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> <web-app>
> <!-- Action Servlet Configuration -->
>     <servlet>
>         <servlet-name>action</servlet-name>
>         
> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
>    
>             <init-param>
>                 <param-name>config</param-name>
>                 <param-value>/WEB-INF/struts-config.xml</param-value>
>             </init-param>
>            
>             <init-param>
>                 <param-name>debug</param-name>
>                 <param-value>2</param-value>
>             </init-param>
> 
>             <init-param>
>                 <param-name>detail</param-name>
>                 <param-value>2</param-value>
>             </init-param>
> 
>         <load-on-startup>2</load-on-startup>
>     </servlet>
> 
> 
>     <servlet>
>         <servlet-name>velocity</servlet-name>
>         
>
<servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class>
>            
>             <init-param>
>            
>                 <param-name>toolbox</param-name>
>                 <param-value>/WEB-INF/toolbox.xml</param-value>
>             </init-param>
> 
>             <load-on-startup>10</load-on-startup>
>     </servlet>
> 
> 
>     <!-- Action Servlet Mapping -->
>        
>     <servlet-mapping>
>         <servlet-name>velocity</servlet-name>
>         <url-pattern>*.vm</url-pattern>
>     </servlet-mapping>
>        
>     <servlet-mapping>
>         <servlet-name>action</servlet-name>
>         <url-pattern>*.do</url-pattern>
>     </servlet-mapping>
> 
> <!-- Struts Tag Library Descriptors -->
>    
>     <taglib>
>         <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
>         <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
>     </taglib>
>    
>     <taglib>
>         <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
>         <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
>     </taglib>
> 
>     <taglib>
>         <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
>         <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
>     </taglib>
> </web-app>
> 
> 
> 
> Cheng Wei Lee wrote:
> > Are you using Struts 1? Please check your web.xml file.
> >
> > On Jan 8, 2008 3:56 PM, Sohil Rupani <so...@gslab.com> wrote:
> >
> >   
> >> Hi ,
> >> Thanks for the reply.. appreciate you time.
> >>
> >> Following is the error i m getting on the browser..
> >>
> >> HTTP Status 404 - Servlet action is not available
> >> type Status report
> >> message Servlet action is not available
> >> description The requested resource (Servlet action is not available) is
> >> not available.
> >> Apache Tomcat/5.5.25
> >>
> >> I searched throught thru the log file of tomcat.  however it doesnt show
> >> any error ..
> >>
> >> Thanks,
> >> Sohil
> >>
> >> Thanks,
> >> Sohil.
> >>
> >> Cheng Wei Lee wrote:
> >>     
> >>> Hi Sohil,
> >>>
> >>> Could you provide the stacktrace for troubleshooting?
> >>>
> >>> Thanks.
> >>>
> >>> On Jan 8, 2008 3:37 PM, Sohil Rupani <so...@gslab.com> wrote:
> >>>
> >>>
> >>>       
> >>>> Hi,
> >>>>
> >>>> I m new to struts , using tomcat and jdk 1.5.  i m getting a error
> >>>> Servlet action not avaliable..
> >>>> which on browsing i learn that is a very common error
> >>>> i searched through the tomcat log where i dont see any error
> messages..
> >>>> i would like to know where does struts creates its log.. so that i can
> >>>> understand more about the error..
> >>>> Thanks
> >>>> Sohil
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>>> For additional commands, e-mail: user-help@struts.apache.org
> >>>>
> >>>>
> >>>>
> >>>>         
> >>>       
> >
> >   
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: Struct Logging

Posted by Sohil Rupani <so...@gslab.com>.
hi i m using Struts 1

Following is the content of my web.xml file.
Please let me know if i m making some mistake in this ..
Thanks


<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<!-- Action Servlet Configuration -->
    <servlet>
        <servlet-name>action</servlet-name>
        
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
   
            <init-param>
                <param-name>config</param-name>
                <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
           
            <init-param>
                <param-name>debug</param-name>
                <param-value>2</param-value>
            </init-param>

            <init-param>
                <param-name>detail</param-name>
                <param-value>2</param-value>
            </init-param>

        <load-on-startup>2</load-on-startup>
    </servlet>


    <servlet>
        <servlet-name>velocity</servlet-name>
        
<servlet-class>org.apache.velocity.tools.view.servlet.VelocityViewServlet</servlet-class>
           
            <init-param>
           
                <param-name>toolbox</param-name>
                <param-value>/WEB-INF/toolbox.xml</param-value>
            </init-param>

            <load-on-startup>10</load-on-startup>
    </servlet>


    <!-- Action Servlet Mapping -->
       
    <servlet-mapping>
        <servlet-name>velocity</servlet-name>
        <url-pattern>*.vm</url-pattern>
    </servlet-mapping>
       
    <servlet-mapping>
        <servlet-name>action</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>

<!-- Struts Tag Library Descriptors -->
   
    <taglib>
        <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-bean.tld</taglib-location>
    </taglib>
   
    <taglib>
        <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-html.tld</taglib-location>
    </taglib>

    <taglib>
        <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri>
        <taglib-location>/WEB-INF/struts-logic.tld</taglib-location>
    </taglib>
</web-app>



Cheng Wei Lee wrote:
> Are you using Struts 1? Please check your web.xml file.
>
> On Jan 8, 2008 3:56 PM, Sohil Rupani <so...@gslab.com> wrote:
>
>   
>> Hi ,
>> Thanks for the reply.. appreciate you time.
>>
>> Following is the error i m getting on the browser..
>>
>> HTTP Status 404 - Servlet action is not available
>> type Status report
>> message Servlet action is not available
>> description The requested resource (Servlet action is not available) is
>> not available.
>> Apache Tomcat/5.5.25
>>
>> I searched throught thru the log file of tomcat.  however it doesnt show
>> any error ..
>>
>> Thanks,
>> Sohil
>>
>> Thanks,
>> Sohil.
>>
>> Cheng Wei Lee wrote:
>>     
>>> Hi Sohil,
>>>
>>> Could you provide the stacktrace for troubleshooting?
>>>
>>> Thanks.
>>>
>>> On Jan 8, 2008 3:37 PM, Sohil Rupani <so...@gslab.com> wrote:
>>>
>>>
>>>       
>>>> Hi,
>>>>
>>>> I m new to struts , using tomcat and jdk 1.5.  i m getting a error
>>>> Servlet action not avaliable..
>>>> which on browsing i learn that is a very common error
>>>> i searched through the tomcat log where i dont see any error messages..
>>>> i would like to know where does struts creates its log.. so that i can
>>>> understand more about the error..
>>>> Thanks
>>>> Sohil
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>>> For additional commands, e-mail: user-help@struts.apache.org
>>>>
>>>>
>>>>
>>>>         
>>>       
>
>   

Re: Struct Logging

Posted by Cheng Wei Lee <zh...@gmail.com>.
Are you using Struts 1? Please check your web.xml file.

On Jan 8, 2008 3:56 PM, Sohil Rupani <so...@gslab.com> wrote:

> Hi ,
> Thanks for the reply.. appreciate you time.
>
> Following is the error i m getting on the browser..
>
> HTTP Status 404 - Servlet action is not available
> type Status report
> message Servlet action is not available
> description The requested resource (Servlet action is not available) is
> not available.
> Apache Tomcat/5.5.25
>
> I searched throught thru the log file of tomcat.  however it doesnt show
> any error ..
>
> Thanks,
> Sohil
>
> Thanks,
> Sohil.
>
> Cheng Wei Lee wrote:
> > Hi Sohil,
> >
> > Could you provide the stacktrace for troubleshooting?
> >
> > Thanks.
> >
> > On Jan 8, 2008 3:37 PM, Sohil Rupani <so...@gslab.com> wrote:
> >
> >
> >> Hi,
> >>
> >> I m new to struts , using tomcat and jdk 1.5.  i m getting a error
> >> Servlet action not avaliable..
> >> which on browsing i learn that is a very common error
> >> i searched through the tomcat log where i dont see any error messages..
> >> i would like to know where does struts creates its log.. so that i can
> >> understand more about the error..
> >> Thanks
> >> Sohil
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
> >>
> >
> >
>

Re: Struct Logging

Posted by Sohil Rupani <so...@gslab.com>.
Hi ,
Thanks for the reply.. appreciate you time.

Following is the error i m getting on the browser..

HTTP Status 404 - Servlet action is not available
type Status report
message Servlet action is not available
description The requested resource (Servlet action is not available) is 
not available.
Apache Tomcat/5.5.25

I searched throught thru the log file of tomcat.  however it doesnt show 
any error ..

Thanks,
Sohil

Thanks,
Sohil.

Cheng Wei Lee wrote:
> Hi Sohil,
>
> Could you provide the stacktrace for troubleshooting?
>
> Thanks.
>
> On Jan 8, 2008 3:37 PM, Sohil Rupani <so...@gslab.com> wrote:
>
>   
>> Hi,
>>
>> I m new to struts , using tomcat and jdk 1.5.  i m getting a error
>> Servlet action not avaliable..
>> which on browsing i learn that is a very common error
>> i searched through the tomcat log where i dont see any error messages..
>> i would like to know where does struts creates its log.. so that i can
>> understand more about the error..
>> Thanks
>> Sohil
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>>     
>
>   

Re: Struct Logging

Posted by Cheng Wei Lee <zh...@gmail.com>.
Hi Sohil,

Could you provide the stacktrace for troubleshooting?

Thanks.

On Jan 8, 2008 3:37 PM, Sohil Rupani <so...@gslab.com> wrote:

> Hi,
>
> I m new to struts , using tomcat and jdk 1.5.  i m getting a error
> Servlet action not avaliable..
> which on browsing i learn that is a very common error
> i searched through the tomcat log where i dont see any error messages..
> i would like to know where does struts creates its log.. so that i can
> understand more about the error..
> Thanks
> Sohil
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Struct Logging

Posted by Sohil Rupani <so...@gslab.com>.
Hi,

I m new to struts , using tomcat and jdk 1.5.  i m getting a error
Servlet action not avaliable..
which on browsing i learn that is a very common error
i searched through the tomcat log where i dont see any error messages..
i would like to know where does struts creates its log.. so that i can 
understand more about the error..
Thanks
Sohil

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org