Hi,
Did you try
@RequiredFieldValidator(type = ValidatorType.SIMPLE, fieldName =
"customfield", message = "You must enter a value for field.")
?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROT
Hi all,
I wanted to do validations for list of items
I have multiple contact details.(The number of contact details is dynamic).
If user create three contact details
fisrt name ,last name ,telephone
I don't want to allow the user to enter special characters in first name and
last na
I'm using Struts2 with Velocity. (2.0.11.1 & Velocity 1.5 & Tools 1.4)
I keep getting this error. It's obviously a dependency problem. (2.0.11.1
seems to be needed Velocity 1.4)
I've tried with Struts2 2.1.2 with depends on Velocity 1.5, but the problem
persist.
When I look at the code, it says Ch
Hi all
I'm here to thank you for all given support these days.
As I said before, I was making a final project to get formed at university.
My application (based on struts 2) was very accepted, very praised...
So now, I have just do thank all people from apache by making this great
framework and al
Hey Dave --
I understand your confusion now! My home machine 2.1.2 is not the same as
my work machine 2.1.2 (don't ask) I have the jar open and now see what I
expected to find originally! Let me look at *this* a bit and ask the
questions I had to begin with... maybe.
P.S. sitting on the back p
I was wondering how to force the user to input a Date field? consider the a
class of Employee (dob, name).
and I wish to insert new data.
I managed to force the date by the code below, but couldn't do that for the
date.
example
Class Test {
private Employee empl;
@Validations(
I've been looking for good URL management of web resources in the
struts2-freemarker integration, but that doesn't seem to exist. I'm aware of
the struts2 url tag, which is good for referencing and linking actions, but
I'd like to define, for example, a "resource" directory where I could do:
< im
Thanks Dave!
PreResultListener is the answer.
2008/6/18, Dave Newton <[EMAIL PROTECTED]>:
> The result has already been rendered after invoke() has been called.
>
> PreResultListener is where to look--although I don't as that would work
> either. I think both solutions are sub-optimal and not wor
A "tooltip" is the HTML title attribute in the anchor tag
this
is the anchor text
The struts tag has a title attribute.
-B
James Neff
<[EM
Thanks Dave. I will review the jar dependencies for Jasper. Right now I have
installed the plugin and the jasper 1.3 jar. I had tried DEBUG already but
there was a TON of information to try and sift through and I did not get any
kind of stack trace.
Thanks,
Paul Zepernick
Information Technol
You *could* set the default log level to DEBUG, but stand back.
My initial assumption, however, would be that you're missing Jasper
dependencies, as you say "the jar" and there's around a half-dozen, give or
take.
Dave
--- On Wed, 6/18/08, Paul Zepernick <[EMAIL PROTECTED]> wrote:
> From: Pa
> p.s. to call the static values() method of the enum,
> struts.ognl.allowStaticMethodAccess must be set to true in struts.properties
> or struts.xml
Thanks, I've also learned something new ;-)
Regards
--
Lukasz
http://www.lenart.org.pl/
--
Lukasz Lenart wrote:
> I'm using something like this:
>
> list="employeeTypes" listKey="shortcut"
> listValue="name()" required="true"/>
Oh wonderful! I didn't know that’s what listKey and listValue were for. I was
able to take my four lines of JSP and convert them into just
How do we correctly setup logging in log4j to capture the problem causing the
SEVERE: Error filterStart? We are trying to add in jasper reporting. We
dropped in the jar and receive this error when we configured a jasper result.
We have the log4j.properties in the classpath and have the root lo
--- On Wed, 6/18/08, stanlick <[EMAIL PROTECTED]> wrote:
> I am looking in the
> /struts-2.1.2/src/plugins/rest/src/main/java
> struts-2.1.2-all.zip.
I don't understand; there's no XML in the Java directories of the download
(this is from -all):
/tmp/struts-2.1.2/src/plugins/rest $ find . -name
Hi,
I'm using something like this:
in action I have
public EmployeeType[] getEmployeeTypes() {
return EmployeeType.values();
}
and the enum
public enum EmployeeType
{
DIRECT("D"),
INDIRECT("I"),
OFFICE("O");
private String shortcut;
EmployeeType(String s
Lukasz Lenart wrote:
>
what I’m really trying to do is have nice integration between s:select and
enums. I want a select box with each of the enum choices in it. For this to
work, I'd need the enum name as the key in a map, and a
user-friendly-string-representation of the enum as the value.
I
> I didn't know that.
> but actually, I was kind of looking for something that would stay in the
> page. It wouldn't be for debugging, but some simple logic in the page
> for creating the html.
?
Regards
--
Lukasz
http://www.lenart.org.pl/
-
> Yes. This is pretty fundamental for interceptors, AFAIK.
>
> http://struts.apache.org/2.x/docs/writing-interceptors.html
Wow! I've been reading such page many times, but I see such note first
time ;-) Thanks to open my eyes!
Regards
--
Lukasz
http://www.lenart.org.pl/
---
You probably need to look at storing them in the session. Look at the
MessageStoreInterceptor.
Owen
On Wed, Jun 18, 2008 at 1:38 PM, Giovanni Azua <[EMAIL PROTECTED]> wrote:
> hi,
>
> I basically would like to pass an action message or error from one action to
> another using the redirectAction r
> If you have devMode set to "true", you can add
> debug=console to your URL and you will get an
> OGNL console.
I didn't know that.
but actually, I was kind of looking for something that would stay in the
page. It wouldn't be for debugging, but some simple logic in the page
for creating the html.
I am looking in the /struts-2.1.2/src/plugins/rest/src/main/java
struts-2.1.2-all.zip. It sounds like Wes has revealed how this works, which
would explain the struts-plugin.xml I am seeing. If this is correct, it
sure sounds like a crazy way to implement a custom "mapper!" Also, why the
variety
If you have devMode set to "true", you can add debug=console to your
URL and you will get an OGNL console.
musachy
On Wed, Jun 18, 2008 at 1:32 PM, Brad A Cupit <[EMAIL PROTECTED]> wrote:
> Hi, is there a simple tag I can use to just evaluate some OGNL? For
> example, if I have the following line
hi,
I basically would like to pass an action message or error from one
action to another using the redirectAction result type.
The use-case is CRUD-related i.e.
1-. displaying a list of X-type beans each one having a link button to
delete it.
2-. once a delete request is submitted, the appro
Hi, is there a simple tag I can use to just evaluate some OGNL? For
example, if I have the following line in a JSP it's kind of clunky:
does anyone know of a more elegant way?
Brad Cupit
Louisiana State University - UIS
-
To
--- On Wed, 6/18/08, Lukasz Lenart <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] (that's me!) said:
>> The result has already been rendered after invoke() has been called.
> Are you sure?
Yes. This is pretty fundamental for interceptors, AFAIK.
http://struts.apache.org/2.x/docs/writing-intercept
That's what I was going to say, but the previous answer of dividing it into
namespaces it cleaner, IMO.
Dave
--- On Wed, 6/18/08, Dave Belfer-Shevett <[EMAIL PROTECTED]> wrote:
> From: Dave Belfer-Shevett <[EMAIL PROTECTED]>
> Subject: Re: Wildcard mappings with subdirectories / folders?
> To:
On Wed, 18 Jun 2008, Dave Belfer-Shevett wrote:
Hi folks - I'm trying to divide up my struts app into subdirectories (the
application has a 'public' interface, and an 'administrative' interface
called 'coconut'. Don't ask).
And here I am answering my own question. A little googling found me t
Hi,
> Here's my configs - however, the rules are not matching at all - I have my
> JSP's in WEB-INF/jsp/coconut/(blah.jsp) and WEB-INF/jsp/public/(blah.jsp).
>
>
>
> name="success">/WEB-INF/jsp/coconut/{1}.jsp
>
> The result has already been rendered after invoke() has been called.
Are you sure? I think it wasn't.
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
Hi folks - I'm trying to divide up my struts app into subdirectories (the
application has a 'public' interface, and an 'administrative' interface
called 'coconut'. Don't ask).
I'd like to have 2 wildcard actions that pull JSPs from different
subdirectories. (coconut and public)
Here's my conf
The result has already been rendered after invoke() has been called.
PreResultListener is where to look--although I don't as that would work either.
I think both solutions are sub-optimal and not worth it.
--- On Wed, 6/18/08, Lukasz Lenart <[EMAIL PROTECTED]> wrote:
> From: Lukasz Lenart <[EMA
Hi,
2008/6/18 Chris Pratt <[EMAIL PROTECTED]>:
> I'm not sure if the work-around will work. Looking at the code, it
> doesn't appear that changing the result type after the action has
> executed has any effect.
Did you already implement it? Could you show the code?
It should be the last intercep
I'm not sure if the work-around will work. Looking at the code, it
doesn't appear that changing the result type after the action has
executed has any effect.
(*Chris*)
On Wed, Jun 18, 2008 at 6:51 AM, Adam Hardy
<[EMAIL PROTECTED]> wrote:
> I guessed it's not modifiable but I figured I'd ask to
Finally I found the matching chapter in the Dojo documentation.
So for everybody's info and completion of this thread:
You can pass parameters to topics with something like
With that call you can access the properties, of the object passed to the
notified function like
dojo.event.top
If you have trouble with the dojo documentation, you can use
"dojo.debug(arguments.length)" to tell how many arguments you get
passed, and then use alert/dojo.debug to display obj.toString() or
obj.toSource() ... this will give you an idea of what you're getting
passed.
Owen
On Wed, Jun 18, 2008
Hi,
First of all, isn't possible to encode Polish characters with
ISO-8859-1, you have to use ISO-8859-2 or UTF-8. It's mean, that the
parent web application has to send user_id, name parameters encoded
with ISO-8859-2 or UTF-8. Without that it will be not possible to
decode such strings.
Regard
Polish characters from other web application.
I had requirement of retrieving the login details like user_id,name from
parent web application.
At present I am retrieving by .
request.getParameter("user_id")
request.getParameter("name")
Some times names can be in Polish language fro
Pushing my memory to the limit: I think it is the DOM object (in this
case the anchor), that triggered the topic. You can also pass
parameters to topics, check Dojo's documentation.
musachy
On Wed, Jun 18, 2008 at 10:51 AM, Jan Froehlich
<[EMAIL PROTECTED]> wrote:
> Perfect, that solves most of t
Perfect, that solves most of the problems I had.
Thank you!!!
- but one thing is finally left. ;)
When I subscribe to a topic with something like
dojo.event.topic.subscribe("documentSelected", function documentSelected(doc) {
alert(doc);
});
then doc is a object. What kind of object is tha
mmm, this is interesting, I get a dialog box and it says:
The currently displayed page contains invalid values.
--
View this message in context:
http://www.nabble.com/struts2-and-JSON-integration-problem-%28plugin%29-tp17917051p1798.html
Sent from the Struts - User mailing list archive at
i have used AjaxAnywhere without an problems in order to update my page
according to zones.
Saludos
Lalchandra Rampersaud
Carpe diem
- Original Message -
From: "Daniel" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, June 17, 2008 11:55 PM
Subject: Re:
Well, now I see something I missed before. notifyTopics are triggered
when an "ajax" request is done, which is not the case here (there is
no href), so I think the topics won't be triggered in that case. One
of the many things you can do is:
You are not really taking advantage of the functio
Lukasz Lenart wrote:
Hi,
Try
Regards
Thank you!
--James
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Try
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Musachy,
thanks for that hint, I tried both, but if you say that it doesn't matter I
might have another problem - it worked with neither solution.
Do you think that
should be enough to trigger that topic update??
Thanks in advance!
Regards
Jan Froehlich
-Ursprüngliche Nachricht-
V
I guessed it's not modifiable but I figured I'd ask to make sure.
I like the work-around, hadn't thought of it. I'd probably use it if the default
result name was going to be configurable in the future (guess there's a patch
waiting to be coded there).
For now though I just hard coded the nam
I don't really know if you can change this default, but here is a workaround:
Write a custom interceptor that each time your action result is LIST,
you change it to SUCCESS.
This way you could leave your result tags untouched. However, right
now I could not imagine the value of doing that.
2008/
I'm trying to add a tooltip to an s:a tag. I couldn't get the tooltip
attribute to work so now I am trying to get a tooltip via an onmouseover
Javascript. The Javascript code works and I get my tooltip but the text
in the tooltip I want when I create the s:a tag.
Here is my code:
onmous
I don't think it really matters where you put the code (topic
subscription), but it will be easier to put it in the main page that
has the tree.
musachy
On Wed, Jun 18, 2008 at 5:32 AM, Jan Froehlich
<[EMAIL PROTECTED]> wrote:
> Hi,
>
> I need a little hint how I can achieve the following...
> Ri
More than one year later, I have the exact same problem.
If the original poster has found a solution, or if anyone else knows how to
solve this issue, I'd be very glad!
I have tried Action Chaining the result:
@Result(name="input",type=ActionChainResult.class,value="product" ,params=
{"method","
Hi,
I need a little hint how I can achieve the following...
Right now I got a page with a where the user can browse
categories. When a node is clicked a loads
another page with a listing of documents in that category. (Just like in
the showcase example but with a little more information in the
Ok. I will check this..
Anyway, with the s:a struts anchor, the url parameters are correctly
passed.
thank u
Laurie Harper wrote:
>
> Did you check the result of s:url? Either the URL was not constructed
> correctly (the parameters weren't appended in the query string) or
> something went
Did you check the result of s:url? Either the URL was not constructed
correctly (the parameters weren't appended in the query string) or
something went wrong applying the parameters when the request was made.
Determine where it failed, and that will tell you where to focus on
debugging further
Don Brown wrote:
I believe it is technically possible to do this, but not at all
intuitive right now. This is probably my number one improvement
request for the REST plugin.
You should be able change the wildcard mapper to one that recognizes
named wildcards then use them in your namespace anno
Thank you for the reply.
I tried your solution and the action is invoked..the problem is that,using
the standard html anchor, the parameters are not passed to my action.
Paranoid_Fabio wrote:
>
> Hello. What I want to do is a very simple thing, but I can't find a
> solution.
> I call an action
56 matches
Mail list logo