Hello, I have a problem with Struts 2 and OpenJPA.
I use Websphere 8.5 as Application server. OpenJPA as persistence provider.
I have developed a web application with Struts 2 as main framework.
In this webapp there is EJB 3.1 and JPA 2 as technologies.
I call an struts action, the action call the
s.apache.org/2.2.3/docs/localization.html
>
>
>
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
--
Luiz Roberto Meier
(51) 92.322.911
luizrobertome...@gmail.com
me...@ufrgs.br
http://br.linkedin.com/in/lrm2011
--
my
domain or my Entity inside the action Class using application context . but I
set this up using a prototype scope. Is this a good practice ? or should I
create the object entity inside the action Class using the new Operator?.
Thanks I hope u understand my question
Best Regards
Roberto
Roberto Nunnari ha scritto:
but for this validation doesn't work:
package namespace: /admin2
s2 action name: Item_update
method name: update
URI: /myapp/admin2/Item_update.action
classname: ItemAction
xml-valid: ItemAction-update-validation.xml
if I rename ItemAction-update-validation.x
n
xml-valid: ItemAction-update-validation.xml
package configuration (interceptor stack) is the same..
Any hints?
Thank you all guys!
Ciao.
Robi
Roberto Nunnari ha scritto:
Hi Wes.
Wes Wannemacher ha scritto:
I don't think you need the method name in validation file's filenam
yes.. I'd rather use declarative validation in xml, but if I cannot
get it to work, I'll do it on the client side..
Robi
Lukasz Lenart ha scritto:
2009/4/8 Mileidys Gonzalez Prieto :
Im using this piece on code on my jsp
Yeah, but the topic is about the problems with validation in Struts2
Wes, here you can find my files:
http://web.dti.supsi.ch/~nunnari/s2/
Robi
Wes Wannemacher ha scritto:
On Wednesday 08 April 2009 10:48:34 Roberto Nunnari wrote:
[snip]
I start to think there is something wrong with my environment..
But.. are you guys sure that xml validation works when
plementing ModelDriven?
Thanks
Robi
-Wes
On Wednesday 08 April 2009 09:15:11 Roberto Nunnari wrote:
Humm.. I don't know.. I tried with
view:
struts.xml:
Item-view?id=${id}
adminItemEdit
and renamed validator xml file to:
Item_update-update-validation.xml
but still..
Yep. I tried that and doesn't help neither.
I also tried the underscore version but nothing changed.
Any more hints?
Robi
Lukasz Lenart ha scritto:
2009/4/8 Roberto Nunnari :
Action name is:
Item-update
method name is:
update
so then, validation file should be?
Item-update-u
tried it: doesn't help.
Lukasz Lenart ha scritto:
2009/4/8 Roberto Nunnari :
Any more hints?
Could you remove this from top of your validation file?
Pozdrawiam
--
Roberto Nunnari
Servizi Informatici SUPSI-DTI
SUPSI-DTI - Via Cantonale - 6928 Manno - Switzerland
Any more hints?
Robi
Lukasz Lenart ha scritto:
2009/4/8 Roberto Nunnari :
Action name is:
Item-update
method name is:
update
so then, validation file should be?
Item-update-update-validation.xml
and here's my Item-update-validation.xml file that I put in the same folder
In
Hi.
see my comments in context.
Lukasz Lenart ha scritto:
2009/4/7 Roberto Nunnari :
do the above scenario permit the use of xml validation?
It shouldn't be a problem, did you double check that validations files
were transferred to the server?
Yes. I checked and the xml file is ther
Hi guys.
I'm trying to use declarative xml validation but I'm having trouble.
This is the scenario:
- struts 2.0.11
- struts configuration with action name="*-*"
- ModelDriven actions
do the above scenario permit the use of xml validation?
Thank you.
Robi
---
imple application hello world
on struts2 and velocity please help on this thanks
Roberto Mabini (Bibbs)
SA
Tel:
Email: roberto.mab...@headstrong.com
Headstrong
Strong opinions. Strong results.
Yes! Happy New Year to all!
Robi.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
Jeromy Evans wrote:
Roberto Nunnari wrote:
Jeromy Evans wrote:
Roberto Nunnari wrote:
This is what I intend to do. At the moment the CodeBehind/Convention
plugin estimates the name of view candidates (eg.
package-action-result.jsp)
This change would just need to extend that to check if a
Jeromy Evans wrote:
Roberto Nunnari wrote:
Maybe the convention plugin should look into the tiles.xml
file, or check to see if the tiles plugin or tiles listener
are in the game..
Most probably, the definition names in tiles.xml should
follow the conventions, so that
This is what I intend
B-INF/tiles/content/auctionView.jsp" />
Martin wrote:
Roberto-
Just to clarify..how should the Results mapping annotations
configuration be introduced?
Thanks
Martin--
- Original Message - From: "Roberto Nunnari"
<[EMAIL PROTECTED]>
To: "Struts Users Ma
Jeromy Evans wrote:
Roberto Nunnari wrote:
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.
What about mixing it with tiles?
Would it require specifying tiles results thus breaking
the convenien
built! going to experiment a bit.
Thank you and best regards.
--
Robi
Jeromy Evans wrote:
Roberto Nunnari wrote:
Jeromy Evans wrote:
Roberto Nunnari wrote:
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this we
Today, after updating sources (both struts2 and xwork) it builds.
Thank you guys!
--
Robi
Dave Newton wrote:
--- On Fri, 6/20/08, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
ok.. wiping out the maven repo didn't help. I still get
lots of stack trace from running test in xwork..
Jeromy Evans wrote:
Roberto Nunnari wrote:
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.
What about mixing it with tiles?
Would it require specifying tiles results thus breaking
the convenien
:05 CEST 2008
[INFO] Final Memory: 23M/45M
[INFO]
--
Robi
Dave Newton wrote:
I can't get it to work now either :p
--- On Fri, 6/20/08, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
I'll report back to you..
That'd be great; Maven gives
Hi Dave.
Dave Newton wrote:
--- On Fri, 6/20/08, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
I've been trying to build struts2 2.1.3-SNAPSHOT,
svn'ed today but without success. The error seams
to be related to xwork.. which I just built from
source (just svn'ed), too.
Hi!
I've been trying to build struts2 2.1.3-SNAPSHOT, svn'ed today
but without success.
The error seams to be related to xwork.. which I just built
from source (just svn'ed), too.
Can any kind soul help me, please?
--
Robi
E:\devel\ApacheASF\struts\struts2>mvn clean install -Pall
[INFO] Scann
Hi Jeromy!
The Convention plugin looks very interesting! Does it work
with 2.1.3-SNAPSHOT ? I'd like to give it a try this weekend.
What about mixing it with tiles?
Would it require specifying tiles results thus breaking
the convenience of conventions?
--
Robi
Jeromy Evans wrote:
Ro
s.xml:
{1}View
{1}Edit
{1}Edit
{1}_{2}
and then use it in my jsps:
..and in order to add declarative validation, the above requires
a file named:
CategoryAction-Category_create-validation.xml
Best regards.
--
Robi
Roberto Nunnari wrote:
Oops.. little typo! Correction below, i
Oops.. little typo! Correction below, in context.
Maybe using a different separator in action name, like '!'
instead of '/' could help..
But now this leads me to a more general question:
Can action names containing '*' be mapped at all to Action-alias validation?
Hi Dale.
Thank you for your answer. See my comments below.
--
Robi
Dale Newfield wrote:
Roberto Nunnari wrote:
..but in order to add declarative validation, that would require
a file named:
CategoryAction/create-validation.xml
Oops.. little typo! That should read:
CategoryAction-Category
Anybody on this, please?
--
Robi
Roberto Nunnari wrote:
Hello.
I'd like to use declarative Action-alias field validation for
several Actions/methods in my S2 webpapp.
S2 let's me do in struts.xml elegant things like:
...
.. my results..
...
and then use it
Hello.
I'd like to use declarative Action-alias field validation for
several Actions/methods in my S2 webpapp.
S2 let's me do in struts.xml elegant things like:
...
.. my results..
...
and then use it in my jsps:
..but in order to add declarative validation, that would require
Yes.. that's probably where my confusion/misunderstanding came from.
Thank you both and best regards.
--
Robi
Dave Newton wrote:
--- Martin Gainty <[EMAIL PROTECTED]> wrote:
looking at the doc for ModelDriven
http://www.opensymphony.com/xwork/api/com/opensymphony/xwork/ModelDriven.htm
l
Hi.
About the ModelDriven interface.. I believe I'd read somewhere
that when you implement it, your view looses access to the action..
..but using it I found out that if the method/property is not
found in the model, then at some point the action is searched
for it.. so with that in mind, you ca
Dave Newton wrote:
--- Roberto Nunnari <[EMAIL PROTECTED]> wrote:
The prepare() method task is to retrive the model
and store it as an instance variable.
The getModel() method will later return the model
when asked by the framework that will put it on the
value stack.
Please correct me
The prepare() method task is to retrive the model
and store it as an instance variable.
The getModel() method will later return the model
when asked by the framework that will put it on the
value stack.
Please correct me if I'm wrong.
Best regards.
--
Robi
Adam Hardy wrote:
Dave Newton on
Hi Jeromy.
Jeromy Evans wrote:
Hi Roberto,
This is precisely what a custom type-converter is for:
http://struts.apache.org/2.x/docs/type-conversion.html
It accepts a string and converts to an object, and vice versa. It's
invoked by the conversion interceptor.
I'm going to i
Hi.
I have a form that posts to a ModelDriven Action.
In that form I'm trying to use raw dojo 1.0 DateTextBox, but I have
trouble with the formatting of the date.. According to the
dojo docs, when communicating to/from the server, it uses
ISO-8601.
As java.util.Date doesn't know how to parse ISO
instructed.. but as I'm
not an ajax guru, I could be wrong.
Best regards.
--
Robi
Roberto Nunnari wrote:
try this:
login
Best regards.
--
Robi
Raghuveer Rawat wrote:
Hi, I have a requirement where only logged in users are allowed to put
their
comment. I have implemented that form wi
try this:
login
Best regards.
--
Robi
Raghuveer Rawat wrote:
Hi, I have a requirement where only logged in users are allowed to put their
comment. I have implemented that form with struts2 ajax theme...anchor has
theme="ajax"
If logged in user puts his comment then everything works fine
egards.
--
Robi
Jeromy Evans wrote:
Hi Roberto,
The CodeBehind plugin is probably being replaced with the "Convention"
plugin in Struts2.1.1 - a merge of SmartURLs, CodeBehind and
Zero-Configuration into one plugin. The purpose is that by following
some conventions almost all the co
Hi Jeromy.
That's very cool!
One question comes to my mind.
As I have no idea what the CodeBehind plugin is, and as
I usully use the tiles plugin, is it possible/easy/hard
to use REST-CodeBehind-Tiles2 together?
Thanks!
--
Robi
Jeromy Evans wrote:
Hi Frans,
Were you able to checkout the tr
Try this:
--
Robi
xianwinwin wrote:
Hi there,
using struts2: I have just place the user's information on a session:
session.setAttribute(Properties.USER_HANDLE, secUser);
I wonder how to access on a jsp page the info; I tried, unsuccessfully, the
following combinations:
any idea?
[EMAIL PROTECTED]> Subject: Re: HNY> To: user@struts.apache.org> > ---
Roberto Nunnari <[EMAIL PROTECTED]> wrote:> > Happy new Year to all
the smart and nice struts people!> > Now I feel left out.> > d.> > >
Yes.
Happy new Year to all the smart and nice struts people!
Best regards.
--
Robi
Li wrote:
Hi guys,
Happy New Year to you and happy new year to Struts too.
Regards
Li
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
ok ok.. shouldn't post when tired.. got the cookie interceptor!
sorry for the noise!
Best regards.
--
Robi
Roberto Nunnari wrote:
Hello list.
in jsp I used to do things like:
nome utente: username:
but in S2 if I try the following
value="${cookie['username'].va
Hello list.
in jsp I used to do things like:
nome utente: username:
but in S2 if I try the following
value="${cookie['username'].value}" required="true"/>
it gives me an error.. so.. how to use cookies in
, and ?
Thank you!
--
Robi
--
Hi Jeromy.
Thank you for your reply! My comments below:
[EMAIL PROTECTED] wrote:
Roberto Nunnari wrote:
Hi Jeromy and list.
I'm trying a self built struts-2.1.1-snapshot with the dojo plugin
and I'm seeing very slow dojo performance.. I thought that the dojo
performance problem
Hi Jeromy and list.
I'm trying a self built struts-2.1.1-snapshot with the dojo plugin
and I'm seeing very slow dojo performance.. I thought that the dojo
performance problem whould be solved in 2.1.1 using the plugin, but
it doesn't seam so now to me..
So.. I have two questions:
1) do the infor
Hi Mike.
my comments below.
Mike Duffy wrote:
Thx Gary.
That is good information.
We are actually using JBoss with EJB 3.0, which uses Hibernate under
the covers, so I am assuming we are covered.
Not that sure.. if your DAO uses SQL strings in the queries (Hibernate
lets you do that), the
Yes, tiles-default extends struts-default.
Here's the content of struts-plugin.xml from the library
struts2-tiles-plugin-2.0.9.jar
http://struts.apache.org/dtds/struts-2.0.dtd";>
class="org.apache.struts2.views.tiles.TilesResult"/>
Best regards.
--
R
Hi Emi.
here's the example:
...
see? it's enough that your packages extend tiles-default.
Best regards.
--
Robi
Emi Lu wrote:
Thank you very much !
It works!
Following Your comments, I did:
=
org.apache.struts
struts2-tiles-plugin
${version.tiles}
Hello Emi.
see below my comments.
Emi Lu wrote:
Hello,
I looked at this page:
http://struts.apache.org/2.x/docs/tiles-plugin.html
Done:
=
[1] Added
org.apache.struts
struts2-tiles-plugin
${version.tiles}
compile
to web.xml
the above looks like maven stuff.. shou
Hello Emi.
see below my comments.
Emi Lu wrote:
Hello,
I looked at this page:
http://struts.apache.org/2.x/docs/tiles-plugin.html
Done:
=
[1] Added
org.apache.struts
struts2-tiles-plugin
${version.tiles}
compile
to web.xml
the above looks like maven stuff.. shou
Great. Thank you again, Al. :)
Best regards.
--
Robi
Al Sutton wrote:
1) I use the MenuContextListener
2) I use static menus, but I believe there is something in the struts-menu
FAQ that will help you.
Regards,
Al.
-Original Message-
From: Roberto Nunnari [mailto:[EMAIL PROTECTED
wrote:
Yes.
-Original Message-
From: Roberto Nunnari [mailto:[EMAIL PROTECTED]
Sent: 24 September 2007 15:24
To: Struts Users Mailing List
Subject: Struts 2 and struts-menu
Hello list.
Is anybody successfully using struts-menu with Struts2?
Thank you.
--
Robi
Hello list.
Is anybody successfully using struts-menu with Struts2?
Thank you.
--
Robi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
tcher
contextCleanup
/*
struts2
/*
Pavel Sapozhnikov wrote:
Hey Roberto I put this in my web.xml but that doesn't seem to fix things:
tilesCleanup
org.apache.struts2.dispatcher.ActionContextCleanUp
1
On 8/28/07, Pavel S
Hi Pavel.
Do you use the contextCleanup in your web.xml?
org.apache.struts2.dispatcher.ActionContextCleanUp
I had very strange behaviours until I added the contextCleanup filter.
Hope that helps.
Pavel Sapozhnikov wrote:
Hey guys I am not sure if uh if this is tiles problem or what not but h
g
OpenSessionInViewInterceptor?
--
Hez
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Roberto Nunnari
Servizi Informatici SUPSI-DTI
SUPSI-DTI - Via Cantonale - 6928 Manno - Switzerland
e
.
http://www.acegisecurity.org/
There's also Berkano which doesn't do nearly as much as Acegi but can
handle most general AA problems:
http://berkano.codehaus.org/
Zarar
On 8/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
Hi all.
I need to implement Authentication and Authoriz
Hi all.
I need to implement Authentication and Authorization in
a S2 web application, and before reinventing the wheel, I'd
like to ask the list for hints and advice.
1) Is there built-in support in Struts2 for Authentication and
Authorization?
2) What are the best practices for AA in S2?
3)
Hi John.
First of all try to run your appserver with the java command line
option: -Djava.awt.headless=true
if that is not enough, then make sure the required X libraries are
installed and in the appserver LD_LIBRARY_PATH.
Al Sutton wrote:
Yup, it's a problem where the full set of required
I see it also includes Tiles 2.0.4.. that should also include
the fix for the contentType of the response not set bug present
in version 2.0.3
--
Robi
Ted Husted wrote:
For those of you following this thread, a test build for Struts 2.0.9
is available. Unless a problem is found, we expect to
Do you have the tag? It won't work without that.
chengas123 wrote:
Hi,
I'm having trouble getting the autocompleter working. When I type in the
box, nothing happens.
I am using Struts 2.0.8 with JSON plugin 0.15.
The relevant lines from my JSP are:
autoComplete="true" searchType="st
Yes. I can confirm that.
Also, in the move from Struts 2.0.6 to 2.0.8, I had to
change my tiles.xml put tags to put-attribute, like this:
before:
after:
value="/WEB-INF/tiles/content/userList.jsp" />
also, make sure you have all the tile
Antonio Petrelli wrote:
2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>:
2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>:
>
> 2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>:
> >
> > If I telnet to the tomcat server on port 8080 I don't get the
&
Antonio Petrelli wrote:
2007/7/18, Antonio Petrelli <[EMAIL PROTECTED]>:
2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>:
>
> If I telnet to the tomcat server on port 8080 I don't get the
> contentType header for the tiles pages.
Strange... Using the showcase in
my fault.. action.execute() was still returning SUCCESS while
the mapping result name is "all"!
Thank you!
--
Robi.
Roberto Nunnari wrote:
Hi bartlebooth.
That is very neat!
But the getImageStream method in my action is never called..
why?
bartlebooth wrote:
You could use
you can write directly to the
response:
HttpServletResponse response = ServletActionContext.getResponse();
response.setContentType("image/jpg");
out = response.getOutputStream();
write image here
return null;
On 7/18/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
hehe.. ok.. l
Thank you Antonio.
Antonio Petrelli wrote:
2007/7/18, Roberto Nunnari <[EMAIL PROTECTED]>:
If I telnet to the tomcat server on port 8080 I don't get the
contentType header for the tiles pages.
Strange... Using the showcase in trunk of Struts 2 it works correctly.
I will try
ponse = ServletActionContext.getResponse();
response.setContentType("image/jpg");
out = response.getOutputStream();
write image here
return null;
On 7/18/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
hehe.. ok.. let's add some context..
Till now I was using a servlet to serve to
gards.
--
Robi.
Roberto Nunnari wrote:
Hello.
What is the best way to serve images stored in database in Struts2?
action, resultType, or servlet?
Thank you.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comman
Hello.
What is the best way to serve images stored in database in Struts2?
action, resultType, or servlet?
Thank you.
--
Robi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
rver on port 8080 I don't get the
contentType header for the tiles pages.
I thought the problem was solved, but maybe not in tiles 2.0.3
but instead in tiles 2.0.4?
Any hints?
Thank you.
--
Roberto Nunnari
-
To unsubscribe,
Chris Pratt wrote:
Also, make sure you define the tiles result-type in your struts.xml.
if your package extends tiles-default, you don't need that.
--
Robi
(*Chris*)
On 7/7/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
Hello shahab.
make sure you have al
Hello shahab.
make sure you have all the tiles libraries:
struts2-tiles-plugin-2.0.8.jar
ties-api-2.0.3.jar
tiles-core-2.0.3.jar
tiles-jsp-2.0.3.jar
then make sure your action's package extends tiles-default
hope that helps.
--
Robi
shahab wrote:
Hi: I need some help with using tiles 2 wit
Solved.
The problem was with the new commons-beanutils shipped with
S2 that doesn't include org.apache.commons.beanutils.NestedNullException
Best regards.
--
Robi
Roberto Nunnari wrote:
Hello everybody.
I'm trying to upgrade my webapp from Struts 2.0.6 to 2.0.8
I'm using t
Hello everybody.
I'm trying to upgrade my webapp from Struts 2.0.6 to 2.0.8
I'm using the Tiles-plugin and with the new version
when I request a page it throws exeptions.
The stacktrace is too long to be
posted here but the exeptions start like this:
26-giu-2007 00:36:00 org.apache.tiles.jsp.co
oops.. I should have read the docs a bit more before posting..
sorry.. for the noise!
--
Robi.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello.
Another question.
In my struts.xml I have a few packages.
One with name="default" contains the actions located at the
context root.
Another package with name="user", which I access with
namespace="user" in the tags has other actions.
Now, I just noticed that actions defined in package "
Why don't you use JSP EL?
Best regards.
--
Robi
Max Pimm wrote:
Thanks for the respones.
Perhaps i didn't explain myself properly. What i'm really looking for is
a way to define the context root url as the base url.
My motives for doing this is to allow me to share code across my
app
Dave Newton wrote:
--- Roberto Nunnari <[EMAIL PROTECTED]> wrote:
But what does that mean?
I've just been chalking it up to magic.
How can I find out what's going on?
Do I have to keep the filter mapped?
Probably. Are you using SiteMesh? In a nutshell, this
No. But
xt cleanup
filter; you can always see if that helps; map it
before the struts dispatcher.
contextCleanup
org.apache.struts2.dispatcher.ActionContextCleanUp
d.
--- Roberto Nunnari <[EMAIL PROTECTED]> wrote:
Hello list.
Going on with investigation on this strange
misbehaviour,
Hello Jeromy.
Jeromy Evans wrote:
I'm using a filter for hibernate in web.xml.. should I instead
use a S2 interceptor?
I use an S2 interceptor as per the open-session in view pattern. Pass
the SessionFactory or EntityManagerFactory (in stand-alone mode) to your
interceptor through the Se
the nice IoC container if
you integrate Spring into your application.
On 6/21/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
Hello.
I'd like to ask if anyone can share his experience in integrating
hibernate3 in S2.
I believe I should use the 'Open Session in View Pattern'
Hello.
I'd like to ask if anyone can share his experience in integrating
hibernate3 in S2.
I believe I should use the 'Open Session in View Pattern' but
as I'm getting wierd behaviour from my S2 application I wonder
if the way I'm integrating it is bad.
I'm using a filter for hibernate in web.x
ilterDispatcher
HibernateFilter
/*
struts2
/*
*
Can any kind soul help me, please?
Thank you.
--
Robi
Roberto Nunnari wrote:
Hello.
I have an action with a getter for a List.
In the execute method of the action I can verify the list is not empty.
But
Jeff Amiel wrote:
On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
humm...
If it's truly 'random' like that there are only 4 things that could be
happening.
1. Display tag is broken (not likely)
don't think so.. the same thing happens also with anoth
Jeff Amiel wrote:
On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
Yes. That's it. It happens at random times.. not always.
When it happens, all I get instead of the table in the browser is:
Nothing found to display.
makes no sensesure you don't have a local var
Hi Jeff.
Jeff Amiel wrote:
On 6/20/07, Roberto Nunnari <[EMAIL PROTECTED]> wrote:
In the execute method of the action I can verify the list is not empty.
But in the jsp view, at times it reports an empty list.
Are you saying that 'sometimes' when the search actually bri
Hi again Scott.
I tried anyways adding
to my struts.xml but it doesn't help..
Any more hints?
Roberto Nunnari wrote:
Hello Scott.
..but.. the list is a property of the action, and it's populated in
the execute method.. the JSP, should be rendered after
the execute method has ret
You would need to put your
code to populate the list in the Prepare() method.
http://struts.apache.org/2.x/docs/crud-demo-i.html
check out the "The prepare approach" in the above link.
I hope this helps.
-Scott
-Original Message-
From: Roberto Nunnari [mailto:[EMAIL P
Hello.
I have an action with a getter for a List.
In the execute method of the action I can verify the list is not empty.
But in the jsp view, at times it reports an empty list.
the action:
public class StorySearch extends ActionSupport {
private List stories = null;
...
public Stri
Very nice! Thank you Musachy!
Just one question: The label for the date field is empty..
the JSP:
...
<[EMAIL PROTECTED] prefix="yui" uri="/struts-yui-tags"%>
...
the generated HTML:
...
...
--
Robi
Musachy Barroso wrote:
I'd like to announce the alpha release of t
opefully that'll help you.
On 6/19/07, Dave Newton <[EMAIL PROTECTED]> wrote:
--- Roberto Nunnari <[EMAIL PROTECTED]> wrote:
> I tried to use the same code, and your code in a jsp
> page without tiles, but the result is exactly the
> same.
What version of S2 are yo
Dave Newton wrote:
--- Roberto Nunnari <[EMAIL PROTECTED]> wrote:
I tried to use the same code, and your code in a jsp
page without tiles, but the result is exactly the
same.
What version of S2 are you using? What container?
Struts 2.0.6
Tomcat 5.5.17
JRE: jdk1.5.0_11
Dave,
I tried to use the same code, and your code in a jsp page
without tiles, but the result is exactly the same.
Tomorrow I'll try on another computer and I'll let you know
the result.
Best regards.
--
Robi
Dave Newton wrote:
--- Roberto Nunnari wrote:
name="storyId
Hello Dave.
my comments follow:
Dave Newton wrote:
--- Roberto Nunnari wrote:
name="storyId"
value="%{id}"/>"/>
I would expect the generate HTML to be something
like:
src="/iopinion_hibernate00/Image?storyId=11"/>
but instead I get:
do I
aume Carré wrote:
2007/6/16, Roberto Nunnari <[EMAIL PROTECTED]>:
humm... it seams that:
suffices for testing null..
is that the correct usage? Best practices for the original problem?
have you tried this?
-
To uns
Could somebody please help me with this one?
Roberto Nunnari wrote:
sorry.. my previous message was misstyped in the second question..
let me repost it corrected:
Hello list.
I'm learning S2 and I'm a bit puzzled with the following:
value="%{id}"/>"/>
I wo
1 - 100 of 123 matches
Mail list logo