I just check the source code, and it does not search on the root folder. That's
what caused the problem. So I move the package.property to a hierarchy common
to all my source code and it worked correclty. Thank you for your info.
Jose Luis
Sent via BlackBerry from T-Mobile
-Original Message
IIRC, LocalizedTextUtil looks for package according to the Class hierarchy.
What I mean is if your MyAction extends Struts' ActionSupport then after
looking a MyAction.properties and the package.properties in the same package
it will be looking for ActionSupport.properties and package.properties in
Yes, that's what I've done, I was just thinking that it was a common
operation and maybe there was a util built in to the frameworks I'm
already using.
On Wed, Jan 19, 2011 at 3:16 PM, Alfredo Manuel Osorio Martinez
wrote:
> What about iterating the map and put each attribute in the HttpRequest.
Hmm,I think that is a clean approach because as far as my service is
concerned is just to update or save. And somehow the referenced objects
are already set because of the prepare method. But I would like to know
if that is true or is there another better approach to do it.
Alfredo Osorio
---
On Thu, Jan 20, 2011 at 12:10 PM, mre...@4sxs.de wrote:
> And in my bean I have the variable " private String[] answers;" with getter
> and setters...
>
You'd probably want a map, no?
> But it is not working and the variable " quest.questionId" is not
> replaced by the value.
>
Try with a
On Thu, Jan 20, 2011 at 10:04 AM, Alfredo Manuel Osorio Martinez wrote:
> Any thoughts on this? Please...
>
I had some, what did you think of them?
Dave
Thank you for your answer. Do you mean something like this:
And in my bean I have the variable " private String[] answers;" with getter and
setters...
But it is not working and the variable " quest.questionId" is not replaced
by the value.
Other ideas?
Thanks
On Thu, Jan 20, 2011 at 11:08 AM, mre...@4sxs.de wrote:
>
>
?
Dave
my bad, i misunderstood what you meant. Ya, I've tried with the namespace.
it still goes to localhost:8080
I've currently written up a new class which extends
ServletActionRedirectResult, and there, I'm setting the namespace with the
hard url (which is being read from a properties file). So I prea
Hello,
I used the normal and tag and built the form by hand. But on
this way, I lost all the save mechanisms from struts (if the page is reloaded
all the dropdown value are lost).
I didn't find a working solution...
So I tried again with the struts tag, and I did:
Any thoughts on this? Please...
Alfredo Osorio
-Mensaje original-
De: Alfredo Manuel Osorio Martinez
Enviado el: Tuesday, January 18, 2011 10:15 AM
Para: Struts Users Mailing List
Asunto: Create/Update with nested domain objects
Hello,
I have seen examples that show how to do CRUD with
Hard url? I didn't suggest you to hard code url inside namespace. You
should use namespace defined in your package declaration.
home.jsp
loadLogin
YOUR_NAMESPACE
true
true
login.jsp
2011/1/20 Harsh Grover :
> yup, setting a hard url in namespace works, however, I have multiple
> deve
Anyone has any idea how to avoid this?.
Thanks
JL
2011/1/17 JOSE L MARTINEZ-AVIAL
> Hi,
> I'm using Struts 2.1.8.1, and I've found an odd behaviour in the way
> LocalizedTextUtil looks for a text. The situation is a follows:
>
> package.properties
> com/
> acme/
> package.prop
yup, setting a hard url in namespace works, however, I have multiple
development & test instances, each having their own unique url and I would
want to avoid having to change the url in every build. I'm using maven &
svn, and right now, i download the code from svn, I can run it without
making any
Location is for the simply redirect result.
Did you try instead to set namespace parameter for redirectAction result?
2011/1/20 Mohamed SIDI :
> I think your configuration miss some parameters like "location"
>
> you may have more details in this page
> http://struts.apache.org/2.0.14/struts2-core
I think your configuration miss some parameters like "location"
you may have more details in this page
http://struts.apache.org/2.0.14/struts2-core/apidocs/org/apache/struts2/dispatcher/ServletRedirectResult.html#prependServletContext
thank
2011/1/20 Harsh Grover
> small correction, the reques
16 matches
Mail list logo