Anthony,
I'm still a newbie to struts myself, so take this email with a gain of
salt (or 2). I put in a suggestion down below that may make your life
easier if you have a lot of reports to deliver (or similiar items on
what you are displaying).
-- Start JSP Code
%
ProjectsBean
to and from our network.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Andrew Thorell
Software
Not sure if you found your fix or not, but just out of curiosity,
after the action returns success where is it supposed to go? My
first thought would be you'd get just a blank white page... are you
perhaps pointing to another page inside the PreLoadViewTreeAction?
Generally inside an
/**
* Double check the property 'Property' inside the Errors tag, it could
be name, I just don't *have my code infront of me to double check.
*/
html:errors property=login /
errors.add(login, new ActionMessage(logon.form.password.invalid));
I've never been able to return an error using
I could be wrong, but I thought saveErrors was only needed in the
Action Class, not the ActionForm class?
Andrew T
Probably because you didn't read all the docs ;)
I don't see where you're saving the errors:
saveErrors(request, errors);
This is important.
Dave
Web.xml
error-page
error-code 500 /error-code
location /where/you/want/to/go /location
/error-page
you can do redirections inside your location page, or however you want
to set it up, point it at an action or whatever.
Andrew T
On 5/26/05, David Johnson [EMAIL PROTECTED] wrote:
Hey all
Perhaps the community can answer that question for you. I use the
error-page 500 as a catch all for undefined / unexpected errors. I'm
sure there's a way to do it, I just haven't done it before and can't
tell you off the top of my head. You can probably point the Error at
an action which can point
,mime-mapping*,welcome-file-list?,error-page*,taglib*,reso
That error is tell you that you placed the error-page tag in the wrong
section. The error tells you the correct order you need to put all the
tags in.
Andrew
-
To
Where does one find this to modify the doGet method? I've yet to deal
with actually modifiying the actual servlet...
Andrew
On 5/26/05, Martin Gainty [EMAIL PROTECTED] wrote:
Inside the StrutsServlet's doGet method
RequestDispatcher dispatcher = null;
I know html:password has a redisplay option. Is there any way to put
this functionality on html:text tags as well?
html:password redisplay=false/
Any thoughts?
Andrew
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
The only other thing I can think of is in the application.properties file:
errors.header=UL
errors.prefix=LIfont color=red
errors.suffix=/font/LI
errors.footer=/UL
logon.form.password.invalid=Invalid Password.
all should be set to something. I've included mine as an example
html:errors
GLOBAL_ERRORS is deprecated (sp?) Looks like they changed it to just
use the Super class constant.
Andrew
On 5/26/05, Dave Newton [EMAIL PROTECTED] wrote:
Andy wrote:
errors.add(ActionErrors.GLOBAL_MESSAGE,new
ActionMessage(logon.form.password.invalid));
Is this the key
constant.
Andrew
On 5/26/05, Dave Newton [EMAIL PROTECTED] wrote:
Andrew Thorell wrote:
GLOBAL_ERRORS is deprecated (sp?) Looks like they changed it to just
use the Super class constant.
Yes, but doesn't the errors tag just look for errors, not messages?
I don't recall which release
See if you can pitch a 404 error. If that works, then it's not your
program's problem.
Andrew
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This is what I use...
logic:present ...
-- main body here --
/logic:present
logic:notPresent name=...
logic:redirect ...
/logic:notPresent
Now if you're talking about the person filled out the form (or
whatever) and then let the session expire.. The first thing I would
check in the Validate
Greetings all,
I'm trying to write an application that will collect form data from a
webpage when it is directed at an Action. Is there any way to do this
without using an ActionForm (which is pretty useless because in some
cases I won't know what variable names will be pointed at me)?
Any
In part you are correct. You can try doing this:
in web.xml
error-page
error-code 404 /error-code
location/pages/error.jsp/location
/error-page
This goes after servlet-mapping and before any taglib declarations.
The 404 can be replaced with any html error code you wish (as far as I
Greetings all,
I was wondering if anyone knows of a way to submit form data via a
logic:redirect action.
The fields are auto populated so the user doesn't need to see
anything. Does the redirect tag already do this?
Any thoughts?
Thanks,
Andrew
Greetings all,
Based on the subject line has anyone had any problems implementing
these systems together? Anything I should keep an eye out for?
thanks,
Andrew
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I'm not sure if this is a struts ... 'thing' or it's just for web
development in general, but perhaps someone can explain this for me.
My file structure is set up like this. My index.jsp is in the root
directory, all my other .jsps are located in the /pages/ directory.
A link off the index pages
Greetings all,
I was wondering if anyone had any ideas on the best way to display
data from a Vector in a table column where it doesn't dump out like
the following:
[800-555-1212, 800-555-1212, 800-555-1212, ... ]
I'm using the following tag to get that information out, but I need
each number
I've been trying this segment of code, but it seems to be failing and
no errors are being reported in the log file for me to use to help
debug, any ideas?
commcenter is the attribute defined in struts-config.xml in the action
listing. callto is the name of the Vector / getter / setter methods.
Thanks for the speedy reply, My time is limited to solve this
particular problem, but I'll definitely look into using
DynaValidatorActionForm. I do have another question though, why would
not using DynaValidatorActionForm prevent my code from display the
error back to the jsp? Is there a
try{
File file = new File(text.txt);
FileReader in = new FileReader(file);
FileWriter out = new FileWriter(file);
}
catch (IOException ex) -- could be wrong about the Excpetion here..
{
}
Sun has a bunch of tutorials on this, also check out the API listings
on Java's website. Best
24 matches
Mail list logo