Re: R: R: Error : request.getReader()

2007-01-30 Thread Craig McClanahan

On 1/29/07, Marcello Savino [EMAIL PROTECTED] wrote:


The reason i need the request body is that the action i should take is to
analyze the html generated. (ie.: syntax checking, finding img without alt
attributes, reading meta-information ...).
More: this job must be done server side (no jscript or other client-side
stuff are allowed in my application).
Thanks



Marcello,

To accomplish this goal,  it seems to me you should be caring about the
*response*, not the *request*, right?  After all, it is the response that
contains the markup that was generated by the server.  The request will only
contain the request parameters for this form, in the standard format defined
by the HTML specification.

If my assumption is correct, you should look at technologies that use a
Servlet Filter to be able to capture a copy the rendered output, in addition
to sending it to the browser.  Using a Filter has the advantage of being
something you can add without modifying the actual code that creates the
HTML output, and then removed when you are finished with your testing.  As
to details of the technology, the SiteMesh[1] package has to do exactly what
you are talking about ... buffer up the generated response, and then do
something with it.  SiteMesh is about transforming the generated output,
which you are likely not interested in ... but examining the source code of
the filter that SiteMesh uses should give you a big head start on figuring
out how to implement something like this.

Craig

[1] http://www.opensymphony.com/sitemesh/

Marcello Savino

ALDEBRA S.p.A.
tel.  0461302441



Is it possible to join Struts Team?

2007-01-30 Thread Struts2 Fan

Hi,

I just want to know if it is possible to join Struts2 Team.

If (possible) {
how();
}else if( !possible){
willItBePossible();
}


Building struts application

2007-01-30 Thread Saravanan Ponnusamy, EAS-Chennai

Hi

How to build struts application using Maven 1.1?

Can you show me some guidance?

Thanks

Sarav



DISCLAIMER:
---

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. 
Any views or opinions presented in 
this email are solely those of the author and may not necessarily reflect the 
opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of 
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have
received this email in error please delete it and notify the sender 
immediately. Before opening any mail and 
attachments please check them for viruses and defect.

---

Getting the ip address in the Action

2007-01-30 Thread Struts2 Fan

Hi community,

How can I get the client's ip address on the action's execute method?

Thanks...


Re: Getting the ip address in the Action

2007-01-30 Thread Gareth Evans

request.getRemoteAddr();

Gareth

Struts2 Fan wrote:

Hi community,

How can I get the client's ip address on the action's execute method?

Thanks...



--
Gareth Evans

Senior Developer

MSoft eSolutions Limited
Technology Centre
Inward Way
Rossmore Business Park
Ellesmere Port
Cheshire
CH65 3EN

--
Tel:+44 (0)870 0100 704
Fax:+44 (0)870 9010 705
E-Mail: [EMAIL PROTECTED]
Web:www.msoft.co.uk

--
Terms:
Please note that any prices quoted within this e-mail are subject to VAT.
All program details and code described in this e-mail are subject to
copyright © of MSoft eSolutions Limited and remain the intellectual
property of MSoft eSolutions Limited.
Any proposal or pricing information contained within this e-mail are
subject to MSoft eSolutions' Terms and Conditions
--
Disclaimer:
This message is intended only for use of the addressee. If this message
was sent to you in error, please notify the sender and delete this
message. MSoft eSolutions Limited cannot accept responsibility for viruses,
so please scan attachments. Views expressed in this message do not
necessarily reflect those of MSoft eSolutions Limited who will not
necessarily be bound by its contents.


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



Re: Getting the ip address in the Action

2007-01-30 Thread Struts2 Fan

I want to get it in Struts 2 and How can I get the request?


Re: Getting the ip address in the Action

2007-01-30 Thread Nuwan Chandrasoma

http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html

- Original Message - 
From: Struts2 Fan [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, January 30, 2007 12:03 PM
Subject: Re: Getting the ip address in the Action



I want to get it in Struts 2 and How can I get the request?




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



Re: Is it possible to join Struts Team?

2007-01-30 Thread Tim Williams

On 1/30/07, Struts2 Fan [EMAIL PROTECTED] wrote:

Hi,

I just want to know if it is possible to join Struts2 Team.

If (possible) {
 how();
}else if( !possible){
 willItBePossible();
}


These should be helpful:
http://struts.apache.org/helping.html
http://apache.org/foundation/how-it-works.html#meritocracy

--tim

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



Re: [s2] File Upload Problem with large Files in struts2

2007-01-30 Thread avajon

hi,

i think it is a bug in the FilterDispatcher. I change the Method
prepareDispatcherAndWrapRequest to this and now it works. Should i post it
to a bug-report? is there such a thing?

best regards
avajon

pre
protected HttpServletRequest
prepareDispatcherAndWrapRequest(HttpServletRequest request,
HttpServletResponse response) throws ServletException {

Dispatcher du = Dispatcher.getInstance();

// Prepare and wrap the request if the cleanup filter hasn't
already, cleanup filter should be
// configured first before struts2 dispatcher filter, hence when its
cleanup filter's turn,
// static instance of Dispatcher should be null.
if (du == null) {

Dispatcher.setInstance(dispatcher);
}
else {
dispatcher = du;
}
// prepare the request no matter what - this ensures that the
proper character encoding
// is used before invoking the mapper (see WW-9127)
dispatcher.prepare(request, response);

try {
// Wrap request first, just in case it is
multipart/form-data
// parameters might not be accessible through before
encoding (ww-1278)
request = dispatcher.wrapRequest(request,
getServletContext());
} catch (IOException e) {
String message = Could not wrap servlet request with
MultipartRequestWrapper!;
LOG.error(message, e);
throw new ServletException(message, e);
}


return request;
}
/pre

avajon wrote:
 
 Hi,
 
 i have a Problem with uploading large Files in IE (Firefox it is ok). 
 Here is the first part of my fileuploadinterceptor. (i just override the
 fileuploadinterceptor and added some debug messages)
 
 pre
 public String intercept(ActionInvocation invocation) throws Exception {
 
   ActionContext ac = invocation.getInvocationContext();
 HttpServletRequest request = (HttpServletRequest)
 ac.get(ServletActionContext.HTTP_REQUEST);
 
 log.debug(ServletActionContext.getRequest()+ request: +request);
 String content_type = request.getContentType();
 log.debug(contenttype: +content_type+:
 +content_type.indexOf(multipart/form-data));
 
 if (!(request instanceof MultiPartRequestWrapper) ) {
 if (log.isDebugEnabled()) {
 ActionProxy proxy = invocation.getProxy();
 log.debug(getTextMessage(struts.messages.bypass.request,
 new Object[]{proxy.getNamespace(), proxy.getActionName()},
 ActionContext.getContext().getLocale()));
 }
 
   //  return invocation.invoke();
 }
 
 final Object action = invocation.getAction();
 ValidationAware validation = null;
 
 if (action instanceof ValidationAware) {
 validation = (ValidationAware) action;
 }
 
 MultiPartRequestWrapper multiWrapper = (MultiPartRequestWrapper)
 request;
 /pre
 
 When i try to upload a file in IE i get (sometimes) this error:
 pre
 21:55:48,430 MyFileUploadInterceptor.java -
 [EMAIL PROTECTED] request:
 [EMAIL PROTECTED]
 21:55:48,431 MyFileUploadInterceptor.java - struts.valueStack=
 21:55:48,433 MyFileUploadInterceptor.java - contenttype:
 multipart/form-data; boundary=---7d737a106042c: 0
 21:55:48,508 MyFileUploadInterceptor.java - Ãberspringe /video/
 videoBackendUploadDone
 ERROR (Dispatcher.java:513) - Could not execute action
 java.lang.ClassCastException: org.apache.catalina.connector.RequestFacade
 at
 com.webfreetv.interceptor.MyFileUploadInterceptor.intercept(MyFileUploadInterceptor.java:223)
 at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219)
 at
 com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218)
 at
 com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
 at
 com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216)
 at
 org.apache.struts2.impl.StrutsActionProxy$1.call(StrutsActionProxy.java:46)
 at
 org.apache.struts2.impl.StrutsActionProxy$1.call(StrutsActionProxy.java:45)
 at
 org.apache.struts2.impl.RequestContextImpl.callInContext(RequestContextImpl.java:172)
 at
 org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:44)
 at
 org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:502)
 at
 org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:423)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at
 

Re: Struts vs JSF

2007-01-30 Thread Piero Sartini
I had the same problem some time ago. At the end I decided to go with struts2 
instead of JSF for several reasons:

- development time (i am familar with action based frameworks - it reflects 
better how i think of web application)
- there is no good JSF framework out there in my eyes. nothing that can 
compare to the out-of-box functionality of struts2.
- i dont think it will be replaced anytime soon - and the team has proven that 
they support the framework very well (struts1) and for a long time.

anyway, if you intend to use visual tool support to build your webapp, JSF is 
the better(only) choice.

after all i came to the conclusion not to think about what will be the next 
standard, what will be the better choice from technology point but to ask 
myself: what framework will solve my problem best _now_.

by the way: until now I am very happy with my choice :-)

regards,
piero


Am Montag, 29. Januar 2007 19:46 schrieb Zhang, Larry (L.):
 Can some one say something about the direction of Struts? Can we say it
 will be replaced by JSF eventually? Is it easy to migrate struts to JSF?

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



Struts2: New life to IBM RAD?

2007-01-30 Thread Bruno Melloni
IBM seems to have abandoned Struts (stuck at Struts 1.1, with no plans
to support newer versions) on their RAD 6 IDE and later.  They also
strongly discourages replacing the Struts JAR files in RAD with newer
versions, stating that various problems would occur.  

I am trying to find a way to solve this problem, and was wondering if
the following is true:

Are all the package.class names different between Struts 1.1 and 2.0.x?
If they are, then code written to use 2.0.x would have no problems even
if RAD forces its old Struts 1.1 JAR files into the project.  (I know
that using Ant for the build would help us bypass this issue, but too
many of our developers rely on the default IDE build, and changing those
habits would be very difficult)

Is this wishful thinking?  Or is it time to look for a replacement IDE?

Bruno

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



Re: upgrade to 2.0.4

2007-01-30 Thread Ted Husted

You might want to remove any plugins that you are not using. The only
JARs now required by the core framework are

* struts-core
* struts-api
* xwork
* freemarker
* ognl
* commons-logging

The seamless S2 Spring support is also provided by a plugin now.

-- HTH, Ted.
* http://www.husted.com/struts/


On 1/29/07, xiao jie [EMAIL PROTECTED] wrote:

Hi:
thanks for replying..
I replaced the jars with 2.0.4 SNAPSHOTs for struts2-api and struts-core and  
struts2-spring-plugin..
then I get this exception, I am using
struts2-api-2.0.4-SNAPSHOT
struts2-continuations-plugin-2.0.4-SNAPSHOT
struts2-core-2.0.4-SNAPSHOT
struts2-jasperreports-plugin-2.0.4-SNAPSHOT
struts2-jfreechart-plugin-2.0.4-SNAPSHOT
struts2-jsf-plugin-2.0.4-SNAPSHOT
struts2-spring-plugin-2.0.4-SNAPSHOT
xwork-2.0.0
thanks a lot!


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



Struts 1.3.5 and URL Validation

2007-01-30 Thread pushkar . p
Hi everyone,

I'm using Struts version 1.3.5 and I intend to use URL validation for a
field using the  validation.xml file. But, when I declare the field in
validation.xml, it does not validate the field to check whether the URL is a
valid one, meaning that it takes any input that I give in that textbox. 
Here's the entry from my validation.xml file:

field property=vendorURL depends=url
arg key=form.vendor.VendorURL position=0/
/field

Is there anything else that I need to do for URL validation besides
declaring in validation.xml?

Regards,
Pushkar.


Re: Struts 1.3.5 and URL Validation

2007-01-30 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
 Is there anything else that I need to do for URL
 validation besides declaring in validation.xml?

You need to provide more information. ActionForm
class, how you're mapping from action = validation
(bean name or action name), does any *other*
validation on the same page work, etc.

Dave



 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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



Struts 1.3.5 - Radio Button validation

2007-01-30 Thread pushkar . p
Hi all,

Can you please tell me whether I can validate a set of radio buttons so that
atleast one of them is checked, using the struts validation.xml? Is there a
pre-defined validator method (like required) defined for that or will I have
to write a custom validator method?

Thanks.

-Pushkar


Re: how to use struts2 + spring + JPA

2007-01-30 Thread shahab

Hi:

Thanx so much for your help. WebApp Context got loaded now.

I greatly appreaciate your help.

thanx
Shahab


Musachy Barroso-2 wrote:
 
 Good catch, I got confused between WEB-INF and META-INF :)
 
 musachy
 
 cilquirm wrote:
 your persistence.xml must be in META-INF directory in the classpath ( so
 basically, it needs to end up either in your jars in WEB-INF/lib or in
 your
 WEB-INF/classes directory )




 shahab wrote:
   
 Hi:

 I have persistence.xml under META-INF

 (both WEB-INF and META-INF are under tomcat_home/webapps/app level

 In fact, w/o this file, i get the same error also. 

 Also, please note that, I couldnt find struts2-Spring-plugin.jar
 anywhere.


 thanx
 Shahab


 Musachy Barroso-2 wrote:
 
 Is persistence.xml under WEB-INF? I was getting the same error when I 
 tried to avoid using the dummy persistence.xml (there is got to be a
 way 
 of configuring the persistent unit from Spring, but I didn't look into
 it).

 musachy

 shahab wrote:
   
 Hi: 

 I am trying to use Struts 2, Spring and JPA. I have developed a simple
 application like the one mentioned in
 http://cwiki.apache.org/S2WIKI/struts-2-spring-jpa-ajax.html. 

 I am getting the following error - 

 SEVERE: Exception sending context initialized event to listener
 instance
 of
 class org.springframework.web.context.ContextLoa 
 derListener 
 org.springframework.beans.factory.BeanCreationException: Error
 creating
 bean
 with name 'entityManagerFactory' defined in Ser 
 vletContext resource [/WEB-INF/applicationContext.xml]: Invocation of
 init
 method failed; nested exception is java.lang.Ille 
 galStateException: No persistence units parsed from
 {classpath*:META-INF/persistence.xml} 
 Caused by: java.lang.IllegalStateException: No persistence units
 parsed
 from
 {classpath*:META-INF/persistence.xml} 


 My applicationContext.xml and persistence.xml is similar to what is
 there in
 the example. 

 My persistence.xml is the following - 
 persistence xmlns=http://java.sun.com/xml/ns/persistence;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/persistence
 http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd;
 version=1.0
 persistence-unit name=punit
 /persistence-unit
 /persistence



 Any help will be greatly appreaciated. 

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

-- 
View this message in context: 
http://www.nabble.com/how-to-use-struts2-%2B-spring-%2B-JPA-tf3138267.html#a8709202
Sent from the Struts - User mailing list archive at Nabble.com.


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



Failure request.getAttribute();

2007-01-30 Thread bjorn.de.bakker
Some weird things are happening here :

I have a form, with a hidden field and a button.  This button is placed on a 
page with some user information.  I want to pass that users ID to the 
subsequent action, to retrieve his data and display it on the other page.  In 
another part of my webapp, I'm using the same mechanism and it works like a 
charm.  But, for some reason, it doesn't work anymore.  

This is my struts-config:
action path=/UpdateUserPortalInit 
type=be.fedict.usermgmt.citizenadmin.action.UpdateUserPortalInit 
name=UpdateUserPortalForm validate=false scope=request 
forward name=UpdateUserPage path=/dynamic/pages/UpdateUserPage.jsp 
redirect=false /
/action

My form:
form action=UpdateUserPortalInit.do style=display: inline;
input type=hidden name=userId value=Testing /
input type=submit value=Next /
/form

Action-code:

String userId = (String) req.getAttribute(userId);

userId is always null and there is no attribute in the request scope, called 
userId.

The weird thing is that the same mechanism on another page works like a charm.  
Does anybody know what I'm doing wrong?

Tia

 



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


Re: Struts 1.3.5 and URL Validation

2007-01-30 Thread Niall Pemberton

On 1/30/07, Dave Newton [EMAIL PROTECTED] wrote:

--- [EMAIL PROTECTED] wrote:
 Is there anything else that I need to do for URL
 validation besides declaring in validation.xml?

You need to provide more information. ActionForm
class, how you're mapping from action = validation
(bean name or action name), does any *other*
validation on the same page work, etc.


Also are you expecting the client side validation to work for this?
There is no client URL validation - only sever side.

Niall

P.S. The struts-examples webapp shipped with 1.3.5 has a type
validator form that includes a URL validated field.


Dave


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



Re: Failure request.getAttribute();

2007-01-30 Thread Dave Newton
--- [EMAIL PROTECTED] wrote:
 String userId = (String) req.getAttribute(userId);

getParameter.

d.



 

No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.
http://mobile.yahoo.com/mail 

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



Re: R: R: Error : request.getReader()

2007-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Marcello,

Marcello Savino wrote:
 The reason i need the request body is that the action i should take
 is to analyze the html generated. (ie.: syntax checking, finding img
 without alt attributes, reading meta-information ...). More: this job
 must be done server side (no jscript or other client-side stuff are
 allowed in my application).

HTTP requests should not contain any HTML at all, so I'm not sure what
you were expecting to read from the request.

I'm starting to think that Dave Newton was on the right track, although
it seemed like a hideous hack ;)

So, correct me if I'm wrong, but it sounds like you want to put some
server-side checks /outside/ your HTML-generating code in order to
perform some quality-assurance on the outgoing HTML code.

I think this is best done with a filter.

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

iD8DBQFFv4B89CaO5/Lv0PARAm0DAKDD/MaKU+ZhVKsK7hziU8nSRVHSmQCgmrsQ
vElcEzZcruaNNlTifc9gOqI=
=b4U+
-END PGP SIGNATURE-

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



Re: Struts 1.3.5 - Radio Button validation

2007-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pushkar,

[EMAIL PROTECTED] wrote:
 Can you please tell me whether I can validate a set of radio buttons so that
 atleast one of them is checked, using the struts validation.xml? Is there a
 pre-defined validator method (like required) defined for that or will I have
 to write a custom validator method?

You want to look into using the validwhen validator, which requires
some reading. Check out this page
(http://struts.apache.org/1.3.5/faqs/validator.html) and read the
section titled Designing Complex Validations with validwhen

You'll want a field set up with a validwhen test like:

((*this* != null) or (otherField != null)) or (anotherField != null) ...

- -chris

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

iD8DBQFFv4KH9CaO5/Lv0PARAuo3AKCN+yenAN3RTWjjkmt2bkxeQ/A34wCcCOXA
/nMAgdUEnqEbrzw1/Ako6cs=
=ciOF
-END PGP SIGNATURE-

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



RE: R: R: Error : request.getReader()

2007-01-30 Thread Dave Newton
From: Christopher Schultz
 I'm starting to think that Dave Newton was on the right track,
 although it seemed like a hideous hack ;)

Pretty much any time I'm on the right track it's a hideous hack. I start
off meaning well then it all goes cow's legs up.

 I think this is best done with a filter.

+1 to Chris and Craig.

Dave


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



Wiki link?

2007-01-30 Thread Frank W. Zammetti
Could someone point me at the link from the Struts home page to the wiki? 
I can still find it by clicking the Struts 1.2.9 links under
Documentation, but seems a bit tucked away... might it be better to be
more prominent? (or is it and I'm just missing it?)

Frank


-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

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



RE: Is it possible to join Struts Team?

2007-01-30 Thread Adrian_Rios
I am interested too.

__

Senior Programmer Analyst, Tax Distributed Systems Development

Tax  Compliance Development, ADP IT

Phone: (909) 592-6411 Ext. 3863

e-mail: [EMAIL PROTECTED]



-Original Message-
From: Struts2 Fan [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 1:01 AM
To: user@struts.apache.org
Subject: Is it possible to join Struts Team?


Hi,

I just want to know if it is possible to join Struts2 Team.

If (possible) {
 how();
}else if( !possible){
 willItBePossible();
}
-
This message and any attachments are intended only for the use of
the addressee and may contain information that is privileged and
confidential. If the reader of the message is not the intended
recipient or an authorized representative of the intended
recipient, you are hereby notified that any dissemination of this
communication is strictly prohibited. If you have received this
communication in error, notify the sender immediately by return
email and delete the message and any attachments from your system.


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



Re: Wiki link?

2007-01-30 Thread Ted Husted

For Struts 1.x and Struts 2x, the links are under Support on each
product's home page, so that all the material for each product is
together.

* http://struts.apache.org/1.x/
** http://wiki.apache.org/struts/

* http://struts.apache.org/2.x/
** http://cwiki.apache.org/S2WIKI/home.html

-Ted.

On 1/30/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:

Could someone point me at the link from the Struts home page to the wiki?
I can still find it by clicking the Struts 1.2.9 links under
Documentation, but seems a bit tucked away... might it be better to be
more prominent? (or is it and I'm just missing it?)

Frank


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

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





--
HTH, Ted.
* http://www.husted.com/struts/

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



Problem with formatting money amounts with bean:write formatKey=

2007-01-30 Thread Adam Lipscombe

Folks


I am using bean:write name=myBean property=beanProperty 
formatKey=global.moneyFormat/

global.moneyFormat is defined in the vanilla ApplicationResources.properties file as 
#,##0.00

To support users in France and Germany there are also ApplicationResources_fr and 
ApplicationResources_de property files. These define the moneyFormat as # ##0,00 and #.##0,00. 
This all works fine.



But, when a user accesses the system from a client whose locale uses a non-USA/UK style currency 
format string and the locale is NOT France or Germany (e.g. #.##0,00 - Portugal or Brazil) the 
system fails with javax.servlet.ServletException: Wrong format string: '#,##0.00'



I think what is happening is that the system is using the default global.moneyFormat property String 
from vanilla ApplicationResources file which is what I would expect.
But when this default pattern is applied it does not match the one expected by the client-side 
locale and so the pattern application fails.



What I thought was supposed to happen was that if an appropriate ApplicationResources_XX.properties 
file could not be found the global.moneyFormat property from the vanilla properties file would be 
used and simply applied?



Does anyone know what is supposed to happen?
Is it necessary to have a separate ApplicationResources_XX props file for every locale that might 
access the system? Surely not?



TIA - Adam





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



[s2] file upload causing param problems

2007-01-30 Thread bob




Hi.  I am having some strange problems when using the file upload interceptor.  
When I use the file upload, I experience an extremely erratic behaviour where 
sometimes my request params get set on my action and sometimes they do not.  
All params from my form are either there or not there; this means that when 
they make it through to my action, its all of them -- both the non file upload 
related ones as well as the File itself.  

Anyone else seeing this?  I removed the file upload part and the transfer of 
params works perfectly, so its something there.  



___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



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



Re: [s2] file upload causing param problems

2007-01-30 Thread Dariusz Wojtas

I had similar problems with fileupload last weekend.
At first I thought that it could be caused by a filter that I have in
front of my app - prints the URI and all params to the console - does
the processing before analising multipart data.
But I modified the filter to get/print that info after processing the action.
I even disabled the filter - it did not fix it.
I had no exceptions.
The params were just not set.

Now it seems to work but I am really not sure what exactly fixed the issue.
I am using the default config, commons-upload with S2.0.4.

Dariusz Wojtas

On 1/30/07, bob [EMAIL PROTECTED] wrote:





Hi.  I am having some strange problems when using the file upload interceptor.  
When I use the file upload, I experience an extremely erratic behaviour where 
sometimes my request params get set on my action and sometimes they do not.  
All params from my form are either there or not there; this means that when 
they make it through to my action, its all of them -- both the non file upload 
related ones as well as the File itself.

Anyone else seeing this?  I removed the file upload part and the transfer of 
params works perfectly, so its something there.


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



Re: Wiki link?

2007-01-30 Thread Frank W. Zammetti
Ok, so next stupid question... how does one get to the home page for a
specific product if you don't know the address already?  Well, I can
answer that partially... there is a Struts 1 and Struts 2 link under the
The Apache Struts Project heading, as part of the paragraph text... I'm
not seeing them on the nav menu though... again, maybe I'm missing it?

Frank


-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

On Tue, January 30, 2007 1:49 pm, Ted Husted wrote:
 For Struts 1.x and Struts 2x, the links are under Support on each
 product's home page, so that all the material for each product is
 together.

 * http://struts.apache.org/1.x/
 ** http://wiki.apache.org/struts/

 * http://struts.apache.org/2.x/
 ** http://cwiki.apache.org/S2WIKI/home.html

 -Ted.

 On 1/30/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
 Could someone point me at the link from the Struts home page to the
 wiki?
 I can still find it by clicking the Struts 1.2.9 links under
 Documentation, but seems a bit tucked away... might it be better to be
 more prominent? (or is it and I'm just missing it?)

 Frank


 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM/Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]
 Author of Practical Ajax Projects With Java Technology
  (2006, Apress, ISBN 1-59059-695-1)
 Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

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




 --
 HTH, Ted.
 * http://www.husted.com/struts/

 -
 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: Wiki link?

2007-01-30 Thread Ted Husted

Under Documentation are the links to the archived sites for Struts
1.2.9 and Struts 1.3.5, which are the most current GA releases.
(Struts 2.0.x is in beta.)

Under Development are the links to the latest draft documentation for
each product.

Asking for the home page is a bit of a loaded question, since we
support multiple releases of each product, along with the development
versions of each product.


On 1/30/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:

Ok, so next stupid question... how does one get to the home page for a
specific product if you don't know the address already?  Well, I can
answer that partially... there is a Struts 1 and Struts 2 link under the
The Apache Struts Project heading, as part of the paragraph text... I'm
not seeing them on the nav menu though... again, maybe I'm missing it?

Frank


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

On Tue, January 30, 2007 1:49 pm, Ted Husted wrote:
 For Struts 1.x and Struts 2x, the links are under Support on each
 product's home page, so that all the material for each product is
 together.

 * http://struts.apache.org/1.x/
 ** http://wiki.apache.org/struts/

 * http://struts.apache.org/2.x/
 ** http://cwiki.apache.org/S2WIKI/home.html

 -Ted.

 On 1/30/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
 Could someone point me at the link from the Struts home page to the
 wiki?
 I can still find it by clicking the Struts 1.2.9 links under
 Documentation, but seems a bit tucked away... might it be better to be
 more prominent? (or is it and I'm just missing it?)

 Frank


 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM/Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]
 Author of Practical Ajax Projects With Java Technology
  (2006, Apress, ISBN 1-59059-695-1)
 Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

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




 --
 HTH, Ted.
 * http://www.husted.com/struts/


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



best possible design

2007-01-30 Thread Maya menon
All,
   
  I need to enable role based access to my Struts-J2EE application.
  ie, if a normal user logs in, user should see one page whereas if a superuser 
logs in he should see another page.
   
  Whats the best suited design here ?
  Any links ?
   
  I use Struts 1.x,Eclipse and Tomcat
   
  Thank You

 
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

Re: Wiki link?

2007-01-30 Thread Rick Reumann

I've always found incredibly difficult to find things on the Struts
home page http://struts.apache.org/  I really think the home page
should have a clarification of terms and what you plan on doing. For
one thing this is incredibly confusing...

On Struts home page:
Struts 2 was originally known as WebWork 2. After working
independently for several years, the WebWork and Struts communities
joined forces to create Struts 2. The new framework is the best choice
for teams who value elegant solutions to difficult problems.

If you read that above you'd think the concept of WebWork wasn't even
around anymore... yet...

On WebWork page: http://www.opensymphony.com/webwork/
OpenSymphony and the WebWork team are proud to announce the release
of WebWork version 2.2.3.
WebWork 2.2.3 is mainly a bugfix release with some additions,
improvements and backports from Struts 2.0.

So someone tell me Is Struts2 and WebWork the same product? I sort
of try to follow things and I can't even tell any more what is going
on. I think the first page on both sites should be an FAQ.

On 1/30/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:

Ok, so next stupid question... how does one get to the home page for a
specific product if you don't know the address already?  Well, I can
answer that partially... there is a Struts 1 and Struts 2 link under the
The Apache Struts Project heading, as part of the paragraph text... I'm
not seeing them on the nav menu though... again, maybe I'm missing it?

Frank


--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: [EMAIL PROTECTED]
Author of Practical Ajax Projects With Java Technology
 (2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
 Supplying the wheel, so you don't have to reinvent it!

On Tue, January 30, 2007 1:49 pm, Ted Husted wrote:
 For Struts 1.x and Struts 2x, the links are under Support on each
 product's home page, so that all the material for each product is
 together.

 * http://struts.apache.org/1.x/
 ** http://wiki.apache.org/struts/

 * http://struts.apache.org/2.x/
 ** http://cwiki.apache.org/S2WIKI/home.html

 -Ted.

 On 1/30/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
 Could someone point me at the link from the Struts home page to the
 wiki?
 I can still find it by clicking the Struts 1.2.9 links under
 Documentation, but seems a bit tucked away... might it be better to be
 more prominent? (or is it and I'm just missing it?)

 Frank


 --
 Frank W. Zammetti
 Founder and Chief Software Architect
 Omnytex Technologies
 http://www.omnytex.com
 AIM/Yahoo: fzammetti
 MSN: [EMAIL PROTECTED]
 Author of Practical Ajax Projects With Java Technology
  (2006, Apress, ISBN 1-59059-695-1)
 Java Web Parts - http://javawebparts.sourceforge.net
  Supplying the wheel, so you don't have to reinvent it!

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




 --
 HTH, Ted.
 * http://www.husted.com/struts/

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





--
Rick

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



Re: best possible design

2007-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maya,

Maya menon wrote:
 I need to enable role based access to my Struts-J2EE application. ie,
 if a normal user logs in, user should see one page whereas if a
 superuser logs in he should see another page.

IU'm not sure about best possible design, but I have one that's
relatively simple and easy to understand.

The home page for my struts application is /user/home.do. This is mapped
to a simple action that checks the user's primary role (which is
available through a special User object that I keep in the user's
session). I simply execute this code:

return mapping.findForward(user.getPrimaryRole());

Then, in my struct-config.xml file, I have something like this:

action path=/user/home type=...
forward name=user path=... /
forward name=staff path=... /
forward name=admin path=... /
/action

Straightforward to read, and easy to implement.

- -chris

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

iD8DBQFFv6pa9CaO5/Lv0PARAussAJ9XpJdhYyk6RYHGuygCd/SZ3G6VUQCcChXn
T2AECKaRT9O17mPdwg58bIw=
=FK32
-END PGP SIGNATURE-

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



Re: Wiki link?

2007-01-30 Thread Frank W. Zammetti
On Tue, January 30, 2007 3:07 pm, Ted Husted wrote:
 Under Documentation are the links to the archived sites for Struts
 1.2.9 and Struts 1.3.5, which are the most current GA releases.
 (Struts 2.0.x is in beta.)

I'm not following... conceptually I mean... I followed the links just fine
:) ... saying they are the archived sites implies there are current or
live sites somewhere, does it not?  And regardless, why would someone
think to go there for a wiki?  It wasn't immediately obvious to me.

 Under Development are the links to the latest draft documentation for
 each product.

Actually, that seems to lead me to the home page for each product :)  If
your calling that draft documentation, then OK, but it's not what I
would equate to what I found there.

 Asking for the home page is a bit of a loaded question, since we
 support multiple releases of each product, along with the development
 versions of each product.

I only asked how to get to the home pages because you used the phrase :) 
Besides, it's reasonable I think to have a page each for S1 and S2, as you
do.  That's the logical demarcation point I think.

Just to clarify my motiviation so you know I'm not just being a wanker :)
... I believe wikis are a fantastic way for all users, not just project
devs, to share information with one another in a persistent way.  Because
of that, I always like to see a link to it front and center on any project
I might use.  The link IS still there, I just think it could be a little
easier to find and not buried down a layer or two, i.e., on
struts.apache.org somewhere in the nav bar, especially if it isn't
immediately obvious what layers need to be traversed to get to it.

Frank


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



Re: Struts2: New life to IBM RAD?

2007-01-30 Thread cilquirm

From my experience, it is possible to run Struts1 and Struts2 side by side
As far as I've seen and worked with, other than keeping the org.apache
start of the package name, the namespaces and class names are different.



Bruno Melloni-2 wrote:
 
 
 Are all the package.class names different between Struts 1.1 and 2.0.x?
 If they are, then code written to use 2.0.x would have no problems even
 if RAD forces its old Struts 1.1 JAR files into the project.  (I know
 that using Ant for the build would help us bypass this issue, but too
 many of our developers rely on the default IDE build, and changing those
 habits would be very difficult)
 
 Is this wishful thinking?  Or is it time to look for a replacement IDE?
 
 Bruno
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts2%3A-New-life-to-IBM-RAD--tf3142638.html#a8718240
Sent from the Struts - User mailing list archive at Nabble.com.


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



keys, security on downloads

2007-01-30 Thread bob




All,

I'm an admitted security gumbie, but I do have some questions regarding the 
download security mechanisms on the struts site.  Note, they are pretty much 
similar to those found on other similar sites so I'm not picking on anyone.  In 
fact, I just want someone to explain to me how it all works. 

I just downloaded the struts 2 source code.  I also downloaded the KEYS, 
initialized my keystore ( GPG ), and then verified the download.  It tells me 
that one of the signuatres is GOOD, which I assume means that the download's 
signature matches one of the signatures from my new keystore/db, Ted Husted's 
in this case.  Then it goes on to tell me that the signature's authenticity ( 
right word? ) is not necessarily known.  In other, words this might not 
actually be T.H. who signed the thing.  Output from signing follows at end of 
this message.

So, as I understand all this cryptography stuff, this all means that since we 
didn't download the keys in a secure method, and since they aren't in 
certificates, we can match the keys we have to the signatures we get, but its 
all kind of on a shakey foundation since the original keystore could have been 
built on malicious keys.  This is similar to getting a SSH login to a remote 
host for which you have not obtained a key through a secure method prior to 
starting the current session: SSH lets you go ahead and just pull the key over 
at that time, and go on if you wish.

My question is:  Is this accepted as good enough?  I'm not saying it isn't, I 
just asking if this is supposed to be good enough?  Or is it just too difficult 
to do something more?  

:~/Desktop $ gpg --verify struts-2.0.1-src.zip.asc
gpg: Signature made Tue 10 Oct 2006 04:41:51 PM MDT using DSA key ID C969F74A
gpg: Good signature from Ted Husted (Release Manager) [EMAIL PROTECTED]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:  There is no indication that the signature belongs to the owner.
Primary key fingerprint: B1B6 016C 356A 70F3 E9B8  DACA 1ADC E843 C969 F74A


___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



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



RE: Failure request.getAttribute();

2007-01-30 Thread bob

Parameters are the set of values coming from the http request.  Attributes are 
the things you can set on the request yourself, yourself can include struts 
because it too is a user in the space above the ServletAPI.




 

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



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



Re: [S1] Select multiple matching values from form bean

2007-01-30 Thread Laurie Harper

Grant Harding wrote:

Hi,
 
I'm trying to create an 'edit form' page.  In this, I'm trying to populate a multiple select field with a bean in the request scope and match the selected values from the form.  I'm not sure how to get this to work.  After looking in the taglib source, it looks like I have to specify another collection with the properties I want to match.  Is there any way to do this just by using the array of ints kept in the form?
 
This is my select tag:
 
html:select property=affiliates multiple=true

  html:options collection=affils property=id labelProperty=title /
/html:select
 
affiliates is taken from the form and is of type int[] with one value: 1

affils is an ArrayList in the request scope and contains Affiliate beans, with 
a getId and getTitle method.
 
Is there someway to set selected=selected on each of the items in affils where the value of getId() is found in the affiliates array?


That should happen automatically. What type does Affiliate.getId() 
return? Are you selections saved correctly into the affiliates property 
of your form bean when you submit the form?


L.


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



Tiles2 and Struts2

2007-01-30 Thread Gonçalo Luiz

Hello,

After a few days fighting with Struts2 and Tiles2 I decided to ask in
the mailing list: does actually anybody managed to get them to work
together? I tried different approaches:

1 - Use a listener in web.xml - got an error that kept tomcat
throwing 404 error
2 - use a servlet in web.xml - all went to until I used a tile result
type which threw a java.lang.NoClassDefFoundError:
org/apache/tiles/TilesContext

The TILES2 test app does not use struts. The tiles showcase app is
using struts1.

Now can anybody send me a web.xml and struts.xml (and hopefully
tiles-config.xml) files that actually work altogether (i already
digged into all separated working example for each one of them)?

Thank you very much.
--
Gonçalo Luiz

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



Re: Tiles2 and Struts2

2007-01-30 Thread Gonçalo Luiz

I forgot to mention:

Struts - version struts2-api-2.0.1
Tiles - version struts2-tiles-plugin-2.0.1

On 30/01/07, Gonçalo Luiz [EMAIL PROTECTED] wrote:

Hello,

After a few days fighting with Struts2 and Tiles2 I decided to ask in
the mailing list: does actually anybody managed to get them to work
together? I tried different approaches:

1 - Use a listener in web.xml - got an error that kept tomcat
throwing 404 error
2 - use a servlet in web.xml - all went to until I used a tile result
type which threw a java.lang.NoClassDefFoundError:
org/apache/tiles/TilesContext

The TILES2 test app does not use struts. The tiles showcase app is
using struts1.

Now can anybody send me a web.xml and struts.xml (and hopefully
tiles-config.xml) files that actually work altogether (i already
digged into all separated working example for each one of them)?

Thank you very much.
--
Gonçalo Luiz




--
Gonçalo Luiz

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



Re: Tiles2 and Struts2

2007-01-30 Thread Dave Newton
--- Gonçalo Luiz [EMAIL PROTECTED] wrote:
 Struts - version struts2-api-2.0.1
 Tiles - version struts2-tiles-plugin-2.0.1

I've been using Struts2/Tiles2 since 2.0.1 (on 2.0.3
now) and have had almost no issues; did you follow the
instructions on the S2 wiki (now located at
http://cwiki.apache.org/S2PLUGINS/tiles-plugin.html)?
They are what got me going.

Dave



 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

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



Re: upgrade to 2.0.4

2007-01-30 Thread Laurie Harper
Yes, you would certainly need to remove struts2-core-2.0.1 when 
upgrading to 2.0.4, or you'll have multiple versions of the same classes 
in your classpath. The same holds for plugin jars and any/all dependencies.


L.

xiao jie wrote:

hi:
I tried to update my application from 2.0.1 to 2.0.4 and I have downloaded all the nightly built 
2.0.4 jar files and plugins i needed and put them under WEB-INF/lib (do I have to remove the struts2-core-2.0.1 as well), is that all I have to do?
but I ended up with errors saying 
Element type bean must be declared. 
File:jar:file:/C:/Documents%20and%20Settings/st.Pamann/project2.0.4/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/webapps/struts2-blank-2.0.1/WEB-INF/lib/struts2-core-2.0.4-SNAPSHOT-20070128.jar!/struts-default.xml


any suggestions on this will be appreciated!
thanks


 

The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.

http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php



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



Re: Building struts application

2007-01-30 Thread Laurie Harper

Saravanan Ponnusamy, EAS-Chennai wrote:

Hi

How to build struts application using Maven 1.1?

Can you show me some guidance?


Start at the Maven 1 home page [1] to learn how to build projects with 
Maven (or the main page [2] if you can use Maven 2, which I'd recommend 
doing if it's an option).


Use this list if you have questions that are specific to Struts, 
otherwise you should direct you Maven questions to their mailing lists [3].


L.

[1] http://maven.apache.org/maven-1.x/
[2] http://maven.apache.org/
[3] http://maven.apache.org/mail-lists.html


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



[s2] Finding a URL of an Action within execute()

2007-01-30 Thread Eric Rank

Hi List,

I'm attempting to construct a URL within an action's execute code.  
The URL will be sent out in an email, serving as a link for a user to  
click on. It'd be great if I could do this by finding the URL of an  
Action using the Action name, which I have defined in the struts.xml  
file.


Is it possible? What's the best way to do it?

Thanks,

Eric Rank

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



Re: Struts2: New life to IBM RAD?

2007-01-30 Thread Laurie Harper
Correct. Struts2 uses the org.apache.struts2 package whereas Struts1 
uses org.apache.struts, so there is no conflict if both are included in 
a project.


L.

cilquirm wrote:

From my experience, it is possible to run Struts1 and Struts2 side by side
As far as I've seen and worked with, other than keeping the org.apache
start of the package name, the namespaces and class names are different.



Bruno Melloni-2 wrote:


Are all the package.class names different between Struts 1.1 and 2.0.x?
If they are, then code written to use 2.0.x would have no problems even
if RAD forces its old Struts 1.1 JAR files into the project.  (I know
that using Ant for the build would help us bypass this issue, but too
many of our developers rely on the default IDE build, and changing those
habits would be very difficult)

Is this wishful thinking?  Or is it time to look for a replacement IDE?

Bruno

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








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



Re: Struts 1.3.5 - Radio Button validation

2007-01-30 Thread Laurie Harper

Christopher Schultz wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Pushkar,

[EMAIL PROTECTED] wrote:

Can you please tell me whether I can validate a set of radio buttons so that
atleast one of them is checked, using the struts validation.xml? Is there a
pre-defined validator method (like required) defined for that or will I have
to write a custom validator method?


You want to look into using the validwhen validator, which requires
some reading. Check out this page
(http://struts.apache.org/1.3.5/faqs/validator.html) and read the
section titled Designing Complex Validations with validwhen

You'll want a field set up with a validwhen test like:

((*this* != null) or (otherField != null)) or (anotherField != null) ...


Actually, assuming it's a radion button group that maps to a single 
property, you probably just need the 'required' validation to ensure 
that property has a value. You should only need 'validwhen' if there are 
multiple properties involved, or if you need to express complex 
constraints on a single property.


L.


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



Re: IRC #struts on freenode

2007-01-30 Thread Vinny

Ok, it's kind of a late reply but this is the best irc client I've found for
OSX thus far, it's
an Aqua version of good ole  X-Chat.  Come join us #struts on freenode


http://www.versiontracker.com/dyn/moreinfo/macosx/17132



On 8/29/06, James Mitchell [EMAIL PROTECTED] wrote:


I need to find a decent IRC client for OS X.


--
James Mitchell
678.910.8017




On Aug 26, 2006, at 11:00 PM, Wendy Smoak wrote:

 If anyone is on IRC, we have a channel:  #struts on
 chat.freenode.net .

 It now (well, if I'm there,) has a strutsbot, though it doesn't know
 much yet and isn't *nearly*  as talented as fajita on #apache.  Drop
 by and teach it a few things. :)

 --
 Wendy
 http://wiki.wsmoak.net/cgi-bin/wiki.pl?FreenodeJavabot

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





--
Ghetto Java: http://www.ghettojava.com


Re: Struts 1.3.5 - Radio Button validation

2007-01-30 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Laurie,

Laurie Harper wrote:
 Actually, assuming it's a radio button group that maps to a single
 property, you probably just need the 'required' validation to ensure
 that property has a value. You should only need 'validwhen' if there are
 multiple properties involved, or if you need to express complex
 constraints on a single property.

Sorry, you're right. The OP's question threw me off by saying that he
wanted to ensure that at least one of the choices was picked. I didn't
realize he was talking about radio buttons where you either get /one/
thing or nothing.

If he's got checkboxes (which is what I was thinking, even though he
clearly said radio buttons) or multiple unrelated radio buttons,
validwhen may be necessary. But probably not in this case.

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

iD8DBQFFv+wp9CaO5/Lv0PARAqcrAKCWIwsRrhj/CYjhF291BYGv4NjjIACgpYL8
EdGlL713saF+yNQrt6AyeaE=
=OJQI
-END PGP SIGNATURE-

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



Re: Wiki link?

2007-01-30 Thread Laurie Harper

Frank W. Zammetti wrote:

Ok, so next stupid question... how does one get to the home page for a
specific product if you don't know the address already?  Well, I can
answer that partially... there is a Struts 1 and Struts 2 link under the
The Apache Struts Project heading, as part of the paragraph text... I'm
not seeing them on the nav menu though... again, maybe I'm missing it?



Perhaps you're looking for the links at top right to Struts 2 
[http://struts.apache.org/2.x/] and Struts 1 
[http://struts.apache.org/1.x/]? Those links are to the 'development' / 
Draft Docs sites, as linked under Development in the left nav bar.


Otherwise, I'm not sure what 'home page' you're looking for :-)

L.


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



RE: [s2] Finding a URL of an Action within execute()

2007-01-30 Thread bob

This is surely not the best way . . . but you can implement one of the Aware 
interfaces that gives you a reference to the ServletRequest and get the URL 
info from that, from there I assume you could probably build the action 
specific url.  But I'm also sure there must be access to the struts mappings so 
maybe someone can tell you how to get that.






 --- On Tue 01/30, Eric Rank  [EMAIL PROTECTED]  wrote:
From: Eric Rank [mailto: [EMAIL PROTECTED]
To: user@struts.apache.org
Date: Tue, 30 Jan 2007 16:56:21 -0700
Subject: [s2] Finding a URL of an Action within execute()

Hi List,I'm attempting to construct a URL within an action's execute code.  The 
URL will be sent out in an email, serving as a link for a user to  click on. 
It'd be great if I could do this by finding the URL of an  Action using the 
Action name, which I have defined in the struts.xml  file.Is it possible? 
What's the best way to do it?Thanks,Eric 
Rank-To 
unsubscribe, e-mail: [EMAIL PROTECTED] additional commands, e-mail: [EMAIL 
PROTECTED]

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



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



[s2] multi part plugin

2007-01-30 Thread bob




Hello.  I'm moving my application up to s2.04 ( from 2.0.1 ).  I'm getting an 
error from the struts filter that says it can't find the pell mulit part 
request class.  The odd thing is, I have verified that the correct jar is 
available and that it holds the correct class.  The problem seems to be that 
struts is looking for it under the wrong package.   Note the missing class name 
below.  The struts2-pell-multipart-plugin-2.0.4.jar does have the correct 
class, but its package is org.apache.struts2.dispatcher.multipart  

To me, it seems like the entry in the struts-plugin.xml file in the jar is just 
wrong.  Is this possible?  

 

17:57:10,918 ERROR [/artistSite]:3638 - Exception starting filter struts2
Unable to load bean: type:org.apache.struts2.dispatcher.MultiPartRequest 
class:org.apache.struts2.dispatcher.PellMultiPartRequest - bean - 
jar:file:/usr/local/apache-tomcat-5.5.20/webapps/artistSite/WEB-INF/lib/struts2-pell-multipart-plugin-2.0.4.jar!/struts-plugin.xml:8:138
 at 
com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
at 
org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
at 
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
at 
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at 
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
at 
org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
at 
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
at 
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
at 
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:77)
at 
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
at 
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
at 
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
at 
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:501)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at 
org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
at 
com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
at 
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
at 
com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
at 
org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
at 
org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
at 
org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)


___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



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



Re: [s2] Finding a URL of an Action within execute()

2007-01-30 Thread Eric Rank

Thanks Bob,

I wouldn't be too afraid of doing something like that, but I need the  
URL for a different Action, named in the mapping -- that is, I don't  
need the URL for the Action that's executing.


Eric Rank


On Jan 30, 2007, at 6:07 PM, bob wrote:



This is surely not the best way . . . but you can implement one of  
the Aware interfaces that gives you a reference to the  
ServletRequest and get the URL info from that, from there I assume  
you could probably build the action specific url.  But I'm also  
sure there must be access to the struts mappings so maybe someone  
can tell you how to get that.







 --- On Tue 01/30, Eric Rank  [EMAIL PROTECTED]  wrote:
From: Eric Rank [mailto: [EMAIL PROTECTED]
To: user@struts.apache.org
Date: Tue, 30 Jan 2007 16:56:21 -0700
Subject: [s2] Finding a URL of an Action within execute()

Hi List,I'm attempting to construct a URL within an action's  
execute code.  The URL will be sent out in an email, serving as a  
link for a user to  click on. It'd be great if I could do this by  
finding the URL of an  Action using the Action name, which I have  
defined in the struts.xml  file.Is it possible? What's the best way  
to do it?Thanks,Eric  
Rank-- 
---To unsubscribe, e-mail: [EMAIL PROTECTED]  
additional commands, e-mail: [EMAIL PROTECTED]


___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



-
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: [s2] multi part plugin

2007-01-30 Thread Dave Newton
Hrm, that's the same thing I reported last week
sometime.

--- Don Brown [EMAIL PROTECTED] wrote:

 Fixed, thanks for bringing it up:
 
 http://issues.apache.org/struts/browse/WW-1692
 
 Don
 
 On 1/30/07, bob [EMAIL PROTECTED] wrote:
 
 
 
 
  Hello.  I'm moving my application up to s2.04 (
 from 2.0.1 ).  I'm getting an error from the struts
 filter that says it can't find the pell mulit part
 request class.  The odd thing is, I have verified
 that the correct jar is available and that it holds
 the correct class.  The problem seems to be that
 struts is looking for it under the wrong package.  
 Note the missing class name below.  The
 struts2-pell-multipart-plugin-2.0.4.jar does have
 the correct class, but its package is
 org.apache.struts2.dispatcher.multipart
 
  To me, it seems like the entry in the
 struts-plugin.xml file in the jar is just wrong.  Is
 this possible?
 
 
 
  17:57:10,918 ERROR [/artistSite]:3638 - Exception
 starting filter struts2
  Unable to load bean:
 type:org.apache.struts2.dispatcher.MultiPartRequest

class:org.apache.struts2.dispatcher.PellMultiPartRequest
 - bean -

jar:file:/usr/local/apache-tomcat-5.5.20/webapps/artistSite/WEB-INF/lib/struts2-pell-multipart-plugin-2.0.4.jar!/struts-plugin.xml:8:138
 at

com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.register(XmlConfigurationProvider.java:209)
  at

org.apache.struts2.config.StrutsXmlConfigurationProvider.register(StrutsXmlConfigurationProvider.java:101)
  at

com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:130)
  at

com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
  at

org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:398)
  at

org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:455)
  at

org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:201)
  at

org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:223)
  at

org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
  at

org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterConfig.java:77)
  at

org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
  at

org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
  at

org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
  at

org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
  at

org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
  at

org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:904)
  at

org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:501)
  at

org.apache.catalina.startup.HostConfig.check(HostConfig.java:1204)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
  at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at
 java.lang.reflect.Method.invoke(Method.java:585)
  at

org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  at

com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
  at

com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
  at

com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
  at

com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
  at

org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1377)
  at

org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:814)
  at

org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:343)
  at

javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
  at

javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
  at

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 
 
  ___
  Join Excite! - http://www.excite.com
  The most personalized portal on the Web!
 
 
 
 

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



 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search 

Re: Wiki link?

2007-01-30 Thread Ted Husted

On 1/30/07, Rick Reumann [EMAIL PROTECTED] wrote:

I've always found incredibly difficult to find things on the Struts
home page http://struts.apache.org/  I really think the home page
should have a clarification of terms and what you plan on doing. For
one thing this is incredibly confusing...


If someone wants to mock up a redesign, I'm sure we'd love to see it.
Most of us have very little time to spend on the project, and we need
all the help we can get.



So someone tell me Is Struts2 and WebWork the same product? I sort
of try to follow things and I can't even tell any more what is going
on. I think the first page on both sites should be an FAQ.


Since there hasn't been a GA release of Struts 2, people have been
keeping WebWork patched, and we've been making the corresponding
patches to Struts 2. AFAIK, there's no plan to discontinue WebWork, or
Struts 1. It all depends on where volunteers choose to spend there
time and energy. We did run a FAQ on the welcome page for awhile, but
at this point, I think what people want to know first is whether
there's been a new release yet. We do post prominent links to the
FAQs.

-Ted.

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



cannot see s:datetimepicker

2007-01-30 Thread xiao jie
Hi :
 I am using struts 1.0.4 now and I try to use the s:datetimepicker,  i can see
the tag label but not the datetimepicker itself...
am i missing sth here?  do I have to configure dojo explicitly to get it 
working? or is it included in struts2 already?
and when I use 
s:datetimepicker name=delivery.date label=Delivery Date 
format=#-#MM-#dd  /
 it says 
Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: /example/Welcome.jsp(14,0) Attribute format 
invalid for tag datetimepicker according to TLD
 at 
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
 at 
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:405)
 at 
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:234)
 at 
org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:989)
 at 
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:710)
 at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
 at 
org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:730)
 at org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1441)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2213)
 at org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2219)
 at org.apache.jasper.compiler.Node$Root.accept(Node.java:456)
 at org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2163)
 at org.apache.jasper.compiler.Validator.validate(Validator.java:1489)
 at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:166)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
 at 
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
 at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:305)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:414)
 at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
 at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 at java.lang.Thread.run(Unknown Source)
thanks a lot!
Pam


 

8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

Re: Wiki link?

2007-01-30 Thread Ted Husted

On 1/30/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:

Just to clarify my motiviation so you know I'm not just being a wanker :)
... I believe wikis are a fantastic way for all users, not just project
devs, to share information with one another in a persistent way.  Because
of that, I always like to see a link to it front and center on any project
I might use.  The link IS still there, I just think it could be a little
easier to find and not buried down a layer or two, i.e., on
struts.apache.org somewhere in the nav bar, especially if it isn't
immediately obvious what layers need to be traversed to get to it.


The Struts 2 wiki is still new, and there isn't much there. The Struts
1 wiki is better, but I don't think its the first place I'd send
someone for information about the product.

The lifecycle of a Struts product tends to be very long, and so we
like to keep the documentation for all the GA releases available
online indefinately. Right now, the wiki's aren't being archived with
the rest of the documentation. I don't know if that's possible with
the Struts 1 moin-moin wiki, but it is something that we could do with
the Struts 2 confluence wiki.

Technically, all of the Struts 2 documentation is a wiki, except for
the first page. Anyone who files a CLA with the ASF is welcome to
contribute. I don't think you can get any more front and center than
that :)

-Ted.

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



Re: Wiki link?

2007-01-30 Thread Dave Newton
--- Ted Husted [EMAIL PROTECTED] wrote:
 Technically, all of the Struts 2 documentation is a
 wiki, except for the first page. Anyone who files a 
 CLA with the ASF is welcome to contribute.

I love Confluence and all its power, but it's
frustrating when a lot of the docs are pulled in from
outside resources we don't (and probably shouldn't,
especially in my case ;) have access to.

It's also a challenge to know when something is worth
posting etc. (and embarassing when right after you
post something someone has the nerve to come along and
correct it ;)

Dave



 

Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 

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



[s2] versions?

2007-01-30 Thread bob

At first I thought there was only a 2.0.1 version of struts2, as its the only 
one listed upfront; now I've found 2.0.2 . . . 2.0.5.  I'm not really 
familiar with official versioning practices, so maybe this is obvious, but what 
are the differences?  

___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



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



Re: [s2] versions?

2007-01-30 Thread Dave Newton
--- bob [EMAIL PROTECTED] wrote:
 At first I thought there was only a 2.0.1 version of
 struts2, as its the only one listed upfront; now
 I've found 2.0.2 . . . 2.0.5.  I'm not really
 familiar with official versioning practices, so
 maybe this is obvious, but what are the differences?

http://struts.apache.org/2.x/docs/migration-guide.html

Dave



 

Sucker-punch spam with award-winning protection. 
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html

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



Re: [s2] file upload causing param problems

2007-01-30 Thread Nagraj Rao
Even i'm not sure what has been causing this. But probably you can just 
check your lib to contain commons-lang-1.1.1.jar instead of 
commons-lang.jar(remove this in case it exists).


- Original Message - 
From: Dariusz Wojtas [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org; 
[EMAIL PROTECTED]

Sent: Wednesday, January 31, 2007 1:11 AM
Subject: Re: [s2] file upload causing param problems



I had similar problems with fileupload last weekend.
At first I thought that it could be caused by a filter that I have in
front of my app - prints the URI and all params to the console - does
the processing before analising multipart data.
But I modified the filter to get/print that info after processing the 
action.

I even disabled the filter - it did not fix it.
I had no exceptions.
The params were just not set.

Now it seems to work but I am really not sure what exactly fixed the 
issue.

I am using the default config, commons-upload with S2.0.4.

Dariusz Wojtas

On 1/30/07, bob [EMAIL PROTECTED] wrote:





Hi.  I am having some strange problems when using the file upload 
interceptor.  When I use the file upload, I experience an extremely 
erratic behaviour where sometimes my request params get set on my action 
and sometimes they do not.  All params from my form are either there or 
not there; this means that when they make it through to my action, its 
all of them -- both the non file upload related ones as well as the File 
itself.


Anyone else seeing this?  I removed the file upload part and the transfer 
of params works perfectly, so its something there.


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




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



RE: Struts 1.3.5 and URL Validation

2007-01-30 Thread pushkar . p
Yes, I was expecting client-side validation to work for URLs. And ya, other
validations like required, email, maxlength..etc are working fine on
this form.

Thanks.

-Pushkar



-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 30, 2007 9:11 PM
To: Struts Users Mailing List
Subject: Re: Struts 1.3.5 and URL Validation


On 1/30/07, Dave Newton [EMAIL PROTECTED] wrote:
 --- [EMAIL PROTECTED] wrote:
  Is there anything else that I need to do for URL
  validation besides declaring in validation.xml?

 You need to provide more information. ActionForm
 class, how you're mapping from action = validation
 (bean name or action name), does any *other*
 validation on the same page work, etc.

Also are you expecting the client side validation to work for this? There is
no client URL validation - only sever side.

Niall

P.S. The struts-examples webapp shipped with 1.3.5 has a type validator
form that includes a URL validated field.

 Dave

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


Struts 1.3.5 - Validate for in mask validator

2007-01-30 Thread pushkar . p
Hi,

Maybe this is more of a Regular Expressions question than struts, but please
help me if you can. I'm using Mask validator in Struts 1.3.5 and I'm not
able to include  symbol in the regular expression for the mask. I intend
to allow the user to enter  inside the text box but, even after giving an
escape character in the expression, it is not accepting the symbol. All
other validations are working fine and even this mask is working fine when I
remove the  symbol.

Is there any way I can include  inside the regular expression for mask?

Thanks.

-Pushkar


RE: Struts 1.3.5 - Validate for in mask validator

2007-01-30 Thread Strachan, Paul
try:
 
amp; 
 
 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wed 1/31/2007 2:58 PM
To: user@struts.apache.org
Subject: Struts 1.3.5 - Validate for  in mask validator



Hi,

Maybe this is more of a Regular Expressions question than struts, but please
help me if you can. I'm using Mask validator in Struts 1.3.5 and I'm not
able to include  symbol in the regular expression for the mask. I intend
to allow the user to enter  inside the text box but, even after giving an
escape character in the expression, it is not accepting the symbol. All
other validations are working fine and even this mask is working fine when I
remove the  symbol.

Is there any way I can include  inside the regular expression for mask?

Thanks.

-Pushkar


**
This message is intended for the addressee named and may contain
privileged information or confidential information or both. If you
are not the intended recipient please delete it and notify the sender.
**

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



Re: Tiles2 and Struts2

2007-01-30 Thread Joe Germuska

On 1/30/07, Gonçalo Luiz [EMAIL PROTECTED] wrote:


Hello,

After a few days fighting with Struts2 and Tiles2 I decided to ask in
the mailing list: does actually anybody managed to get them to work
together? I tried different approaches:

1 - Use a listener in web.xml - got an error that kept tomcat
throwing 404 error
2 - use a servlet in web.xml - all went to until I used a tile result
type which threw a java.lang.NoClassDefFoundError:
org/apache/tiles/TilesContext




TilesContext is obsolete (see
http://issues.apache.org/struts/browse/TILES-82); you're best off moving to
the newest possible versions of all of the relevant jars.  I'm not sure if
true nightly builds of Tiles have been set up yet, but the latest snapshots
for Struts and Tiles are all working together for me.  It's easier by a long
shot to do this with Maven, but if you need to retrieve new JARs yourself,
you could manually retrieve them from the Maven repository anyway...

Struts nightly builds can be retrieved from
http://people.apache.org/builds/struts/nightlies/2.0.x/

As far as I know, the SNAPSHOTs here represent the HEAD of the SVN
repository even though they aren't published as official nightly builds:
http://people.apache.org/repo/m2-snapshot-repository/org/apache/tiles/

Maybe that will help...

--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com

The truth is that we learned from João forever to be out of tune.
-- Caetano Veloso


Re: [s2] Finding a URL of an Action within execute()

2007-01-30 Thread Tom Schneider

Take a look at ServletActionRedirectResult, something like this might do it:

   @Inject
   public void setActionMapper(ActionMapper mapper) {
   this.actionMapper = mapper;
   }

to inject the action mapper.  I've coined the phrase 'magic injector' to 
describe this.  Then


 String uri = actionMapper.getUriFromActionMapping(new 
ActionMapping(actionName, namespace, method, null))


to get the URI, then

   String url = UrlHelper.buildParametersString(requestParameters, uri, 
);


to build the actual url string.  That's the gist of it, you should be 
able to getting something up and running from this.

Tom


Eric Rank wrote:

Thanks Bob,

I wouldn't be too afraid of doing something like that, but I need the 
URL for a different Action, named in the mapping -- that is, I don't 
need the URL for the Action that's executing.


Eric Rank


On Jan 30, 2007, at 6:07 PM, bob wrote:



This is surely not the best way . . . but you can implement one of 
the Aware interfaces that gives you a reference to the ServletRequest 
and get the URL info from that, from there I assume you could 
probably build the action specific url.  But I'm also sure there must 
be access to the struts mappings so maybe someone can tell you how to 
get that.







 --- On Tue 01/30, Eric Rank  [EMAIL PROTECTED]  wrote:
From: Eric Rank [mailto: [EMAIL PROTECTED]
To: user@struts.apache.org
Date: Tue, 30 Jan 2007 16:56:21 -0700
Subject: [s2] Finding a URL of an Action within execute()

Hi List,I'm attempting to construct a URL within an action's execute 
code.  The URL will be sent out in an email, serving as a link for a 
user to  click on. It'd be great if I could do this by finding the 
URL of an  Action using the Action name, which I have defined in the 
struts.xml  file.Is it possible? What's the best way to do 
it?Thanks,Eric 
Rank-To 
unsubscribe, e-mail: [EMAIL PROTECTED] additional 
commands, e-mail: [EMAIL PROTECTED]


___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



-
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: Struts 2 and tiles

2007-01-30 Thread Sai Nay Thurein Nyo
Joe Germuska joe at germuska.com writes:

 
 Have you seen http://cwiki.apache.org/S2PLUGINS/tiles-plugin.html ?
 
 Struts 2 is intentionally mostly ignorant of Tiles, except for the plugin,
 so something like per-package tiles defs would involve writing your own
 code, perhaps a custom subclass of the TilesResult.  However, if you just
 want to spread out your config among multiple files (which I like to do),
 you just need to specify a context parameter like this:
 
 context-param
 param-nameorg.apache.tiles.DEFINITIONS_CONFIG/param-name
 param-value
 /config/tiles/common.xml,
 /config/tiles/create.xml,
 /config/tiles/library.xml,
 /config/tiles/profile.xml,
 /config/tiles/login.xml
 /param-value
 /context-param
 
 While I think Tiles 2 is probably reasonably close to a release, it is still
 under development, and documentation is one thing that is needed.
 (Contributions are always welcome...)
 
 It doesn't have much traffic yet, but there is now a tiles user mailing list


Hi Joe,

I am testing on the tiles 2 to use in my new framework using Struts 2.
I tried the following and it doesn't work. 
The tiles keep looking for the /WEB-INF/tiles.xml file which is default. 
All I need to do is simply add in the context parameter in web.xml right?

 context-param
 param-nameorg.apache.tiles.DEFINITIONS_CONFIG/param-name  

param-value/WEB-INF/tiles-common.xml,/WEB-INF/tiles-sample.xml/param-value
/context-param

I did try a few other configurations with different params names such as
definition-config, tiles-definiation also didn't working.
Please enlighten me.

Thanks
Sai Nay Thurein Nyo


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



Re: Struts 2 and tiles

2007-01-30 Thread Joe Germuska

That looks right to my eye.  I'd suggest setting your logging config to
debug for the category org.apache.tiles.impl (the class which
specifically handles the definitions is  BasicTilesContainer).  Perhaps that
will help.

I have to stress once again that Tiles 2 has not been released.  If you are
interested in using it, you have to be ready to get inside the code to
understand how it works until more documentation is written (and to be ready
to make changes to your code as changes get made to the framework, since
there's no specific backwards compatibility baseline we have to guarantee
for the first Tiles 2 release.)

Joe

On 1/30/07, Sai Nay Thurein Nyo [EMAIL PROTECTED] wrote:



Hi Joe,

I am testing on the tiles 2 to use in my new framework using Struts 2.
I tried the following and it doesn't work.
The tiles keep looking for the /WEB-INF/tiles.xml file which is default.
All I need to do is simply add in the context parameter in web.xml right?

context-param
 param-nameorg.apache.tiles.DEFINITIONS_CONFIG/param-name

param-value/WEB-INF/tiles-common.xml,/WEB-INF/tiles-sample.xml
/param-value
/context-param

I did try a few other configurations with different params names such as
definition-config, tiles-definiation also didn't working.



--
Joe Germuska
[EMAIL PROTECTED] * http://blog.germuska.com

The truth is that we learned from João forever to be out of tune.
-- Caetano Veloso


formatting money values with bean:write

2007-01-30 Thread Adam Lipscombe

Folks


I am using bean:write name=myBean property=myBeanProperty 
formatKey=global.moneyFormat/

global.moneyFormat is defined in the vanilla ApplicationResources.properties file as 
#,##0.00

To support users in France and Germany there are also ApplicationResources_fr and 
ApplicationResources_de property files. These define the moneyFormat as # ##0,00 and #.##0,00. 
This all works fine.



But, when a user accesses the system from a client whose locale uses a non-USA/UK style currency 
format string and the locale is NOT France or Germany (e.g. #.##0,00 - Portugal or Brazil) the 
system fails with javax.servlet.ServletException: Wrong format string: '#,##0.00'



I think what is happening is that the system is using the default global.moneyFormat property 
String from the vanilla ApplicationResources file (which is what I would expect).
But when this default pattern is applied it does not match the one expected by the client-side 
locale and so the pattern application fails.



What I thought was supposed to happen was that if an appropriate ApplicationResources_XX.properties 
file could not be found the global.moneyFormat property from the vanilla properties file would be 
used and simply applied?



Does anyone know what is supposed to happen?
Is it necessary to have a separate ApplicationResources_XX props file for every locale that might 
access the system? Surely not?



TIA - Adam


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