Is there any kind of support or even a workaround to using regex in Struts 1
tags?
For example, if I have a Form variable called 'description', I would like to
use a logic tag in a jsp to see if the the value of that form variable starts
with '001_'.
Thanks.. Andy
On Sun, Feb 24, 2008 at 3:41 AM, Antonio Petrelli
[EMAIL PROTECTED] wrote:
2008/2/23, Ealden Escañan [EMAIL PROTECTED]:
Is struts2-tiles-plugin compatible with Struts-Tiles?
No. Use Tiles 2.
At Tiles site you can find a migration guide:
http://tiles.apache.org/migration/index.html
Hello all,
I have 3 text fields say A, B and C out of which A is a master text field
whose value is distributed between remaining text fields.
My requirement is if i give value say 20 to field say A then an action is
called which will distribute the values between other text fields. How can i
You can use the JSTL function library to do fn:startsWith()
-Rod
-Original Message-
From: Andy [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 24, 2008 03:38
To: user@struts.apache.org
Subject: Regex in Struts 1 tags?
Is there any kind of support or even a workaround to using regex in
1)
its possible the link does'nt have that returned object mapped
you may want to consider doing a quick test of the object beforehand with
linkObject.containsValue(ReturnedObject)
http://java.sun.com/javase/6/docs/api/java/util/LinkedHashMap.html#containsV
alue(java.lang.Object)
2)
it is quite
Hi Kedar,
perhaps you could expand upon your statement. What I understand is that the
conversion involves the creation of the object graph based on the incoming HTTP
param-value pair (e.g. instrument.market.id=1) as follows:
(1) id = new Long(1)
(2) market = new Market()
(3) market.setId(id)
Is it worth building a mechanism for conversation scope, compared to the
complexity it introduces? I really dislike Spring Webflow with its conversation
scope, stringent encapsulation and storage of massive amounts of data in various
maps that locks away everything out of sight and makes it all
--- Martin Gainty [EMAIL PROTECTED] wrote:
2) it is quite possible you have *may* a stale TO
http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html
have you considered using a factory with Timestamps/Versions to either
quiesce the old TOs or somehow update old contents
hi...
i found the answer for prob
actually,,i got confused while loading data from database to html:select /
tag
i.e,
i had a table in my database which has 'id' and 'value'...
in select tag the option should be my value and while submitting it should
send the 'id' to my server.
in this case,
Looking into using Hibernate's 2nd level cache. Any tips or pitfalls?
Thanks!
On Sun, Feb 24, 2008 at 2:20 PM, Jeromy Evans
[EMAIL PROTECTED] wrote:
Cheng Wei Lee wrote:
What do you'll think of writing a stateful session bean to hold these
data
and make it gets the data from database
In my freemarker templates I can use struts-tags but struts-dojo-tags like
sx.a are ignored. am I missing something?
--
View this message in context:
http://www.nabble.com/struts-dojo-tags-doesn%27t-work-in-freemarker-templates-tp15666335p15666335.html
Sent from the Struts - User mailing list
--- aj2r [EMAIL PROTECTED] wrote:
In my freemarker templates I can use struts-tags but struts-dojo-tags like
sx.a are ignored. am I missing something?
Did you include/define the taglib library as per [1]?
Dave
[1] http://struts.apache.org/2.x/docs/freemarker.html
Time ago I noticed that javascript were removed in the pages linked by
sx:div ...
Parameters executeScripts and separateScripts don't solve the problem. Any
idea?
--
View this message in context:
http://www.nabble.com/No-javascript-in-sx%3Adiv-tp15666390p15666390.html
Sent from the Struts -
And in the version 1.x?
2008/1/3, xianwinwin [EMAIL PROTECTED]:
YES! exactly what I needed. thanks!!!
Alberto A. Flores wrote:
one way I did that was by using the non-validating method point to a
method (in the Action class) to have the following annotation
@SkipValidation
I am having trouble addressing individual properties with radio? To be more
precise, I have the following scenario:
s:radio list=#attr.currQuestion.value.answers/s:radio
Where answers is a Map of Long,Answer pairs. I want to set listValue to a
property of the Answer, but I can't work out the
newton.dave wrote:
--- aj2r [EMAIL PROTECTED] wrote:
In my freemarker templates I can use struts-tags but struts-dojo-tags
like
sx.a are ignored. am I missing something?
Did you include/define the taglib library as per [1]?
Dave
[1]
After inspecting the freemarker template for radio, I discovered what the
tag would do if you did not specify a listValue. It seems the handler is
pushing the current element to the stack in the iterator, so specifying
s:radio list=#attr.currQuestion.value.answers listValue=top.value.name
/
--- aj2r [EMAIL PROTECTED] wrote:
newton.dave wrote:
--- aj2r [EMAIL PROTECTED] wrote:
In my freemarker templates I can use struts-tags but struts-dojo-tags
like
sx.a are ignored. am I missing something?
Did you include/define the taglib library as per [1]?
Dave
[1]
newton.dave wrote:
Are you using S2.1 with the Dojo plugin?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yes, I'm using struts-2.1.0 with dojo-plugin
I'm definitely going to have to watch the 'ranting'. (By the way,
Adam, you have to stop grappling with SWF when you get married.)
It seems to me that 'ModelDriven' is not much use without
ConversationScope, because you have to manually manage the model/session
interaction in all but the
aj2r wrote:
Time ago I noticed that javascript were removed in the pages linked by
sx:div ...
Parameters executeScripts and separateScripts don't solve the problem. Any
idea?
It's possible that it's removed but still executed. Dojo is responsible
for parsing the html, extracting the
Dibesh Shakya wrote:
Hello all,
I have 3 text fields say A, B and C out of which A is a master text field
whose value is distributed between remaining text fields.
My requirement is if i give value say 20 to field say A then an action is
called which will distribute the values between other text
I hadn't noticed this was already part of the 2.1.x core and default stack:
http://struts.apache.org/2.x/docs/scoped-model-driven-interceptor.html.
I haven't checked the code but it reads the same
Ray Clough wrote:
I'm definitely going to have to watch the 'ranting'. (By the way,
Adam, you
Do you mean to catch the response from server using javascript and update
the textfields using javascript?
The solution seems to be appropriate under circumstances when we have few
fixed number of textfields. How about the condition when those text fields
are the part of the row of a table and we
Yes, I'd still use the same technique.
If you don't need to use ajax, then just do a normal submit and render a
new page doing all the processing on the server side.
If you do want to use ajax though, it's not much effort for the
javascript callback to include a for loop that updates
25 matches
Mail list logo