Is there a way to configure an action mapping in struts-config.xml to
forward to a static URL that is not part of the application files?
Something like a forward to the web site home page /index.html.
-
To unsubscribe, e-mail:
Hi,
Please have a look at http://www.roseindia.net/hibernate.
Regards
Deepak Kumar
"Manopriya Jagadeesan , Tidel Park - Chennai" <[EMAIL PROTECTED]> wrote:
Hi all,
I need a good start for hibernate.Can anyone suggest some good links?
Anil,
Is validation-rules.xml located in your /WEB-INF directory and is this
in your struts-config.xml?
value="/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml"/>
-Richard
Anil Kumar Pippalapalli wrote:
hi,
when iam tryin to deploy the struts application in tomcat 5.5. Its
hi,
when iam tryin to deploy the struts application in tomcat 5.5. Its saying
unable to load validation-rules.xml.
Plz help me in this regard.
regards,
anil.
-
Yahoo! India Answers: Share what you know. Learn som
As the Subject: line states I'm in the middle of converting a larger
Perl application to a Struts web-app running on the SUNWappserver.
The question was posed as to how to deal with all of the folks who
may have "bookmarked" a perl URL to the old app. I don't want to just
cut those folks of
Are you using Struts 1.2.9? It contains EventDispatchAction
which allows your design to do both viewing of a form and processing
under one action mapping (or two, your choice).
As for the validation key, override the getValidationKey() of your
ValidatorForm or DynaValidatorForm. The string returne
What do you mean when you say "custom validation key"?
I am thinking about going with action chaining to solve this particular
one. Like have every form call an action e.g. Dispatch and then call
different actions to go with the page a user just came from e.g. if a
user came from clienta.jsp, a fo
Chaudhary,
You need a custom validation key for each step in the process.
Override the form's validate() and create a key. Then you should
modify your validation.xml to run validations just for that step.
Paul
--- "Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
> Now that I think about it, my que
Chaudhary, Harsh wrote:
> Now that I think about it, my question is just this:
>
> Is there a way to selectively validate fields in a struts form?
>
Yes, only put the fields you want into the validation rule.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
Jakub,
Can you send a sample of your validate method in your form bean? Just to be
clear, when you say "autovalidation is turned on", you mean that you have
validate=true in your action? How do you have the form tags configured in
your validation.xml?
Also, have you considered using ValidatorActio
Now that I think about it, my question is just this:
Is there a way to selectively validate fields in a struts form?
Harsh.
-Original Message-
From: Quinn Stone [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 4:03 PM
To: 'Struts Users Mailing List'
Subject: RE: Validation help: One
I have the action ClientA which is associated with e.g. clienta.jsp .
Action ClientA is also used in the validation.xml like:
mask
${nameMask}
Here's my code again for my struts-config.xml:
My bad. Missed that. How is it blowing out?
Q
> -Original Message-
> From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 08, 2006 1:27 PM
> To: Struts Users Mailing List; [EMAIL PROTECTED]
> Subject: RE: Validation help: One struts form, multiple actions
>
>
> I intent
Hi,
We are asked to build a new Struts application using Sun One Studio 5,
Standard Edition IDE. I have'nt used it before. Is there any plugin I can
install to use struts in Sun One? Links to some tutorials will be helpful.
Thanks.
Hello friends -
I'm struggling with what I believe to be a relatively simple problem, but
haven't hit on a solution yet. I need to dynamically create links with a series
of parameter values, and have the link of the text vary.
For example, I have relatively simple object:
public class
I intentionally used /ClientA for my form name as I said, I have one
struts form but multiple actions using that same form. So while
validating, I want to validate only the fields associated with a
particular action e.g. for ClientA action, I want to validate only
fields for ClientA and same for Cl
Your form name in validation.xml should be "InputDataForm" (no leading slash),
not "/ClientA".
> -Original Message-
> From: Chaudhary, Harsh [mailto:[EMAIL PROTECTED]
> Sent: Monday, May 08, 2006 1:16 PM
> To: Struts Users Mailing List
> Subject: Validation help: One struts form, multiple
Hi,
I am having some trouble with struts validation. Here's the case:
I have multiple actions corresponding to multiple pages.
I have only one struts form for all these actions.
I would appreciate it if someone could tell me how to set up my
validation. I am using ValidatorActionForm for my strut
Thanks Gary,
I was stuck in ValueChange rut. Switching to a command link fixed the
problem and is much simpler.
Have a great day!
-Original Message-
From: Gary VanMatre [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 12:03 PM
To: Struts Users Mailing List
Subject: Re: [Shale/JSF
Did your CustDyna form has getter/setter methods for the attributes defined
in Customer class? I think it's better to try like this,
form.get("phones").
On 5/8/06, fea jabi <[EMAIL PROTECTED]> wrote:
Have an object Customer which has attributes
name
e_mail
phones --- ArrayList
Have DynaAct
On 5/8/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote:
Up to now the best soulution ( as i think) is to turn off autovalidation and
validate in Action classes calling actionForm validate(). Obviously i will
set proper value of page property in each action before validation.
Turning off autovali
The Apache Struts project and the members of the OpenSymphony WebWork
2 project are coming together to create the next-generation
action-based web application framework, Struts Action 2. Since the
merger announcement, the WebWork 2.2.2 code has successfully passed
the Apache Incubator to seed the
Hi
Thanks for an answer.
I also found this solution the best, but i thought that maybe struts
provides some kind of support for this kind of problem.
I know that highlighting labels is not common practice, but i thought that
someone found a gold solution.
Anyway thanks for help.
I am completly new
Hi Quinn
I do not understand division of responsibilities. Remember that i have a
wizzard application and i do not make any operations as i think ACTION
should do.
I just need to collect data from screens, validate them - what actuall
actionform does, and prepare data to show on next view - retrie
Hi Richard
I have aotovalidation turned on - it means that after reset method of my
form bean validate() is called, and if it sucessfull action's execute() is
invoked.
But whatever i do in validate of my form bean is my business. For me
autovalidation means that validate() of form bean is invoked
>From: "James Reynolds" <[EMAIL PROTECTED]>
>
>
> My problem deals with navigation between two pages, a Contract list page
> and a Contract detail page. On the list page is a Boolean check box
> that filters the list according to a certain criteria with a
> ValueChangeListener. When the user c
My problem deals with navigation between two pages, a Contract list page
and a Contract detail page. On the list page is a Boolean check box
that filters the list according to a certain criteria with a
ValueChangeListener. When the user click on a contract, the id of that
contract is sent as a p
What is the nature of the messages you want to log? Is it something basic
like "Request received", or do you need values from ActionMapping or
something? If they are simple messages, and if you really need it for all
requests, I would suggest a filter. Very easy, and not coupled to the
framework
Good day.
This is a general newbie question.
I just finished 'phase 1' of a fairly simple Struts app, where the app is
working and my thoughts turned to learning something about the interplay
between it and the Tomcat catalina.policy file.
All references I could find via Google to crafting a wo
Have an object Customer which has attributes
name
e_mail
phones --- ArrayList
Have DynaActionForm CustDyna which extends Customer
In the Dispatch action which is the LookupDispatchAction
in one of the methods need to get the "phones" attribute of Customer.
How to get this value?
tried form.g
You could extend one of the methods in RequestProcessor, like this:
public class AuditingRequestProcessor {
protected ActionForward processActionPerform(
HttpServletRequest request,
HttpServletResponse response,
Action action,
ActionForm form,
ActionMapping mapping
Rahul Akolkar wrote:
> On 5/5/06, Raghuveer <[EMAIL PROTECTED]> wrote:
>> Could any one give info how the below attributes can be used in
>> Related tlddoc contains short descriptions:
>
> http://struts.apache.org/struts-action/struts-taglib/tlddoc/html/text.html
>
And the documentation contains
Rahul Krishnarao Patil wrote:
> I want to Configuring datasource with tomcat for oracle . But i am not
> able to find any proper document for this configuration.
Are you serious?
http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
< 15 seconds w/ Google.
Dave
--
I posted the question earlier and thanks for many
respondents took time to answer my question.
While double submission is one of my problems, my
focus has been on this particular one if users click
on the browser "Back" button:
WebPage A1 --> WebPage A2 --> WebPage C
WebPage B1 --> WebPage B2 -->
Hello,
I have written a simple app using Struts 1.3, I think you have to download
Tiles-1.3 jar file - which comes as a standalone - , it's available from
somewhere on Jakarta site (unfortunately I don't remember exactly where :(
Hth
marco
-Original Message-
From: Greg Reddin [ma
If you're willing to work with unreleased software, please do give
Standalone Tiles a try. From the perspective of the JSP API (meaning
the tag interface) nothing has changed. The rest of it is beginning
to stabilize and I hope to have it at al least alpha status before I
leave for JavaOn
On May 8, 2006, at 7:49 AM, Troy Bull wrote:
I have read through the documentation and haven't seen this example
(I may be blind). The error I get is :
[ServletException in:/header.jsp] Error - tag.getAsString :
attribute 'title' not found in context. Check tag syntax'
Ah, I'm sorry. I mi
Hmmm... You're right that http://struts.apache.org/ doesn't list any
1.3 versions in the menu. If you go to the 1.2.x page and "download"
"development releases" you can find
http://svn.apache.org/dist/struts/action/ with later builds.
Standalone tiles may be downloaded at
http://cvs.apache.org/b
You can create a base action class which extends Action and implements
execute(). In execute you would call your preferred logging method as
described below. Then, every action you create would extend your
BaseAction class and the first line of every execute() method would
call super.execute()
-e
Niall
Thanks for support
I got by using "
*
*
-Original Message-
From: Raghuveer [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 6:13 PM
To: 'Niall Pemberton'; 'Struts Users Mailing List'
Subject: RE: Marking fields with background colour having errors for
nested tags
Niall,
Ho
I have read through the documentation and haven't seen this example (I
may be blind). The error I get is :
[ServletException in:/header.jsp] Error - tag.getAsString : attribute
'title' not found in context. Check tag syntax'
troy
Greg Reddin said the following on 5/5/2006 3:01 PM:
Have you
Niall,
How to pass the iterate indexId value to property of bean in nested tags
Example:
JSP
---
arlCollectionOrderRfq[i].customerRef property in
<%=i%>=*
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: Monday, May 08, 2006 5:27 PM
To: Struts
On 5/4/06, Jakub Milkiewicz <[EMAIL PROTECTED]> wrote:
Hi
I would like to highlight - change style of, labels associated with an html
input elements, i.e html:text or html:select.
These tags have errorStyle attribute so changing style for a given input is
not a big deal, but in addition i would l
On 5/4/06, Inandjo Taurel <[EMAIL PROTECTED]> wrote:
hi,
I'm using struts 1.2.8 along with JSPs in an application.
As at now for the internationalization, I'm just using the normal mechanism
just by specifying the path to the resources file in my struts config file,
and getting .
Now, I need to
On 5/8/06, Raghuveer <[EMAIL PROTECTED]> wrote:
Is it possiable in struts to show a label in different colours.
I.e Identfying label and showing in different color if the related html
object is having any errors
In below example i need to show label User Name in red color if there is any
data e
Srinivas Vakkalanka on 08/05/06 11:32, wrote:
Hi,
I am new to struts. I have a request that, for every request I want to
display a message or log a message using struts frame work. How this could
achieve. Please help in this regard
Hi Srinivas,
your requirement would normally be implemented
On 5/5/06, Raghuveer <[EMAIL PROTECTED]> wrote:
Hi,
Does struts has any facility to show fields having validation error in
red color or mark it in some way?
Not the error messages
Could any one suggest using
'errorKey' 'errorStyle'
'errorStyleClass' and 'errorStyleId' attributes.
Yes these
On 5/5/06, Rahul Akolkar <[EMAIL PROTECTED]> wrote:
On 5/5/06, Raghuveer <[EMAIL PROTECTED]> wrote:
> Could any one give info how the below attributes can be used in tag.
>
> errorKey
> errorStyle
> errorStyleClass
> errorStyleId
>
Related tlddoc contains short descriptions:
http://struts.apa
On 5/3/06, Matthew J. Vincent <[EMAIL PROTECTED]> wrote:
Do I have to do something different in my Action class? It is running
in an infinite loop and eventually running out of memory.
When you forward to another Action, the entire lifecycle starts over
from scratch. So the Action fires again,
On 5/4/06, Mulligan, Scott H <[EMAIL PROTECTED]> wrote:
The validate javascript function that gets generated by the validator
stops processing once one of the validation routines finds an error. Is
there a way to override the "&&" with "&" so that I can get all errors
at once? If so, where would
Hi,
I am new to struts. I have a request that, for every request I want to
display a message or log a message using struts frame work. How this could
achieve. Please help in this regard
Thanks and Regards
Srinivas Vakkalanka
Is it possiable in struts to show a label in different colours.
I.e Identfying label and showing in different color if the related html
object is having any errors
In below example i need to show label User Name in red color if there is any
data error in
Nested tag
--
52 matches
Mail list logo