Hi Lukasz,
Could you pls elaborate what you mean by setup?
Just to clarify, it is the URL that contains the Spanish characters.
For example, in /names/niño, niño is the resource ID that is passed to
methods such as show(), update() and destroy().
Thanks,
Alex
On Mon, Nov 24, 2008 at 9:00 PM,
2008/11/25 Alex Milanovic [EMAIL PROTECTED]:
Could you pls elaborate what you mean by setup?
Example base on Spring but there are some standalone solutions:
filter
filter-nameencodingFilter/filter-name
Dear All,
I am a newbie to Struts2. I found that tag library in Struts2 is quite
useful and convenience. But I have some problems with integration with our
UI developer. Since he doesn't think that Struts2' tags are good looking
enough and he want to develop the UI by his way. But if we dont use
Can Someone give me a hand please?
Thanks very much!!
Tomi21 wrote:
I've changed the type to Integer and is still not working. If I set the
parameteres with a form and POST method everything works fine but if I use
url tag (GET method) the setter is never called.
Has it maybe something
Try the below logic:
Use s:set for generating index
s:set name=index value=0/
s:iterator status=sts value=mylist
s:textfield name=mylist[${index}].dstn/
s:set name=index value=${index+1}/
/s:iterator
-Nishi.
EoneZhang wrote:
Hi, everyone.
I have
Hello Experts ,
I am facing one very strange problem in struts 1.2.9
validator. I have used validator in almost all JSPs of my project but it is
giving error only for one particular JSP , rest are working fine. As soon as
I add an entry for that jsp in validator.xml that form
What does your jsp look like? Have you tried implementing
ParameterAware and see if any parameters are passed at all?
Nils-H
On Tue, Nov 25, 2008 at 10:04 AM, Tomi21 [EMAIL PROTECTED] wrote:
Can Someone give me a hand please?
Thanks very much!!
Tomi21 wrote:
I've changed the type to
Thanks, this works for the content. For the URLs the solution is in
Tomcat's server.xml, I added URIEncoding=UTF-8. This is not really
related to struts though :).
Reference: http://www.jspwiki.org/wiki/TomcatAndUTF8
Cheers,
Alex
On Tue, Nov 25, 2008 at 9:14 AM, Lukasz Lenart
[EMAIL PROTECTED]
This is my jsp code:
str:url id=url_delete action=EliminarSuscripcion.action
str:param name=index value=%{#stat.index}/str:param
/str:url
str:a href=%{url_delete}Eliminar/str:a
Once is rendered it looks like this:
/ConfiguracionDTX2Web/EliminarSuscripcion.action?index=0 Eliminar
I've
Yeah, that's what I was thinking also, but from the struts.xml it
looks like it's not associated with the action in question.
Nils-H
On Tue, Nov 25, 2008 at 11:04 AM, Lukasz Lenart
[EMAIL PROTECTED] wrote:
I noticed two custom interceptors, maybe that's the source of problem
existeUserName
Hi,
I'm having problem to configure web application enclosed in .ear module.
I'm using Struts 2.0.12 and JBoss 4.2.3 running on java 1.6.
The application is in .war module, which is placed inside .ear module.
[In fact this is small test application for me to get used with the
new features in
You'll probably save yourself a lot of troubles putting the jar files
inside the WEB-INF/lib folder of your war. What was your structure
like when it didn't work? Was your actions in your war file as well?
Nils-H
On Tue, Nov 25, 2008 at 12:09 PM, Dimitar Vlasev [EMAIL PROTECTED] wrote:
Hi,
I'm
These interceptors are not configured for 'EliminarSuscripcion' action.
If interceptors have something to do with this issue only the ones defined
in the default stack
are concerned.
Thanks!!!
Lukasz Lenart wrote:
I noticed two custom interceptors, maybe that's the source of problem
I noticed two custom interceptors, maybe that's the source of problem
existeUserName
validadorFechas
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
It's hard to tell. Everything looks correct. But there might be hidden
a config error or something somewhere else in your application.
Considering that it seems to work for everybody else, I suggest that
you try to create a sample app from scratch with just one jsp and one
action and see if you
2008/11/25 Tomi21 [EMAIL PROTECTED]:
These interceptors are not configured for 'EliminarSuscripcion' action.
If interceptors have something to do with this issue only the ones defined
in the default stack
are concerned.
Yes, but I must look in to the Struts2 source to check how the
Thank you very much Nils,
you've spotted the problem - the action class was packed in a .jar
file which was outside the .war module.
When I placed it in the .war everything worked smoothly.
Best regards,
On Tue, Nov 25, 2008 at 1:14 PM, Nils-Helge Garli Hegvik
[EMAIL PROTECTED] wrote:
You'll
This is the code of one of my interceptors:
package es.uv.lisitt.dtx2.configuraciontool.web;
import java.util.Map;
import org.apache.log4j.Logger;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import
Hi,
Following scenario: i have an object on the value-stack and a function
on the action named = getTest. The function returns a boolean.
Now i want to do a struts-if like that:
struts:if test=getTest( %{#myObject.index} )
But this doesn't work. How can i use OGNL to call a function on the
I know this question is more related to java by itself more than to
struts, but need some help :)
I have to re-use a method in a class, and then depending on from which
jsp page comes, forward to one jsp or another:
Page1.jsp (globalForward to method.do) endpage1.jsp
picture 1
http://www.nabble.com/file/p20680989/1.png
picture 2
http://www.nabble.com/file/p20680989/2.png
I used struts 1.2 to create my project.
picture 1 creates using tiles,red background belongs to one tile and white
one belongs to another tile.
picture 2 shows the page that i got after
There is a simple theme that should do what you want, and it will
generate very little other than the input/ tag.
Take a look here -
http://struts.apache.org/2.x/docs/themes-and-templates.html
-Wes
On Tue, Nov 25, 2008 at 3:40 AM, KE LI [EMAIL PROTECTED] wrote:
Dear All,
I am a newbie to
Try:
struts:if test=%{test(index)} )
test will look for a function with prototype 'getTest' in the value stack.
Alexander Baetz wrote:
Hi,
Following scenario: i have an object on the value-stack and a function
on the action named = getTest. The function returns a boolean.
Now i
Try:
struts:if test=%{test(index)} )
test will look for a function with prototype 'getTest' in the value stack.
Alexander Baetz wrote:
Hi,
Following scenario: i have an object on the value-stack and a function
on the action named = getTest. The function returns a boolean.
Now i
Hi,
I'm trying to return a list of Objects that are retrieved with Hibernate.
In these Objects i have a lot of collections like ex: groupsCollection,
bookmarksCollections etc.
All of these are of type java.util.Collection.
How can I tell in the excludeProperties to not to load these objects?
I
Take a look at the docs: http://cwiki.apache.org/S2PLUGINS/json-plugin.html
musachy
On Tue, Nov 25, 2008 at 9:39 AM, Andras Balogh [EMAIL PROTECTED] wrote:
Hi,
I'm trying to return a list of Objects that are retrieved with Hibernate.
In these Objects i have a lot of collections like ex:
Hi all,
I'm new to struts2 (using since 2 weeks) and any help with the following
problem would be appreciated.
Based on the code of DebuggingInterceptor (
http://www.koders.com/java/fidE2D023ADB255C18F527B41456AA4BAAE2BDE3F43.aspx?s=xml#L45
)
I wrote an interceptor which collects statistical
Musachy Barroso wrote:
Take a look at the docs: http://cwiki.apache.org/S2PLUGINS/json-plugin.html
Hi,
I have checked the docs of course before posting.
Currently my config is like this:
result type=json
param name=enableSMDtrue/param
param name=excludeProperties
.*Collection
/param
In the result only.
On Tue, Nov 25, 2008 at 9:54 AM, Andras Balogh [EMAIL PROTECTED] wrote:
Musachy Barroso wrote:
Take a look at the docs:
http://cwiki.apache.org/S2PLUGINS/json-plugin.html
Hi,
I have checked the docs of course before posting.
Currently my config is like this:
Dan,
I would include some kind of parameter with the request that gives your
application a clue as to what path it should follow. Then use the value of
that parameter to determine which route to respond with. I think this is
superior to just relying on the name of the JSP or something like that,
Hi,
I have defined following action in struts.xml:
action name=showReport method=showReport class=ReportAction
result name=success type=jasper
/reports/MonthReport.jasper
parameters
connection
PDF
Jim Kiley escribió:
Dan,
I would include some kind of parameter with the request that gives your
application a clue as to what path it should follow. Then use the value of
that parameter to determine which route to respond with. I think this is
superior to just relying on the name of the JSP
Musachy Barroso wrote:
In the result only.
I just added some more debug messages to JSONWriter and it seems the
excludeProperties is set only if is declared
at 'interceptor-ref':
interceptor-ref name=json
param name=enableSMDtrue/param
param name=excludeProperties
.*Collection
/param
My bad, I didnt noticed you were using SMD and assumed you were using the
result. SMD uses the interceptor, so yes, you are right.
musachy
On Tue, Nov 25, 2008 at 10:46 AM, Andras Balogh [EMAIL PROTECTED] wrote:
Musachy Barroso wrote:
In the result only.
I just added some more debug
I think that is not possible. I'll solve it with multiple results for this
action.
--
Milan
Milan Milanovic wrote:
Hi,
I have defined following action in struts.xml:
action name=showReport method=showReport class=ReportAction
result name=success type=jasper
I think both parameters and the location can be expressions which you
can expose as properties on your action.
Nils-H
Den 25. nov.. 2008 kl. 17.53 skrev Milan Milanovic [EMAIL PROTECTED]
:
I think that is not possible. I'll solve it with multiple results
for this
action.
--
Milan
A follow-up and conclusion for the this issue:
This issue was related to an appfuse project based on the struts2 archetype.
The web.xml was configured as an error-page directive that was pointing to
a URL that is normally rewritten to an action with parameters being passed
in.
As a processes of
I'm sure this has been asked before but I haven't had any luck finding
the answer. I'm having trouble getting the checkbox to work.
My web application uses a database and I have screens that add and edit
records. One of the fields is a boolean called isPermanent. So my
ActionForm has a
Why are you only using the checkbox tag in the add record page? Can't you
just set the ActionForm property and use it in the edit page also?
Dave
--- On Tue, 11/25/08, David Barron [EMAIL PROTECTED] wrote:
I'm sure this has been asked before but I haven't had any luck finding
the answer.
Maybe I wasn't clear. If the checkbox is checked in the addRecord.jsp
that means the value of isPermanent in the data table is true. So when
that record is displayed in the editRecord.jsp the checkbox should be
checked. I've got it working that way now by using the if/else in
editRecord.jsp but
--- On Tue, 11/25/08, David Barron wrote:
Maybe I wasn't clear. If the checkbox is checked in
the addRecord.jsp that means the value of isPermanent
in the data table is true. So when that record is
displayed in theeditRecord.jsp the checkbox should
be checked. I've got it working that
--- On Tue, 11/25/08, David Barron wrote:
I'm pulling the data out of the table in the jsp, so how
do I set the ActionForm properties?
Yikes. Pull the form out of the request (or session) and set the form variable.
I sure don't recommend the approach, though; that kind of code really doesn't
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 3:39 PM
To: Struts Users Mailing List
Subject: RE: Struts 1.2.9 and checkboxes
--- On Tue, 11/25/08, David Barron wrote:
I'm pulling the data out of the table in the jsp, so how do I set the
2008/11/25 Nils-Helge Garli Hegvik [EMAIL PROTECTED]:
I think both parameters and the location can be expressions which you can
expose as properties on your action.
There was a bug in StaticParamsInterceptor regarding this but please
check, it should work right now, use ${location} in config
1) Validating numeric fields.
I have a couple of numeric fields on a form, and I have configured the
required validator for them. If I leave the fields blank and submit
the form, there is no error. Instead, the fields end up with values of
0, each. Either there is no validation taking
What is the error?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Can you please send the validation.xml file that you are using?
-Original Message-
From: David C. Hicks [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 25, 2008 3:56 PM
To: Struts Users Mailing List
Subject: Couple of validation questions.
1) Validating numeric fields.
I have a couple
Richa Pandharikar wrote:
Can you please send the validation.xml file that you are using?
here is the add validation. the update is essentially identical,
right now...
validators
field name=playlistMediaBoardComponent.mediaBoard
field-validator type=required
messageYou
Sounds like you have an old tag library reference sticking around. Try
deleting any TLD in your webapp root.
On Tue, Nov 25, 2008 at 3:32 AM, Rajil [EMAIL PROTECTED] wrote:
Hi All;
I am using struts beta version 1.0 in my application. I am migrating this
application to struts v1.2.7.
I
Hey all --
Not sure who is in the area, but I will be presenting Struts 2 at the St.
Louis Gateway JUG next Tuesday evening (Dec 2). You can get directions to
the meeting here:
http://www.gatewayjug.org/
Peace,
Scott
--
View this message in context:
Required only checks for null-ness, which is a bit misleading with browsers,
since empty text fields are sent as empty strings.
In addition, an action property that's a primitive int will be initialized to
0 (Java thing) whereas an Integer's default value is null.
You may want to try (a) using
Hi!!
Is JasperReports supported in Struts2-core-2.0.11 ?? [?]
because whenever I start Tomcat, i get this error...
Result class *[org.apache.struts2.views.jasperreports.JasperReportsResult]
doesn't exist (ClassNotFoundException)* at result-type -
Did you install the plugin?
http://struts.apache.org/2.x/docs/jasperreports-plugin.html
IIRC, the jar is located in the struts-2.mumble-all.zip
On Wed, 2008-11-26 at 10:15 +0800, ryan webb wrote:
Hi!!
Is JasperReports supported in Struts2-core-2.0.11 ??
because whenever I start Tomcat, i
Thanks for the tips, Dave.
Dave Newton wrote:
Required only checks for null-ness, which is a bit misleading with browsers,
since empty text fields are sent as empty strings.
In addition, an action property that's a primitive int will be initialized to
0 (Java thing) whereas an Integer's
Yes I think so...I downloaded JasperReport project (at sourceforge) and put
all jar files in my WEB-INF/lib folder.
I was wondering if the struts2 version I am using doesn't support
JasperReport because there's no
org.apache.struts2.views.jasperreports.JasperReportsResult inStruts2-core-2.0.11
There is a plugin jar file that is included with the Struts 2
distribution. The plugin jar file is called -
struts2-jasperreports-plugin-2.0.11.jar
If you do not have that file in /WEB-INF/lib, then the plugin is not
installed.
PS, if you are running on a linux machine, check to see if you
I see, Thanks a lot for your time!
God bless.
On Wed, Nov 26, 2008 at 11:20 AM, Wes Wannemacher [EMAIL PROTECTED] wrote:
There is a plugin jar file that is included with the Struts 2
distribution. The plugin jar file is called -
struts2-jasperreports-plugin-2.0.11.jar
If you do not have
I used tiles and validation in my project(validation.xml, tiles-defs.xml),
but it not working. i explained my problem previous my post. Please any body
can send me sample project that use above technologies or learning materials
it is very helpful for me. I used struts 1.2. please help me.
Thanks for your valuable time Paul.
Actually I solved this issue by deleting EnumerateTeg from my existing tag
library.
But now I am getting another problem, please see if you can guide.
Struts 1.0 was using struts-template.tld and new version that I am using
1.2.7 this library is replace by
Great it works.
Thanks so much Musachy... :)
Manish.
-Original Message-
From: Musachy Barroso [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2008 10:51 PM
To: Struts Users Mailing List
Subject: Re: How to read struts2 constants in action class
use @Inject.
Dear All,
Servlet container is written to be single-threaded.
That means that the request object isn't designed to be used after the
thread that handled the request has finished executing. What is
happening is this:
1) Thread1 handles request
2) Thread1 gives request to Tomcat
Tell me I was wrong or not. please give me any suggestion.
--
View this message in context:
http://www.nabble.com/Validation-and-Tiles-tp20694339p20695446.html
Sent from the Struts - User mailing list archive at Nabble.com.
As you say, the request object can be recycled by the container after
the thread has executed [1]. You can't fix this as it's up to the
container to handle this. You have to refactor your code so it's not
passing the request object around to different threads. Typically you
would extract the
Thanks Nils-H
Actually I am migrating my existing application, need to reduce migration
time.
Is there any way to make request object as common for all available thread,
So that we no need to extract the information of request object.
Regards,
Nikunj
-Original Message-
From:
64 matches
Mail list logo