Ahmed Hashim ha scritto:
...
but i remember that I can request the page directly...
You remember wrong! You cannot request a Tiles definition directly. You
have at least to write a simple JSP page with tag.
You can invoke a Tiles definition directly only through a forward, if
you are usin
Thanks,
The following worked.
PropertyUtils.getSimpleProperty(bean,propertyName)
Neil
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: 07 April 2006 02:56 PM
To: Struts Users Mailing List
Subject: [OT] Re: Bean Question
One, or both, of these may help:
1. h
Frank, thanks for the link to javawebparts. The source code there helped me a
great deal.
Dakota, thanks for that very detailed explanation of creating my own dispatcher,
but I chose to use a filter for now. I'm just not ready to go change the buttons
and existing actions at the moment. I'll look
Hi All,
I've custom validations written for my application. The formset element has
been localized.
Is there any way I can pick a specific validation rule for a field based on
some criteria? For eg, field xyz need to be validated against rule val1 or
val2 based on another param present in request
Hi all,
I got problem with redirect attribute in forward tag.
after MyRegistration is processed, it register some values in request scope
(some messages to inform that Registration was successful), but after
redirecting to Summary action, all values which registered in request scope is
empty o
thanks Ted,
You said, "I'm not even sure that Java would be
the best platform for this use case", is it true :(
I just think that we can check request object, after that we check db for
specific username (360.yahoo.com/username), if it's exist, we will view
homepage of that username.
The pro
Laurie,
Thanks for getting back to me.
I've been able to get a little further. I've gotten the jsp to come up.
When I click the submit button with nothing in either input field it stops
on a breakpoint in the validate method of the DynaValidatorForm class.
Just in case you don't have the code of
I don't see anything obviously wrong there. It's not surprising that
your breakpoints aren't hit since the action would only be invoked when
the form rendered by the JSP gets submitted.
It might help if you post the full stack trace you're getting. Failing
that, I'd suggest simplifying things
Madhav Bhargava wrote:
Hi All,
I am using Struts 1.0 and struts-validator 1.0.
I have a JSP which has 3 tabs. Each tab body has a different element
inside it. I am using Ajax to dynamically generate the tab body content.
Let me take an example and explain it. Assume there are 2 tabs - Tab1 and
Jeff Deskins wrote:
A user kept getting an email validation error when entering his email
address (ex: [EMAIL PROTECTED]) on one of our sites that uses Struts.
Apparently, the Struts email validation doesn't like the 4 character domain
qualifier (.info in this case - I believe there may be others
Jeff Thorne wrote:
I am seeing slow performance with a few initial pages of my struts app.
Here is the flow of the app.
1. Index.html forwards to index.jsp.
2. index.jsp loads user cookies into session.
3. if member cookie found forward to load member page struts action.
4.
The problem is that validwhen's expression syntax isn't powerful enough
to describe date constraints. The best you could do with validwhen is to
say 'if field X has a value, this field must have a value too' and then
do the data validation server-side in the form-bean's validate() method.
The
As a simpler alternative, you could create a custom tag handler or a JSP
2.0 tag file that knows how to render a tree node and invoke itself
recursively as necessary to render child nodes. You could even use a JSP
include and not bother with custom tags / tag files at all. As long as
you have y
Bart Busschots wrote:
Rivka Shisman wrote:
Hi Quinn,
As much as I understand the "validwhen" is more like an enhanced
"requiredif", but I need that the "date" rule on my property be checked
only when my other property has value "X". I don't think the "validwhen"
can solve this.
Am I right?
Deva Pitchai(NatureSoft) wrote:
Is htere a way to print a value in html as label from Form bean, without
using bean:write tag?
I cant use the bean:write because it is asking for the bean name.
I have some include jsp files, which may have different form bean
depending on the file where it is
Hi,
The example is in the archives of the mailing list no more than a few
days ago. I'm not at work now so I don't have it in front of me to
re-send it. The example does not exactly solve your identical problem
but it does show how you can use validwhen to apply logic based on the
value of an
Hi Bart,
I still can't see how the "validwhen" solves my original problem.
Can you please attach your example of solving it with "validwhen"?
Thanks
Rivka
-Original Message-
From: Bart Busschots [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 09, 2006 4:09 PM
To: Struts Users Mailing Lis
I can't visualise what the final URL looks like in the browser in your
situation with the webserver in-between.
Try using the tag.
Scott Zhu on 07/04/06 19:35, wrote:
Thanks. The problem is that we can't use absolute path (leading "/")
because we are forwarding the request from webserver to
I tried to forward to loginPage.page from the action and it is working fine,
but i remember that I can request the page directly...
any suggestion?
On 4/9/06, Yang Sun <[EMAIL PROTECTED]> wrote:
>
> I think you should add an action in the action-mappings section for
> loginPage action. You request
I think you should add an action in the action-mappings section for
loginPage action. You request have not been processed by tiles yet.
// Yang
On 4/9/06, Ahmed Hashim <[EMAIL PROTECTED]> wrote:
>
> what is wrong with this configuration?
>
> Configuration 1.2//EN" "
> http://struts.apache.org/d
what is wrong with this configuration?
http://struts.apache.org/dtds/struts-config_1_2.dtd
">
http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd";>
http://java.sun.com/xm
Rivka Shisman wrote:
Hi Quinn,
As much as I understand the "validwhen" is more like an enhanced
"requiredif", but I need that the "date" rule on my property be checked
only when my other property has value "X". I don't think the "validwhen"
can solve this.
Am I right?
No, the valid when is s
Hi, Chuanjiang:
I am not very clear on your question. But in general, if you have something
difficult to use the built-in authentication method, you can overwrite the
processRoles() method in your customized RequestProcessor and register your
processor with the actionservlet in the configuration f
Hi all,
I have a module (/module) with three functions
For e.g.
Function a -> module/functiona.do
Function b - > module/functionb.do
Function c -> module/functionc.do, module/functionc1.do
I have two roles, say Role A can access the whole module. Role B can onl
access Function C
For Role A, the
Hi, Wang Zeng:
I think what Ted said is one way to transfer ActionFrom data to the business
object.
And you can get a detailed description on other ways to transfer ActionForm
data
to the business object and pros and cons of each ways by reading charpter 5
of the
book <>.
Regards,
Yang
On 4/9/
hi,Ted
Do you mean in your solution that one bean is not only action form
bean,but also a business object? Because it extends ActinForm and implement
business object interface.
2006/4/6, Ted Husted [EMAIL PROTECTED]:
>
> If the beans you want to "nest" are being passed to the business
> lo
That's great! Thank you,Michael,for using your time. This approach is kind
of novel, I have nerver seen this kind of usage before. Actually,it's not
my ideal, one of my coworker teachs me to do that. I am really moved.
2006/4/9, Michael Jouravlev <[EMAIL PROTECTED]>:
>
> I use it. Works well for
27 matches
Mail list logo