Just as an experiment, you might try renaming the method as a true JavaBean
method. Maybe OGNL got more strict on it's interpretation of the spec.
(*Chris*)
On Mon, Oct 6, 2008 at 11:21 PM, <[EMAIL PROTECTED]> wrote:
> Hi,
> I mean that the value is null now that I use ognl 2.7.2. When using 2
Hi all,
I've written an article on Struts 2 validation.
http://www.javaworld.com/javaworld/jw-10-2008/jw-10-struts2validation.html
Any comments are welcome, especially on the 'hack' proposed
there in 'advanced' section.
W/o that hack S2 AJAX validation would require me to
create a separate freemar
Hi...
I think I already posted that code snippet to the list, but here again just
for you! ;)
The code expands all nodes in my tree, and preselects a node.
After all is done, it publishes a topic to notify a sx:div to refresh...
Possibly not the best solution, but working fine for me!
dojo.event
Hi Jan,
Thanks for your reply, i am using struts 2.1.2, and for testing
i added a simple code like this...
dojo.event.topic.subscribe("tree/treeCreate", function treeCreated(node) {
alert("Tree Loaded");
});
this is not fired after page is loaded. if possible can you give you
Hi,
there is also problem with:
and
it should be something like
Read more about it here:
http://struts.apache.org/2.x/docs/tag-reference.html
Best greetings,
Paweł Wielgus.
2008/10/7 Sébastien Domergue <[EMAIL PROTECTED]>:
> Hi,
>
> in your test condition, struts doesn't understand that at
The "var" attribute is Struts 2.1, use "id" if you're using Struts 2.0.
Dave
--- On Tue, 10/7/08, Hardik Shah <[EMAIL PROTECTED]> wrote:
> when i write
>
> my all values are note printed
>
> it means each record has attrMatrixValue vector
> but in it not each has value
>
> so i have to apply
Use validation
Sulabha Walavalkar wrote:
Hi,
I have a requirement as - on click of submit button call should be made to
database to check if any batch processes are running or not.
If any batch process is running then a message should be displayed on the
same screen else the data should be
--- On Tue, 10/7/08, Sulabha Walavalkar wrote:
> I have a requirement as - on click of submit button call
> should be made to database to check if any batch processes
> are running or not.
>
> If any batch process is running then a message should be
> displayed on the same screen else the data sh
Hi Pawel,
thank you for your reply. You mentioned: "But You can achieve the same by
adding ajax to this field" how can I achieve that?
Thank you!
Paweł Wielgus wrote:
>
> Hi xianwinwin,
> it's a firefox feature - remember entered form values or something like
> this,
> so yes it has nothing
Lukasz,
Thank you for your reply.
I tried adding the name="success" (or ActionSupport.SUCCESS) and I get
the same error. Here is the annotation now:
@Result(name="success", value = "", type = StreamResult.class, params =
{
"contentType",
"text/html",
"inputName",
"inputStream"
Hi,
you can create ajax action that will call your application and ask for
the last entered values for field myField.
But it would require to remember all entered values by users.
When you will have those values You can simply do something like google suggest.
I haven't done anything like that, so
Sorry I forgot to add this:
If I change the value="" to value="John", the error message changes to
this:
ERROR dispatcher.StreamResult - Can not find a java.io.InputStream with
the name [John] in the invocation stack. Check the name="inputName"> tag specified for this action.
It appears t
Sorry, basic question but my RegexFieldValidator isn't working quite as
I thought it would.
I just want to be able to specify a decimal point, so I escape the dot,
but the compiler complains. Could someone tell me how to specify
12345.67 as a regex for this?
^[0-9]{1,5}\.[0-9]{2}$ (does
Is your vector just a vector of value or is it an object vector with
attribute fields? With attribute fields you should use the if tag as
described before. In the other case, you have to use the var field of
that would create a variable to manipulate the value.
regards
Hardik Shah a écrit :
Sorry, ignore me. I needed to escape the slash as well, so my regex is
[0-9]{1,5}\\.[0-9]{2}
Works now :)
Richard Gundersen
Java Developer
Email: [EMAIL PROTECTED]
Phone: 01618302398
Fax: 01618342536
London Scottish Bank plc
24 Mount Street
Manchester
M2 3LS
-Original Message-
From:
Sorry, I've never heard of whitelisting of allowable characters as being a
"normal" approach.
I've developed many multi-language web applications, some with Struts (1 &
2) and some without.
Typically you have to watch for 2 things; 1) when re-displaying anything a
user has entered you need to en
Greg,
Thanks for the reply.
The common approach for mitigating XSS is to provide a blacklist of XSS
enabling characters, enables would include "<", ">", "%3f", etc. However,
these filters are easily bypassed by clever encoding constructs, so the
blacklist concept quickly fails and the site is o
Hi,
We have a measureList that looks the same and it works!
public SortedMap getMeasureList() {
// man = Ärenden som skall konfigureras manuellt
// uttagen = Ärenden som skall klarrapporteras efter manuell
konfigurering
measureList.put(1, "Ärenden som skall konfigureras
Hi
I have already been through the Tag Guide. However, there are examples which
use certain tag attributes which aren't explained in the documentation. Also,
tips on using ActionError and ActionMessage are absent.
Thanks & Regards
---Mickey Kumra___
-Original Message-
From: Mar
when i write
my all values are note printed
it means each record has attrMatrixValue vector
but in it not each has value
so i have to apply condition for the property of attrMatrixValue
help me,
and
gives as it has no such thing like var(using struts 2.0.11.2)
Sébastien Domergue wro
2008/10/7 928572663 <[EMAIL PROTECTED]>:
> Sorry I forgot to add this:
>
> If I change the value="" to value="John", the error message changes to
> this:
try value="inputName"
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To
Hi,
I have a requirement as - on click of submit button call should be made to
database to check if any batch processes are running or not.
If any batch process is running then a message should be displayed on the
same screen else the data should be displayed in new window.
Since I am usin
Hello.
Please any one tell me a solution to this problem? can we do this
in struts? if not suggest me another alternative to build tree control!! i
am kind of stuck with this tree... it is killing me...
On Tue, Oct 7, 2008 at 12:12 PM, Jukka Välimaa <[EMAIL PROTECTED]>wrote:
> I don't k
Hi,
in your test condition, struts doesn't understand that attrMatrixValue
is a property, you should write something like :
Using '%{' means that the expression have to be evaluated.
Regards
Sébastien
Hardik Shah a écrit :
hi
i have vector of vector and i can easily iterate using in
bet
hi
i have vector of vector and i can easily iterate using in
between
but the problem is that some of the element in vector of vector is null
like
[EMAIL PROTECTED] wrote:
We have a measureList that looks the same and it works!
It's not quite the same, since it's capitalization is correct.
public SortedMap getMeasureList() {
Chris Pratt wrote:
Just as an experiment, you might try renaming the method as a
true JavaBean method. May
I can see that approach may work for certain restrictive fields like their
postal code example but as you are finding it's pretty unworkable in
multi-language unicode applications. I've always had to deal with input
fields for notes, comments, descriptions etc. where there are no
restrictions and
The validation strategy you cite is well and good when the you *have* 'a
set of tightly constrained known good values.' It's not useful in the
general case.
Your concerns with respect to XSS should only present a problem if you
need to render untrusted HTML (such as is often the case with web-
Lukasz Lenart wrote:
2008/10/7 928572663 <[EMAIL PROTECTED]>:
Sorry I forgot to add this:
If I change the value="" to value="John", the error message changes to
this:
try value="inputName"
Based on the code in the original post, that should be value="inputStream".
L.
---
Hi All,
Sorry if i am asking a very basic question.
i need to transfer data from the user registration page to the java beans to
be used for inserting values in the data base.
i have created two seperate beans for this
1) for storing user address field and second is for storing user login
informa
Hello everybody,
I am changing the URL action mapping from a simple one (1)
"/" to a more complex
"//" (2) but when I am navigating the
web site, I got the following exception.
It is very peculiar since it works fine when the URL is simple (case 1).
Indeed, beside any possible missing reference (I
Hi,
maybe a little bit OT but maybe its struts related, don't know yet.
I've got two portlets written with struts2 2.0.11.2.
I've create a page and did both of them onto it.
Lets say Portlet 1 got "Step 1 and Step 2" and Portlet 2 too.
Pluto:
I click on the button to go to Step 2 of Portlet 1.
It's hard to say without seeing some code and configuration files. The
only difference I can think of is with the actualy deployment process
for each container. There are potentially several different
configuration files depending on the server you're deploying in. It's
a while since I've looked at
2008/10/7 Daniele Development-ML <[EMAIL PROTECTED]>:
> Hello everybody,
> I am changing the URL action mapping from a simple one (1)
> "/" to a more complex
> "//" (2) but when I am navigating the
> web site, I got the following exception.
I suppose that you are using Struts 1.
Are you using Stru
--- On Tue, 10/7/08, Daniele Development-ML wrote:
> I am changing the URL action mapping from a simple one (1)
> "/" to a more complex
> "//"
> (2) but when I am navigating the web site, I got the following
> exception.
>
> It is very peculiar since it works fine when the URL is
> simple (case 1
--- On Tue, 10/7/08, aum strut wrote:
> i need to transfer data from the user registration page to
> the java beans to be used for inserting values in the data base.
> i have created two seperate beans for this 1) for storing user
> address field and second is for storing user login information.
>
The segment of the Struts config is:
I'll give a look at Antonio's pointer too.
Thanks,
Dan
On Tue, Oct 7, 2008 at 6:27 PM, Dave Newton <[EMAIL PROTECTED]> wrote:
> --- On Tue, 10/7/08, Daniele Development-ML wrote:
> > I am changi
Awesome it's working now! Thanks to you both for your help.
For posterity's sake, here is the working code:
import java.io.InputStream;
import java.io.StringBufferInputStream;
import org.apache.struts2.config.Result;
import org.apache.struts2.dispatcher.StreamResult;
import com.opensymphon
hi all
there is a discussion of Spring in our mailing list, and we got that
because of spring security policy, there is a new hot topic, WebBeans
i dont know WebBean, but our fellow just migrate spring to WebBean
can we use Webbeans as S2 ioc?
thx
--
--
Frans Thamura
Meruvian
One Stop Java a
That’s an interesting approach you guys are proposing.
I did a quick proof of concept where I coded an Interceptor that uses the
Apache Commons StringEscapeUtils.escapeHtml function to update all incoming
parameter values. This seems to implement what you guys suggested.
What is your approa
I tried lot of examples at
http://struts.apache.org/2.1.2/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Donotloadtab2whenpageloads%2528itwillbeloadedwhenselected%2529
but nothing seems to work,
I know the above documentation is for struts 2.1 we are using struts 2.0.6
We have
Hey egetchell,
Don't know weather that's your name but any way.
I don't know this is the solution you are looking for
Now you need to map the validator,
Put a validators.xml in resources folder, same folder as str
Hi xianwinwin,
Pawel is correct, when you have a text field with name="Something" next
time you come to page that contains text field with same name then you can
double click it and get it.
I still did not get what you want to do, add the feature for not getting text
fields, or remove f
it is possible to show wait.jsp in s2.0.11 between from one action to another
execution process
(means show my wait.jsp when action is on process)
--
View this message in context:
http://www.nabble.com/wait-interceptor-tp19872439p19872439.html
Sent from the Struts - User mailing list archive at
Hi,
You were right. It was the capitalization that was wrong.
Actually I didn't understood the comment about javabean as in my eyes it was a
proper bean.
Your apology about null is taken!
I've seen problems in other places in our code that I need to investigate if it
is the same problem!
Thanks f
Hi Hardik,
http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html
Best greetings,
Paweł Wielgus.
2008/10/8 Hardik Shah <[EMAIL PROTECTED]>:
>
> it is possible to show wait.jsp in s2.0.11 between from one action to another
> execution process
> (means show my wait.jsp when action is o
46 matches
Mail list logo