javascript html:fprm and getElementById

2005-06-26 Thread Arash Bijanzadeh
Hi,
I need to change the action of my form on the fly. I use the following 
javascript:
function setParam(mode)
{
document.getElementById("myform").action ="<%=(String)
request.getAttribute("origin")%>"
+ mode+ ".do";
document.forms[0].submit();

}
and my form is :
" 
styleId="myform" >

It works perfect under mozilla but not IE. I think the problem is that IE 
looks for Id in the name field of form and he couln't find it.
Could anyone help me?
Regards
ARash


Re: running tomcat on port 80

2005-06-25 Thread Arash Bijanzadeh
I think there soulh be a module for apache to handle this situation.


On 6/24/05, Mohd. Jeffry <[EMAIL PROTECTED]> wrote:
> 
> On 6/22/05, Tony Smith <[EMAIL PROTECTED]> wrote:
> > How can I set the permission? It is my box, viturally
> > I can do whatever I want.
> >
> > Thanks,
> 
> If you don't care about security you can always run tomcat as root and
> you can use whatever unused ports. Just su - into root and execute the
> $CATALINA_HOME/bin/startup.sh
> 
> If you want this to start on boot you have to change your start-up
> script at /etc/init.d/tomcat for instance..
> 
> Use this at your own risk. RUNNING TOMCAT AS ROOT WAS NOT AN OPTION
> for production use.
> This is just a quickie thing and not ment to be as a permenant
> solution. A good solution IMHO is running an Apache + mod_jk + tomcat
> 
> regards,
> linuxlah
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Re: JAAS example[Scanned]

2005-06-23 Thread Arash Bijanzadeh
Thank you, Last time I tryed it tomcat was buggy and left me frustrated! May 
be it is OK now!
Cheers
Arash

On 6/23/05, Nitesh <[EMAIL PROTECTED]> wrote:
> 
> And...
> 
> http://www.jroller.com/page/tomdz/20041215
> 
> 
> Nitesh
> 
> Googling results...
> 
> http://jakarta.apache.org/slide/howto-jaas.html
> 
> http://www.isys.uni-klu.ac.at/ISYS/Courses/04WS/webtechnologien/downloads/TomcatConfig.pdf
> 
> 
> 
> Nitesh
> 
> - Original Message -
> From: Arash Bijanzadeh
> To: Nitesh
> Sent: Thursday, June 23, 2005 3:14 PM
> Subject: Re: JAAS example
> 
> 
> I am familiar with JASS. My question is how struts using the JAAS for 
> security, how shall I implement it and for the starting point how can I get 
> a JAAS user in a Action working with the tomcat?
> 
> 
> On 6/23/05, Nitesh <[EMAIL PROTECTED]> wrote:
> http://java.sun.com/j2se/1.4.2/docs/guide/security/jaas/JAASRefGuide.html
> and
> http://struts.apache.org/userGuide/preface.html#jaas
> 
> could be a starting point...
> 
> HTH
> Nitesh
> - Original Message -
> From: "Arash Bijanzadeh" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Thursday, June 23, 2005 2:47 PM
> Subject: JAAS example
> 
> 
> Hi all,
> I am searching for an example of using struts security framework and JAAS
> maybe. Could anyone lead me to a document/tutorial/example?
> Thanks
> Arash B.
> 
> 
> 
>


JAAS example

2005-06-23 Thread Arash Bijanzadeh
Hi all,
I am searching for an example of using struts security framework and JAAS 
maybe. Could anyone lead me to a document/tutorial/example?
Thanks
Arash B.


Re: Eclipse plug-in for Struts

2005-06-23 Thread Arash Bijanzadeh
Me too am searching for a plugin for Eclipse to be able to write my J2EE 
components like JSP XML HTML and so on.
Any good free one?
Regards
Arash

On 6/22/05, Barnett, Brian W. <[EMAIL PROTECTED]> wrote:
> 
> http://www.sysdeo.com/sysdeo/eclipse/tomcatplugin
> 
> -Original Message-
> From: Tony Smith [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 22, 2005 10:59 AM
> To: Struts Users Mailing List
> Subject: Eclipse plug-in for Struts
> 
> 
> Is there an Eclipse plug-in for Struts or Tomcat so
> that I can develop, debug, and test my web app all in
> Eclipse? Right now, if I want to change something I
> have to write my program in Eclipse, write my jsp in
> another text editor, export the jar file from Eclipse
> to web-inf/lib, restart Tomcat, and open IE
> 
> 
> 
> 
> 
> __
> Yahoo! Mail Mobile
> Take Yahoo! Mail with you! Check email on your mobile phone.
> http://mobile.yahoo.com/learn/mail
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> This email may contain confidential material.
> If you were not an intended recipient,
> Please notify the sender and delete all copies.
> We may monitor email to and from our network.
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Re: Accessing message resource from in validate method

2005-06-22 Thread Arash Bijanzadeh
Thank you Jana!

On 6/21/05, Jana Parvanova <[EMAIL PROTECTED]> wrote:
> 
> Try this:
> 
> MessageResources resources= (MessageResources)
> request.getAttribute(Globals.MESSAGES_KEY);
> Locale loc = getTheLocale(request);
> String value = resources.getMessage(loc, your_key_for_bert) ;
> 
> You could get locale using RequestUtils.getUserLocale(...)
> 
> 
> ----- Original Message -
> From: "Arash Bijanzadeh" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Tuesday, June 21, 2005 3:26 PM
> Subject: Re: Accessing message resource from in validate method
> 
> 
> Sure,
> My problem is how to fetch the "Bert" from resource bundle. Because it 
> must
> shown in a localized manner :-)
> 
> On 6/21/05, Marsh-Bourdon, Christopher <[EMAIL PROTECTED]
> >
> wrote:
> >
> > ActionMessage bert = new ActionMessage("Here {0}, thi is the place.",
> > "Bert");
> >
> > Will produce:
> >
> > Here Bert, thi is the place.
> >
> > Cheers
> >
> > Christopher Marsh-Bourdon
> > www.marsh-bourdon.com <http://www.marsh-bourdon.com> <
> http://www.marsh-bourdon.com>
> >
> >
> > -Original Message-
> > From: Arash Bijanzadeh [mailto:[EMAIL PROTECTED]
> > Sent: 21 June 2005 13:10
> > To: Struts Users Mailing List
> > Subject: Re: Accessing message resource from in validate method
> >
> > My problem is creating a message with an argument for example:
> > Date {0} is not valid.
> > I create:
> > msg.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.badDate
> > "));
> > My Question : how can I add the argument for {0} from resource bundle to
> > this statement, as validator framewoek does?
> > Regards,
> > arash
> >
> > On 6/21/05, Jana Parvanova <[EMAIL PROTECTED]> wrote:
> > >
> > > ActionMessage is constructed with message key, not with message text -
> > > so you don't have to access resources directly.
> > > Or, maybe I have not understood your question?
> > >
> > > - Original Message -
> > > From: "Arash Bijanzadeh" <[EMAIL PROTECTED]>
> > > To: 
> > > Sent: Tuesday, June 21, 2005 11:44 AM
> > > Subject: Accessing message resource from in validate method
> > >
> > >
> > > Hi,
> > > In the validate method of ActionForm, I need to access the resource
> > > messages to pass the message as arg to ActionMessage constructor.
> > > Could anybody help me?
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > --
> >
> >
> >
> > 
> --
> --
> > The information contained herein is confidential and is intended solely
> > for the
> > addressee. Access by any other party is unauthorised without the express
> > written permission of the sender. If you are not the intended recipient,
> > please
> > contact the sender either via the company switchboard on +44 (0)20 7623
> > 8000, or
> > via e-mail return. If you have received this e-mail in error or wish to
> > read our
> > e-mail disclaimer statement and monitoring policy, please refer to
> > http://www.drkw.com/disc/email/ or contact the sender. 3166
> >
> > 
> --
> --
> >
> >
> > -
> > 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: Accessing message resource from in validate method

2005-06-21 Thread Arash Bijanzadeh
Sure, 
My problem is how to fetch the "Bert" from resource bundle. Because it must 
shown in a localized manner :-)

On 6/21/05, Marsh-Bourdon, Christopher <[EMAIL PROTECTED]> 
wrote:
> 
> ActionMessage bert = new ActionMessage("Here {0}, thi is the place.",
> "Bert");
> 
> Will produce:
> 
> Here Bert, thi is the place.
> 
> Cheers
> 
> Christopher Marsh-Bourdon
> www.marsh-bourdon.com <http://www.marsh-bourdon.com>
> 
> 
> -Original Message-
> From: Arash Bijanzadeh [mailto:[EMAIL PROTECTED]
> Sent: 21 June 2005 13:10
> To: Struts Users Mailing List
> Subject: Re: Accessing message resource from in validate method
> 
> My problem is creating a message with an argument for example:
> Date {0} is not valid.
> I create:
> msg.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.badDate
> "));
> My Question : how can I add the argument for {0} from resource bundle to
> this statement, as validator framewoek does?
> Regards,
> arash
> 
> On 6/21/05, Jana Parvanova <[EMAIL PROTECTED]> wrote:
> >
> > ActionMessage is constructed with message key, not with message text -
> > so you don't have to access resources directly.
> > Or, maybe I have not understood your question?
> >
> > - Original Message -
> > From: "Arash Bijanzadeh" <[EMAIL PROTECTED]>
> > To: 
> > Sent: Tuesday, June 21, 2005 11:44 AM
> > Subject: Accessing message resource from in validate method
> >
> >
> > Hi,
> > In the validate method of ActionForm, I need to access the resource
> > messages to pass the message as arg to ActionMessage constructor.
> > Could anybody help me?
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> --
> 
> 
> 
> 
> The information contained herein is confidential and is intended solely 
> for the
> addressee. Access by any other party is unauthorised without the express
> written permission of the sender. If you are not the intended recipient, 
> please
> contact the sender either via the company switchboard on +44 (0)20 7623 
> 8000, or
> via e-mail return. If you have received this e-mail in error or wish to 
> read our
> e-mail disclaimer statement and monitoring policy, please refer to
> http://www.drkw.com/disc/email/ or contact the sender. 3166
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Re: Accessing message resource from in validate method

2005-06-21 Thread Arash Bijanzadeh
My problem is creating a message with an argument for example:
Date {0} is not valid.
I create:
msg.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("errors.badDate"));
My Question : how can I add the argument for {0} from resource bundle to 
this statement, as validator framewoek does? 
Regards,
arash

On 6/21/05, Jana Parvanova <[EMAIL PROTECTED]> wrote:
> 
> ActionMessage is constructed with message key, not with message text - so
> you don't have to access resources directly.
> Or, maybe I have not understood your question?
> 
> - Original Message -
> From: "Arash Bijanzadeh" <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, June 21, 2005 11:44 AM
> Subject: Accessing message resource from in validate method
> 
> 
> Hi,
> In the validate method of ActionForm, I need to access the resource 
> messages
> to pass the message as arg to ActionMessage constructor.
> Could anybody help me?
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>


Accessing message resource from in validate method

2005-06-21 Thread Arash Bijanzadeh
Hi,
In the validate method of ActionForm, I need to access the resource messages 
to pass the message as arg to ActionMessage constructor.
Could anybody help me?