In that case you must have configured or coded something to make that
happen... Do you have something like 'try{ ... } catch (...) { return
findForward(fail); } in your action?
L.
Mon Cab wrote:
The browser is just redirecting to my fail
ActionMapping. And there's nothing going in the logs
Hello!
I want to display a property in my *jsp that is of type Collection
(LinkedList) of Collection (LinkedList) of Bean - in principle a two
dimensional matrix of Beans.
I tried to use some code like
logic:iterate id=categoryList name=categories
type=java.util.LinkedList
X
logic:iterate
Hi
It seems like the FormFile.getContentType method doesn't return
anything when uploading file using Internet Explorer 6 SP2. The method
returns correct result when I use Firefox or Opera browsers to upload
file.
I am calling this method in an Action, no validation or anything.
Is this a known
Ben wrote:
Hi
It seems like the FormFile.getContentType method doesn't return
anything when uploading file using Internet Explorer 6 SP2. The method
returns correct result when I use Firefox or Opera browsers to upload
file.
IE does not send anything to server, or application/octet-stream
I highly suggest using the global exception handling facility:
http://struts.apache.org/struts-doc-1.2.7/userGuide/building_controller.html#exception_handler
Frank
Laurie Harper wrote:
In that case you must have configured or coded something to make that
happen... Do you have something like
Hi,
The minute I introduced Validator framework in my application .
it started giving me the following error when I accessed the JSP
centreList is used as a parameter for the dropdown. The minute I remove the
validation.xml from the path... the application runs fine again! :(
very
I did'nt see the (StudentEnquiry.jsp) jsp page which references centreList
bean?
I also dont see the code for centreList bean?
Martin-
- Original Message -
From: Raghu Kanchustambham [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Saturday, November 12,
Hi Martin,
I do something like:
request.setAttribute(centreList,DataAccessManager.getCentres());
before invoking the jsp.
The strange part is, the minute i remove validation.xml from the validator
path, effectively removing the validation framework, every thing works just
fine! Just cant
I didnt see the contents E.G. tag /tag for your c.tld ??
Martin-
- Original Message -
From: Raghu Kanchustambham [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Saturday, November 12, 2005 10:37 AM
Subject: Re: Fw: Validator framework introduces errors
Hi
I think I can explain it now.
I hit the action servlet first invoking preCreate function. This function
populates various lists of beans needed for dropdowns and put these lists in
the request object and forward to a JSP. The JSP reads these lists and
displays the dropdowns. So far so good!
Some things to check:
1) You have a resource bundle loaded by Struts.
2) Your keys listed in the validator are in the resource bundle.
3) You have a configuration file which lists out the validations needed by the
validator.
4) You're using the correct version of validator for your version of
There's nothing wrong with ussing session scoped forms. You can attached these
lists right to the
form, if you want - just make sure you remove the form from memory when you're
finished.
--- Raghu Kanchustambham [EMAIL PROTECTED] wrote:
I think I can explain it now.
I hit the action servlet
Hi Paul,
The minute I supress the field which requires the centreList, everything
works fine. As long as there is no state that is involved... that is ..
simple textboxes its working fine.
All other variables in the request variables are getting wiped off ! :(
On 11/12/05, Paul Benedict
Thanks.. may be i will do it as a last option.
But is my explanation correct? I am new to Validation framework .. just
started using it for the last 2 days .. and struts as such for just over a
month. So want someone's opinion on my explanation of why state is being
lost!
thanks
raghu
On
Hi,
I am having trouble configuring eclipse 3.0 to use Struts. I saw that there had
been an excellent tutorial on how to do this on struts web site, but when I
tried to access it, it is no longer there.
Can anyone help me with this please. I am using Tomcat as the servlet container.
Thanks
Has anybody integrated STRUTS with Forrest or know a of any How-Tos?
My STRUTS/Tiles site if working great but I'm afarid to integrate Forrest
without a roadmap and an idea of the time it would take.
Thanks,
Jim
-
To
On 11/12/05, Daham Vitarana [EMAIL PROTECTED] wrote:
Hi,
I am having trouble configuring eclipse 3.0 to use Struts. I saw that there
had been an excellent tutorial on how to do this on struts web site, but when
I tried to access it, it is no longer there.
It would help to know the URL you
Hi All
I looking for a sample to construct menu. I am using struts and tiles.
My requirement is I have to show a small image and a name next image in my
menu. Clicking on the menu item body tile should change. I am using
classiclayout.
The problem is I am able to put just text in menu
If this is the sort of thing you mean
* http://demo.raibledesigns.com/struts-menu/permissionsForm.jsp
then try this
* http://struts-menu.sourceforge.net/
-- HTH, Ted.
http://www.husted.com/poe/
On 11/12/05, bib_lucene bib [EMAIL PROTECTED] wrote:
Hi All
I looking for a sample to construct
Thanks Ted
Perfect thanks.
The only concern I have on this is last release is sept 2004. Is it ok to use
it now.
bib/-
Ted Husted [EMAIL PROTECTED] wrote:
If this is the sort of thing you mean
* http://demo.raibledesigns.com/struts-menu/permissionsForm.jsp
then try this
*
Hallo,
you should define the directory webapps of your tomcat installation as your
workspace. Copy the the blank_apps of the strut directory to the webapps
directory. Change the name of the blank_app to the app. Name. restart tomcat
and restart eclipse and define a new project with the name you
What is preCreate? Is that a method you have? Know that the validator will not
call your action if
a validation error has occured.
--- Raghu Kanchustambham [EMAIL PROTECTED] wrote:
Thanks.. may be i will do it as a last option.
But is my explanation correct? I am new to Validation framework
I am trying to use validwhen to make sure that
validator only requires a valid State and Zip if the
country selected is United States.
But I am getting required error messages from both
state and zip when the form is submitted without these
values.
I am using the following config for
Sehr geehrte Damen und Herren,
in der zeit vom 7. November 2005 bis 18. November 2005 bin ich im Urlaub. Bitte
wenden Sie sich bei allen Fragen entweder direkt an [EMAIL PROTECTED] oder
telefonisch an: 0511 / 93 62 28 22
Mit freundlichen Grüßen
Andreas Bednarz
Is there any way to avoid having to restart Tomcat
every time a class is recompiled in a webapp. I am
debugging a webapp at the moment, and everytime I
recompile my Action class I am having to wait 1 minute
for Tomcat to restart.
__
Tim Teulings wrote:
Hello!
I want to display a property in my *jsp that is of type Collection
(LinkedList) of Collection (LinkedList) of Bean - in principle a two
dimensional matrix of Beans.
I tried to use some code like
logic:iterate id=categoryList name=categories
type=java.util.LinkedList
The trick is to only include validation on the data processing actions,
not on the pre-display actions (i.e. use validate=false on your
preCreate action mapping, and only put validate=true on the action you
submit the form to). Then set the 'input' attribute for your validating
actions to
Mon Cab wrote:
I am trying to use validwhen to make sure that
validator only requires a valid State and Zip if the
country selected is United States.
But I am getting required error messages from both
state and zip when the form is submitted without these
values.
I am using the following
Mon Cab wrote:
Is there any way to avoid having to restart Tomcat
every time a class is recompiled in a webapp. I am
debugging a webapp at the moment, and everytime I
recompile my Action class I am having to wait 1 minute
for Tomcat to restart.
You can tell Tomcat to make the context
Mon,
There's two conditions here. The State and Zip are valid (not required) when...
Always look at
this as valid not required; you need to list out the conditions which will
make the validation
pass.
[1] the country is United States and *this* is not null
[2] the country is not United States
Check out your context setting. Set the reloadable attribute to true.
http://tomcat.apache.org/tomcat-5.0-doc/config/context.html
Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and
/WEB-INF/lib for
changes, and automatically reload the web application if a change is
Thanks Laurie for the suggestion.
Then set the 'input' attribute for your validating actions to point to
the pre-population action (so when validation fails, Struts forwards to
preCreate, not directly to the JSP).
That explains why the request variables are getting wiped off! :-) I
realize I
32 matches
Mail list logo