RE: ejb

2006-06-27 Thread Krishna, Hari
Hi pls find the best in the industry book.
If u dont mind pls let me know the architecture you are following.Generally we 
call EJBs after Action using either Delegate or Facade pattern.If u are using 
servicelocator u can straight away call ejb from Action


-Original Message-
From: Abhimanyu Koul [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 28, 2006 12:19 PM
To: Struts Mailing list
Subject: ejb


hi all!
does anybody here have some good ejb books. i need to use ejb in struts but 
don't know how. please help

Regards,
Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Mobile : +91 9819510090
Notice:  All email and instant messages (including attachments) sent to
or from Franklin Templeton Investments (FTI) personnel may be retained,
monitored and/or reviewed by FTI and its agents, or authorized
law enforcement personnel, without further notice or consent.

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



ejb

2006-06-27 Thread Abhimanyu Koul
hi all!
does anybody here have some good ejb books. i need to use ejb in struts but 
don't know how. please help

Regards,
Abhimanyu Koul
FinEng Solutions (P)  Ltd.
Mobile : +91 9819510090


Re: Time validator

2006-06-27 Thread Pankaj Gupta


Hi,

I tried using your code but its not working. Can you please tell me what 
do I need to write in validation.xml.


I am writing this:

  
 
   


Truong Xuan Tinh wrote:

 Hi there, here is my implementation on the client side, it's validate
time against the pattern HH:mm, you can customize against HH:mm:ss with
ease:





Here is the Server side: this method is in the MyValidatorClass
public static boolean validateTime(Object bean, ValidatorAction va,
Field field,
ActionMessages errors, Validator validator,
HttpServletRequest request) {
boolean result = true;
try {
String value = ValidatorUtils.getValueAsString(bean,
field.getProperty());
if (!GenericValidator.isBlankOrNull(value)) {
result = Pattern.matches("[0-2][\\d]:[0-5][\\d]", value);
if (result == true) {
String hour = value.substring(0, 2);
String minute = value.substring(3);
int hourInt = Integer.parseInt(hour);
int minuteInt = Integer.parseInt(minute);
if (hourInt < 0 || hourInt >= 24 || minuteInt < 0 ||
minuteInt >= 60) {
result = false;
}
}
}
} catch (NumberFormatException e) {
result = false;
e.printStackTrace();
}
if (result == false) {
errors.add(field.getKey(),
Resources.getActionMessage(validator, request, va, field));
}
return result;
}
Maybe it's not the best you can found on the web! Use it at your own risk.
Pankaj Gupta wrote:
  

Is there a validation-rule for time(hh:mm:ss format) as it exists for
date in struts validator framework? If not, has anyone implemented it?
I dont want to reinvent the wheel.

regards,
Pankaj

-
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]



[OT] How to specify classpath for an application

2006-06-27 Thread Pankaj Gupta

Hi All,

I want to specify a config folder in my classpath which will not be part of
my war file. Can you please suggest how can I do that? I want to place my
config files outside the war file for anyone to modify it.

regards,
Pankaj


having problem Using Indexed properties with Multi select inside logic iterate

2006-06-27 Thread krishan rathi
 Hi i am trying to use a multi select box in logic iterate 
in this way 

 

 

 

 

 

in the form bean i have following code. 

private Map selectedBooks; 

public Object getBookMapped(String index) { 
return selectedBooks.get(key); 
} 

public void setBookMapped(String index,Object value) { 
selectedBooks.put(key,value); 
} 
now in each multiple select box i am selecting 
multiple books but in the resulting map selectedBooks 
i am getting one value for each multiple selection 
then i had also tried using 

public void setBookMapped(String index,Object[] 
value) { 
selectedBooks.put(key,value); 
} 

but which is throwing an illegelargumenttype 
exception.

Can anybody suggest how should i use  indexed properties to tackle a group of 
multi select boxes. 

please help. 

thanks in advance. 

krishan.



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



RE: [ANN] Hoople 1.0

2006-06-27 Thread Nathan Voxland
Thinking about it more, I think I will make a global ant task property of 
whether to convert paths to absolute if they don't start with a "/" and add an 
XML attribute to override that property on a URL by URL basis if wanted.  That 
will be a much more general solution and not so tiles specific.



From: Nathan Voxland [mailto:[EMAIL PROTECTED]
Sent: Tue 6/27/2006 5:05 PM
To: Struts Users Mailing List
Subject: RE: [ANN] Hoople 1.0



Good point.  We tend to wrap our tiles usage into the JSPs using
 tags. 

You forward to tiles using path="tile.definition.name" without the
beginning "/", correct?

I think I'll add an additional attribute of "tile" that can be used in
place of "path" that would not do the absolute path resolution.  Would
that solve the problem?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 3:24 PM
To: user@struts.apache.org
Subject: RE: [ANN] Hoople 1.0

Nathan Voxland announced:
> Hoople has worked well for us by allowing us to configure the
> action mappings in separate XML config files that are stored
> where the URL would be on the filesystem if Struts wasn't
> there.  There are also several other features that make
> working with the action mappings easier, like being able to
> use relative paths and assuming that forwards have a path
> that is the same as the request URL but with a .jsp extension
> if the path is not specified.

Hmmm...  What about tiles?  I tend to forward to a tile rather than a
JSP.

-
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]

[ANN][OT] More Uploaded Videos from JavaONE

2006-06-27 Thread Peter Pilgrim

Hi All


I formally announce more videos relevant to Java Web enterprise technologists.



Prashanth. S talks about WebSphere Security JAVAWUG BOF 17
http://video.google.com/videoplay?docid=-5567550256102152170

Mike Burton's Introduction to JSF
http://video.google.com/videoplay?docid=-5567550256102152170

Duncan Mill's Demonstration of Oracle's Internal ADF Faces Beta 
Technology
http://video.google.com/videoplay?docid=-4007935838724254948



Finally a bit of fun from a very late birds-of-a-feather session from Tuesday 
16th May 2006


BOF 0678 JavaPosse.com at JavaONE 2006
http://video.google.com/videoplay?docid=-5533875648319178145







Enjoy

Peter Pilgrim, JUG Leader of the Java Web Users Group   
http://jroller.com/page/javawug

--
Peter Pilgrim  ( Windows XP / Thunderbird 1.5 )

_ ___  + Expert Java
__  /_ ___   ___ ____  /__  /  + Enterprise
___ _  /_  __ `/_ | / /  __ `/__  __/  __  __/ + Design
/ /_/ / / /_/ /__ |/ // /_/ / _  /___  _  /___ + Architecture
\/  \__,_/ _/ \__,_/  /_/  /_/ + Web New Age

On Line Resume
   ||
   \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''

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



Re: Problem loading/invoking struts app

2006-06-27 Thread Adam J Samere
You can tell the runtime which SaxParserFactory implementation to use in 
a number of ways, such as setting the 
|javax.xml.parsers.SAXParserFactory system property.|


The xmlparsev2.jar probably contains a 
|META-INF/services/javax.xml.parsers.SAXParserFactory file.|


See the method detail for the newInstance static factory method for more 
information:

http://java.sun.com/j2se/1.4.2/docs/api/javax/xml/parsers/SAXParserFactory.html

Adam

Adari, Chandra wrote:

Thanks Duane.

I did some more research and found out that oracle "xmlparsev2.jar" is
causing the issue. In the application ear directory with in WEB-INF/lib
we have two directories apache and oracle. The "xmlparserv2.jar" located
under oracle directory is trying to parse struts-config.xml and failing.
If we rename this file everything seems to be loaded and working fine
but we need this file for other functionality. From what I understand we
don't have any control over the sequence of jar files to load if they
are loaded from WEB-INF/lib directory. Is there any other alternative
way to set the sequence? Sorry this might be websphere specific question
and wrong user list but trying to see if I get any help.

Thanks,

Chandra.

-Original Message-
From: Duane Rosengartner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 6:31 AM

To: Adari, Chandra
Cc: Struts Users Mailing List
Subject: RE: Problem loading/invoking struts app

The following technotes address the classloader issue and give detailed
instructions on how to override a WebSphere included file such as JDOM: 

How to use the latest JDOM jar 
http://www-1.ibm.com/support/docview.wss?uid=swg21222645 

Best Practice for Using Common Application Files 
http://www-1.ibm.com/support/docview.wss?uid=swg27006159




Other Websphere resources I've collected in notes:
WebSphere Application Server v6.0 InfoCenter - Product Documentation 
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp 

Rational Web Developer v6.0 InfoCenter - Product Documentation 
http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?rcss=rtlrwdw
s 


WebSphere Application Server Pre-reqs - List of all supported hardware
and software 
http://www-306.ibm.com/software/webservers/appserv/doc/latest/prereq.htm
l 


WebSphere Application Server developerWorks - Latest technical articles,
product links, tutorials, etc. 
http://www-128.ibm.com/developerworks/websphere/zones/was/ 



IBM Press & IBM Redbooks 
WebSphere Application Server V6 System Management & Configuration
Handbook (sg24-6451) 
http://www.redbooks.ibm.com/abstracts/sg246451.html?Open 
Ch.5 covers the Administrative Console 
Ch. 14 covers Class Loaders 
Ch. 16.5 covers Updating Applications (e.g.  full_app,
single-file, single-module, partial_app, etc.) 


WebSphere Application Server - Express V6 Developers Guide and
Development Examples (sg24-6500) 
http://www.redbooks.ibm.com/abstracts/sg246500.html?Open 


IBM(r) WebSphere(r): Deployment and Advanced Configuration (ISBN:
0131468626) 
http://www.ibmpressbooks.com/bookstore/product.asp?isbn=0131468626&rl=1 


Migrating Applications from WebLogic, JBoss and Tomcat to WebSphere V6
(sg24-6690) 
http://www.redbooks.ibm.com/abstracts/sg246690.html?Open 



Duane

-Original Message-
From: Adari, Chandra [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 12, 2006 6:37 PM

To: Duane Rosengartner
Subject: RE: Problem loading/invoking struts app

Can you please send me the article you are talking about from IBM.

Thanks,

Chandra.

-Original Message-
From: Duane Rosengartner [mailto:[EMAIL PROTECTED]
Sent: Monday, June 12, 2006 2:11 PM
To: Struts Users Mailing List
Subject: RE: Problem loading/invoking struts app

It appears your classloader is picking up the wrong jar. If this is
websphere 6, it comes with a jdom.jar that has given us problems similar
to yours. Attempt to use the parent-first parent last setting; match
with your working environment. It should be under the server(or node)
properties. If this does not work, there is an article on ibm.com that I
can try to find for you, a workaround for this issue.

Duane


-Original Message-
From: Adari, Chandra [mailto:[EMAIL PROTECTED]
Sent: Monday, June 12, 2006 4:00 PM
To: Struts Users Mailing List
Subject: Problem loading/invoking struts app

I am getting the following error during run time (ERROR Stack during
Runtime) when I invoke the Login.do. Please find the error stack down
below. I tried to put some debug statements and what I found was "module
config" is coming "null". I tried the same exact ear on a different
machine and it works just fine(included the debug messages as well). I
don't do any custom configuration to the app server so I am not sure
what the difference is.

 


DEBUG STATEMENT from a non-working machine :

 


[6/12/06 18:32:50:715 GMT] 0055 SystemOut O Page
/Login.do?from=index

 


[6/12/06 18:32:50:715 GMT] 0055 SystemOut O module config   null

 

 


DEBU

RE: Problem loading/invoking struts app

2006-06-27 Thread Adari, Chandra
Thanks Duane.

I did some more research and found out that oracle "xmlparsev2.jar" is
causing the issue. In the application ear directory with in WEB-INF/lib
we have two directories apache and oracle. The "xmlparserv2.jar" located
under oracle directory is trying to parse struts-config.xml and failing.
If we rename this file everything seems to be loaded and working fine
but we need this file for other functionality. From what I understand we
don't have any control over the sequence of jar files to load if they
are loaded from WEB-INF/lib directory. Is there any other alternative
way to set the sequence? Sorry this might be websphere specific question
and wrong user list but trying to see if I get any help.

Thanks,

Chandra.

-Original Message-
From: Duane Rosengartner [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 6:31 AM
To: Adari, Chandra
Cc: Struts Users Mailing List
Subject: RE: Problem loading/invoking struts app

The following technotes address the classloader issue and give detailed
instructions on how to override a WebSphere included file such as JDOM: 

How to use the latest JDOM jar 
http://www-1.ibm.com/support/docview.wss?uid=swg21222645 

Best Practice for Using Common Application Files 
http://www-1.ibm.com/support/docview.wss?uid=swg27006159



Other Websphere resources I've collected in notes:
WebSphere Application Server v6.0 InfoCenter - Product Documentation 
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp 

Rational Web Developer v6.0 InfoCenter - Product Documentation 
http://publib.boulder.ibm.com/infocenter/rtnl0600/index.jsp?rcss=rtlrwdw
s 

WebSphere Application Server Pre-reqs - List of all supported hardware
and software 
http://www-306.ibm.com/software/webservers/appserv/doc/latest/prereq.htm
l 

WebSphere Application Server developerWorks - Latest technical articles,
product links, tutorials, etc. 
http://www-128.ibm.com/developerworks/websphere/zones/was/ 


IBM Press & IBM Redbooks 
WebSphere Application Server V6 System Management & Configuration
Handbook (sg24-6451) 
http://www.redbooks.ibm.com/abstracts/sg246451.html?Open 
Ch.5 covers the Administrative Console 
Ch. 14 covers Class Loaders 
Ch. 16.5 covers Updating Applications (e.g.  full_app,
single-file, single-module, partial_app, etc.) 

WebSphere Application Server - Express V6 Developers Guide and
Development Examples (sg24-6500) 
http://www.redbooks.ibm.com/abstracts/sg246500.html?Open 

IBM(r) WebSphere(r): Deployment and Advanced Configuration (ISBN:
0131468626) 
http://www.ibmpressbooks.com/bookstore/product.asp?isbn=0131468626&rl=1 

Migrating Applications from WebLogic, JBoss and Tomcat to WebSphere V6
(sg24-6690) 
http://www.redbooks.ibm.com/abstracts/sg246690.html?Open 


Duane

-Original Message-
From: Adari, Chandra [mailto:[EMAIL PROTECTED] 
Sent: Monday, June 12, 2006 6:37 PM
To: Duane Rosengartner
Subject: RE: Problem loading/invoking struts app

Can you please send me the article you are talking about from IBM.

Thanks,

Chandra.

-Original Message-
From: Duane Rosengartner [mailto:[EMAIL PROTECTED]
Sent: Monday, June 12, 2006 2:11 PM
To: Struts Users Mailing List
Subject: RE: Problem loading/invoking struts app

It appears your classloader is picking up the wrong jar. If this is
websphere 6, it comes with a jdom.jar that has given us problems similar
to yours. Attempt to use the parent-first parent last setting; match
with your working environment. It should be under the server(or node)
properties. If this does not work, there is an article on ibm.com that I
can try to find for you, a workaround for this issue.

Duane


-Original Message-
From: Adari, Chandra [mailto:[EMAIL PROTECTED]
Sent: Monday, June 12, 2006 4:00 PM
To: Struts Users Mailing List
Subject: Problem loading/invoking struts app

I am getting the following error during run time (ERROR Stack during
Runtime) when I invoke the Login.do. Please find the error stack down
below. I tried to put some debug statements and what I found was "module
config" is coming "null". I tried the same exact ear on a different
machine and it works just fine(included the debug messages as well). I
don't do any custom configuration to the app server so I am not sure
what the difference is.

 

DEBUG STATEMENT from a non-working machine :

 

[6/12/06 18:32:50:715 GMT] 0055 SystemOut O Page
/Login.do?from=index

 

[6/12/06 18:32:50:715 GMT] 0055 SystemOut O module config   null

 

 

DEBUG STATEMENT from a working machine :

 

[6/4/06 15:46:24:138 PDT] 00f3 SystemOut O Page
/Login.do?from=index

 

[6/4/06 15:46:24:138 PDT] 00f3 SystemOut O module config
[EMAIL PROTECTED]

 

ERROR Stack during app server start up from non-working machine :

 

[6/4/06 8:27:15:492 GMT] 000a Digester  E
org.apache.commons.digester.Digester getParser Digester.getParser:

 org.xml.sax.SAXNotRecognizedException:
http://apache.o

RE: [ANN] Hoople 1.0

2006-06-27 Thread Nathan Voxland
Good point.  We tend to wrap our tiles usage into the JSPs using
 tags.  

You forward to tiles using path="tile.definition.name" without the
beginning "/", correct?

I think I'll add an additional attribute of "tile" that can be used in
place of "path" that would not do the absolute path resolution.  Would
that solve the problem?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 3:24 PM
To: user@struts.apache.org
Subject: RE: [ANN] Hoople 1.0

Nathan Voxland announced:
> Hoople has worked well for us by allowing us to configure the 
> action mappings in separate XML config files that are stored 
> where the URL would be on the filesystem if Struts wasn't 
> there.  There are also several other features that make 
> working with the action mappings easier, like being able to 
> use relative paths and assuming that forwards have a path 
> that is the same as the request URL but with a .jsp extension 
> if the path is not specified.

Hmmm...  What about tiles?  I tend to forward to a tile rather than a
JSP.

-
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: [ANN] Hoople 1.0

2006-06-27 Thread Nathan Voxland
Hoople is similar in that only ant knows.  Both XDoclet and Hoople store
the mappings outside the struts-config.xml and merges them all in during
the build with ant.

The difference is in where the mappings are stored.  With XDoclet they
are stored as attributes on the Action classes, with Hoople they are
stored within the document root.  We've found the Hoople location works
better because it's easier to know what URLs are available on the
system.  You simply look at your document root and see (besides your
JSPs, images, CSSs, etc):
/index.do
/news/index.do
/news/news.search.do
/news/news.submit.do
and know exactly what URLs are available.  This is especially true for
teams that have non-programmers creating the JSPs etc. and don't know
know what an Action class is.

Although version 1.0 focuses mainly on managing config files for Struts
and Spring, there are many other attributes that are good candidates for
declaring in a central location.  An example that is included in version
1.0 is the ability to generate Google Sitemaps.  It is nice to be able
to simply go to /index.do and see:



http://www.sundog.net/hoople/dtd/hoople_1_0.dtd";>











It brings all the information/configuration for a particular URL into
one place, rather than having it scattered around Action classes and
whatever generates your site maps.  

Additional attributes that we plan on implementing would let you include
documentation about what that URL does, additional declarative security,
pre/post conditions such as a "need to have a "newsItem on the request
object" post condition.

-Original Message-
From: Monkeyden [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 3:14 PM
To: Struts Users Mailing List
Subject: Re: [ANN] Hoople 1.0

> managing the action mappings in the struts-config.xml file
> can be a big headache, especially with multiple developers.

And how!  That's why I use XDoclet.  Only Ant knows.



On 6/27/06, Nathan Voxland <[EMAIL PROTECTED]> wrote:
>
> The Hoople team just released the 1.0 version of Hoople.  We've been
> using Struts for a number of years and have found that managing the
> action mappings in the struts-config.xml file can be a big headache,
> especially with multiple developers.
>
>
>
> Hoople has worked well for us by allowing us to configure the action
> mappings in separate XML config files that are stored where the URL
> would be on the filesystem if Struts wasn't there.  There are also
> several other features that make working with the action mappings
> easier, like being able to use relative paths and assuming that
forwards
> have a path that is the same as the request URL but with a .jsp
> extension if the path is not specified.
>
>
>
> There is a lot more to Hoople beyond managing your struts config file
as
> well.  It's similar in theory to XDoclet and other attribute-oriented
> programming techniques.  Take a look:
> http://www.sundog.net/index.php/hoople/page/struts/
>
>
>
>
>
>
>
>
>

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



RE: Question about Struts validator

2006-06-27 Thread David Friedman
Rosh,

1. Were any errors produced?  You never check.  Perhaps:
(errors != null) && errors.size() > 0

2. Do you save the errors with a method such as saveMessages() /
saveErrors() ?   How are you going to get them to your html:form so you can
show them to the client with html:errors, html:messages, etc.

3. Do you go anywhere if you FIND errors?  No.  Your code snippet ALWAYS
returns to your "success" mapping.  If you find errors you might want to go
the "input" mapping or one of your own choosing.  I think the input mapping
might be jumped to by something like this:

return mapping.findForward(mapping.getInput());

I might have typed incorrectly but you can probably get the idea of what I
am suggesting from that code suggestion above.

4. Where in your example JSP do you show your errors if any occur?  See the
section from the html: taglib on html:errors at:
http://struts.apache.org/struts-action/struts-taglib/apidocs/org/apache/stru
ts/taglib/html/package-summary.html#doc.Other.errors
Though I thought it was html:messages now.  I must be using an older version
but the rest should apply.  *shrug*

Much of this is listed in Wendy's example.  I recommend you review it again
before you consider my suggestions so you can see how my suggestions mirror
much of what is shown in her examples.

Regards,
David

-Original Message-
From: mosho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 5:18 PM
To: user@struts.apache.org
Subject: RE: Question about Struts validator



Thanks David and Wendy for your help but it doesn't seem to work.
I added manually validate in my execute method. It still validates if I
directly enter the url.

I am pasting part of my code for you to take a look and let me know where I
am going wrong. Thanks again!


--Struts config part--

  


---SelStateAction--
SelStateForm sform = (SelStateForm) form;
   String isSubmitted = sform.getIsSubmitted();
   if(isSubmitted == "Yes" || isSubmitted.equalsIgnoreCase("Yes"))
   {
   ActionErrors errors = sform.validate( mapping, request );
   }

return mapping.findForward("success");

---JSP file---


 .
.
 



--
View this message in context:
http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a507421
7
Sent from the Struts - User forum at Nabble.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: Question about Struts validator

2006-06-27 Thread Wendy Smoak

On 6/27/06, mosho <[EMAIL PROTECTED]> wrote:


Thanks David and Wendy for your help but it doesn't seem to work.
I added manually validate in my execute method. It still validates if I
directly enter the url.

...

--Struts config part--

  



You need to set validate="false" in the action mapping.  The default
is true, which is the behavior you're seeing.

--
Wendy

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



RE: Question about Struts validator

2006-06-27 Thread mosho

Thanks David and Wendy for your help but it doesn't seem to work.
I added manually validate in my execute method. It still validates if I
directly enter the url.

I am pasting part of my code for you to take a look and let me know where I
am going wrong. Thanks again!


--Struts config part--

  


---SelStateAction--
SelStateForm sform = (SelStateForm) form;
   String isSubmitted = sform.getIsSubmitted();
   if(isSubmitted == "Yes" || isSubmitted.equalsIgnoreCase("Yes"))
   {
   ActionErrors errors = sform.validate( mapping, request );  
   }  
 
return mapping.findForward("success");

---JSP file---


 .
.
 



-- 
View this message in context: 
http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5074256
Sent from the Struts - User forum at Nabble.com.


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



RE: Question about Struts validator

2006-06-27 Thread mosho

Thanks David and Wendy for your help but it doesn't seem to work. 
I added manually validate in my execute method. It still validates if I
directly enter the url.

I am pasting part of my code for you to take a look and let me know where I
am going wrong. Thanks again!


--Struts config part--

  


---SelStateAction--
SelStateForm sform = (SelStateForm) form;
   String isSubmitted = sform.getIsSubmitted();
   if(isSubmitted == "Yes" || isSubmitted.equalsIgnoreCase("Yes"))
   {
   ActionErrors errors = sform.validate( mapping, request );  
   }   
  
return mapping.findForward("success");

---JSP file---


 .
.
 



-- 
View this message in context: 
http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5074217
Sent from the Struts - User forum at Nabble.com.


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



RE: Question about Struts validator

2006-06-27 Thread David Friedman
I'll +1 that with one reminder for Rosh:

You mentioned using the Validation Framework so don't forget to have your
ActionForm extend either ValidateActionForm or ValidatorForm.  Since I
didn't see any notes about that in Wendy's below link, and I've made this
mistake in the past, I thought I would emphasize the point for you. :)

Regards,
David

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 4:27 PM
To: Struts Users Mailing List
Subject: Re: Question about Struts validator

On 6/27/06, mosho <[EMAIL PROTECTED]> wrote:

> If I call validate method manually, can I still use validator framework
and
> use the input attribute in the config file to display the errors?
>
> I need to validate only if form is submitted by clicking on a button.
> If, yes can you show me with an example how to call validate method in
> Action class, execute method.

Here's a tutorial that explains how to do it:
 * http://www.learntechnology.net/validate-manually.do

Another option is to override the 'validate' method of the form, and
only call super.validate() if the form was submitted.

--
Wendy


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



Re: Question about Struts validator

2006-06-27 Thread Wendy Smoak

On 6/27/06, mosho <[EMAIL PROTECTED]> wrote:


If I call validate method manually, can I still use validator framework and
use the input attribute in the config file to display the errors?

I need to validate only if form is submitted by clicking on a button.
If, yes can you show me with an example how to call validate method in
Action class, execute method.


Here's a tutorial that explains how to do it:
* http://www.learntechnology.net/validate-manually.do

Another option is to override the 'validate' method of the form, and
only call super.validate() if the form was submitted.

--
Wendy

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



RE: [ANN] Hoople 1.0

2006-06-27 Thread George.Dinwiddie
Nathan Voxland announced:
> Hoople has worked well for us by allowing us to configure the 
> action mappings in separate XML config files that are stored 
> where the URL would be on the filesystem if Struts wasn't 
> there.  There are also several other features that make 
> working with the action mappings easier, like being able to 
> use relative paths and assuming that forwards have a path 
> that is the same as the request URL but with a .jsp extension 
> if the path is not specified.

Hmmm...  What about tiles?  I tend to forward to a tile rather than a
JSP.

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



RE: Question about Struts validator

2006-06-27 Thread mosho

Thanks David for your reply.

If I call validate method manually, can I still use validator framework and
use the input attribute in the config file to display the errors?

I need to validate only if form is submitted by clicking on a button.
If, yes can you show me with an example how to call validate method in
Action class, execute method.

Thanks
Rosh



-- 
View this message in context: 
http://www.nabble.com/Question-about-Struts-validator-tf1851247.html#a5073203
Sent from the Struts - User forum at Nabble.com.


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



Re: [ANN] Hoople 1.0

2006-06-27 Thread Monkeyden

managing the action mappings in the struts-config.xml file
can be a big headache, especially with multiple developers.


And how!  That's why I use XDoclet.  Only Ant knows.



On 6/27/06, Nathan Voxland <[EMAIL PROTECTED]> wrote:


The Hoople team just released the 1.0 version of Hoople.  We've been
using Struts for a number of years and have found that managing the
action mappings in the struts-config.xml file can be a big headache,
especially with multiple developers.



Hoople has worked well for us by allowing us to configure the action
mappings in separate XML config files that are stored where the URL
would be on the filesystem if Struts wasn't there.  There are also
several other features that make working with the action mappings
easier, like being able to use relative paths and assuming that forwards
have a path that is the same as the request URL but with a .jsp
extension if the path is not specified.



There is a lot more to Hoople beyond managing your struts config file as
well.  It's similar in theory to XDoclet and other attribute-oriented
programming techniques.  Take a look:
http://www.sundog.net/index.php/hoople/page/struts/











[ANN] Patrick Lightbody WebWork Presentation / BayCHI / 15 May 2006

2006-06-27 Thread Peter Pilgrim


Hi All

Announcement message from the JAVAWUG

I am pleased to announce that Patrick Lightbody's presentation
for BayCHI Silicon Valley Bay Area JUG is NOW available from GoogleVideo.


http://video.google.com/videoplay?docid=6908607645517853283


Thanks to Mike Van-Riper, and also to Dave Evans, Wendy Smoak,
Vik Cekvenich, and Don Brown


Stay tuned. Enjoy!


--
Peter Pilgrim  ( Windows XP / Thunderbird 1.5 )

_ ___  + Expert Java
__  /_ ___   ___ ____  /__  /  + Enterprise
___ _  /_  __ `/_ | / /  __ `/__  __/  __  __/ + Design
/ /_/ / / /_/ /__ |/ // /_/ / _  /___  _  /___ + Architecture
\/  \__,_/ _/ \__,_/  /_/  /_/ + Web New Age

On Line Resume
   ||
   \\===>  `` http://www.xenonsoft.demon.co.uk/no-it-striker.html ''

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



[ANN] Hoople 1.0

2006-06-27 Thread Nathan Voxland
The Hoople team just released the 1.0 version of Hoople.  We've been
using Struts for a number of years and have found that managing the
action mappings in the struts-config.xml file can be a big headache,
especially with multiple developers.  

 

Hoople has worked well for us by allowing us to configure the action
mappings in separate XML config files that are stored where the URL
would be on the filesystem if Struts wasn't there.  There are also
several other features that make working with the action mappings
easier, like being able to use relative paths and assuming that forwards
have a path that is the same as the request URL but with a .jsp
extension if the path is not specified.

 

There is a lot more to Hoople beyond managing your struts config file as
well.  It's similar in theory to XDoclet and other attribute-oriented
programming techniques.  Take a look:
http://www.sundog.net/index.php/hoople/page/struts/

 

 

 



Re: Javascript problem, how to control special characters from being entered into textbox

2006-06-27 Thread Frank W. Zammetti
You might also consider the StringContentValid tag in the JSTags taglib
from Java Web Parts:

http://javawebparts.sourceforge.net

Specifically:

http://javawebparts.sourceforge.net/javadocs/javawebparts/taglib/jstags/StringContentValidTag.html

I *think* you can do:



Replace 'abc123' with only those characters you want to be allowed, and
that should do it.  If it happens to not work that way, try:



Only slightly more effort that way :)

Frank

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Java Web Parts -
http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!

On Tue, June 27, 2006 1:41 pm, Monkeyden wrote:
> You could also check to see if the keycode is in a range.  See the table
> below.  With a quick search, I found a javascript that will check it.
> codes
> 48-57 are numbers 0-9, codes 65-90 are upper letters A-B, codes 97-122 are
> lower letters a-z.
>
> ASCII table
> http://www.newebgroup.com/rod/newillusions/ascii.htm
>
> The JS
> http://javascript.internet.com/miscellaneous/ascii-character-code.html
>
>
> On 6/27/06, Mukta <[EMAIL PROTECTED]> wrote:
>>
>> If you want to allow only characters and digits, you need not know
>> keycodes
>> of all the special characters. Just compare the characters' and digits'
>> ASCII values with the character entered on OnKeyUp event. If it's a
>> special
>> character, just drop it.
>>
>> You can also use java.util.regex.Pattern and
>> java.util.regex.Matcherclasses
>> at server side.
>>
>>
>> -Original Message-
>> From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED]
>> Sent: Tuesday, June 27, 2006 2:29 PM
>> To: Struts Users Mailing List
>> Subject: Javascript problem, how to control special characters from
>> being
>> entered into textbox
>>
>> Hi,
>>
>> I hava a javascript problem.  I need to restrict anyone entering special
>> characters into a textbox which is there in my html.  I know that i can
>> use
>> onKeyPress event to handle this, but for this i need to know the
>> keycodes.
>> Please anyone tel me if there is any other way to handle this or tel me
>> how
>> to know the keycodes of the characters, so that i can use it.  Also, i
>> have
>> to restrict the textboxes with characters and then digits.
>>
>> Thanks in advance.
>>
>>
>>
>>
>>
>> -
>> Yahoo! India Answers: Share what you know. Learn something new Click
>> here
>> Catch all the FIFA World Cup 2006 action on Yahoo! India Click here
>>
>>
>>
>> -
>> 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: Tiles and Struts

2006-06-27 Thread Alex Rodrigues da Silva

Thanks,
the error was the name. i changed to portal.index where was 
/jsp/frameset.jsp.




Monkeyden wrote:
Your forward's path needs to point to the tile-def name 
(portal.index), not
the JSP page that defines the tile-def (/jsp/frameset.jsp).  Also, be 
sure

you are using either the tiles plugin or the TilesRequestProcessor.



   
   


OR

processorClass="org.apache.struts.tiles.TilesRequestProcessor"

/>

On 6/27/06, Alex Rodrigues da Silva <[EMAIL PROTECTED]> wrote:


Hi,
I´m trying to use tiles with struts.
in my tiles-defs.xml i have

   
   
   
   
   
in my struts-config i have


   
   

in my frameset.jsp i have
   
   
   
   
   
   name="conteudo"/>

   
   
   
   

but when i logon im my project, i receive

org.apache.jasper.JasperException: Exception in JSP: /jsp/frameset.jsp
 is this line

java.lang.NullPointerException
   
org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java

:527)
   org.apache.struts.taglib.tiles.InsertTag.createTagHandler(
InsertTag.java:482)
   
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java

:438)
   org.apache.jsp.jsp.frameset_jsp._jspx_meth_tiles_get_0(
org.apache.jsp.jsp.frameset_jsp:200)
   org.apache.jsp.jsp.frameset_jsp._jspx_meth_html_html_0(
org.apache.jsp.jsp.frameset_jsp:113)
   org.apache.jsp.jsp.frameset_jsp._jspService(
org.apache.jsp.jsp.frameset_jsp:71)
   
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:332)
   
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java

:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.struts.action.RequestProcessor.doForward(
RequestProcessor.java:1085)
   org.apache.struts.tiles.TilesRequestProcessor.doForward(
TilesRequestProcessor.java:263)
   org.apache.struts.action.RequestProcessor.processForwardConfig(
RequestProcessor.java:398)
   
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(

TilesRequestProcessor.java:318)
   org.apache.struts.action.RequestProcessor.process(
RequestProcessor.java:241)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java
:1196)
   org.apache.struts.action.ActionServlet.doPost(ActionServlet.java
:432)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

can you help me?


thanks

Alex Rodrigues
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)





___ 
Yahoo! Copa 2006: cobertura dos jogos em tempo real e tudo sobre a seleção brasileira! 


http://br.esportes.yahoo.com/copa2006/

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



Re: Javascript problem, how to control special characters from being entered into textbox

2006-06-27 Thread Monkeyden

You could also check to see if the keycode is in a range.  See the table
below.  With a quick search, I found a javascript that will check it.  codes
48-57 are numbers 0-9, codes 65-90 are upper letters A-B, codes 97-122 are
lower letters a-z.

ASCII table
http://www.newebgroup.com/rod/newillusions/ascii.htm

The JS
http://javascript.internet.com/miscellaneous/ascii-character-code.html


On 6/27/06, Mukta <[EMAIL PROTECTED]> wrote:


If you want to allow only characters and digits, you need not know
keycodes
of all the special characters. Just compare the characters' and digits'
ASCII values with the character entered on OnKeyUp event. If it's a
special
character, just drop it.

You can also use java.util.regex.Pattern and java.util.regex.Matcherclasses
at server side.


-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 2:29 PM
To: Struts Users Mailing List
Subject: Javascript problem, how to control special characters from being
entered into textbox

Hi,

I hava a javascript problem.  I need to restrict anyone entering special
characters into a textbox which is there in my html.  I know that i can
use
onKeyPress event to handle this, but for this i need to know the keycodes.
Please anyone tel me if there is any other way to handle this or tel me
how
to know the keycodes of the characters, so that i can use it.  Also, i
have
to restrict the textboxes with characters and then digits.

Thanks in advance.





-
Yahoo! India Answers: Share what you know. Learn something new Click here
Catch all the FIFA World Cup 2006 action on Yahoo! India Click here



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




Re: Tiles and Struts

2006-06-27 Thread Monkeyden

Your forward's path needs to point to the tile-def name (portal.index), not
the JSP page that defines the tile-def (/jsp/frameset.jsp).  Also, be sure
you are using either the tiles plugin or the TilesRequestProcessor.



   
   


OR



On 6/27/06, Alex Rodrigues da Silva <[EMAIL PROTECTED]> wrote:


Hi,
I´m trying to use tiles with struts.
in my tiles-defs.xml i have

   
   
   
   
   
in my struts-config i have


   
   

in my frameset.jsp i have
   
   
   
   
   
   
   
   
   
   

but when i logon im my project, i receive

org.apache.jasper.JasperException: Exception in JSP: /jsp/frameset.jsp
 is this line

java.lang.NullPointerException
   org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java
:527)
   org.apache.struts.taglib.tiles.InsertTag.createTagHandler(
InsertTag.java:482)
   org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java
:438)
   org.apache.jsp.jsp.frameset_jsp._jspx_meth_tiles_get_0(
org.apache.jsp.jsp.frameset_jsp:200)
   org.apache.jsp.jsp.frameset_jsp._jspx_meth_html_html_0(
org.apache.jsp.jsp.frameset_jsp:113)
   org.apache.jsp.jsp.frameset_jsp._jspService(
org.apache.jsp.jsp.frameset_jsp:71)
   org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.jasper.servlet.JspServletWrapper.service(
JspServletWrapper.java:332)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java
:314)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   org.apache.struts.action.RequestProcessor.doForward(
RequestProcessor.java:1085)
   org.apache.struts.tiles.TilesRequestProcessor.doForward(
TilesRequestProcessor.java:263)
   org.apache.struts.action.RequestProcessor.processForwardConfig(
RequestProcessor.java:398)
   org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(
TilesRequestProcessor.java:318)
   org.apache.struts.action.RequestProcessor.process(
RequestProcessor.java:241)
   org.apache.struts.action.ActionServlet.process(ActionServlet.java
:1196)
   org.apache.struts.action.ActionServlet.doPost(ActionServlet.java
:432)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

can you help me?


thanks

Alex Rodrigues
   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




___
Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular
e anti-spam realmente eficaz.
http://mail.yahoo.com.br/

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




RE: upgrading from struts version 1.2.6 to 1.2.9

2006-06-27 Thread George.Dinwiddie
Adding the Commons Collections jar
(http://jakarta.apache.org/commons/collections/) to your war file isn't
working for you?

> -Original Message-
> From: Picha, Gayatri [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 27, 2006 1:09 PM
> To: Struts Users Mailing List
> Subject: RE: upgrading from struts version 1.2.6 to 1.2.9
> 
> 
> Thanks for the quick reply I looked on that and updated the 
> struts.jar and all the commons.jar files but my code is 
> looking for iterators which is part of 
> Commons Collections jar and in struts version 1.2.9 it no 
> longer has a dependency on Commons Collections. Since my 
> current version is 1.2.6 I was reading 
> http://wiki.apache.org/struts/StrutsUpgradeNotes124to127
> upgrading it from 1.2.4 to 1.2.7 and there it says "Struts no 
> longer has a dependency on Commons Collections or Commons 
> Lang, so unless you have other requirements for them, they no 
> longer need to be deployed. " so how can I deploy Commons 
> Collections additionally since my code is looking for that.
> 
> Any help on this will be truly appriciated.
> 
> Thanks,
> -Gayatri.
> 
> 
> -Original Message-
> From: Mark Shifman [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, June 27, 2006 9:54 AM
> To: Struts Users Mailing List
> Subject: Re: upgrading from struts version 1.2.6 to 1.2.9
> 
> there is a wiki page: http://wiki.apache.org/struts/StrutsUpgrade
> 
> Picha, Gayatri wrote:
> > Hi,
> > I am trying to upgrade from struts version 1.2.6 to 1.2.9, what are
> > the steps that needs to be done in order to do this.
> >  
> > Thanks in advance,
> > -Gayatri.
> >
> >   
> 
> 
> --
>  Mark Shifman MD. Ph.D.
>  Yale Center for Medical Informatics
>  Phone (203)737-5219
>  [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]
> 
> 

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



Re: upgrading from struts version 1.2.6 to 1.2.9

2006-06-27 Thread Niall Pemberton

Just download whatever version of Collections or Lang you want to use
and distribute the jars with your application:

http://jakarta.apache.org/site/downloads/downloads_commons-lang.cgi
http://jakarta.apache.org/site/downloads/downloads_commons-collections.cgi

Niall

On 6/27/06, Picha, Gayatri <[EMAIL PROTECTED]> wrote:

Thanks for the quick reply I looked on that and updated the struts.jar
and all the commons.jar files but my code is looking for iterators which
is part of
Commons Collections jar and in struts version 1.2.9 it no longer has a
dependency on Commons Collections. Since my current version is 1.2.6 I
was reading http://wiki.apache.org/struts/StrutsUpgradeNotes124to127
upgrading it from 1.2.4 to 1.2.7 and there it says "Struts no longer has
a dependency on Commons Collections or Commons Lang, so unless you have
other requirements for them, they no longer need to be deployed. " so
how can I deploy Commons Collections additionally since my code is
looking for that.

Any help on this will be truly appriciated.

Thanks,
-Gayatri.


-Original Message-
From: Mark Shifman [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 9:54 AM
To: Struts Users Mailing List
Subject: Re: upgrading from struts version 1.2.6 to 1.2.9

there is a wiki page:
http://wiki.apache.org/struts/StrutsUpgrade

Picha, Gayatri wrote:
> Hi,
> I am trying to upgrade from struts version 1.2.6 to 1.2.9, what are
> the steps that needs to be done in order to do this.
>
> Thanks in advance,
> -Gayatri.
>
>


--
 Mark Shifman MD. Ph.D.
 Yale Center for Medical Informatics
 Phone (203)737-5219
 [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]




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



RE: upgrading from struts version 1.2.6 to 1.2.9

2006-06-27 Thread Picha, Gayatri
Thanks for the quick reply I looked on that and updated the struts.jar
and all the commons.jar files but my code is looking for iterators which
is part of 
Commons Collections jar and in struts version 1.2.9 it no longer has a
dependency on Commons Collections. Since my current version is 1.2.6 I
was reading http://wiki.apache.org/struts/StrutsUpgradeNotes124to127
upgrading it from 1.2.4 to 1.2.7 and there it says "Struts no longer has
a dependency on Commons Collections or Commons Lang, so unless you have
other requirements for them, they no longer need to be deployed. " so
how can I deploy Commons Collections additionally since my code is
looking for that.

Any help on this will be truly appriciated.

Thanks,
-Gayatri.


-Original Message-
From: Mark Shifman [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 9:54 AM
To: Struts Users Mailing List
Subject: Re: upgrading from struts version 1.2.6 to 1.2.9

there is a wiki page:
http://wiki.apache.org/struts/StrutsUpgrade

Picha, Gayatri wrote:
> Hi,
> I am trying to upgrade from struts version 1.2.6 to 1.2.9, what are 
> the steps that needs to be done in order to do this.
>  
> Thanks in advance,
> -Gayatri.
>
>   


--
 Mark Shifman MD. Ph.D.
 Yale Center for Medical Informatics
 Phone (203)737-5219
 [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: How to Pass Client's Web Page Inputs to a Struts Action Link?

2006-06-27 Thread Martin Gainty
Jen-
check out 
http://www.informit.com/articles/article.asp?p=23734&seqNum=5&rl=1
HTH,
M-

*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: "Caroline Jen" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, June 27, 2006 12:38 PM
Subject: Re: How to Pass Client's Web Page Inputs to a Struts Action Link?


>I was thinking to use the attributes: paramId,
> paramName, paramProperty in my  action="."/> tag.  But I do not know how to
> pass more than one set of them.
> 
> --- Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> 
>> I can think of those:
>> 
>> 1) Use Javascript in link's "onclick" event to
>> collect form data.
>> 2) Use regular submit button, use CSS to display it
>> as a link.
>> 
>> On 6/27/06, Caroline Jen <[EMAIL PROTECTED]>
>> wrote:
>> > I am working on a JSP written in JSTL and html-el
>> > tags.  The JSP is displayed fine.
>> >
>> > This JSP has a table.  Each row of the table has a
>> > checkbox.  Clients may select any number of the
>> > checkboxes and click on a link to invoke a Struts
>> > action.
>> >
>> > I would like to pass the checkbox and every column
>> of
>> > each row when the "link" is clicked.  What is the
>> > proper way of doing that?
>> 
>>
> -
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
> 
> 
> __
> 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]
> 
>

Re: How to Pass Client's Web Page Inputs to a Struts Action Link?

2006-06-27 Thread Michael Jouravlev

Your table's checkboxes, rows and columns are selected in runtime on
client, while JSP tag is processed on server.

You can do what is called "partial submit", that is to submit a form
each time you click on checkbox. This way your application will know
current selection and will be able to stick these selections into a
link.

If you want to do so, you will need to stick additional parameter into
the link to distinguish partial submit from final submit.

You can pass a map of parameters to a link, google for "struts html:link map".

Michael.

On 6/27/06, Caroline Jen <[EMAIL PROTECTED]> wrote:

I was thinking to use the attributes: paramId,
paramName, paramProperty in my  tag.  But I do not know how to
pass more than one set of them.

--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> I can think of those:
>
> 1) Use Javascript in link's "onclick" event to
> collect form data.
> 2) Use regular submit button, use CSS to display it
> as a link.
>
> On 6/27/06, Caroline Jen <[EMAIL PROTECTED]>
> wrote:
> > I am working on a JSP written in JSTL and html-el
> > tags.  The JSP is displayed fine.
> >
> > This JSP has a table.  Each row of the table has a
> > checkbox.  Clients may select any number of the
> > checkboxes and click on a link to invoke a Struts
> > action.
> >
> > I would like to pass the checkbox and every column
> of
> > each row when the "link" is clicked.  What is the
> > proper way of doing that?
>
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>


__
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: upgrading from struts version 1.2.6 to 1.2.9

2006-06-27 Thread Mark Shifman

there is a wiki page:
http://wiki.apache.org/struts/StrutsUpgrade

Picha, Gayatri wrote:

Hi,
I am trying to upgrade from struts version 1.2.6 to 1.2.9, what are the
steps that needs to be done in order to do this.
 
Thanks in advance,

-Gayatri.

  



--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]


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



upgrading from struts version 1.2.6 to 1.2.9

2006-06-27 Thread Picha, Gayatri
Hi,
I am trying to upgrade from struts version 1.2.6 to 1.2.9, what are the
steps that needs to be done in order to do this.
 
Thanks in advance,
-Gayatri.


Re: How to Pass Client's Web Page Inputs to a Struts Action Link?

2006-06-27 Thread Caroline Jen
I was thinking to use the attributes: paramId,
paramName, paramProperty in my  tag.  But I do not know how to
pass more than one set of them.

--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:

> I can think of those:
> 
> 1) Use Javascript in link's "onclick" event to
> collect form data.
> 2) Use regular submit button, use CSS to display it
> as a link.
> 
> On 6/27/06, Caroline Jen <[EMAIL PROTECTED]>
> wrote:
> > I am working on a JSP written in JSTL and html-el
> > tags.  The JSP is displayed fine.
> >
> > This JSP has a table.  Each row of the table has a
> > checkbox.  Clients may select any number of the
> > checkboxes and click on a link to invoke a Struts
> > action.
> >
> > I would like to pass the checkbox and every column
> of
> > each row when the "link" is clicked.  What is the
> > proper way of doing that?
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__
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]



Re: How I can cancel a submit to use validation?

2006-06-27 Thread Michael Jouravlev

See here for example: http://www.irt.org/script/155.htm

On 6/27/06, José María Tristán <[EMAIL PROTECTED]> wrote:

Hello:
I use validation of side of client. i have a function on javascript 
that is
launch when the user submit the form. This function can to call the
validation functions or no. I put bCancel = true but when function
validateSeguimientoComercialForm(form) is call the submit is launch.


bCancel = new Boolean();
function validarText(){
...
bCancel=true;
}






Thank you very much





-
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]



Tiles and Struts

2006-06-27 Thread Alex Rodrigues da Silva

Hi,
I´m trying to use tiles with struts.
in my tiles-defs.xml i have

   
   
   
   
   
in my struts-config i have

   path="/logonAction" scope="request" 
type="br.com.stasolutions.login.WSFLogonAction"

   validate="true">
   
   

in my frameset.jsp i have
   
   
   
   
   
   
   
   
   
   

but when i logon im my project, i receive

org.apache.jasper.JasperException: Exception in JSP: /jsp/frameset.jsp
 is this line

java.lang.NullPointerException
org.apache.struts.taglib.tiles.InsertTag.processName(InsertTag.java:527)

org.apache.struts.taglib.tiles.InsertTag.createTagHandler(InsertTag.java:482)
org.apache.struts.taglib.tiles.InsertTag.doStartTag(InsertTag.java:438)

org.apache.jsp.jsp.frameset_jsp._jspx_meth_tiles_get_0(org.apache.jsp.jsp.frameset_jsp:200)

org.apache.jsp.jsp.frameset_jsp._jspx_meth_html_html_0(org.apache.jsp.jsp.frameset_jsp:113)

org.apache.jsp.jsp.frameset_jsp._jspService(org.apache.jsp.jsp.frameset_jsp:71)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085)

org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398)

org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)

can you help me?


thanks

Alex Rodrigues
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




___ 
Abra sua conta no Yahoo! Mail: 1GB de espaço, alertas de e-mail no celular e anti-spam realmente eficaz. 
http://mail.yahoo.com.br/


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



Re: How to Pass Client's Web Page Inputs to a Struts Action Link?

2006-06-27 Thread Michael Jouravlev

I can think of those:

1) Use Javascript in link's "onclick" event to collect form data.
2) Use regular submit button, use CSS to display it as a link.

On 6/27/06, Caroline Jen <[EMAIL PROTECTED]> wrote:

I am working on a JSP written in JSTL and html-el
tags.  The JSP is displayed fine.

This JSP has a table.  Each row of the table has a
checkbox.  Clients may select any number of the
checkboxes and click on a link to invoke a Struts
action.

I would like to pass the checkbox and every column of
each row when the "link" is clicked.  What is the
proper way of doing that?


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



How to Pass Client's Web Page Inputs to a Struts Action Link?

2006-06-27 Thread Caroline Jen
I am working on a JSP written in JSTL and html-el
tags.  The JSP is displayed fine.

This JSP has a table.  Each row of the table has a
checkbox.  Clients may select any number of the
checkboxes and click on a link to invoke a Struts
action.

I would like to pass the checkbox and every column of
each row when the "link" is clicked.  What is the
proper way of doing that?  My code is shown below(and
also in the attachment:
[code]
...all the required taglib(s)
<%@ page
import=".common.pojo.user.User" %>




User Maintenance Home Page





































Edit Selected
Users







No User Found.




[/code]

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com <%@ taglib uri="/tags/struts-html" prefix="html"%>
<%@ taglib uri="/tags/struts-html-el" prefix="html-el"%>
<%@ taglib uri="/tags/struts-bean" prefix="bean"%>
<%@ taglib uri="/tags/struts-tiles" prefix="tiles" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%@ taglib uri="/tags/core" prefix="c" %> 
<%@ taglib uri="/tags/targeting-foundation" prefix="ecustoms"%>
<%@ page import="java.util.List"%>
<%@ page import="gov.cbp.ace.st.tf.common.pojo.user.User" %>




User Maintenance Home Page



 



Search
















Select
Hash ID
First Name
Last Name
Creation Date
Modification Date






























   

Re: Validate just certain fields

2006-06-27 Thread Jennifer Jacobs

Jasper,

Thank you for your response.  I'm not sure you understand my issue, though. 
Either that, or I didn't understand your response, which is quite likely, as
I'm no old pro at this validation stuff.

The form has working validation on all the fields that require validation,
using the validation framework.  Let's say the form has 10 fields and 7 of
them need validated for whatever reason.  There's also two buttons on the
form: ButtonA and ButtonB.  ButtonA submits the form to our backend system. 
When ButtonA is hit, the 7 fields are validated and everything is working
perfectly.  ButtonB does NOT submit the form, it just does a simple
calculation.  However, because it needs to use 2 of the fields in order to
do that calculation, it needs to validate those two fields (that are part of
the 7).  Because it does NOT need to validate the other 5 fields, I can't do
validation on the whole form (or at least, don't want to).

I know I can programmatically do validation on the 2 fields, but that means
I have validation in two separate places - one in my validation framework,
and one in my code.  For instance, one of the fields is an integer that
can't be higher than 5.  What if that changes to 10 one day?  I have to
change it in two places, and I don't want to do that.  Is it possible for me
to make it use the validation I have set up in the validation.xml file for
only 2 of the 7 fields?
-- 
View this message in context: 
http://www.nabble.com/Validate-just-certain-fields-tf1850707.html#a5066921
Sent from the Struts - User forum at Nabble.com.


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



RE: Generated HTML FORM tag is missing "do" and Action Nme

2006-06-27 Thread George.Dinwiddie
Wendy Smoak said:
> 
> On 6/27/06, Steven Mitchell <[EMAIL PROTECTED]> wrote:
> 
> > You can make the Action Servlet servlet-mapping anything you want.  
> > Rather than use /MyAction.do, I have used /do/MyAction for 
> years. In 
> > fact, I usually have two servlet-mapping patterns for the Action 
> > servlet: "/do/*" and "logout".
> 
> There is a warning against having multiple servlet mappings 
> at the bottom of section 5.4.2.
>  * 
>
http://struts.apache.org/struts-action/userGuide/configuration.html#dd_c
onfig_mapping
> 
> I guess we should change that to "_may_ not work correctly," because
> you're not the first person to mention doing this. :)

Even better would be to document _what_ may not work correctly.  (Or to
fix those parts. :-)

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



Re: Validate just certain fields

2006-06-27 Thread Ed Griebel

You can use the "page" attribute on the validations, with the "page"
attribute. Look at
http://struts.apache.org/struts-doc-1.2.9/userGuide/dev_validator.html
under "Multi page forms" for an extremely brief overview.

Basically,  create a java.lang.Integer variable in your form called
"page" and before you call form.validate() set this page variable
appropriately: if subtotal was pressed set page=1, if submit then
page=2.

Define validations common to both in validations with page=1, and
submit only with page=2 in validation.xml:

  ... 
 ...
 ...


It's not the most elegant, but it does work well when you have a
linear page flow.

-ed

On 6/26/06, Jennifer Jacobs <[EMAIL PROTECTED]> wrote:


I'm using the Struts Validator framework.

I have a form with two buttons on it, one that calculates a subtotal and one
that submits the form.  I have validation set to false, because I don't want
to validate the shipping address/email/phone number/etc when they calculate
the subtotal.  So, I do a form.validate() when the submit button is hit.

However, I DO want to validate the values they put in for quantity, etc.  I
know I can write validation for it all, but then my validation is in two
places - is there any way to "tell" it to validate JUST a certain set of
fields?

Thanks in advance,
Jennifer
--
View this message in context: 
http://www.nabble.com/Validate-just-certain-fields-t1850707.html#a5052596
Sent from the Struts - User forum at Nabble.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]



having problem Using Indexed properties with Multi select inside logic iterate

2006-06-27 Thread Krishan Rathi

 Hi i am trying to use a multi select box in logic iterate 
in this way 

 

 

 
 

 

in the form bean i have following code. 

private Map selectedBooks; 

public Object getBookMapped(String index) { 
return selectedBooks.get(key); 
} 

public void setBookMapped(String index,Object value) { 
selectedBooks.put(key,value); 
} 
now in each multiple select box i am selecting 
multiple books but in the resulting map selectedBooks 
i am getting one value for each multiple selection 
then i had also tried using 

public void setBookMapped(String index,Object[] 
value) { 
selectedBooks.put(key,value); 
} 

but which is throwing an illegelargumenttype 
exception. 

please help. 

thanks in advance. 

krishan.



krishan Rathi


Re: Setting Language through the browser?

2006-06-27 Thread Antonio Petrelli

Fredrik Andersson ha scritto:

Could you point me to a usage example? =)
  


The Javadoc says:


Implementation of *Action* that changes the user's |Locale| and forwards 
to a page, based on request level parameters that are set (language, 
country, & page).



So fill your request parameters with
language: for example "en" "it"...
country: for example "US", "IT"
page: the action mapping or a path.

HTH
Antonio

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



Re: Setting Language through the browser?

2006-06-27 Thread Fredrik Andersson
Could you point me to a usage example? =)

Den 6/27/2006, skrev "Antonio Petrelli" <[EMAIL PROTECTED]>:

>Fredrik Andersson ha scritto:
>> Hi all
>>
>> I have manage to get the i18n internalization to work using the
>> properties files. now I would want to be able to change the language
>> through the browser (by clicking on a flag). How can I do this?
>>
>> Tips and pointers is appreciated =)
>>
>
>Struts Extras already provides a "setLocale" action:
>http://struts.apache.org/struts-action/struts-extras/apidocs/org/apache/struts/actions/LocaleAction.html
>
>Ciao
>Antonio
>
>-
>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: javascript help using html:image

2006-06-27 Thread fea jabi

need help with this please.



From: "fea jabi" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" 
To: user@struts.apache.org
Subject: javascript help
Date: Mon, 26 Jun 2006 15:20:26 -0400

function setMethodNameCopy() {
var copylbl = '';

var mtd=document.getElementById("mtdID");
mtd.value = copylbl;

return;
}

JSP:




requestURI="PrepareAction.do" defaultsort="7" pagesize="6">


onclick="setMethodNameCopy();"/>


.
...



When the user clicks on the image want to assign
hidden property custID to displaytags ${custs.custID }

want to pass this value to the dispatch action to copy that cust obj.

how to do this?

thanks.

_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/



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



RE: Setting Language through the browser?

2006-06-27 Thread Fredrik Andersson
Could I get an example on how it is used? I don't get it ^^

Den 6/27/2006, skrev "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]>:

>Hi
>
>This is the one that I am using, and it works great.
>
>Hermod
>
>-Original Message-
>From: C. Grobmeier [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, June 27, 2006 1:23 PM
>To: Struts Users Mailing List
>Subject: Re: Setting Language through the browser?
>
>
>
>
>* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
>This email with attachments is solely for the use of the individual or
>entity to whom it is addressed. Please also be aware that the DnB NOR Group
>cannot accept any payment orders or other legally binding correspondence with
>customers as a part of an email. 
>
>This email message has been virus checked by the anti virus programs used
>in the DnB NOR Group.
>
>* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
>
>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>> Struts Extras already provides a "setLocale" action:
>> http://struts.apache.org/struts-action/struts-extras/apidocs/org/apache/struts/actions/LocaleAction.html
>
>hu great.
>thanks for the tip. this action forwards to the originating page. i will
>improve my webapp too :-)
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.4.2.1 (MingW32)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>iD8DBQFEoRUZkv8rKBUE/T4RAlp8AKCB/jP90SrT0/x0dbEXd1vW0+FgUACfc8Mi
>dB6/kaNFIziRAi3TG6heWgY=
>=mpe0
>-END PGP SIGNATURE-
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
>This email with attachments is solely for the use of the individual or
>entity to whom it is addressed. Please also be aware that the DnB NOR Group
>cannot accept any payment orders or other legally binding correspondence with
>customers as a part of an email. 
>
>This email message has been virus checked by the anti virus programs used
>in the DnB NOR Group.
>
>* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>
>
>-
>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 one of the actions.

2006-06-27 Thread sim085

Yes I too think the problem comes from thetiles.xml file.

Basically I have a tile (menu) that points to an action class '\audit.do'
Now I did configure this action class in my struts.xml file.  So much that
from one page it loads my page correctly, and from another page it does not
(and throws that exception).

I am using  to link to the pages i want (from both placed). 
Can't really understand why it is staying as null :(

are there anythings I can do to test this out and try to trace the problem?

regards, and thanks,
sim085

-- 
View this message in context: 
http://www.nabble.com/Problem-with-one-of-the-actions.-tf1849366.html#a5064570
Sent from the Struts - User forum at Nabble.com.


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



Re: Generated HTML FORM tag is missing "do" and Action Nme

2006-06-27 Thread Wendy Smoak

On 6/27/06, Steven Mitchell <[EMAIL PROTECTED]> wrote:


You can make the Action Servlet servlet-mapping anything you want.  Rather than use /MyAction.do, I 
have used /do/MyAction for years. In fact, I usually have two servlet-mapping patterns for the 
Action servlet: "/do/*" and "logout".


There is a warning against having multiple servlet mappings at the
bottom of section 5.4.2.
* 
http://struts.apache.org/struts-action/userGuide/configuration.html#dd_config_mapping

I guess we should change that to "_may_ not work correctly," because
you're not the first person to mention doing this. :)

--
Wendy

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



RE: Javascript problem, how to control special characters from being entered into textbox

2006-06-27 Thread Mukta
If you want to allow only characters and digits, you need not know keycodes
of all the special characters. Just compare the characters' and digits'
ASCII values with the character entered on OnKeyUp event. If it's a special
character, just drop it.

You can also use java.util.regex.Pattern and java.util.regex.Matcher classes
at server side.


-Original Message-
From: Medicherla Lakshmi [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 2:29 PM
To: Struts Users Mailing List
Subject: Javascript problem, how to control special characters from being
entered into textbox

Hi,
   
  I hava a javascript problem.  I need to restrict anyone entering special
characters into a textbox which is there in my html.  I know that i can use
onKeyPress event to handle this, but for this i need to know the keycodes.
Please anyone tel me if there is any other way to handle this or tel me how
to know the keycodes of the characters, so that i can use it.  Also, i have
to restrict the textboxes with characters and then digits.
   
  Thanks in advance.


   


-
 Yahoo! India Answers: Share what you know. Learn something new Click here
Catch all the FIFA World Cup 2006 action on Yahoo! India Click here



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



RE: Setting Language through the browser?

2006-06-27 Thread hermod.opstvedt
Hi

This is the one that I am using, and it works great.

Hermod

-Original Message-
From: C. Grobmeier [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 1:23 PM
To: Struts Users Mailing List
Subject: Re: Setting Language through the browser?




* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> Struts Extras already provides a "setLocale" action:
> http://struts.apache.org/struts-action/struts-extras/apidocs/org/apache/struts/actions/LocaleAction.html

hu great.
thanks for the tip. this action forwards to the originating page. i will
improve my webapp too :-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEoRUZkv8rKBUE/T4RAlp8AKCB/jP90SrT0/x0dbEXd1vW0+FgUACfc8Mi
dB6/kaNFIziRAi3TG6heWgY=
=mpe0
-END PGP SIGNATURE-

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



* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that the DnB NOR Group
cannot accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



Re: Generated HTML FORM tag is missing "do" and Action Nme

2006-06-27 Thread Steven Mitchell
You can make the Action Servlet servlet-mapping anything you want.  Rather than 
use /MyAction.do, I have used /do/MyAction for years. In fact, I usually have 
two servlet-mapping patterns for the Action servlet: "/do/*" and "logout".  
Notice the logout has no "do" at all.  That allows me to put all my Struts 
Actions behind a security constraint of "/do/*" except for "logout", which is 
unprotected.  I had to do that because if you left a window open until it timed 
out, then clicked the logout link, you got a 403 error.  Adding the the 
unprotected "logout" Action Servlet servlet-mapping fixed that problem.

As I typed this email I thought of something to test.  I put my "/logout" 
Action Servlet servlet-mapping before my "/do/*" servlet-mapping and my form 
tags started rendering correctly.  We use an older version of Struts at work, 
and I'm certain we put the /logout servlet-mapping second there.  In any case, 
problem solved.

Antonio Petrelli <[EMAIL PROTECTED]> wrote: Steven Mitchell ha scritto:
>   
> action
> /do/*
>   

What? Isn't *.do ?
>   
>   


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




Re: Setting Language through the browser?

2006-06-27 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> Struts Extras already provides a "setLocale" action:
> http://struts.apache.org/struts-action/struts-extras/apidocs/org/apache/struts/actions/LocaleAction.html

hu great.
thanks for the tip. this action forwards to the originating page. i will
improve my webapp too :-)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEoRUZkv8rKBUE/T4RAlp8AKCB/jP90SrT0/x0dbEXd1vW0+FgUACfc8Mi
dB6/kaNFIziRAi3TG6heWgY=
=mpe0
-END PGP SIGNATURE-

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



Re: Setting Language through the browser?

2006-06-27 Thread Antonio Petrelli

Fredrik Andersson ha scritto:

Hi all

I have manage to get the i18n internalization to work using the
properties files. now I would want to be able to change the language
through the browser (by clicking on a flag). How can I do this?

Tips and pointers is appreciated =)
  


Struts Extras already provides a "setLocale" action:
http://struts.apache.org/struts-action/struts-extras/apidocs/org/apache/struts/actions/LocaleAction.html

Ciao
Antonio

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



Re: Setting Language through the browser?

2006-06-27 Thread Fredrik Andersson
A great :)

Will run and test that =) thanks a bunch :)

Den 6/27/2006, skrev "C. Grobmeier" <[EMAIL PROTECTED]>:

>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>> That is kinda what I would like to do. I want to have 3 images on the
>> page and when you click on one of them the language changes to the
>> language coresponding to the image (in other words 3 flag images).
>>
>> How could I do that in an easy way on a page? Do I have to make a class
>> or can I do it in jsp?
>
>in my jsp is:
>
>y
>
>in my struts-config.xml switchLanguage is mapped to the Action i postet
>before. The lang-Param will be read there and the Locale is set.
>
>CHris
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.4.2.1 (MingW32)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>iD8DBQFEoRL1kv8rKBUE/T4RAqyUAJ94ro/402btrPmB+CF3eO1Slbl9QACfYTUm
>6k/pIfXtGKRLgQn52r4zh1s=
>=UC6d
>-END PGP SIGNATURE-
>
>-
>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: Setting Language through the browser?

2006-06-27 Thread hermod.opstvedt
Hi

You call the Action (as shown below).

If you want to see it in action, look at www.os-seilforening.org

Hermod

-Original Message-
From: Fredrik Andersson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 27, 2006 1:07 PM
To: Struts Users Mailing List
Subject: Re: Setting Language through the browser?


ok, nice =)

That is kinda what I would like to do. I want to have 3 images on the
page and when you click on one of them the language changes to the
language coresponding to the image (in other words 3 flag images).

How could I do that in an easy way on a page? Do I have to make a class
or can I do it in jsp?

Den 6/27/2006, skrev "C. Grobmeier" <[EMAIL PROTECTED]>:

>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>Fredrik Andersson wrote:
>> Hi all
>>
>> I have manage to get the i18n internalization to work using the
>> properties files. now I would want to be able to change the language
>> through the browser (by clicking on a flag). How can I do this?
>>
>> Tips and pointers is appreciated =)
>
>I wrote a cheap setLocale-Action. Maybe not the best approach, but it
>works for me. Only the "redirect to language-switched page" is ugly :-)
>
>
>
>public ActionForward execute(  ActionMapping mapping,
>   ActionForm form,
>   HttpServletRequest 
> request,
>   HttpServletResponse 
> response)
>   throws Exception {
>   /* Switch content type*/
>   String locale = request.getParameter( 
> ConstantsInterface.REQ_LOCALE );
>
>   if( locale.equalsIgnoreCase( "DE" ) ) {
> setLocale( request, Locale.GERMAN );
>   }
>   if( locale.equalsIgnoreCase( "EN") ) {
>   setLocale( request, Locale.ENGLISH );
>   }
>
>
>   return mapping.findForward( "languageswitched" );
>   }
>
>protected void setLocale( HttpServletRequest request, Locale locale ) {
>   HttpSession session = request.getSession(false);
>   if (session != null) {
>   session.setAttribute(ComponentConstants.LOCALE_KEY, locale);
>   }
>}
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.4.2.1 (MingW32)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>iD8DBQFEoQ9+kv8rKBUE/T4RAp7jAJ414uPD5LjtMqT7iiItgkk5dGOMEgCfe555
>WWSyqIn8w3/kWqC8UWabqps=
>=5f60
>-END PGP SIGNATURE-
>
>-
>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]


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

This email with attachments is solely for the use of the individual or
entity to whom it is addressed. Please also be aware that DnB NOR cannot
accept any payment orders or other legally binding correspondence with
customers as a part of an email. 

This email message has been virus checked by the anti virus programs used
in the DnB NOR Group.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


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



Re: Setting Language through the browser?

2006-06-27 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> That is kinda what I would like to do. I want to have 3 images on the
> page and when you click on one of them the language changes to the
> language coresponding to the image (in other words 3 flag images).
> 
> How could I do that in an easy way on a page? Do I have to make a class
> or can I do it in jsp?

in my jsp is:

y

in my struts-config.xml switchLanguage is mapped to the Action i postet
before. The lang-Param will be read there and the Locale is set.

CHris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEoRL1kv8rKBUE/T4RAqyUAJ94ro/402btrPmB+CF3eO1Slbl9QACfYTUm
6k/pIfXtGKRLgQn52r4zh1s=
=UC6d
-END PGP SIGNATURE-

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



Re: Setting Language through the browser?

2006-06-27 Thread Fredrik Andersson
ok, nice =)

That is kinda what I would like to do. I want to have 3 images on the
page and when you click on one of them the language changes to the
language coresponding to the image (in other words 3 flag images).

How could I do that in an easy way on a page? Do I have to make a class
or can I do it in jsp?

Den 6/27/2006, skrev "C. Grobmeier" <[EMAIL PROTECTED]>:

>-BEGIN PGP SIGNED MESSAGE-
>Hash: SHA1
>
>Fredrik Andersson wrote:
>> Hi all
>>
>> I have manage to get the i18n internalization to work using the
>> properties files. now I would want to be able to change the language
>> through the browser (by clicking on a flag). How can I do this?
>>
>> Tips and pointers is appreciated =)
>
>I wrote a cheap setLocale-Action. Maybe not the best approach, but it
>works for me. Only the "redirect to language-switched page" is ugly :-)
>
>
>
>public ActionForward execute(  ActionMapping mapping,
>   ActionForm form,
>   HttpServletRequest 
> request,
>   HttpServletResponse 
> response)
>   throws Exception {
>   /* Switch content type*/
>   String locale = request.getParameter( 
> ConstantsInterface.REQ_LOCALE );
>
>   if( locale.equalsIgnoreCase( "DE" ) ) {
> setLocale( request, Locale.GERMAN );
>   }
>   if( locale.equalsIgnoreCase( "EN") ) {
>   setLocale( request, Locale.ENGLISH );
>   }
>
>
>   return mapping.findForward( "languageswitched" );
>   }
>
>protected void setLocale( HttpServletRequest request, Locale locale ) {
>   HttpSession session = request.getSession(false);
>   if (session != null) {
>   session.setAttribute(ComponentConstants.LOCALE_KEY, locale);
>   }
>}
>-BEGIN PGP SIGNATURE-
>Version: GnuPG v1.4.2.1 (MingW32)
>Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
>iD8DBQFEoQ9+kv8rKBUE/T4RAp7jAJ414uPD5LjtMqT7iiItgkk5dGOMEgCfe555
>WWSyqIn8w3/kWqC8UWabqps=
>=5f60
>-END PGP SIGNATURE-
>
>-
>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]



How I can cancel a submit to use validation?

2006-06-27 Thread José María Tristán
Hello:
I use validation of side of client. i have a function on javascript 
that is
launch when the user submit the form. This function can to call the
validation functions or no. I put bCancel = true but when function
validateSeguimientoComercialForm(form) is call the submit is launch.


bCancel = new Boolean();
function validarText(){
...
bCancel=true;
}






Thank you very much





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



Re: Setting Language through the browser?

2006-06-27 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Fredrik Andersson wrote:
> Hi all
> 
> I have manage to get the i18n internalization to work using the
> properties files. now I would want to be able to change the language
> through the browser (by clicking on a flag). How can I do this?
> 
> Tips and pointers is appreciated =)

I wrote a cheap setLocale-Action. Maybe not the best approach, but it
works for me. Only the "redirect to language-switched page" is ugly :-)



public ActionForward execute(   ActionMapping mapping,
ActionForm form,
HttpServletRequest 
request,
HttpServletResponse 
response)
throws Exception {
/* Switch content type*/
String locale = request.getParameter( 
ConstantsInterface.REQ_LOCALE );

if( locale.equalsIgnoreCase( "DE" ) ) {
  setLocale( request, Locale.GERMAN );
}
if( locale.equalsIgnoreCase( "EN") ) {
setLocale( request, Locale.ENGLISH );
}


return mapping.findForward( "languageswitched" );
}

protected void setLocale( HttpServletRequest request, Locale locale ) {
HttpSession session = request.getSession(false);
if (session != null) {
session.setAttribute(ComponentConstants.LOCALE_KEY, locale);
}
}
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEoQ9+kv8rKBUE/T4RAp7jAJ414uPD5LjtMqT7iiItgkk5dGOMEgCfe555
WWSyqIn8w3/kWqC8UWabqps=
=5f60
-END PGP SIGNATURE-

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



RE: Setting Language through the browser?

2006-06-27 Thread Mukta
I think you will need to develop a browser plug-in for this.


-Original Message-
From: Fredrik Andersson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 27, 2006 4:13 PM
To: Struts Users Mailing List
Subject: Setting Language through the browser?

Hi all

I have manage to get the i18n internalization to work using the
properties files. now I would want to be able to change the language
through the browser (by clicking on a flag). How can I do this?

Tips and pointers is appreciated =)

-
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: key not found using internationalization

2006-06-27 Thread Fredrik Andersson
I manage to get it working, thanks :)

Den 6/27/2006, skrev "Fredrik Andersson" <[EMAIL PROTECTED]>:

>Ok, so after deployment tomcat will look for the files inside my class
>dir?
>
>It have tried it that way and still get Null returned from the
>bean:message tag. i18n now resides under my class dir and I have set the
>parameter accordingly.
>
>Anything more I can do to solve this?
>
>Den 6/27/2006, skrev "Eider Iturbe" <[EMAIL PROTECTED]>:
>
>Hi again!
>
>When I said that ApplicationResources.properties file is usually located
>in
>source part, I meant that you should put it where you've put the other
>java
>and their packages. You can use another package, separated from the other
>java files, called for example "i18n".
>
>You can define the language you want to use in the application code like
>this (this example set the language to english):
>
>session.setAttribute(Globals.LOCALE_KEY,new
>java.util.Locale("en","US"));
>
>Eider
>
>On 6/27/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote:
>>
>> Hi
>>
>> Yeah they files all contain the app.name=(Language name for testing)
>> ApplicationResources.properties
>> ApplicationResources_sv.properties
>> ApplicationResources_no.properties
>>
>> So you are saying that I should make a folder and put it under WEB-INF/
>> and place the files there? Or how do you mean by package?
>>
>> Also where do I tell struts if I want sv, no or the ordinary
>> ApplicationResources file? Will struts fall back on the
>> ApplicationResources.properties file as default?
>>
>> Den 6/27/2006, skrev "Eider Iturbe" < [EMAIL PROTECTED]>:
>>
>> Hi!
>>
>> The ApplicationResources.properties file is usually inside source part,
>> and
>> not in Web Content part. For example, you can create a package called
>> "i18n"
>> and then you can save the ApplicationResources.properties file there.
>> Then,
>> you have to set this in struts-config.xml:
>>
>> > />
>>
>> Another question, is the app.name key defined in the
>> ApplicationResource.properties file???
>>
>>
>> --
>> Eider
>>
>>
>> On 6/27/06, Fredrik Andersson < [EMAIL PROTECTED]> wrote:
>> >
>> > Hi all
>> >
>> > I'm quite new to struts and is trying to implement an Language
>> > internalization on some jsp pages.
>> >
>> > I have my ApplicationResources.properties files inside my WEB-INF folder
>> > and in all my struts-config files I have added the
>> > 
>> > tag.
>> > The web.xml was extended with the following.
>> > 
>> > /WEB-INF/struts-bean.tld
>> > /WEB-INF/struts-bean.tld
>> > 
>> > And I have put the struts-bean.tld file inside my WEB-INF folder.
>> >
>> > now when I point my browser to my page I get a "Missing message for key
>> > "app.name" "
>> >
>> > Any help or pointers is greatly appreciated.
>> >
>> > -
>> > 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]
>>
>>
>
>
>--
>Eider
>
>-
>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]



Setting Language through the browser?

2006-06-27 Thread Fredrik Andersson
Hi all

I have manage to get the i18n internalization to work using the
properties files. now I would want to be able to change the language
through the browser (by clicking on a flag). How can I do this?

Tips and pointers is appreciated =)

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



Re: Generated HTML FORM tag is missing "do" and Action Nme

2006-06-27 Thread Antonio Petrelli

Steven Mitchell ha scritto:

  
action
/do/*
  


What? Isn't *.do ?

  
  



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



Javascript problem, how to control special characters from being entered into textbox

2006-06-27 Thread Medicherla Lakshmi
Hi,
   
  I hava a javascript problem.  I need to restrict anyone entering special 
characters into a textbox which is there in my html.  I know that i can use 
onKeyPress event to handle this, but for this i need to know the keycodes.  
Please anyone tel me if there is any other way to handle this or tel me how to 
know the keycodes of the characters, so that i can use it.  Also, i have to 
restrict the textboxes with characters and then digits.
   
  Thanks in advance.


   


-
 Yahoo! India Answers: Share what you know. Learn something new Click here
Catch all the FIFA World Cup 2006 action on Yahoo! India Click here

Re: key not found using internationalization

2006-06-27 Thread Fredrik Andersson
Ok, so after deployment tomcat will look for the files inside my class
dir?

It have tried it that way and still get Null returned from the
bean:message tag. i18n now resides under my class dir and I have set the
parameter accordingly.

Anything more I can do to solve this?

Den 6/27/2006, skrev "Eider Iturbe" <[EMAIL PROTECTED]>:

Hi again!

When I said that ApplicationResources.properties file is usually located
in
source part, I meant that you should put it where you've put the other
java
and their packages. You can use another package, separated from the other
java files, called for example "i18n".

You can define the language you want to use in the application code like
this (this example set the language to english):

session.setAttribute(Globals.LOCALE_KEY,new
java.util.Locale("en","US"));

Eider

On 6/27/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> Yeah they files all contain the app.name=(Language name for testing)
> ApplicationResources.properties
> ApplicationResources_sv.properties
> ApplicationResources_no.properties
>
> So you are saying that I should make a folder and put it under WEB-INF/
> and place the files there? Or how do you mean by package?
>
> Also where do I tell struts if I want sv, no or the ordinary
> ApplicationResources file? Will struts fall back on the
> ApplicationResources.properties file as default?
>
> Den 6/27/2006, skrev "Eider Iturbe" < [EMAIL PROTECTED]>:
>
> Hi!
>
> The ApplicationResources.properties file is usually inside source part,
> and
> not in Web Content part. For example, you can create a package called
> "i18n"
> and then you can save the ApplicationResources.properties file there.
> Then,
> you have to set this in struts-config.xml:
>
>  />
>
> Another question, is the app.name key defined in the
> ApplicationResource.properties file???
>
>
> --
> Eider
>
>
> On 6/27/06, Fredrik Andersson < [EMAIL PROTECTED]> wrote:
> >
> > Hi all
> >
> > I'm quite new to struts and is trying to implement an Language
> > internalization on some jsp pages.
> >
> > I have my ApplicationResources.properties files inside my WEB-INF folder
> > and in all my struts-config files I have added the
> > 
> > tag.
> > The web.xml was extended with the following.
> > 
> > /WEB-INF/struts-bean.tld
> > /WEB-INF/struts-bean.tld
> > 
> > And I have put the struts-bean.tld file inside my WEB-INF folder.
> >
> > now when I point my browser to my page I get a "Missing message for key
> > "app.name" "
> >
> > Any help or pointers is greatly appreciated.
> >
> > -
> > 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]
>
>


--
Eider

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



Fwd: Re: key not found using internationalization

2006-06-27 Thread Fredrik Andersson
Hi again

I put everything under WEB-INF/i18n and updated my xml files accordingly.
now all I get when I look at the page is "???en_US.app.name???"
Why is that?

Den 6/27/2006, skrev "Fredrik Andersson" <[EMAIL PROTECTED]>:

>Hi
>
>Yeah they files all contain the app.name=(Language name for testing)
>ApplicationResources.properties
>ApplicationResources_sv.properties
>ApplicationResources_no.properties
>
>So you are saying that I should make a folder and put it under WEB-INF/
>and place the files there? Or how do you mean by package?
>
>Also where do I tell struts if I want sv, no or the ordinary
>ApplicationResources file? Will struts fall back on the
>ApplicationResources.properties file as default?
>
>Den 6/27/2006, skrev "Eider Iturbe" <[EMAIL PROTECTED]>:
>
>Hi!
>
>The ApplicationResources.properties file is usually inside source part,
>and
>not in Web Content part. For example, you can create a package called
>"i18n"
>and then you can save the ApplicationResources.properties file there.
>Then,
>you have to set this in struts-config.xml:
>
>/>
>
>Another question, is the app.name key defined in the
>ApplicationResource.properties file???
>
>
>--
>Eider
>
>
>On 6/27/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote:
>>
>> Hi all
>>
>> I'm quite new to struts and is trying to implement an Language
>> internalization on some jsp pages.
>>
>> I have my ApplicationResources.properties files inside my WEB-INF folder
>> and in all my struts-config files I have added the
>> 
>> tag.
>> The web.xml was extended with the following.
>> 
>> /WEB-INF/struts-bean.tld
>> /WEB-INF/struts-bean.tld
>> 
>> And I have put the struts-bean.tld file inside my WEB-INF folder.
>>
>> now when I point my browser to my page I get a "Missing message for key
>> "app.name" "
>>
>> Any help or pointers is greatly appreciated.
>>
>> -
>> 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: key not found using internationalization

2006-06-27 Thread Eider Iturbe

Hi again!

When I said that ApplicationResources.properties file is usually located in
source part, I meant that you should put it where you've put the other .java
and their packages. You can use another package, separated from the other
.java files, called for example "i18n".

You can define the language you want to use in the application code like
this (this example set the language to english):

session.setAttribute(Globals.LOCALE_KEY,new java.util.Locale("en","US"));

Eider

On 6/27/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote:


Hi

Yeah they files all contain the app.name=(Language name for testing)
ApplicationResources.properties
ApplicationResources_sv.properties
ApplicationResources_no.properties

So you are saying that I should make a folder and put it under WEB-INF/
and place the files there? Or how do you mean by package?

Also where do I tell struts if I want sv, no or the ordinary
ApplicationResources file? Will struts fall back on the
ApplicationResources.properties file as default?

Den 6/27/2006, skrev "Eider Iturbe" < [EMAIL PROTECTED]>:

Hi!

The ApplicationResources.properties file is usually inside source part,
and
not in Web Content part. For example, you can create a package called
"i18n"
and then you can save the ApplicationResources.properties file there.
Then,
you have to set this in struts-config.xml:



Another question, is the app.name key defined in the
ApplicationResource.properties file???


--
Eider


On 6/27/06, Fredrik Andersson < [EMAIL PROTECTED]> wrote:
>
> Hi all
>
> I'm quite new to struts and is trying to implement an Language
> internalization on some jsp pages.
>
> I have my ApplicationResources.properties files inside my WEB-INF folder
> and in all my struts-config files I have added the
> 
> tag.
> The web.xml was extended with the following.
> 
> /WEB-INF/struts-bean.tld
> /WEB-INF/struts-bean.tld
> 
> And I have put the struts-bean.tld file inside my WEB-INF folder.
>
> now when I point my browser to my page I get a "Missing message for key
> "app.name" "
>
> Any help or pointers is greatly appreciated.
>
> -
> 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]





--
Eider


Re: key not found using internationalization

2006-06-27 Thread Fredrik Andersson
Hi again

I put everything under WEB-INF/i18n and updated my xml files accordingly.
now all I get when I look at the page is "???en_US.app.name???"
Why is that?

Den 6/27/2006, skrev "Fredrik Andersson" <[EMAIL PROTECTED]>:

>Hi
>
>Yeah they files all contain the app.name=(Language name for testing)
>ApplicationResources.properties
>ApplicationResources_sv.properties
>ApplicationResources_no.properties
>
>So you are saying that I should make a folder and put it under WEB-INF/
>and place the files there? Or how do you mean by package?
>
>Also where do I tell struts if I want sv, no or the ordinary
>ApplicationResources file? Will struts fall back on the
>ApplicationResources.properties file as default?
>
>Den 6/27/2006, skrev "Eider Iturbe" <[EMAIL PROTECTED]>:
>
>Hi!
>
>The ApplicationResources.properties file is usually inside source part,
>and
>not in Web Content part. For example, you can create a package called
>"i18n"
>and then you can save the ApplicationResources.properties file there.
>Then,
>you have to set this in struts-config.xml:
>
>/>
>
>Another question, is the app.name key defined in the
>ApplicationResource.properties file???
>
>
>--
>Eider
>
>
>On 6/27/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote:
>>
>> Hi all
>>
>> I'm quite new to struts and is trying to implement an Language
>> internalization on some jsp pages.
>>
>> I have my ApplicationResources.properties files inside my WEB-INF folder
>> and in all my struts-config files I have added the
>> 
>> tag.
>> The web.xml was extended with the following.
>> 
>> /WEB-INF/struts-bean.tld
>> /WEB-INF/struts-bean.tld
>> 
>> And I have put the struts-bean.tld file inside my WEB-INF folder.
>>
>> now when I point my browser to my page I get a "Missing message for key
>> "app.name" "
>>
>> Any help or pointers is greatly appreciated.
>>
>> -
>> 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]



AW: Date Validation on the Clients side

2006-06-27 Thread Halgurt Mustafa Ali
Good morning,

Ok :-) Many thanks for your help, that was very nice from you, I appreciate it..

Regards,
Halgurt

-Ursprüngliche Nachricht-
Von: The Jasper [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 27. Juni 2006 09:42
An: Struts Users Mailing List
Betreff: Re: Date Validation on the Clients side


HI,

Client side validation is usefull as you say (allthough you should
still always validate serverside as well). Unfortunately not all
things are given to us, so somethings we have to write for ourselves.
I think for most purposes date without time are sufficient, so that's
why it was done that way.

On 6/27/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Ok, that means client side date validation is still not perfect. The point 
> is, in a big application it is very usefull to have client side validation, 
> even to unburden the server and have a better performance. Are you 
> interessted in having such a validation on the clients side.
>
> Best regards,
> Halgurt
>
> -Ursprüngliche Nachricht-
> Von: The Jasper [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 26. Juni 2006 17:50
> An: Struts Users Mailing List
> Betreff: Re: Date Validation on the Clients side
>
>
> hi,
>
> Looking at the js, I agree that this won't work, but that's only
> client side. Server side validation should work, because that makes
> use of SimpleDateFormat. So unless your pattern is being cut off
> somewhere I would expect that to do the trick. For client side you
> probably will have to write the js code to check for minutes and
> seconds.
>
> mvg,
> Jasper
>
> On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > Yes I tried it, but no success.. I am using Struts 1.2.9 and 
> > commons-validator.jar 1.3.0 I had a look at validateDate.js and it seems 
> > for me not to be correct, it seems so, but whether or not, I am not sure.
> >
> > mvg,
> > Halgurt
> > PS:I appreciate your help, many thanks:-)
> >
> > -Ursprüngliche Nachricht-
> > Von: The Jasper [mailto:[EMAIL PROTECTED]
> > Gesendet: Montag, 26. Juni 2006 17:11
> > An: Struts Users Mailing List
> > Betreff: Re: Date Validation on the Clients side
> >
> >
> > Hi,
> >
> > shot in the dark here, but have you tried datePatternStrict instead of
> > datePattern?
> >
> > mvg,
> > Jasper
> >
> > On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
> > > Hello All,
> > >
> > > I posted today the message below, unfortunately without any success. May 
> > > be can somebody tell me if it is at all possible to validate date values 
> > > like  "dd.MM. HH:mm" on the clients side. I really appreciate your 
> > > help, it is really urgent.
> > >
> > > Best regards,
> > > Halgurt
> > >
> > > -Ursprüngliche Nachricht-
> > > Von: Halgurt Mustafa Ali
> > > Gesendet: Montag, 26. Juni 2006 13:04
> > > An: user@struts.apache.org
> > > Betreff: Date Validation like "dd.MM. HH:mm"
> > >
> > >
> > > Hello all,
> > >
> > > Well I am trying to validate a field on the clients side. The field 
> > > schould be validatet as a date in this format: "dd.MM. HH:mm" but I 
> > > saw that the time would not be considerd, although I initialize 
> > > datePattern in validation.xml with this value "dd.MM. HH:mm", the 
> > > date will be validated against "dd.MM.". below is my formset in 
> > > validation.xml:
> > >
> > > 
> > > 
> > > 
> > > 
> > > datePatterndd.MM. 
> > > HH:mm
> > > 
> > > 
> > > 
> > > datePatterndd.MM. 
> > > HH:mm
> > > 
> > > 
> > > 
> > >
> > > I had a look at the validateDate.js in commons-validator.jar and I think 
> > > it would not do that, what I want. Has anybody an Idea what am I doing 
> > > wront, or do I have to do different.
> > >
> > > Thank you in advance for your help,
> > > Halgurt
> > >
> > > -
> > > 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]
> >
> >
>
> -
> 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: Date Validation on the Clients side

2006-06-27 Thread The Jasper

HI,

Client side validation is usefull as you say (allthough you should
still always validate serverside as well). Unfortunately not all
things are given to us, so somethings we have to write for ourselves.
I think for most purposes date without time are sufficient, so that's
why it was done that way.

On 6/27/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:

Hi,

Ok, that means client side date validation is still not perfect. The point is, 
in a big application it is very usefull to have client side validation, even to 
unburden the server and have a better performance. Are you interessted in 
having such a validation on the clients side.

Best regards,
Halgurt

-Ursprüngliche Nachricht-
Von: The Jasper [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 26. Juni 2006 17:50
An: Struts Users Mailing List
Betreff: Re: Date Validation on the Clients side


hi,

Looking at the js, I agree that this won't work, but that's only
client side. Server side validation should work, because that makes
use of SimpleDateFormat. So unless your pattern is being cut off
somewhere I would expect that to do the trick. For client side you
probably will have to write the js code to check for minutes and
seconds.

mvg,
Jasper

On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Yes I tried it, but no success.. I am using Struts 1.2.9 and 
commons-validator.jar 1.3.0 I had a look at validateDate.js and it seems for me 
not to be correct, it seems so, but whether or not, I am not sure.
>
> mvg,
> Halgurt
> PS:I appreciate your help, many thanks:-)
>
> -Ursprüngliche Nachricht-
> Von: The Jasper [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 26. Juni 2006 17:11
> An: Struts Users Mailing List
> Betreff: Re: Date Validation on the Clients side
>
>
> Hi,
>
> shot in the dark here, but have you tried datePatternStrict instead of
> datePattern?
>
> mvg,
> Jasper
>
> On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
> > Hello All,
> >
> > I posted today the message below, unfortunately without any success. May be can 
somebody tell me if it is at all possible to validate date values like  "dd.MM. 
HH:mm" on the clients side. I really appreciate your help, it is really urgent.
> >
> > Best regards,
> > Halgurt
> >
> > -Ursprüngliche Nachricht-
> > Von: Halgurt Mustafa Ali
> > Gesendet: Montag, 26. Juni 2006 13:04
> > An: user@struts.apache.org
> > Betreff: Date Validation like "dd.MM. HH:mm"
> >
> >
> > Hello all,
> >
> > Well I am trying to validate a field on the clients side. The field schould be validatet as a date in 
this format: "dd.MM. HH:mm" but I saw that the time would not be considerd, although I initialize 
datePattern in validation.xml with this value "dd.MM. HH:mm", the date will be validated against 
"dd.MM.". below is my formset in validation.xml:
> >
> > 
> > 
> > 
> > 
> > datePatterndd.MM. 
HH:mm
> > 
> > 
> > 
> > datePatterndd.MM. 
HH:mm
> > 
> > 
> > 
> >
> > I had a look at the validateDate.js in commons-validator.jar and I think it 
would not do that, what I want. Has anybody an Idea what am I doing wront, or do I 
have to do different.
> >
> > Thank you in advance for your help,
> > Halgurt
> >
> > -
> > 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]
>
>

-
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: key not found using internationalization

2006-06-27 Thread Fredrik Andersson
Hi

Yeah they files all contain the app.name=(Language name for testing)
ApplicationResources.properties
ApplicationResources_sv.properties
ApplicationResources_no.properties

So you are saying that I should make a folder and put it under WEB-INF/
and place the files there? Or how do you mean by package?

Also where do I tell struts if I want sv, no or the ordinary
ApplicationResources file? Will struts fall back on the
ApplicationResources.properties file as default?

Den 6/27/2006, skrev "Eider Iturbe" <[EMAIL PROTECTED]>:

Hi!

The ApplicationResources.properties file is usually inside source part,
and
not in Web Content part. For example, you can create a package called
"i18n"
and then you can save the ApplicationResources.properties file there.
Then,
you have to set this in struts-config.xml:



Another question, is the app.name key defined in the
ApplicationResource.properties file???


--
Eider


On 6/27/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote:
>
> Hi all
>
> I'm quite new to struts and is trying to implement an Language
> internalization on some jsp pages.
>
> I have my ApplicationResources.properties files inside my WEB-INF folder
> and in all my struts-config files I have added the
> 
> tag.
> The web.xml was extended with the following.
> 
> /WEB-INF/struts-bean.tld
> /WEB-INF/struts-bean.tld
> 
> And I have put the struts-bean.tld file inside my WEB-INF folder.
>
> now when I point my browser to my page I get a "Missing message for key
> "app.name" "
>
> Any help or pointers is greatly appreciated.
>
> -
> 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: Validate just certain fields

2006-06-27 Thread The Jasper

HI,

You can write your own validate function or you can use the validation
framework. In any case no validation is performed on any field unless
you specify it. see
http://struts.apache.org/struts-action/faqs/validator.html for further
details.

mvg,
Jasper

On 6/26/06, Jennifer Jacobs <[EMAIL PROTECTED]> wrote:


I'm using the Struts Validator framework.

I have a form with two buttons on it, one that calculates a subtotal and one
that submits the form.  I have validation set to false, because I don't want
to validate the shipping address/email/phone number/etc when they calculate
the subtotal.  So, I do a form.validate() when the submit button is hit.

However, I DO want to validate the values they put in for quantity, etc.  I
know I can write validation for it all, but then my validation is in two
places - is there any way to "tell" it to validate JUST a certain set of
fields?

Thanks in advance,
Jennifer
--
View this message in context: 
http://www.nabble.com/Validate-just-certain-fields-t1850707.html#a5052596
Sent from the Struts - User forum at Nabble.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: Statistics support in Struts?

2006-06-27 Thread Leon Rosenberg

which statistics do you mean exactly? CountStatistics? TimeStatistics?

leon

On 6/27/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote:



Hi All,

Is there any way to provide the statistics features provided by the
javax.management.j2ee.statistics package in struts?

regards,
Pankaj

-
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: key not found using internationalization

2006-06-27 Thread Eider Iturbe

Hi!

The ApplicationResources.properties file is usually inside source part, and
not in Web Content part. For example, you can create a package called "i18n"
and then you can save the ApplicationResources.properties file there. Then,
you have to set this in struts-config.xml:



Another question, is the app.name key defined in the
ApplicationResource.properties file???


--
Eider


On 6/27/06, Fredrik Andersson <[EMAIL PROTECTED]> wrote:


Hi all

I'm quite new to struts and is trying to implement an Language
internalization on some jsp pages.

I have my ApplicationResources.properties files inside my WEB-INF folder
and in all my struts-config files I have added the

tag.
The web.xml was extended with the following.

   /WEB-INF/struts-bean.tld
   /WEB-INF/struts-bean.tld

And I have put the struts-bean.tld file inside my WEB-INF folder.

now when I point my browser to my page I get a "Missing message for key
"app.name" "

Any help or pointers is greatly appreciated.

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




AW: Date Validation on the Clients side

2006-06-27 Thread Halgurt Mustafa Ali
Hi,

Ok, that means client side date validation is still not perfect. The point is, 
in a big application it is very usefull to have client side validation, even to 
unburden the server and have a better performance. Are you interessted in 
having such a validation on the clients side.

Best regards,
Halgurt

-Ursprüngliche Nachricht-
Von: The Jasper [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 26. Juni 2006 17:50
An: Struts Users Mailing List
Betreff: Re: Date Validation on the Clients side


hi,

Looking at the js, I agree that this won't work, but that's only
client side. Server side validation should work, because that makes
use of SimpleDateFormat. So unless your pattern is being cut off
somewhere I would expect that to do the trick. For client side you
probably will have to write the js code to check for minutes and
seconds.

mvg,
Jasper

On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Yes I tried it, but no success.. I am using Struts 1.2.9 and 
> commons-validator.jar 1.3.0 I had a look at validateDate.js and it seems for 
> me not to be correct, it seems so, but whether or not, I am not sure.
>
> mvg,
> Halgurt
> PS:I appreciate your help, many thanks:-)
>
> -Ursprüngliche Nachricht-
> Von: The Jasper [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 26. Juni 2006 17:11
> An: Struts Users Mailing List
> Betreff: Re: Date Validation on the Clients side
>
>
> Hi,
>
> shot in the dark here, but have you tried datePatternStrict instead of
> datePattern?
>
> mvg,
> Jasper
>
> On 6/26/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote:
> > Hello All,
> >
> > I posted today the message below, unfortunately without any success. May be 
> > can somebody tell me if it is at all possible to validate date values like  
> > "dd.MM. HH:mm" on the clients side. I really appreciate your help, it 
> > is really urgent.
> >
> > Best regards,
> > Halgurt
> >
> > -Ursprüngliche Nachricht-
> > Von: Halgurt Mustafa Ali
> > Gesendet: Montag, 26. Juni 2006 13:04
> > An: user@struts.apache.org
> > Betreff: Date Validation like "dd.MM. HH:mm"
> >
> >
> > Hello all,
> >
> > Well I am trying to validate a field on the clients side. The field schould 
> > be validatet as a date in this format: "dd.MM. HH:mm" but I saw that 
> > the time would not be considerd, although I initialize datePattern in 
> > validation.xml with this value "dd.MM. HH:mm", the date will be 
> > validated against "dd.MM.". below is my formset in validation.xml:
> >
> > 
> > 
> > 
> > 
> > datePatterndd.MM. 
> > HH:mm
> > 
> > 
> > 
> > datePatterndd.MM. 
> > HH:mm
> > 
> > 
> > 
> >
> > I had a look at the validateDate.js in commons-validator.jar and I think it 
> > would not do that, what I want. Has anybody an Idea what am I doing wront, 
> > or do I have to do different.
> >
> > Thank you in advance for your help,
> > Halgurt
> >
> > -
> > 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]
>
>

-
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]



key not found using internationalization

2006-06-27 Thread Fredrik Andersson
Hi all

I'm quite new to struts and is trying to implement an Language
internalization on some jsp pages.

I have my ApplicationResources.properties files inside my WEB-INF folder
and in all my struts-config files I have added the

tag.
The web.xml was extended with the following.
  
/WEB-INF/struts-bean.tld
/WEB-INF/struts-bean.tld
  
And I have put the struts-bean.tld file inside my WEB-INF folder.

now when I point my browser to my page I get a "Missing message for key
"app.name" "

Any help or pointers is greatly appreciated.

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



Statistics support in Struts?

2006-06-27 Thread Pankaj Gupta



Hi All,

Is there any way to provide the statistics features provided by the 
javax.management.j2ee.statistics package in struts?


regards,
Pankaj

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



Re: seeking quick start struts tutorial

2006-06-27 Thread prashant katti

Hi Kumar,

u go through this url definatly it vil help u
http://www.learntechnology.net/


On 6/27/06, Kumar deepak <[EMAIL PROTECTED]> wrote:


hi,

Try http://www.roseindia.net/struts

Regards


hicham <[EMAIL PROTECTED]> wrote:
hello
I'm a newbie to struts framework
if anybody knows of a quick start easy tutorial that can get me on the
road
links ? pdf ?

Thank you
hicham

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




-
Want to be your own boss? Learn how on  Yahoo! Small Business.