Hi,
I have a page layout, lets say layout.jsp with:
JSP page with
The action dynamicallySelectTiles checks the database based on some
logic and adds center tile to context.
Now I have a problem overriding this using a jsp page, if I Do
something like this in my JSP page:
This does not
You can create a new ActionForward object, copy the data from the
original forward, and modify the path of the new object.
A quick way would be to add the ActionRedirect class to your code and use that:
http://svn.apache.org/viewcvs.cgi/struts/core/trunk/src/share/org/apache/struts/action/ActionRed
Greetings,
We have divided our application into sub application (modules). Each sub
application is having its own config file but I could not create different
validation.xml for each sub application. If I create also it takes only one
validation.xml file into consideration.
Thanks in advance.
R
Senthivel U S wrote:
Each sub
application is having its own config file but I could not create different
validation.xml for each sub application. If I create also it takes only one
validation.xml file into consideration.
This may sound silly, but did you name them differently?
Vamsee.
--
If the action type is Action, it works fine.
It is strange that if the action type is a DispatchAction,
the validation error body page will fill the whole screen.
Is it true that DispatchAction is not suitable for suggested option 1?
Thnx
On Tue, 15 Mar 2005 00:28:31 -0500, David G. Friedman
<
Hi all;
I use struts 1.1 with tiles,weblogic 8.1 and want to
use didplaytag.
(displaytag-11.tld
displaytag-1.0.jar)
Although I configure filter in my web.xml like below:
ResponseOverrideFilter
org.displaytag.filter.ResponseOverrideFilter
ResponseOverrideFilter
*.do
ResponseOverrideFilter
*
Hello,
I have a simple validation problem I am seeking help with. I have a form in
which the end-user enters a "password" and a "confirm password". I am using the
validator framework (I am pretty new, but getting there) and want to know how
to check this type of problem. Ensuring that the same
http://struts.apache.org/userGuide/dev_validator.html
See the section on pluggable validators. I don't think the type of Form
you use matters, but I don't use Dyna forms.
Erik
Scott Purcell wrote:
Hello,
I have a simple validation problem I am seeking help with. I have a form in which the end-use
Hello there! I'm using for the first time, xdoclet to create my
validation.xml file (that really help)
But I got stuck in a point. I have a property that must be float and
also greater than 0. Here's what I've tried:
/**
* @param limitePreAutorizacao The limitePreAutorizacao to set.
*
Is there a way to chain two Actions together?
a lot of times I found that I need to have Action B
that needs to do something then do Action C. What is
the best practice here?
thanks
__
Do you Yahoo!?
Yahoo! Small Business - Try our new resourc
wo_shi_ni_ba_ba wrote:
Is there a way to chain two Actions together?
a lot of times I found that I need to have Action B
that needs to do something then do Action C. What is
the best practice here?
thanks
__
Do you Yahoo!?
Yahoo! Small Business - Try our new re
Vincius,
See this article about Action Chaining:
http://wiki.apache.org/struts/ActionChaining
It seems the prefable way of chaining is to do it internally with Jakarta
Commons Chains. The Action is just an entry into the business processes.
Thanks,
Paul
-Original Message-
From: Viniciu
Well, I know it's not the right list, but since it's very close related
and struts list is much more active.
Does anyone has a good tutorial on that? I was told to use Converters to
assemble my Pojos from my formbeans but most of the time the types
doesn't match so BeanUtils.copyProperties() do
Here is what the error says:
*
Internet Explorer cannot download myAction.do?myparam=344 from
localhost
Internet Explorer was not able to open this Internet site. The
requested site is either un
Vinicius Caldeira Carvalho wrote:
Hello there! I'm using for the first time, xdoclet to create my
validation.xml file (that really help)
But I got stuck in a point. I have a property that must be float and
also greater than 0. Here's what I've tried:
/**
* @param limitePreAutorizacao The
I'd start with the Javadocs ... on the "Package Description" page for
org.apache.commons.beanutils you'll find some introductory material.
http://jakarta.apache.org/commons/beanutils
Craig
On Tue, 15 Mar 2005 15:26:41 -0300, Vinicius Caldeira Carvalho
<[EMAIL PROTECTED]> wrote:
> Well, I know
Hi,
I have the following code within a jsp:
When the user clicks on the 'Update' button it goes off and updates
the record as you would expect.
The problem I'm having is that every time the user presses the 'enter
key' to submit the form it results in an error:
Request[/secure/admin/pro
Check out this e-book from Manning:
http://www.manning.com/goyal
It might have some info on this topic. I haven't read the book but the
blurb I got in the email was interesting.
--Marty
--- Vinicius Caldeira Carvalho <[EMAIL PROTECTED]> wrote:
> Well, I know it's not the right list, but s
I've run into an interesting problem involving dispatch actions and
(or tiles:insert). The problem is this. I have a page that
lists some files. The user can upload another file from this page, but
if the file is too large, Struts starts the error processing for the
action. Here are my two
Hello,
I am having troubles getting the validwhen validation to work.
test
(confirmPassword == this)
I have a bean that extends the ValidatorForm and has setters and getters for
the two fields I need.
getPassword();
setPassword(String pa
Tim Christopher wrote the following on 3/15/2005 1:46 PM:
I have the following code within a jsp:
When the user clicks on the 'Update' button it goes off and updates
the record as you would expect.
The problem I'm having is that every time the user presses the 'enter
key' to submit the form
The this keyword needs to be enclosed in astrix...
(confirmPassword == *this*)
http://struts.apache.org/userGuide/dev_validator.html#validwhen
Niall
- Original Message -
From: "Scott Purcell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Tuesday, March 15, 2005 7:15 PM
Sub
I think minlength is the wrong validator for what you're trying to do. It
just checks the length of whats keyed in (i.e. the number of characters) ...
seems like you want a minimum valueyou could use floatRange for this.
http://struts.apache.org/userGuide/dev_validator.html#builtin
Having sai
How are you setting the value of "dispatch" in your page? A hidden
field? Is it hard-coded or do you set it when the button is clicked.
Is there more than one form in the page such that Enter might be
submitting a different form than you expect? You might need some
javascript to ensure that
Niall Pemberton wrote:
I think minlength is the wrong validator for what you're trying to do. It
just checks the length of whats keyed in (i.e. the number of characters) ...
seems like you want a minimum valueyou could use floatRange for this.
http://struts.apache.org/userGuide/dev_validator.ht
Still having problems with this:
Below is the error: Please see.
Here is the validation.xml I am using. I am just trying to ensure that the
password and the confirmPassword are equal.
test
(password == *this*)
My Bean
Looks like you don't have jar for antlr (i.e. antlr.jar) deployed in your
webapp. Its shipped with the struts binary distribution and is needed by
validwhen.
Niall
- Original Message -
From: "Scott Purcell" <[EMAIL PROTECTED]>
Sent: Tuesday, March 15, 2005 8:27 PM
Still having problems
No, can't do that with any of the numeric validators :-( would be a good
addition though.
Currently the only way to do this is using standard validators shipped with
struts is using the "mask" validator.
Niall
- Original Message -
From: "Vinicius Caldeira Carvalho" <[EMAIL PROTECTE
On Tue, 15 Mar 2005 14:27:15 -0600, Scott Purcell
<[EMAIL PROTECTED]> wrote:
>
> My Bean has the getPassword() and getConfirmPassword() methods. Can anyone
> help here.
Perhaps your property needs to be set to "confirmPassword".
>
> thanks,
>
> Error: ##33
> java.lang.No
Thanks Hubert,
I fixed the property, but I cannot seem to find the antlr.jar in the struts
extract? Is this something new? I did find this "ant-antlr.jar" but it was
under my ant stuff?
Thanks,
Scott
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March
In the binary distribution it should be in the "lib" folder along with all
the other jars (including struts.jar).
Niall
- Original Message -
From: "Scott Purcell" <[EMAIL PROTECTED]>
Sent: Tuesday, March 15, 2005 8:40 PM
Thanks Hubert,
I fixed the property, but I cannot seem to find t
Yes, just extend the PropertyMessageResources and overide the
loadLocale() method. You should extend the factory too and specify
the new factory in struts-config.xml. Add a method to clear
the cache in the PropertyMessageResources and clear it when the user
changes something.
- Dan
> -Origin
Just wanted to say that I got the syntax:
window.opener.document.projectForm.elements["projectStobsForms[1].estStaffCost"].value
Just in case somebody looks for this in the future.
J
-
To unsubscribe, e-mail: [EMAIL PROTECT
I have one question regarding to struts validation for French input characters.
I have some input fields in the form to accept the French character input, such
as Street name,
person's name,
In struts's validation.xml file, I have defined the following rule:
streetName
|^\w+$
pers
Could someone provide a code sample and struts config snippit? My project
is way over deadline and this is not crucial, but would be very nice. I
only have 1 locale so this should be easy. If I have to make any serious
effort on this it will have to wait for phase II. Thank you very much for
yo
Could someone provide a code sample and struts config snippit? My project
is way over deadline and this is not crucial, but would be very nice. I
only have 1 locale so this should be easy. If I have to make any serious
effort on this it will have to wait for phase II. Thank you very much for
yo
At 4:20 PM -0800 3/15/05, John Smith wrote:
I have one question regarding to struts
validation for French input characters.
I have some input fields in the form to accept
the French character input, such as Street name,
person's name,
In struts's validation.xml file, I have defined the followi
Hi Eric,
I'm guessing that you don't have struts configured in your web.xml
correctly. Of course, thats just a guess. You might show us your
web.xml, struts-config.xml and the entire URL that you are trying to
view. Is it a link in a JSP page? If so, what's the link?
Eric Lemle wrote:
Here is w
http://www.fedoraforum.org/forum/showthread.php?t=47711
.V
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
There are these struts tags in my jsp. I need to write a javascript function so
that when a button addrow is clicked a new row with
these 2 dropdown lists(tables, columns) is displayed. how to add a row with
javascript function.
the second dropdown options depend on the table selected in the
Hi,
There are these struts tags in my jsp. I need to write a javascript function so
that when
a button addrow is clicked a new row withthese 2 dropdown lists(tables, columns)
is displayed. how to add a row with javascript function.
the second dropdown options depend on the table selected in the f
Rick Reumann wrote:
Your friendly neighborhood losers are still hanging out in
#FunkyCodeMonkey on irc.darkmyst.org and wouldn't mind having some
fresh blood in the channel.
Hi Rick,
XChat says:
* Looking up newserver
* Unknown host. Maybe you misspelled it?
Cycling to next server in irc.darkmys
Hi,
In struts what is actually the controller portion? (Is it RequestProcessor
or ActionServlet?)
Regards
Rajaneesh
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Rajaneesh.
There are three things which are part of the controller:
- The ActionServlet that acts as a front controller.
- The RequestProcessor that has the responsibility to fulfill the
request in a specific module.
- The Action which is the part of the controller that deals with the
other layer
hi
you do not need to use export filter.
i use displaytag struts1.1 and also struts 1.2.4 and oc4j.
jdeveloper10g has embedded struts1.1 . in the projects library list displaytag
library have to be over the struts library.you can use also 1.2.4.(last
version) but again displaytag jar have to be
Hi all,
I got a problem when I code like below:
">Go
if my code is incorrect, plz help me solve it.
thanks
Bowl
46 matches
Mail list logo