Hi,
> Is there a way to perform 'requiredif' validation on nested objects ?
> I would like to check for the value of an object only if the object
> containing
> it is not null.
>
> In the following example scenario:
>
> Class A{
> String x;
> String y;
> }
>
> Class Obj{
> A
Hi,
I'm reposting this mail with the hope
that I can get response from someone.
If anyone of you have any clue on the question
mentioned below, kindly get back.
Thanks,
Ashutosh
-Original Message-
From: Ashutosh Satyam
Sent: Thursday, August 25, 2005 11:28 PM
To: Struts Users Ma
elements while validating, by using dot
notation. In your case, you can refer to fields "a", "b", "obj.i,
"obj.j", "obj.obj.k".
Hubert
On 8/24/05, Ashutosh Satyam <[EMAIL PROTECTED]> wrote:
Hi,
I am using the Struts Validator(Commons Validator) outside the Struts
framework, to do validation.
I would like to know how to validate an object when it has objects nested
within it, and I need to
validate the fields in those nested objects, too.
Precisely I intend to achieve the followin
Hi,
In my application I want to set the error key based on whether
the error key is present in resource bundle. The error key is
generated in the system and the top most layer 'Action class' is
supposed to set the keys based on the error key availability.
- - - - - - - - - - - - - - - - - - -
Try this instead
//
//
Hope this helps.
Regards,
Ashutosh
-Original Message-
From: Iyanu, Rajasekaran [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 2:59 PM
To: Struts Users Mailing List
Subject: Reg. JSTL expression.
Hi,
I'm using the following
Hi Shiva,
I'm enclosing a sample JSP page which you can use
for giving the appearance that it's waiting till
the DB processing goes through.
- - - - - - - - - - - - wait.jsp - - - - - - - - - - - - - - - - -
|
Hi,
You can checkout archived messages on this issue at
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg15779.html
answered by Ted himself.
Before preceeding do once again verify these things.
1. struts-config.xml has an entry for 'Message Resource Defintion'
Ex:
regards
>Karsten Krieg
>intarsys consulting GmbH
>----
>Fon +49 (0)721 3 84 79 - 28
>Fax +49 (0)721 3 84 79 - 60
>e-mail [EMAIL PROTECTED]
>http://www.intarsys.
Hi,
Can you suggest how to use the logic tag library to achieve the following
scenario.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - -
In my Action class I expect few Exceptions to be thrown. Incase if a
Hi,
Though I couldn't get your problem completely but still I will try to clarify
your doubt. Tag libraries are provided to leverage the struts inbuilt features.
It doesn't mandate though that you should use tag library as part of your
application.
Even without using taglib, you can bring up yo
Hi,
Though this is an off topic question, but still
I'm posting it here as I have found this mailing
list to be active and members try to furnish the
information as much as possible.
Q) Could you suggest some Java IDE's
1. What are the top 3 good features you seen in this IDE
2. What are the
Hi,
If you can tell in detail what exactly is the servlet code doing, it'll
be easier to explain how can you incorporate it within struts framework.
In a struts framework the request processing is done by the Action
classes. So eventually, whatever task is being done by your current servlet
can b
Hi,
I would like to know how can we switch from one web
application to another web application in a struts
framework. I don't mean switching between the various
application modules within a web application.
What I intend to do is to restrict the user from
directly accessing the 2nd web applic
In the pop up page, you can define a javascript function like this.
window.opener.reload() // This function will just reload the parent window
window.opener.location.replace(url) // This call will reload the parent window
// with the specified URL
This fu
It'll be good if you can have a look at Tomcat documentation - 'Class Loader
Section'
It clearly says that if you want to have jars accessible to different web
application,
then it should be placed in $CATALINA_HOME/shared/lib directory.
Hope this should address your problem.
- Ashutosh
If by module you mean different WEB Application altogether,
then I'm sorry to say that struts multiple config file approach
doesn't addresses it.
Application modules allow a single Struts (Web) application to be split into
multiple modules, each with its own Struts configuration file, JSP pages,
Hi,
I too have a doubt which is closely related to tiles role checking
mechanism.
I have defined the login page of my application like this.
This works fine. Depending upon the user's role appropriate mainMenu is substituted.
Now going on the same line
Hi,
Below is my tiles-defintion.
>From the action class, I make a forward to definition 'SubsSrch'.
The call does get forwarded to this definition. Apart from the 'mainBody'
which points to the definition 'docs.csr.body' all other contents are
sho
By any chance are you trying to map both these struts file
as same input parameter.
Better try this,
config
/WEB-INF/resr-fin-struts-config.xml
config/app2
/WEB-INF/resr-tam-struts-config.xml
You will be able to access action classes for your 2nd struts-config
as mentioned below
I have not received any response on this mail yet.
Any pointers on this will be appreciated.
- Ashutosh
-Original Message-
From: Ashutosh Satyam
Sent: Friday, September 17, 2004 9:21 PM
To: [EMAIL PROTECTED]
Subject: tiles-definition - role association issue
As per the Tiles
As per the Tiles Definition file syntax
In the tiles definition we can specify the role
(Role to be checked when definition will be inserted in a page.)
Similarly, It is possible to associate a role with tiles: put attribute.
I'm intending to allow the definition to be used based on the role
This it test mail. Kindly ignore it.
[EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
parse error issue - Urgent!!
In your action mapping, put your exception elements *before* your
forward elements, not after.
Cheers,
Erik
Ashutosh Satyam wrote:
>Hi,
> I have a struts based web application.
>Recently I updated my struts config file
>to handle exceptions declarati
Hi,
I have a struts based web application.
Recently I updated my struts config file
to handle exceptions declaratively.
Below is the snippet of the struts config file.
Hi All,
If I'm going by the Declarative Exception handling approach,
either by configuring in the struts-config.xml file
or by using the exception element of , how do I replace
parameter values for the key pointing to the message resource
property file.
+ --
: Tuesday, June 29, 2004 2:47 PM
To: Struts Users Mailing List
Subject: Re: Regarding DynaActionForms
This sounds a little like ... please write the application for me
there is plenty of stuff that can be found on
google that is exactly like this ...
--b
Ashutosh Satyam wrote:
>I nee
are though that you may encounter problems if some of the
Fields of your actionforms are null..
Regards
marco
-Original Message-
From: Ashutosh Satyam [mailto:[EMAIL PROTECTED]
Sent: 29 June 2004 06:03
To: Struts Users Mailing List
Subject: Regarding DynaActionForms
Hi,
I'
Hi,
I'm a novice as far as usage of tag libraries are concerned.
I intend to use DynaActionForm in my application. Would someone
explain how this could be used in conjunction with available struts
tag library to populate the beans?
For simplicity, consider a simple application, which stores User
his
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
Hope this should give you a fair idea on how to do the implementation.
Cheers,
Ashutosh Satyam
-Original Message-
From: Ganesh Rao [ mailto:[EMAIL PROTECTED]
Sent: Tuesday, June
eb application" per Java Virtual Machine.
If intialization parmaeter is defined for a specific servlet, then it'll be
accessible only by this servlet. To retrieve this parameter need to call
getInitParameter() on this servlet.
Hope it clears your doubt.
- Ashutosh
-Original Message-
Try using the below mentioned code to read intialization parameter
defined in the Web descriptor file.
String sname = servlet.getInitParameter("myParamName");
OR
ServletConfig config = servlet.getServletConfig();
String sname = config.getInitParameter("myParamName");
'servlet' is a
That was a nice piece of information.
Thanks a lot Mat.
Regards,
Ashutosh
-Original Message-
From: Lowery, Mat [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 9:19 PM
To: Ashutosh Satyam; Struts Users Mailing List
Subject: RE: Declarative Exception handling
I use the Log Jakarta
Hi,
In my struts configuration file, I have declared a global exception as
mentioned below.
I'm using the default ExceptionHandler.
The idea behind defining this global exception was not to show
any kind of exception on the browser.
This works fine. But now I'm not able to trac
.
+--+
| |
||
+--+
Cheers,
Ashutosh Satyam
-Original Message-
From: Normanjaisingh pauldurai [mailto:[EMAIL PROTECTED]
Sent: Friday, May 07, 2004 12:23 PM
To
is page is submitted the action class should again
do a forward as mentioned above - return mapping.findForward("success");
Hope it helps.
- Ashutosh Satyam
-Original Message-
From: Christian Grobmeier [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 05, 2004 3:23 PM
To: [EMAI
36 matches
Mail list logo