Logging using commons.logging

2003-10-23 Thread Ritvik
Hi There,

In our system we have a requirement to generate two seperate logs,
system log and auditing log. The system log must log details of request
and processing details. This log is mainly used by developer at the time
of debugging and maintenance.

The auditing log is used for auditing purposes by business community to
audit access to the system by various users.

What would be the best solution to acheive the above? Does
commons.logging and default SimpleLog implementation will allow me to
set different logs and print the message in them? I haven't seen any
example explaining how to configure the logging toolkit to send message
to a specific output file?

Any suggestions would help,

Ritvik



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Initializing Configuration Parameters..

2003-10-15 Thread Ritvik
Hi There,

In Struts, How to load application specific environment parameters from
an external file i.e properties file at the time of Servlet load up? How
to make suub class of ActionServlet read the evironment\Service
information from a properties file?

regards,
Ritvik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tiles Tag: Submit a Body Tile from Header Tile..

2003-10-07 Thread Ritvik
Hi There,

We are using tiles for our JSP layout and have following tile components
LeftNavigation.jsp, Header.jsp, body.jsp and footer.jsp. There are
series of buttons on LeftNavigation.jsp, which must submit\post any of
body.jsp HTML forms..

Any suggestions on how to submit a jsp from another i.e
LeftNavigation.jsp? Is Javascript is an option?

regards,
Ritvik



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Displaying Errors in JSP !!

2003-09-15 Thread Ritvik
Hi There,

Please have a look at html:errors tag posting earlier today.. There are couple of 
responses th that thread. They will help you.

Ritvik


Dhanunjaya Gotur wrote:

> Hi,
>
> I am new to Struts and I am using Struts1.1 and my question is How to display an 
> Error Message in my Login JSP (Which is having two fields 1. Login ID & 2. Password)
> So When User enters LoginID and incorrect password ., I should display a message  in 
> my JSP something like "The password you entered is invalid. Please try again."..  So 
> pl. send me all possible solutions..
>
> Cheer's
> Dhanu.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:errors tag..

2003-09-15 Thread Ritvik
Hi There,

I am using  tag at top of my page to display any
validation errors when a form is submitted, but for some reason, I
couldn't see any errors message even I have left some mandatory fields
blank. I am not getting any errors in server log as well.

I have added the validation logic in validate() method of ActionForm
subclass. I think Struts adds ActionErrors object in the request\session
scope with a know key, can anyone let me know the exaclt key name?

What would be the best way test errors using Struts?

thanks,
Ritvik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error:Cannot find bean org.apache.struts.taglib.html.BEAN in any Scope

2003-09-12 Thread Ritvik
Thanks Deepak..

It worked..

deepaksawdekar wrote:

> Action attribute in form tag will be missing. if its the requirement, added the name 
> attribute to all the  tags.
>
> Deepak.
>
> -Original Message-----
> From: Ritvik [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 12, 2003 8:08 PM
> To: [EMAIL PROTECTED]
> Subject: Error:Cannot find bean org.apache.struts.taglib.html.BEAN in
> any Scope
>
> Hi There,
>
> I am following the book 'Struts In Action' books and trying to build the
>
> Sample Logon Application from first few chapters. I was able to display
> Welcome page (Welcome.do) and when i click on 'Sign In' link, I am
> getting the following error? Please also review the configurations added
>
> to struts-config file. Why does 'logonForm' bean being created?
>
> javax.servlet.jsp.JspException: Cannot find bean
> org.apache.struts.taglib.html.BEAN in any
>
> scope
>  at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:714)
>  at
> org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:193)
>
>  at org.apache.jsp.Logon$jsp._jspService(Logon$jsp.java:116)
>
> -- Welcome.jsp code snippet --
>
> Sign in
>
>  name="logonForm"
> type="app.view.LogonForm"/>
> 
>
> 
>      name="logon"
> path="/Logon.do"/>
>
>   path="/Logon"
>  type="org.apache.struts.actions.ForwardAction"
>  parameter="/pages/Logon.jsp"/>
>
> thanks,
> Ritvik
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Error:Cannot find bean org.apache.struts.taglib.html.BEAN in any Scope

2003-09-12 Thread Ritvik
Hi There,

I am following the book 'Struts In Action' books and trying to build the

Sample Logon Application from first few chapters. I was able to display
Welcome page (Welcome.do) and when i click on 'Sign In' link, I am
getting the following error? Please also review the configurations added

to struts-config file. Why does 'logonForm' bean being created?

javax.servlet.jsp.JspException: Cannot find bean
org.apache.struts.taglib.html.BEAN in any

scope
 at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:714)
 at
org.apache.struts.taglib.html.BaseFieldTag.doStartTag(BaseFieldTag.java:193)

 at org.apache.jsp.Logon$jsp._jspService(Logon$jsp.java:116)

-- Welcome.jsp code snippet --

Sign in


    






thanks,
Ritvik


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]