JDK1.4.2 Version

2006-07-11 Thread Vasumathi

Hi All
  Can anyone tell me the name of 
JDK1.4.2 like Java SE6 name is "Mustang".


With Regards
Vasumathi.



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



ServletConfig, ServletContext and ServletContainer

2006-06-19 Thread vasumathi


Hi
  I have a confusion with Difference between ServletContext, ServletContainer 
and ServletConfig?

Also the destroy() method is called by the ServletContainer after the threads 
in service() method exited or the time period expired.
My question is, how the ServletContainer come to know threads in service() 
exited? how ServletContainer come to know to call destroy().
  Anyone can help me...
With Regards
vasu


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



Extending DynaActionForm

2006-03-30 Thread vasumathi


Hi
  Anyone can help, how to use the properties of a DynaActionForm in other 
DynaActionForm with example.

with regards
vasu


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



Difference between DispatchAction and LookupDispatchAction

2006-03-30 Thread vasumathi


Hi
  i like to know the difference between DispatchAction and 
LookupDispatchAction in struts 1.2. anyone can help me...

with regards
vasu

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



Re: which method is better

2006-02-28 Thread vasumathi
If you want to submit all the values to database, you can pass form ref.
but in case of submitting one or two values to database, what is the need of 
sending form ref, we can pass those values itself.

> Hello,
> 
> I usually have set and get methods for all properties in my Model class.
> After submitting a form, I pull out all the property values (form fields)
> in
> the Action class from the ActionForm object, set the values of all
> properties in the model from the action class and then call a particular
> method in the model class for final submission to the database.
> 
> I wanted to know thether the above mentioned method is better or is it
> better to pass the form reference itself to the Model class which then sets
> the values.
> 
> In situation 2, I do not have to take care of the various String references
> that I create. I simply will pass the ActionForm object to the Model class.
> 
> regards,
> vijay.
> 
> 
> 
> -
> 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]



Disabling Back Button in IE

2006-02-21 Thread vasumathi


Hi
 Anyone can tell how to disable the "Back" button in IE through our Code.


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



Re: validator frame work for struts Action Errors

2006-02-20 Thread vasumathi

u can use like this in validation.xml file in WEB-INF folder.

 


minlength
5


maxlength
12


mask
^[0-9_a-zA-Z]*$

 
 
 
 
  
no need to use validate method in ActionForm.
i think u know the use of validator-rules.xml in WEB-INF folder.


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



Re: Regarding using HashMap in jsp

2006-02-01 Thread Vasumathi
Hi 
 Thanks for your help.

Regards
vasu

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



Regarding using HashMap in jsp

2006-01-30 Thread Vasumathi
HI 
 Anyone can tell how to write the properties value of HashMap in  
using 

Regards
vasu

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



Difference between struts1.1 and struts1.2

2006-01-24 Thread Vasumathi


Hi
 Anyone can explain the difference between struts1.1 and struts1.2

with regards
vasu

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



RE: Struts, Tiles and the Validator

2006-01-24 Thread Vasumathi
dont change anything in struts_config.xml.
write your validation in action itself instead of writing in validation.xml 
for your Form.

like,
if(id == null){
request.setAttribute("error","errors.id.notexist");
  }

try this, let me the result pls.
with regards
vasu

Quoting Martin Ravell <[EMAIL PROTECTED]>:

> Thanks for the post Vasumathi
> 
> I don't quite follow what you are saying however.
> 
> Since I use Tiles with my struts the page that contains my form is produced
> by an Action executing (I use an Action which extends DispatchAction).
> 
> If the Validation fails (there are fields that do not meet their
> validations
> rules) I need to go back to what is in the 'input' option of the action
> element.
> 
> As far as I can work out this needs to be a jsp.
> 
> It cannot however be a jsp since it is my Action that ties me into a tiles
> definition which produces the form.
> 
> I've tried putting thigns like '/activate.do?method=init' into the input
> option of the action element but this refuses to work.
> 
> Any ideas?
> 
> 
> Regards
> Marty
> 
> 
> -Original Message-
> From: Vasumathi [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, 24 January 2006 4:44 PM
> To: Struts Users Mailing List
> Subject: Re: Struts, Tiles and the Validator
> 
> Hi
>   you try like this in struts_config.xml and tiles_sam.xml file.
> 
>  type="controller.admin.action.SampleAction" validate="true" 
> input="/admin/icf/sample.jsp">
>
> 
> 
> in tiles for this sample.jsp
> 
> 
>   
>   
>   
>   
>   
>   
> 
> this may help u
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> 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]



Re: Struts, Tiles and the Validator

2006-01-23 Thread Vasumathi
Hi
  you try like this in struts_config.xml and tiles_sam.xml file.





in tiles for this sample.jsp









this may help u






Quoting Martin Ravell <[EMAIL PROTECTED]>:

> Say I have an app that uses Struts and Tiles and I am trying to get the
> Validator plugin to play nicely.
> 
> As I understand it the 'input' option of an action element in
> struts-config.xml is used when a validation fails. i.e. if a validation
> fails we are redirected to whatever is in the input option rather than
> getting sent to the Action.
> 
> This is what we want right? Only actually go to the Action if the fields
> pass their validations.
> 
> I've looked at various Tiles tutorials and even more Validator tutorials
> but
> I can't seem to work out what I need to do to get these two to work in
> conjunction with each other.
> 
> This 'input' value for the action element cannot be straight to a .jsp
> since
> I am using Tiles. If a validation fails we need to get Tiles to reconstruct
> the page (with it's header, menu etc) and display the messages from the
> failed validation.
> 
> If I put in the name of a definition in my tiles-defs.xml into the 'input'
> option and purposefully fail validation on one or more fields I just get a
> blank page and a record in my log saying:
> 
>   Validation failed, returning to 'activate_init'
> 
> (activate_init in this case was the name of my definition in
> tiles-defs.xml)
> 
> 
> I know that the validator is being invoked because if I enter values that
> will pass the validation tests I do go through to the Action.
> 
> 
> Can someone give me an idea of what the action element should look like?
> More specifically what should go into the input option if I am using Tiles?
> 
> I've tried creating an action definition specifically for use in the
> 'input'
> option e.g.
> 
> 
> 
> Then putting "/act.do" into the input still gives me a blank page.
> 
> 
> Damn I am confused. Have been looking so hard at this that I cannot see it.
> Can someone help with an explanation of how Struts and Tiles and the
> Validator can work happily together?
> 
> 
> Regards
> Marty
> 
> 
> 
> 
> 
> -
> 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]



Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Vasumathi
can u send ur struts_config.xml file with validator plugin and mentioning 
message_resource class in that file.
also pls send ur jsp in which u want to print error messages.
regards
vasu



Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>:

> Thanks for the replies.
> 
> Here is more info on the problem that I am having. 
> 
> I used the DynaValidatorForm in the form beans in
> order not to explicitly code the form beans. Also, I
> tried to do both client-side(javascript) and
> server-side validations. The client side validation
> worked. The javascript catches if I try to submit an
> empty form. However, if I remove the client side
> validation and have only the server-side validation,
> the validation does'nt seem to occur . It is not
> throwing the error back to the input page. Instead, it
> starts performing the action as if the form is valid
> eventhough it is empty.
> 
> Any help to solve this is highly appreciated.
> 
> Thanks
> 
> 
> Maha
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> 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]



Re: Validation with DynaValidatorForm not working - help

2006-01-12 Thread Vasumathi
Yes mr.vishal in that case we should validate() method.
again i have a doubt, for reducing the class files only we r using 
DynaValidatorForm, but in this suituation use of DynaValidatorForm fails 
know...
there may be a solution for this.
mr.vishal ill search and let u know the solution for that.
if u know anything about this let me it.

Regards
vasu



Quoting Vishal Gaurav <[EMAIL PROTECTED]>:

> I guess that would work if you have validations corresponding to a
> form i.eyou are extending DynaValidatorForm.
> 
> If you need to extend DynaValidatorActionForm, i.e give validations
> corresponding to a action (as single form can be reused in different
> actions
> and not all fields need to be validated in each case) then I feel you need
> a
> call to validate.
> 
> Correct me if I'm wrong :-)
> 
> Regards,
> Vishal
> 
> On 1/12/06, Vasumathi <[EMAIL PROTECTED]> wrote:
> >
> > No mr.vishal i tried thats y im telling.
> > u try without using validate method in local form.
> > we have to mention the validation for each field in validation.xml file
> > itself.
> > no need of calling validate() in local form.
> > definitely it will work.
> >
> >
> >
> > > You are right that there is no need to create a form bean if you are
> > using
> > > dyna form.
> > >
> > > However if you want to link your form with the validation framework
> then
> > > you
> > > do need to create a local form bean. This form bean would not have any
> > > attributes and their getter and setter methods as they all are defined
> > in
> > > Struts config.
> > >
> > > All it would contain is a validate method with a call to super.validate
> > ().
> > > Please refer to the sample code in my last note for reference.
> > >
> > > Regards,
> > > Vishal
> > >
> > > On 1/12/06, Vasumathi <[EMAIL PROTECTED]> wrote:
> > > >
> > > > no need to create a Form class in local. if we are using
> > DynaActionForm,
> > > > then
> > > > no need of create form class in local.
> > > > i tried in struts_config.xml only, it is working well.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Quoting Vishal Gaurav <[EMAIL PROTECTED]>:
> > > >
> > > > > Hi,
> > > > >
> > > > > Simply having your dyna form bean of the type Dyna Validator form
> > will
> > > > not
> > > > > work. You have to declare your form bean in the Struts Config as
> > type
> > > > any
> > > > > local form bean you have. ( )
> > > > >
> > > > > Then your ABCForm will extend DynaValidatorForm or
> > > > DynaValidatorActionForm
> > > > > depending on yor requirement.
> > > > >
> > > > > It would have code similar to one given below
> > > > >
> > > > > public class LoginForm  extends DynaValidatorActionForm{
> > > > > public ActionErrors validate(ActionMapping mapping,
> > HttpServletRequest
> > > > > request) {
> > > > >
> > > > >   ActionErrors errors = null;
> > > > >   errors = super.validate(mapping, request);
> > > > >
> > > > >   return errors;
> > > > >   }
> > > > > }
> > > > >
> > > > > Hope this solves your problem.
> > > > >
> > > > >
> > > > > On 1/12/06, Vasumathi <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > > sorry u try this one. not previous one.
> > > > > >
> > > > > >  > > > > > type="org.apache.struts.validator.DynaValidatorForm">
> > > > > >
> > > > > >
> > > > > > 
> > > > > >
> > > > > >
> > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>:
> > > > > > >
> > > > > > > > Hi,
> > > > > > > >
> > > > > > >

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
 No mr.vishal i tried thats y im telling.
u try without using validate method in local form.
we have to mention the validation for each field in validation.xml file itself.
no need of calling validate() in local form.
definitely it will work.



> You are right that there is no need to create a form bean if you are using
> dyna form.
> 
> However if you want to link your form with the validation framework then
> you
> do need to create a local form bean. This form bean would not have any
> attributes and their getter and setter methods as they all are defined in
> Struts config.
> 
> All it would contain is a validate method with a call to super.validate().
> Please refer to the sample code in my last note for reference.
> 
> Regards,
> Vishal
> 
> On 1/12/06, Vasumathi <[EMAIL PROTECTED]> wrote:
> >
> > no need to create a Form class in local. if we are using DynaActionForm,
> > then
> > no need of create form class in local.
> > i tried in struts_config.xml only, it is working well.
> >
> >
> >
> >
> >
> >
> > Quoting Vishal Gaurav <[EMAIL PROTECTED]>:
> >
> > > Hi,
> > >
> > > Simply having your dyna form bean of the type Dyna Validator form will
> > not
> > > work. You have to declare your form bean in the Struts Config as type
> > any
> > > local form bean you have. ( )
> > >
> > > Then your ABCForm will extend DynaValidatorForm or
> > DynaValidatorActionForm
> > > depending on yor requirement.
> > >
> > > It would have code similar to one given below
> > >
> > > public class LoginForm  extends DynaValidatorActionForm{
> > > public ActionErrors validate(ActionMapping mapping, HttpServletRequest
> > > request) {
> > >
> > >   ActionErrors errors = null;
> > >   errors = super.validate(mapping, request);
> > >
> > >   return errors;
> > >   }
> > > }
> > >
> > > Hope this solves your problem.
> > >
> > >
> > > On 1/12/06, Vasumathi <[EMAIL PROTECTED]> wrote:
> > > >
> > > > sorry u try this one. not previous one.
> > > >
> > > >  > > > type="org.apache.struts.validator.DynaValidatorForm">
> > > >
> > > >
> > > > 
> > > >
> > > >
> > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>:
> > > > >
> > > > > > Hi,
> > > > > >
> > > > > > I am having some problems in  getting struts to
> > > > > > validate my input form. It seems to completely ignore
> > > > > > the validation and starts executing the action.
> > > > > >
> > > > > > Here are the relevant files. Any help regarding this
> > > > > > is highly appreciated.
> > > > > >
> > > > > > TIA
> > > > > >
> > > > > > Maha
> > > > > >
> > > > > > struts-config.xml
> > > > > > --
> > > > > >
> > > > > > 
> > > > > >   
> > > > > >> > > > >type="forms.ObjectTypeForm"
> > > > > > dynamic="true">
> > > > > >  > > > > > type="java.lang.String"/>
> > > > > >  > > > > > type="java.lang.String"/>
> > > > > >   
> > > > > >
> > > > > > 
> > > > > >
> > > > > > the action - mappings contains
> > > > > >
> > > > > >> > > > >  type="actions.ObjectTypeAction"
> > > > > >   name="ObjectTypeForm"
> > > > > >   scope="request"
> > > > > >   validate="true"
> > > > > >   input="/objecttype.jsp"
> > > > > >   parameter="function">
> > > > 

Space in jsp

2006-01-11 Thread Vasumathi

Hi 
   after running the web application, when i see the source of that page, 
there are lots and lots of space between each line.
what is the reason for that, anyone can help me plz.
i not used any &nbsb in that jsp page...

Regards
vasu


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



Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
no need to create a Form class in local. if we are using DynaActionForm, then 
no need of create form class in local.
i tried in struts_config.xml only, it is working well.






Quoting Vishal Gaurav <[EMAIL PROTECTED]>:

> Hi,
> 
> Simply having your dyna form bean of the type Dyna Validator form will not
> work. You have to declare your form bean in the Struts Config as type any
> local form bean you have. ( )
> 
> Then your ABCForm will extend DynaValidatorForm or DynaValidatorActionForm
> depending on yor requirement.
> 
> It would have code similar to one given below
> 
> public class LoginForm  extends DynaValidatorActionForm{
> public ActionErrors validate(ActionMapping mapping, HttpServletRequest
> request) {
> 
>   ActionErrors errors = null;
>   errors = super.validate(mapping, request);
> 
>   return errors;
>   }
> }
> 
> Hope this solves your problem.
> 
> 
> On 1/12/06, Vasumathi <[EMAIL PROTECTED]> wrote:
> >
> > sorry u try this one. not previous one.
> >
> >  > type="org.apache.struts.validator.DynaValidatorForm">
> >
> >
> > 
> >
> >
> >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>:
> > >
> > > > Hi,
> > > >
> > > > I am having some problems in  getting struts to
> > > > validate my input form. It seems to completely ignore
> > > > the validation and starts executing the action.
> > > >
> > > > Here are the relevant files. Any help regarding this
> > > > is highly appreciated.
> > > >
> > > > TIA
> > > >
> > > > Maha
> > > >
> > > > struts-config.xml
> > > > --
> > > >
> > > > 
> > > >   
> > > >> > >type="forms.ObjectTypeForm"
> > > > dynamic="true">
> > > >  > > > type="java.lang.String"/>
> > > >  > > > type="java.lang.String"/>
> > > >   
> > > >
> > > > 
> > > >
> > > > the action - mappings contains
> > > >
> > > >> > >  type="actions.ObjectTypeAction"
> > > >   name="ObjectTypeForm"
> > > >   scope="request"
> > > >   validate="true"
> > > >   input="/objecttype.jsp"
> > > >   parameter="function">
> > > >> > > path="/error.jsp" />
> > > >> > > path="/index.jsp" />
> > > >> > > path="/objecttype.jsp" />
> > > >   
> > > >
> > > > The ObjectTypeAction class extends DispatchAction.
> > > >
> > > > validate.xml
> > > > 
> > > >
> > > > 
> > > > 
> > > > 
> > > >  > > > depends="required">
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > validation-rules.xml
> > > > 
> > > >
> > > > 
> > > >   
> > > >  > > >
> > > > classname=" org.apache.struts.validator.FieldChecks"
> > > >  method="validateRequired"
> > > >methodParams="java.lang.Object,
> > > >
> > > > org.apache.commons.validator.ValidatorAction ,
> > > >
> > > > org.apache.commons.validator.Field,
> > > >
> > > > org.apache.struts.action.ActionErrors,
> > > >
> > > > javax.servlet.http.HttpServletRequest"
> > > > msg="errors.required">
> > > > 
> > > >   
> > > > 
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > __
> > > > Do You Yahoo!?
> > > > Tired of spam?  Yahoo! Mail has the best spam protection around
> > > > http://mail.yahoo.com
> > > >
> > > > -
> > > > 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]
> >
> >
> 
> 
> --
> Thanks and Regards,
> Vishal Gaurav
> Ph : 9810482236
> Email : [EMAIL PROTECTED]
> 




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



Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
sorry u try this one. not previous one.
 
 


 
 
 
 
> 
> 
> 
> 
> 
> 
> 
> 
> Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>:
> 
> > Hi,
> > 
> > I am having some problems in  getting struts to
> > validate my input form. It seems to completely ignore
> > the validation and starts executing the action. 
> > 
> > Here are the relevant files. Any help regarding this
> > is highly appreciated.
> > 
> > TIA 
> > 
> > Maha
> > 
> > struts-config.xml
> > --
> > 
> > 
> >   
> >>type="forms.ObjectTypeForm"
> > dynamic="true">
> >  > type="java.lang.String"/>
> >  > type="java.lang.String"/>
> >   
> > 
> > 
> > 
> > the action - mappings contains
> >  
> >>  type="actions.ObjectTypeAction"
> >   name="ObjectTypeForm"
> >   scope="request"
> >   validate="true"
> >   input="/objecttype.jsp"
> >   parameter="function">
> >> path="/error.jsp" />
> >> path="/index.jsp" />
> >> path="/objecttype.jsp" />
> >   
> > 
> > The ObjectTypeAction class extends DispatchAction.
> > 
> > validate.xml
> > 
> > 
> > 
> > 
> > 
> >  > depends="required">
> > 
> > 
> > 
> > 
> > 
> > 
> > validation-rules.xml
> > 
> > 
> > 
> >   
> >  >  
> > classname="org.apache.struts.validator.FieldChecks"
> >  method="validateRequired"
> >methodParams="java.lang.Object,
> > 
> > org.apache.commons.validator.ValidatorAction,
> > 
> > org.apache.commons.validator.Field,
> > 
> > org.apache.struts.action.ActionErrors,
> > 
> > javax.servlet.http.HttpServletRequest"
> > msg="errors.required">
> > 
> >   
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Tired of spam?  Yahoo! Mail has the best spam protection around 
> > http://mail.yahoo.com 
> > 
> > -
> > 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]



Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
Try like this in struts-config.xml file.
i hope it will work.



   
   












Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>:

> Hi,
> 
> I am having some problems in  getting struts to
> validate my input form. It seems to completely ignore
> the validation and starts executing the action. 
> 
> Here are the relevant files. Any help regarding this
> is highly appreciated.
> 
> TIA 
> 
> Maha
> 
> struts-config.xml
> --
> 
> 
>   
>   type="forms.ObjectTypeForm"
> dynamic="true">
>  type="java.lang.String"/>
>  type="java.lang.String"/>
>   
> 
> 
> 
> the action - mappings contains
>  
> type="actions.ObjectTypeAction"
>   name="ObjectTypeForm"
>   scope="request"
>   validate="true"
>   input="/objecttype.jsp"
>   parameter="function">
>path="/error.jsp" />
>path="/index.jsp" />
>path="/objecttype.jsp" />
>   
> 
> The ObjectTypeAction class extends DispatchAction.
> 
> validate.xml
> 
> 
> 
> 
> 
>  depends="required">
> 
> 
> 
> 
> 
> 
> validation-rules.xml
> 
> 
> 
>   
>   
> classname="org.apache.struts.validator.FieldChecks"
>  method="validateRequired"
>methodParams="java.lang.Object,
> 
> org.apache.commons.validator.ValidatorAction,
> 
> org.apache.commons.validator.Field,
> 
> org.apache.struts.action.ActionErrors,
> 
> javax.servlet.http.HttpServletRequest"
> msg="errors.required">
> 
>   
> 
> 
> 
> 
> 
> 
> 
> __
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> -
> 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]



Re: Missing message for key

2006-01-05 Thread Vasumathi
hi
u try like this in jsp page.
 






Quoting Gündüz Can Topal <[EMAIL PROTECTED]>:

> Hey
> 
> I setup ApplicationResources.properties file in"com.trend.struts" 
> package in "src" directory.
> 
> In which I have
> title = "MY TITLE"
> element.
> 
> My struts-config line as follows :
> 
> 
> A jsp page containing following code
>  <%@ taglib uri='/WEB-INF/struts-bean.tld' prefix='bean' %>
> 
> 
> throws a jspException :
> Missing message for key "title".
> 
> ?
> 
> 
> 
> 
> 
> 
> -
> 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]



RE: Regarding Log4j

2005-12-28 Thread Vasumathi
Thank you very much sir.

I am having one doubt.we are using Tomcat.can u tell me how to configure 
log4j.xml in web.xml.i got the following information already from u.bcoz i got 
server error when deploying and starting the server.


Quoting "JEEVANATHAM P. /BPCRP/INFOTECH/VASHI" <[EMAIL PROTECTED]
infotech.com>:

> 1.Download log4j.jar from here
> http://jakarta.apache.org/log4j/docs/download.html
> 
> Put the jar in web-inf/lib
> 
> 2.Create log4j.xml in your WEB-INF/classes directory.
> 
> ++ sample log4j.xml +
> 
> ***
> 
> 
> 
> 
> 
>  
> 
> 
> 
>  
> 
>   
> 
>   
> 
> 
> 
>
> value="[%d{ISO8601}] [WEbAPP] [%5p] %C.%M:%L: %m%n"/>
> 
> 
> 
>   
> 
>  
> 
>   
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 3.Create instance for your class log4j
> 
> private Logger logger = Logger.getLogger(yourclass.class);
> 
>  
> 
> then you can any where in your class instead of System.out.println()any one
> of the below.
> 
> logger.debug();
> 
> logger.info();
> 
> logger.error();
> 
> logger.Warn();
> 
> logger.fetal();
> 
>  
> 
> that's all.
> 
>  
> 
> Regards,
> 
> Jeeva.P
> 
>  
> 
> -Original Message-
> From: Vasumathi [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, December 28, 2005 9:28 AM
> To: Struts Users Mailing List
> Subject: Regarding Log4j
> 
>  
> 
>  
> 
>  
> 
> Hi Guys
> 
>   I am working on struts for last one year. In my current project we are
> using 
> 
> Log4j for Logger.i like to know how to configure and use in our
> application.
> 
> particularly we are using Ant tool.
> 
>  Anyone can help me please.
> 
> its very urgent please
> 
> regards
> 
> vasumathi.p
> 
>  
> 
> -
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> Greetings!
> 
>  
> 
> 
> ICICI Infotech is now 3i Infotech.
> 
> 
> The e-mail addresses of the company's employees have been changed to
> @3i-infotech.com. You are requested to take note of this new
> e-mail ID and make use of the same in future
> 
>  
> "This e-mail message may contain confidential, proprietary or legally
> privileged information. It should not be used by anyone who is not the
> original intended recipient. If you have erroneously received this message,
> please delete it immediately and notify the sender. The recipient
> acknowledges that 3i Infotech or its subsidiaries and associated companies,
> (collectively "3i Infotech"), are unable to exercise control or ensure or
> guarantee the integrity of/over the contents of the information contained in
> e-mail transmissions and further acknowledges that any views expressed in
> this message are those of the individual sender and no binding nature of the
> message shall be implied or assumed unless the sender does so expressly with
> due authority of 3i Infotech. Before opening any attachments please check
> them for viruses and defects."
> 
> 




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



RE: Problem with resources file

2005-12-28 Thread Vasumathi
Hi Sakala Reddy
thank u for ur reply.
i already tried like that, but it shows some error like,
 'equal symbol required... like that


Quoting "Sakalareddy.T" <[EMAIL PROTECTED]>:

> Hi vasumathi,
> Ex; j
> 
> Calling the function: javascript:xyz('');
> 
> As usual in javascript function declaration: xyz(str) { ... }
> Thanks & Regards
> Sakala Reddy.T
> 
> -Original Message-
> From: Vasumathi [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 28, 2005 3:21 PM
> To: Struts Users Mailing List
> Subject: Re: Problem with resources file
> 
> 
>  className="org.apache.struts.config.MessageResourcesConfig"
> parameter="com.marcapo.catalog.i18n.resourcefilename" />
> 
> try with this code in struts_config.xml
> 
> -
> 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]



Re: Problem with resources file

2005-12-28 Thread Vasumathi


try with this code in struts_config.xml

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



About

2005-12-28 Thread Vasumathi


Hi Everybody
  i have a doubt that, how to pass  into javascript function.
when clicking the button i have to call a javascript function with 
 as parameter. is it possible?
anyone can help me pls...
regards
vasumathi.



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



About

2005-12-28 Thread Vasumathi
Hi Everybody
  i have a doubt that, how to pass  into javascript function.
when clicking the button i have to call a javascript function with 
 as parameter. is it possible?
anyone can help me pls...
regards
vasumathi.



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



Regarding Log4j

2005-12-27 Thread Vasumathi


Hi Guys
  I am working on struts for last one year. In my current project we are using 
Log4j for Logger.i like to know how to configure and use in our application.
particularly we are using Ant tool.
 Anyone can help me please.
its very urgent please
regards
vasumathi.p

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