on the Map provided by the setParameter() IoC call.
2) Is this the same functionality as the the Struts ActionMapping?
Thanks in advance
Harring Figueiredo
.
Harring
On 3/14/07, Lim Hock-Chai [EMAIL PROTECTED] wrote:
is there a way to set a property of a java form bean from
struts-config.xml?
I try to use set-property and it is not working.
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
The way I solve this is by returning the value you want and setting up the
action chain on struts.xml file:
Example:
class MyAction 1 .. {
public String execute(){
if(foo)
return foo;
else
return bar;
}
Then on the Strutus XML file:
version?I think I can deploy my
struts application
easier if so.
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
We never become truly spiritual by sitting down and wishing to become so.
You
);
%
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
We never become truly spiritual by sitting down and wishing
Ted,
Thank you so much for sending this out. I was wandering what was the
difference between namespace and package. I guess this explain well.
Thanks !
hff
On 3/23/07, Ted Husted [EMAIL PROTECTED] wrote:
Many Struts applications contain hundreds of pages. To help organize
large
Folks:
I have a form that is rendered by calling an action from a get or a put.
In edit mode, the fields are pre-populated from the POJO (param to get
the POJO is passed on the URL GET).
In create mode, the fields are, of course, empty.
The design issue I am having has to do with the
Joey,
Thank you so much for you input. I will take a look again at the showcase
application code and see the detail of it. I was not aware that we could
setup interceptors like that -- Your input on this is greatly appreciated.
Regards,
Harring Figueiredo
On 4/5/07, joey [EMAIL PROTECTED
();
return INPUT ; /* or ERROR */ and display the same .jsp on the struts
.xml file
}
}
Please let me know if you still need more clarification/ help.
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
We never become truly spiritual by sitting down and wishing to become
Folks,
I read http://struts.apache.org/2.x/docs/text.html and could not make sense
on how to display currency format with s:tags
I have an iterator, during the iteration, I would like to set the currency
with the correct format.
If I use:
s:iterator ...
s:property value=amount
/s:iterator
!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
We never become truly
not work.
s:iterator ...
s:texts:param name=amount value=amount//s:text
/s:iterator
What am I doing wrong?
Thank you.
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
We never become truly spiritual by sitting down and wishing to become so
Newton [EMAIL PROTECTED] wrote:
--- Harring Figueiredo [EMAIL PROTECTED] wrote:
How can I format a number with the currency format?
I have taken a look at
http://struts.apache.org/2.x/docs/text.html and
still cannot figure out the correct syntax.
Is
s:text name=format.money
s:param name=value
Folks:
It is clear that I MUST be doing something wrong, but I have tried all the
options with the s:text to format a number.
Here is what I have tried:
lis:text name=currencys:param name=money
value=%{#session.Account.balance}//s:text/li
lis:text name=format.moneys:param name=money
/mail
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
We never become
Hi Laurie,
Thanks for the response. I tried what you suggested, and actually did not
get a value back (empty). Where should I set the resource string? (I
thought it was _smart_ enough to get from the Locale.
Thank you.
On 4/11/07, Laurie Harper [EMAIL PROTECTED] wrote:
Harring Figueiredo
},
at least that is what it says on the documentation page.
I wish someone from the Struts team would give a better example on this.
Thank you to all that have replied and will still reply. Solution NOT yet
found.
Harring
On 4/11/07, Harring Figueiredo [EMAIL PROTECTED] wrote:
Hi Laurie
the brackets.
Thank you ALL again for your patience, replies, and help!
hf
On 4/11/07, Dave Newton [EMAIL PROTECTED] wrote:
--- Harring Figueiredo [EMAIL PROTECTED] wrote:
[...]
Dude, just type it in.
In my properties file:
format.money={0,number,currency}
On my JSP:
s:text name=format.money
Folks,
How do I call the isEmpty() method (or any other non-bean conforming method)
inside a s:if tag?
I can test for null as:
s:if test={collection == null }
But, I also need to test for empty collection.
Thank you in advance.
hf
Dave,
Thank for the reply.
I thought that this would call getIsEmpty(), from other examples I have
seen.
Let me try it again.
hf
On 4/11/07, Dave Newton [EMAIL PROTECTED] wrote:
--- Harring Figueiredo [EMAIL PROTECTED] wrote:
s:if test={collection == null }
s:if test
]
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided.
: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you
,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish it
unaided.
]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Sincerely,
Harring Figueiredo
Sr. Software Engineer
Email: [EMAIL PROTECTED]
Telephone: 941-256-0600
We never become truly spiritual by sitting down and wishing to become so.
You must undertake something so great that you cannot accomplish
public Object getAttribute(String key){
return attributes.get(key);
}
s:select list=%{getAttribute('user.status.options')} ...
Strange that I couldn't access the map values directly...
Thanx guys.
On Thu, 2007-04-19 at 09:33 -0400, Harring Figueiredo wrote:
Try using the session notation
Hi Joseph,
Check the expanded directory of you web application (in Tomcat, it is under
$CATALINA_HOME/webapps).
See if the war file was indeed fully expanded (unzipped). This could be the
cause of the problem.
If you are using Windows, Tomcat has trouble re-deplying due to file
locking. This
You can do this by declaring the method that will handle the request.
My suggestion on this is that you should see if you REALLY need only one
action to handle everything. This might make maintenance more difficult and
you might have to mingle member variable that deal with different requests
and
I am not sure if the DTD declares that (I did not take a look at it), but
basically the way to pass param on a HTML URL is the way it was generated -
Every single HTTP server will not parse the parameters correctly if it is in
the form that you want. If you have some special parser or that is
I was supposed to test the genereated HTML from both. (Laziness got the best
of me).
guess
Here it goes, without testing. I think that the HTML generated is slightly
different so that you
may apply different CSS style sheets to it.
/guess
harringf
On 4/24/07, Musachy Barroso [EMAIL PROTECTED]
Oh Boy,
I am glad to see that I was not the only one to have this problem :-)
Dave,
Here is how I got it to work:
Edit the struts.properties with the following entry
struts.custom.i18n.resources=translations
Edit the properties file translations.properties with the entry
They can the different and serve different purposes.
The name attribute that you have there means that the value will be picked
from
yourAction.getUser().getZip().getCity();
The key will be used to lookup the resources files using the literal string
'user.zip.city', of course.
Hope this
On the page itself, I have an IFrame with the div=RightPaneWindow;
however, the updated div is the div in which the form is in.
Any idea?
Thank you in advance,
Harring Figueiredo
like that, and see what happens. This is a
dumb
question, but are you using the same id for more than one div?
musachy
On 4/24/07, Harring Figueiredo [EMAIL PROTECTED] wrote:
Folks,
I have a form with a submit button as follows
s:form action=member_login.action theme=ajax validate=true
, Harring Figueiredo [EMAIL PROTECTED] wrote:
Musachy,
Thanks for the reply.
I am using only one div with the id.
I now tried something else while waiting for the reply:
s:set nameframe value=LoginWindow/
s:if test=hasActionErrors
s:set nameframe value=RightPaneWindow/
/s:if
I then tried
].document.getElementById(...).
You can use the notifyTopics attribute and do it yourself inside the
topic.
regards
musachy
On 4/24/07, Harring Figueiredo [EMAIL PROTECTED] wrote:
This is the generated code:
td colspan=2div align=rightinput type=submit
dojoType=struts:Bind event=onclick value
Did anyone get this error when moving from 2.0.5 to 2.0.6 ?
Unable to load bean: type: class:com.opensymphony.xwork2.ObjectFactory -
bean - jar:file:/home/harringf/install/jakarta-tomcat-5.0.28
/webapps/bh-fl-wp/WEB-INF/lib/struts2-
core-2.0.6.jar!/struts-default.xml:8:69
My stratus-default xml
By th eway he describes the whole thing, I think he meant it literaly, even
though he should have used the adjective instead (sadistic). It is indeed
very funny!
hff
On 4/27/07, Dave Newton [EMAIL PROTECTED] wrote:
--- maestro [EMAIL PROTECTED] wrote:
The sadist part to it, its the industry
I never thought of it that way.. but I believe it to be true...
I think that they change so that it will break previous instalation.
Sometimes OS can be a pain. :-)
Hf
On 4/27/07, Wendy Smoak [EMAIL PROTECTED] wrote:
On 4/27/07, Harring Figueiredo [EMAIL PROTECTED] wrote:
By th eway he
39 matches
Mail list logo