Hi
No sooner did I send this, when I decided to clean out my Tomcat work directory
- and now it works. javax.faces.DEFAULT_SUFFIX hads to be set to .xml for this
to work.
Anyway, I now have a Template application which functionally behaves like it
was built with Tiles, meaning I have a standar
Hi
I am having trouble getting the links in my test/template application working.
I can see that it submits, but it is only redisplaying the same page. I can
access the pages by writing in the URI in the browser, so they are working.
My navigation looks like this:
Home
Page2
Page3
and I h
Sorry. The formatting was messed up on my first post. Hopefully this
is better
I am trying to define a string array as a property of DynaValidatorForm
in my struts config file and then access that array from within a JSP
but am getting an incompatible types error when trying to do this.
My fr
We have been relying on Turbine for all database connections and
pooling..Hence we wouldl like to stick to that.
-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper
Sent: Thursday, December 01, 2005 4:00 AM
To: user@struts.apache.org
Subject: Re: Multiple Se
In your url you have acao=comando.pesquisar, I have always used the
form where acao=Pesquisar or the value of the key in the map. Also
are you sure that your Constants class is providing the Map to the
LookupDispatchAction?
Matt Morton
On 11/30/05, Matheus Eduardo Machado Moreira <[EMAIL PROTECT
I am trying to define a string array as a property of
DynaValidatorForm in my struts config file and then
access that array from within a JSP but am getting an
incompatible types error when trying to do this. My
form bean definition is as follows:
In my JSP (MyJSP.jsp) I wrote:
<%@
I have the following key-value mappings in the .properties file
(keys and values in Portuguese, I know all of you know Portuguese
:-)).
comando.pesquisar=Pesquisar (search)
comando.editar=Editar (edit)
comando.salvar=Salvar (save)
comando.iniciar=iniciar (init, used as default entry point)
On 11/30/05, Matheus Eduardo Machado Moreira <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have a problem using LookupDispatchAction. I already tried
> looking for the solution on Google, this list archive and other
> resources but I wasn't able to fix the problem. Maybe some of you can
> help me.
On 11/30/05, Matheus Eduardo Machado Moreira <[EMAIL PROTECTED]> wrote:
> My action extends LookupDispatchAction and implements the
> getKeyMethodMap() method. In my ApplicationResources.properties file I
> define all the keys for the buttons that can be shown in my
> interfaces. Everything see
Hi,
I have a problem using LookupDispatchAction. I already tried
looking for the solution on Google, this list archive and other
resources but I wasn't able to fix the problem. Maybe some of you can
help me.
My action extends LookupDispatchAction and implements the
getKeyMethodMap() m
On 11/30/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> From: Michael Jouravlev
> To: Struts Users Mailing List
> Sent: Wednesday, November 30, 2005 12:41 AM
> > On 11/29/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> > > Michael Jouravlev on 29/11/05 16:54, wrote:
> > > > Both Struts Dialogs examp
Per Jørgen Walstrøm wrote:
hello,
I have the following code in my jsp:
my Collection geSectionComponents contains objects of type GeSectionComponent
GeSectionComponent.java (an auto-generated Hibernate POJO), contains the
following field (with getter and setter):
private Boolean restrict
Sebastian Stein wrote:
Dave Newton <[EMAIL PROTECTED]> [051130 17:43]:
If I write in my jsp page the correct
string
is shown in the HTML output. So I'm sure that the value for sourceDate is
correctly handed over to the jsp page.
Is there a way to easily fix this?
The property in an html:text
Andreas Ernst wrote:
Error in lobbyUpdateHandler() - 411
after entering a room
listUsersInRoomHandler() - 411
Well, I did a lot of screaming and yelling, but I *finally* figured out
what was going on...
I was fianlly able to replicate the issue, but it only came up with a
certain combinati
Gaet, ActionMessage doesn't support doing that lookup for you
automatically, but you can achieve what you want fairly easily:
Locale locale = request.getLocale();
String arg = getResources(request).getMessage("label.name");
errors.add(ActionMessages.GLOBAL_MESSAGE,
new ActionMessage("e
Thomas Darimont wrote:
The jar is made available to both the applications:
WebApplication1 - WEB-INF/lib/dbconnection.jar
WebApplication2 - WEB-INF/lib/dbconnection.jar
Tomcat is started:
WebApplication1 servlet init() is called , which inturn makes a call to the
Initialise turbine
WebApplicatio
Not true, primitive types should work fine, though using String is
generally preferred so invalid inputs can be redisplayed.
As to why the form bean isn't being instantiated for the OP, I don't
know what might be going wrong there. Are there any errors in the logs?
L.
James Harig wrote:
Hi
draegoon Z wrote:
I have an application that has a popup displaying all errors on a page.
After the popup is closed I need a way to get each error for the
individual properties.
will not work because I'm inside
another tag
that won't allow it. I need a way to get the error string for a pr
Kanuri, Chand wrote:
Hi all,
in my struts web app there are 3 pages and there is an option to amend
details in the last page(which is a results page).
when clicked on amend details it takes to the first page to amend details.
there is a drop down list in the first page which is pointing to the f
Michele Sferlazza wrote:
My DynaValidator returns with wrong character in the case of an error.
The form fields display the wrong character.
I need the German character set (UTF-8). Someone can help me?
There's a number of things that could be causing problems here. Here's a
checklist:
- mak
Laurent Fallet wrote:
Hello everybody,
I'm using Struts with delight, even if I have a small problem : I'm
trying to format a number in a tag.
I know it is possible in tag with format or formatkey
attribute. But after a failed validation, my initial number (32 for
example) come back as "32.0
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Have a table as below -- will be using displaytag for this.
Hrs
Loans 3
deposit5
For this I created a DynaValidatorForm with
loans, deposits as it's form properties.
type="org.apache.struts.validator.DynaValidatorForm" dynamic="true">
Matt Morton on 30/11/05 15:00, wrote:
I have always wrestled with the DTO question. I guess I haven't seen the
need for it while using Spring and Hibernate. I have also created objects
that are specific to the view object (like a set of menu links) that is
being created dynamically and then pop
Per Jørgen Walstrøm on 30/11/05 17:09, wrote:
hello, I have the following code in my jsp:
my Collection geSectionComponents contains objects of type
GeSectionComponent
GeSectionComponent.java (an auto-generated Hibernate POJO), contains
the following field (with getter and setter): private
- Original Message -
From: Michael Jouravlev
To: Struts Users Mailing List
Sent: Wednesday, November 30, 2005 12:41 AM
Subject: Re: paging in struts
On 11/29/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> Michael Jouravlev on 29/11/05 16:54, wrote:
> > Both Struts Dialogs
That pretty well exactly matches what I see, so I'm quite sure that's
exactly the problem.
I just modified the app to not need the SessionListener, so I think it's a
moot issue not. I'm getting ready to deploy onto the Resin server to see
for sure.
Thanks for pointing this out though, it pretty
In a previous email it was mentioned that Resin threw an error when
logging out, however, tomcat didn't. I did a quick lookup at caucho
and found
http://www.caucho.com/support/resin-interest/0207/0332.html
my guess is that Tomcat wrote a workaround for this behavior, but
Resin sticks to the cont
Using the Spring ContextLoaderPlugin where Spring proxies the Struts
dispatcher, also handles this issue.
http://static.springframework.org/spring/docs/1.2.x/reference/webintegration.html#struts-contextloaderplugin
Matt
On 11/30/05, Jadeler <[EMAIL PROTECTED]> wrote:
>
> Hi Tom,
>
> This is a
Tom
Basically the initialization occurs in the DAO and then passes back a list
of the requested objects. I try to limit what dom objects I am sending back
so i only have to initialize a couple of branches occasionally.
I have thought about having a layer that is specific to the view where the
ob
Hi Michael,
there deffinitely is an insterest :) I like your new IPU [ ;) ]
approach!
Well, the interesting thing for me is, if there's some "take it back to
the parent action" approach in your new technique.
For example I'm in:
http://www.myshop.com/showProductGroup.do&groupId=10
Hi Tom,
This is actually a common problem and a pattern called Open Session in View
was used to solve that specific problem. Because you are also using Spring
with Hibernate, you can check out:
http://www.springframework.org/docs/api/org/springframework/orm/hibernate/support/OpenSessio
> Hi Gary,
>
> I am *trying* to write some documentations right now for Clay for my
> corporation but I am going to submit it back to the community so you
> can use it and change it as you want.
>
> So basically, I am trying first to describe the issues Clay is solving
> before describing how it
hello,
I have the following code in my jsp:
my Collection geSectionComponents contains objects of type GeSectionComponent
GeSectionComponent.java (an auto-generated Hibernate POJO), contains the
following field (with getter and setter):
private Boolean restrictive;
How do I go about to ma
Dave Newton <[EMAIL PROTECTED]> [051130 17:43]:
> >If I write in my jsp page the correct
> >string
> >is shown in the HTML output. So I'm sure that the value for sourceDate is
> >correctly handed over to the jsp page.
> >
> >Is there a way to easily fix this?
>
> The property in an html:text tag
why don't simply use 'struts-layout' taglib?
Gaet'
- Original Message -
From: Michael Jouravlev
To: Struts Users Mailing List
Sent: Wednesday, November 30, 2005 12:41 AM
Subject: Re: paging in struts
On 11/29/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> Michael Jouravl
Gaet <[EMAIL PROTECTED]> [051130 17:39]:
> Please send your code of tag
I think is a tag defined by struts-html.tld using tag class
org.apache.struts.taglib.html.TextTag. By the way, according to
struts-config.xml, I'm using Struts version 1.1.
Sebastian
--
Sebastian Stein wrote:
If I write in my jsp page the correct string
is shown in the HTML output. So I'm sure that the value for sourceDate is
correctly handed over to the jsp page.
Is there a way to easily fix this?
The property in an html:text tag is expecting a sourceDate property in
wha
Please send your code of tag
But if you specify 'sourceDate' in the name that means
that you will look in the bean sourceDate and not that you will display its
value...don't know if you see the difference...send more lines of
code
Cordialement,
- Original Message -
From:
Hi,
I'm still in the process of learning struts... but I have a HTML form with
an input field:
...
This string sourceDate is set in advance in a java class (extending Action):
sourceDate="2005/10/14";
request.setAttribute("sourceDate", sourceDate);
If I write in my jsp page the correct str
Thanks Martin,
But I want to prepare the error message in the action tag because after, in my
JSP, I loop over my errors with tag...
I don't know if I'm clear, but if I write the following code :
errors.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("error.field.mandatory","label.name")
Hi Marco,
I guess, I'll go with the DTO approach if I'll get no further input.
Will BeanUtils.copyProperties also work on nested collections, though?
When you encounter a LazyInitializationException, it means that you
access a collection of an object that is no longer connected to a
Hibernat
Hello,
Ah now I see... forgot to mention that I m not sure that BeanUtils
will work if the property is null..
Regards
marco
-Original Message-
From: Tom Ziemer [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 15:39
To: Struts Users Mailing List
Subject: Re: slight
Hello,
You invoke BeanUtils.copyProperties on two objects, it will copy
Only properties that are the same between two objects..
As I said, could you handle your lazyexception by simply building another
collection out of the collection returned by hibernate?
Btw, sorry for my ignorance abo
Hi Borislav,
yes, this is actually one big part of my problem: sometimes I'll need
collections A and B of an object and sometimes no collections at all or
different collections.
How does your business layer represent this? Do you have one method in
which you specify the attributes that are n
Bonjour gaet-
the current implementation supports passing in parameters to the
bean:message tag at runtime e.g.
which will produce
The field 'Firstname' is mandatory
HTH,
M-
- Original Message -
From: "Gaet" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, Nove
Tom Ziemer wrote:
Hi Borislav,
unfortunately I cannot do this, because I have a rich client and a
(struts-based) web frontend. Consequently, my business layer must load
and initialize all dom objects that are requested, because I cannot
have an open session on my rich client that is using we
Hi,
@Matt:
thanks for your elaborate answer. My setup is a lot like yours: Spring
manages the business objects and the DAOs. My problem is this:
Struts->Business layer->HibernateDAO->Database will return a hibernate
proxy of my dom object. I have to load all objects lazily, because our
db ha
Marco Mistroni wrote:
In my case I chooseed to have a common interface for DTO & domain, and I am
just using BeanUtils to copy Properties between the two (so I save the
hardcoded method copy)
I use in most cases a mapped form i.e. a form with a map and use as well
BeanUtils to copy the value
Borislav Sabev wrote:
Tom Ziemer wrote:
Hi,
I have got a little problem with Hibernate - well actually it is only
partially related to it:
My app uses Spring + Hibernate (lazy loading), but should I return
the value beans (dom) from Hibernate to my Struts actions? If I do
this, I'd have
Hi Borislav,
unfortunately I cannot do this, because I have a rich client and a
(struts-based) web frontend. Consequently, my business layer must load
and initialize all dom objects that are requested, because I cannot have
an open session on my rich client that is using web services to
commu
Hi Gary,
I am *trying* to write some documentations right now for Clay for my
corporation but I am going to submit it back to the community so you
can use it and change it as you want.
So basically, I am trying first to describe the issues Clay is solving
before describing how it works.
I come wi
Tom Ziemer wrote:
Hi,
I have got a little problem with Hibernate - well actually it is only
partially related to it:
My app uses Spring + Hibernate (lazy loading), but should I return the
value beans (dom) from Hibernate to my Struts actions? If I do this,
I'd have to deal with LazyInitial
Hello,
I agree with mostly of what you said...
And add a little thing...
If your domain objects & DTO implements a common interface, if your domain
object changes you'd need to change its interface, so you will be forced
To change also the DTO... I don't think you can get away with it
Unle
> Hi
>
> I got it working (I was using faces as suffix instead og xml) - Looks very
> promising.
>
Cool, please keep us informed of your progress. I think a Clay/Facelets
comparison would be very helpful. It could also give us some ideas of how we
can improve Clay besides helping folks choo
> Hi
>
> I tried your recipe, but it does not seem to work. It really excited me with
> the
> parameter substitution, which looks a lot like what I have been testing with
> Facelets. I am looking to replace Tiles with either Clay of Facelets, so it
> would be nice to verify that the Clay way o
Hi Tom
In our app we are using pattern where Struts calls a method from what I call
a service layer object. Then the service layer calls the dao interface.
Then there is an implementation of the dao for Hibernate. So the call stack
is something like:
Struts Action -> ServiceManager.getSomeObjec
On Wed, November 30, 2005 1:31 am, Andreas Ernst said:
> Error in lobbyUpdateHandler() - 411
> after entering a room
> listUsersInRoomHandler() - 411
Hmm, that's weird... I'm not sure if that's an HTTP error or something
from XMLHttpRequest... if it's HTTP, that's a server rejection because no
Con
> Hi
>
> In my Clay test app, I have a index.jsp that does a page="./page1.xml"/>. If I access this page, it gives me a 404, stating that
> it
> can not find page1.jsp. I also have a index.html that does a HTTP-EQUIV="Refresh" CONTENT="0;URL=./page1.xml">. If I access this page, it
> loads pa
Hi,
well, I can use DTO but AFAIK, it would be a bad design decision to use
them, because it would basically mean that I have to copy all my
DOM-objects. So if there changes in the DOM, the DTOs would have to be
manually updated. Apart from that, it would mean:
Hibernate -> DAO -> Business
Hello,
Any reason of why you can't use DTOs?
Your domain objects and dto could implement the same interface..
HTH
marco
-Original Message-
From: Tom Ziemer [mailto:[EMAIL PROTECTED]
Sent: 30 November 2005 14:26
To: Struts Users Mailing List
Subject: slightly [OT] Hibe
Nobody knows?
Thanks for your time...
- Original Message -
From: Gaet
To: Mailing List Struts
Sent: Wednesday, November 30, 2005 12:14 PM
Subject: Parameter of ActionMessage...
Hi the list!
Is it possible to give a key of the ressources.properties in parameter of an
ActionMessage?
Ex
Hi,
I have got a little problem with Hibernate - well actually it is only
partially related to it:
My app uses Spring + Hibernate (lazy loading), but should I return the
value beans (dom) from Hibernate to my Struts actions? If I do this, I'd
have to deal with LazyInitializationExceptions fo
Upgrade to Validator 1.2.0 there are some features that make this easier.
In versions of validator before 1.2.0, you would have to define all forms in
each locale. Now locales inherit from their "parent" locale - what I mean by
that is for example the "en_US" locale formset would inherit from a "e
Hi Daniel,
If your struts plug-in class implements org.apache.struts.action.PlugIn
interface then you can get the ServletContext in the init method like this...
public void init (ActionServlet servlet, ModuleConfig moduleconfig) {
ServletContext servletContext = servlet.getServletCont
Hi,
I have at least one validation that is different in each country. Does
it mean that I have to define a formset for each language and Country
combination.
If I have to do this way its size and manageability is my concern. Is
there a better way?
__
Thanks
Ashwani Kalra
Ext:34
> The jar is made available to both the applications:
> WebApplication1 - WEB-INF/lib/dbconnection.jar
> WebApplication2 - WEB-INF/lib/dbconnection.jar
>
> Tomcat is started:
> WebApplication1 servlet init() is called , which inturn makes a call to the
> Initialise turbine
> WebApplication2 servle
Premise:
2 web applications deployed in the same Tomcat container
Each application has a different application context
Both the applications share the same database
For making DB connections...
All database connection related classes - bundled into a jar -
dbconnection.jar
Database connection pool
>From my viewpoint, the short story is this: If you look at the Struts
Roadmap, and you look at WebWork 2.x, you'll see that WebWork has
already done most of the things Struts wants to do. Why re-invent the
wheel? Essentially, this is a proposal to put WebWorks wheels on the
Struts axle.
-Ted.
-
Hi
In my Clay test app, I have a index.jsp that does a . If I access this page, it gives me a 404, stating that it
can not find page1.jsp. I also have a index.html that does a . If I access this page, it
loads page1.xml as expected.
Is there any reason as to why Shale/Clay behaves like this ? D
Hi the list!
Is it possible to give a key of the ressources.properties in parameter of an
ActionMessage?
Example :
--
# In Struts Action file
errors.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("error.field.mandatory","label.name"));
# In ressources.properties file
erro
Hi
I got it working (I was using faces as suffix instead og xml) - Looks very
promising.
Hermod
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 30, 2005 10:53 AM
To: user@struts.apache.org
Subject: RE: [shale] Clay templating
Hi
I tried
Hi
I tried your recipe, but it does not seem to work. It really excited me with
the parameter substitution, which looks a lot like what I have been testing
with Facelets. I am looking to replace Tiles with either Clay of Facelets, so
it would be nice to verify that the Clay way of doing templat
73 matches
Mail list logo