Thank you very much, I will have a look a this...
Sebastien
On 2/1/07, Ron Chan <[EMAIL PROTECTED]> wrote:
http://www.acegisecurity.org/ is a popular os generic security layer
http://appfuse.org/ is a "kickstart" app that has acegi, mvc, orm layer
all
pre-configured with a simple user manage
Hi
This morning I started Eclipse and all of a sudden a weird error appears:
Referenced file contains errors
(http://www.ibm.com/webservices/xsd/j2ee_web_services_client_1_1.xsd). For
more information, right click on the message and select "Show Details..."
web.xmlline 1117031
http://www.acegisecurity.org/ is a popular os generic security layer
http://appfuse.org/ is a "kickstart" app that has acegi, mvc, orm layer all
pre-configured with a simple user management system; S2 is one of its many
mvc options
even if you don't use appfuse it is a good source to pick up ide
Thank you all.
That's what I was prepared to do. But because I don't know very much about
security, I was wondering if there any risk to let parameters visible in the
request. I will follow your solution Thorsten.
But if anyone has more advices, they should always be helpful !
Thanks.
Sebastien
We too tried with the registering/deregistering of locale specific converters.
Apart from the bad performance, this will also result in interference if the
time of lookup that one session performs happens just after the registering of
the other session's converters.
We are looking at the option
Ahh,
I had a similar question a couple of days before. If you request the
data from a DB, you may change your query, e.g.,
SELECT * from picture where id=:id and userId=:userId
to ensure that you may only see your photos. In our implementation, we
kept the database queries and always retrived the
We had the problem with the latest stable Struts release (I don't know
if S2 handles the issue). In our implementation, it was ok to stick to a
single converter - so we did not need a workaround. IMHO, the problem is
not Struts, but the static nature of beanutils. Maybe you can ask the
commons guys
Hi,
Thanks for the reply Thorsten. But the problem here is that such an
implementation is already being used. But now we need to support multiple
formats for different users who login to the system. Is there any other
workaround for it other than copying parts of the implementation?
Will it he
oops.. its common-fileuploads-1.1.1.jar
sorry for the mistake...
- Original Message -
From: "bob" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, January 31, 2007 11:20 PM
Subject: Re: [s2] file upload causing param problems
commons-lang-1.1.1.jar?
Well, I've already got commons-lang-
Augustin
are you perhaps working with a collection where you need to specify an index?
Saludos Cordiales desde EEUU
M-
---
This e-mail message (including attachments, if any) is intended for the use of
the individual or ent
hibernate is great for autopopulating classes from DB tables identified from
hibernate.properties
watch their treatment of collection classes especially with lazy=true where
classes are not initialized until the last possible moment..
(One of those features that needs to be tuned)
M-
---
Adam Lipscombe wrote:
Folks
I am using "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
Agustín, there was a change in behaviour between the two JVM versions
you are using which accounts for the difference in behaviour. The
problem is indeed that your get/set methods do not conform to the
JavaBean specification. Refer to the link Taras posted [1] and make sure
you follow the conve
Andrew,
Well, thanks a lot. Adding the ActionContextCleanUp filter, as you recommend,
fixed the problems; I no longer periodically lose all my parameters while using
the file uploader. No doubt, I'm psyched. But I would certainly like to know
more about why this all happens and, even more,
> Just started with Struts 2.0. and I am trying to set
> up multiple configuration files for action-mapping
> (struts.xml) for each action class.
>
> how can we do this?
Two ways are listed on the wiki:
http://cwiki.apache.org/WW/can-we-break-up-a-large-strutsxml-file-into-smaller-pieces.html
It was written using 2.0.3 :)
musachy
Don Brown wrote:
I believe the tutorial requires at least Struts 2.0.3.
Don
On 1/31/07, shahab <[EMAIL PROTECTED]> wrote:
Hi:
I am using Struts 2.0.1. I have added few jar files from spring 2.0
as well.
I am trying struts 2 + spring + JPA. Similar t
Hi,
Just started with Struts 2.0. and I am trying to set up multiple
configuration files for action-mapping (struts.xml) for each action class.
how can we do this?
Thanks,
Rohan
--
This message has been scanned for viruses and
dangerous content and is believed to be clean.
I believe the tutorial requires at least Struts 2.0.3.
Don
On 1/31/07, shahab <[EMAIL PROTECTED]> wrote:
Hi:
I am using Struts 2.0.1. I have added few jar files from spring 2.0 as well.
I am trying struts 2 + spring + JPA. Similar to the example located at
http://cwiki.apache.org/S2WIKI/stru
Hi:
I am using Struts 2.0.1. I have added few jar files from spring 2.0 as well.
I am trying struts 2 + spring + JPA. Similar to the example located at
http://cwiki.apache.org/S2WIKI/struts-2-spring-jpa-ajax.html
thanx
Shahab
Joe Germuska wrote:
>
> On 1/31/07, shahab <[EMAIL PROTECTED]> wr
On 1/31/07, shahab <[EMAIL PROTECTED]> wrote:
Hi:
I think I would need some more help from you. I dont see any dtd or xsd
file
in my application.
What else I should look for?
It's probably in the JAR. Which version of Struts are you using? The
change was introduced after Struts 2.0.1
Joe
Hi:
I think I would need some more help from you. I dont see any dtd or xsd file
in my application.
What else I should look for?
I also tried to download struts-2.0.dtd and asaved it under WEB-INF/lib. But
that didnt help either.
Please help.
thanx
Shahab
Don Brown wrote:
>
> You have an
On 1/31/07, Cecilia Castillo <[EMAIL PROTECTED]> wrote:
I am new to Struts, Struts2, and Spring. (And maybe know too much about
jdbc.)
I have written my application with Struts2 and am only using Spring
to manage my database connections. I have defined my oracle database
as a JNDI resource in
On top of Don's reply
I once had done the same mistake. I thought they told me that your version
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";>
so I think that struts-config_1_1.dtd
"http://jakarta.apache.org/struts/dtds/struts-config-1.3.5.dtd";>
Regards,
- Original Message
So, far Struts 2.0.1 is the only milestone to be deemed at least a
beta, and announced to the user list.
There have been several other milestones, but we did not promote them
to beta, for one reason or another.
We're reviewing Struts 2.0.4 now, and it looks like it will be tagged
at least a beta
PROTECTED]> wrote:
> Hello,
>
> After upgrading my lib directory to have the following jars:
>
> tiles-api-2.0-r488734-SNAPSHOT
> tiles-core-2.0-r488734-SNAPSHOT
> struts2-tiles-plugin-2.0.5-SNAPSHOT-20070131
> struts2-core-2.0.5-SNAPSHOT-20070131
> struts2-api-2.0.5-
Don,
Thx for the info. I will be checking with them then.
Regards,
- Original Message -
From: "Don Brown" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, January 31, 2007 9:31 AM
Subject: Re: struts2 with beehive and jsf?
My guess would be no, as Beehive is pre
Hello,
I had the same problem with s2 some time ago. At that time I was using
customized 2.0.2 SNAPSHOT.
Check out this forum post at WebWork users forum:
http://forums.opensymphony.com/thread.jspa?messageID=111939
After upgrading to 2.0.3 SVN snapshot and setting ActionContextCleanUp
filter in
Cecilia,
(I know nothing about Struts2, but I don't think that's essential to your
query!)
Every one of my Spring DAO beans contains a method along this one:
public static ThingDAO getInstance() {
return (ThingDAO) SpringConfig.getSpringContext
().getBean("ThingDAO");
}
(The Strin
On 1/31/07, Sébastien LABEY <[EMAIL PROTECTED]> wrote:
Hi all (sorry for the previous unterminated mail),
I would like to know if S2 provides a solution to manage user
authentication.
In short, no. S2 has a RolesInterceptor which allows you to specify that
users in certain roles are allowed
You have an old version of the DTD cached somewhere. We really should
make a FAQ out of this :)
Don
On 1/31/07, shahab <[EMAIL PROTECTED]> wrote:
Hi:
I am getting the following error while accessing my web pages -
SEVERE: Element type "constant" must be declared. at (null:7:60)
org.xml.sax.
Hi:
I am getting the following error while accessing my web pages -
SEVERE: Element type "constant" must be declared. at (null:7:60)
org.xml.sax.SAXParseException: Element type "constant" must be declared.
Below is my struts.xml -
http://struts.apache.org/dtds/struts-2.0.dtd";>
Thanks for your answer.
Maybe I'm not very clear (sorry for my english). Let's imagine the following
request to access the page to update the user informations :
/myApp/userPrepareUpdate.action?id=1234
Anyone can modify the request and change 1234 to any other id and so access
to the informations
There is no persistence layer as part of Struts. For that, you must rely on
an external package.
That said, Struts integrates very well with Hibernate (or with Hibernate +
Spring).
2007/1/31, jlp86 <[EMAIL PROTECTED]>:
Hello all - I'm new to Java Web development/Struts, and was wondering if
Hi,
Why do you care about the information in the request? Typically, you
have a login page and the corresponding action stores the user object
into the session. In all subsequent requests, you can check the user
object in the session to determine which user did log in. This works for
S1, but I'd t
Hi all (sorry for the previous unterminated mail),
I would like to know if S2 provides a solution to manage user
authentication.
I also would like to know if someone could lead me to best practice for user
creation / authentication to a web application. I'm worried about security
after the user h
Hi all,
I would like to know if S2 provides a solution to manage user
authentication.
I also would like to know if someone could lead me to best practice for user
creation / authentication to a web application. I'm worried about security
after the user has logged in, because of the parameters tha
hi Joe,
Implementing the ResourceLoaderAware interface has solved my problem.
many thanks!
i havent tried to use ServletContextAware but I think it will work
equally well.
many thanks
Jeff
On 31 Jan 2007, at 16:38, Joe Germuska wrote:
Jeff:
I think there are a lot of possible routes,
re-2.0-r488734-SNAPSHOT
struts2-tiles-plugin-2.0.5-SNAPSHOT-20070131
struts2-core-2.0.5-SNAPSHOT-20070131
struts2-api-2.0.5-SNAPSHOT-20070131
I get the error I attached in the end of this message.
I guess I need to upgrade the xwork jar as well, but I cannot find the
latest snapshot (i'm us
If you are using the plexus plugin, you'll need the plexus jar itself.
It was listed in the plugin's pom, but optional, so I changed it to
required. Now if using maven 2, it will be included automatically.
Don
On 1/31/07, bob <[EMAIL PROTECTED]> wrote:
Well, I just took the plexus plugin out
commons-lang-1.1.1.jar?
Well, I've already got commons-lang-2.1.jar.
___
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
-
To unsubscribe, e-mail:
Well, I just took the plexus plugin out for now. And it works, but I would
still like to know where the jar for the missing resource is, if anyone knows?
--- On Wed 01/31, bob < [EMAIL PROTECTED] > wrote:
From: bob [mailto: [EMAIL PROTECTED]
To: user@struts.apache.org
Date: Wed, 31 Jan 2007
When I deploy and go to my struts application I get the following error:
Does the error indicate an error in my struts-config.xml file or in some
file referenced by the struts-config.xml file?
I'm trying to figure out how to hunt down and kill this error.
---
Hello all - I'm new to Java Web development/Struts, and was wondering if
Struts provides its own persistence layerI see many people use Struts in
conjunction with Hibernate, I wasn't sure if this was necessary or simply
most convenient...
Thank you!
--
View this message in context:
http://w
Maybe it depends on JVM implementation, try to run the following:
public class Temp {
private String abc;
public String getAbc() { return abc; }
public void setAbc(String abc) { this.abc = abc; }
public String getAbc(int i) { return abc; }
public void setAbc(int i, String abc) { this.abc =
I'm getting the following class not found when starting up my web app. I tried
to search the internet for the jar that has this class and couldnt' find
nothing. Anybody know if I'm missing a jar, or something else.
10:08:09,806 ERROR [/webSite]:3638 - Exception starting filter struts2
java.l
But currently my solution is running on a remote servernot is
running on localhost. So I think it's possible to have the methods as I have
them.
Thanks.
Agustín González García
-
Mantenimiento J2EE - Treelogic
Tel: 985 73 27 32
Edificio Centroastur,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Pushkar,
[EMAIL PROTECTED] wrote:
> 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.
There was a bug in URLValidator that made it fai
On 1/31/07, Tom Schneider <[EMAIL PROTECTED]> wrote:
It would be very easy to create a Spring FactoryBean for this.
In this case, couldn't one simply implement Spring's ServletContextAware
interface?
http://www.springframework.org/docs/api/org/springframework/web/context/ServletContextAware.
Never mind, I found it.
org.apache.struts2.views.util.UrlHelper
E.
One last question, where does the UrlHelper class come from?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Jeff:
I think there are a lot of possible routes, but I'm not sure I understand
your goal.
Could you just have your service implement ResourceLoaderAware? If your
Spring ApplicationContext is a WebApplicationContext (as it would be if set
up by ContextLoaderListener), then the ResourceLoader wo
Mmmm, Injection. Magic indeed!
That's the coolest thing I've seen all week. That does exactly what I
want it to.
One last question, where does the UrlHelper class come from?
Eric Rank
On Jan 30, 2007, at 9:36 PM, Tom Schneider wrote:
Take a look at ServletActionRedirectResult, something l
Hi,
> Is there a problem with the registering/lookup of multiple converters
in
> ConvertUtils on a single server instance?
I think this is not possible. The converters are stored in a static
hashmap, so all classes sharing a single classloader have to use the
same converters. I consider this a bad
I am new to Struts, Struts2, and Spring. (And maybe know too much about jdbc.)
I have written my application with Struts2 and am only using Spring
to manage my database connections. I have defined my oracle database
as a JNDI resource in my Tomcat server.xml file.
I have defined a dataSourc
You've got String getNombre() but it should return an array of Strings
and setNombre(String) should accept an array to. Or you'll have to
give different names to your properties:
public String getNombre1(int i)
public void setNombre1(int i, String nombre)
public String getNombre2()
public void s
Jeffrey,
You need to make sure your FactoryBean returns false for the isSingleton and
you might want to add lazy-load as well. (I think singleton=false implies
lazy load, but I'm not sure)
Tom
On 1/31/07, Jeffrey Hau <[EMAIL PROTECTED]> wrote:
Hi Tom,
I have tried your suggestion, my applicati
I have got exactly this in the class:
public String getNombre(int i) {
return otrosSolicitantes[i].getNombre();
}
public void setNombre(int i, String nombre) {
otrosSolicitantes[i].setNombre(nombre);
}
public String getNombre() {
return solicitantePrincipal.getNombre();
}
public void setNom
I have got Oracle Application Server 10g Release 2 (10.1.2) on both
servers, but I have got j2se 1.4.2_07 on local server (where the application
not runs) and j2se 1.4.2_04 on remote server.
Agustín González García
-
Mantenimiento J2EE - Treelogic
Tel: 985 7
--- "Hartrich, James CTR USTRANSCOM J6"
> And the same thing I reported last month. Corrected
> with a new FilterDispatcher class implementing
Filter
> & StrutsStatics.
Yikes; I just fixed the XML file and re-jarred it! :)
d.
_
And the same thing I reported last month. Corrected with a new
FilterDispatcher class implementing Filter & StrutsStatics.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 30, 2007 7:40 PM
To: Struts Users Mailing List
Subject: Re: [s2] multi part plug
Hi Tom,
I have tried your suggestion, my applicationContex.xml is now defined
as,
method="getServletContext"/>
class="org.springframework.web.context.support.ServletContextResource">
Yes, I have the same problem. I used multipart/form, and I have file
element.
It always happen when I post the data at first time, or after I refresh the
page by clicking F5 or browser's Refresh button.
And it might(not always) work correctly when I post it again. No matter I
upload a file or not.
Hi,
Is there a problem with the registering/lookup of multiple converters in
ConvertUtils on a single server instance?
The issue I am facing is the interference of the converters registered
by 2 users having different number formats on a single server instance.
The number converter that is obt
On 1/31/07, Rick Reumann <[EMAIL PROTECTED]> wrote:
So at work here people are asking 'should I start using WebWork or
Struts2?' What would you tell someone that asks you that question?
Where would I send them to help them to understand the differences in
choices? Do you see the confusion I'm po
It would be very easy to create a Spring FactoryBean for this.
(Checkout the Spring Documentation if that doesn't make sense) Then, to
access the servlet context, just do a:
ServletContext servletContext = ServletActionContext.getServletContext();
The FactoryBean would allow you to use depen
On 1/30/07, Ted Husted <[EMAIL PROTECTED]> wrote:
> 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 St
Hi,
I think Struts is confused to see a simple and an indexed property
with the same name. If you have an indexed property, your methods
should look like this:
String getNombre(int)
void setNombre(int, String)
String[] getNombre()
setNombre(String[])
See http://java.sun.com/docs/books/tutorial/
--- Agustín <[EMAIL PROTECTED]> wrote:
> If I only have two methods the application runs
> perfectly:
>
> getNombre()
> setNombre(String)
That makes sense.
> I don't know why the application runs on one server
> (on localhost) and not runs on other server (on
other
> host).
Are they the same se
If I only have two methods the application runs perfectly:
getNombre()
setNombre(String)
If I have four methods the applications not runs.
getNombre()
setNombre(String)
getNombre(int)
setNombre(int, String)
I don't know why the application runs on one server (on localhost) and not
runs on o
Hi Joe,
Thanks for the helpful information. I am just wondering is it
possible to get the ServletContext object in my spring
applicationContext.xml? What i am trying to do now is to create a
Resource object (ServletContextResource) and inject into a service
class and then use this service
Rather annoying problem, but I really don't know how to fix it.
I have a form, with 3 fields on it. A field for UserName, one for
E-mailaddress and a checkbox. The username can't be equal to a given value
(let's say "testing") and if you check the checkbox, the e-mailaddress is
required.
I
Hello,
After upgrading my lib directory to have the following jars:
tiles-api-2.0-r488734-SNAPSHOT
tiles-core-2.0-r488734-SNAPSHOT
struts2-tiles-plugin-2.0.5-SNAPSHOT-20070131
struts2-core-2.0.5-SNAPSHOT-20070131
struts2-api-2.0.5-SNAPSHOT-20070131
I get the error I attached in the end of this
You need to make sure that your action is passing through an
interceptor-stack that includes ServletConfigInterceptor
http://struts.apache.org/2.x/core/apidocs/org/apache/struts2/interceptor/ServletConfigInterceptor.html
The struts-default package does include this.
http://struts.apache.org/2.
--- Agustín <[EMAIL PROTECTED]> wrote:
> I have the get and set method fot the property
> nombre, but I have more than one method. I have:
>
> getNombre()
> getNombre(int)
> setNombre()
> setNombre(int)
I'm not sure that this is a legal JavaBean; does it
work if you remove one set of accessors? (
On 1/30/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- 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
frus
were u actually able to get the servletContext Object thru
servletContextAware?? I'd tried it but couldn't get it :(
do we need to do any additional stuff for that??
- Original Message -
From: "Jeffrey Hau" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, January 3
Hi,
If i need to get a servletContext object in my action class, is
implementing the ServletContextAware interface the standard way of
doing this? Is there any other alternatives?
thanks,
Jeff
-
To unsubscribe, e-mail: [EM
Yes, I'm sure.
When I deploy the application in other server the application runs
perfectly, but when I deploy it in local I see this error.
Agustín González García
-
Mantenimiento J2EE - Treelogic
Tel: 985 73 27 32
Edificio Centroastur, 2ª planta
Polígono S
Are you sure the class containg the methods "getNombre" is istanziated ?
Marcello
-Messaggio originale-
Da: Agustín [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 31 gennaio 2007 10.45
A: user@struts.apache.org
Oggetto: No getter method for property
Hello.
I have a problem with Struts.
Hello.
I have a problem with Struts. When I connect to application url I see the
following message:
"No getter method for property nombre of bean
org.apache.struts.taglib.html.BEAN"
I have the get and set method fot the property nombre, but I have more than one
method. I have:
getNombre()
ge
My guess would be no, as Beehive is pretty solidly built on Struts 1.
I'd ask on their mailing what their plans are. Beehive was one of the
initial contributors to Struts 2 (when it was Struts Ti), but they've
been pretty quiet since.
Don
On 1/28/07, Simons Kevin <[EMAIL PROTECTED]> wrote:
All
Sounds right. Package "B" could be put in file-C.xml, as long as it
is file-A.xml that is importing it.
Don
On 1/29/07, Alexandre Mendonça Lima <[EMAIL PROTECTED]> wrote:
Hello,
In the struts2-showcase application, I see the includes in struts.xml
working very well. Then, I gone to hack the s
81 matches
Mail list logo