----
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Andrew Thorell
Software Engineer
theglobe.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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 proje
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. Be
Hey all,
I've been trying for some time now to figure out what my problem is
with my Validations not displaying error messages back to the page
from where the request came from. It's a simple login page which
pretty much follows Ted's Struts in Action example.
I'm using a Form which extends Valid
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 limitatio
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 on
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.
I'
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,
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 commands
Greetings all,
I was wondering if anyone knows of a way to submit form data via a
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
---
This is what I use...
-- main body here --
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 Method would be to see if the session attribute
I put there when logging in was actually th
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 though
In part you are correct. You can try doing this:
in web.xml
404
/pages/error.jsp
This goes after and before any declarations.
The 404 can be replaced with any html error code you wish (as far as I know).
I'm getting an NPE error right now and the error code is 500. So you
can prob
/**
* 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.
*/
errors.add("login", new ActionMessage("logon.form.password.invalid"));
I've never been able to return an error using
ActionErrors.GLOBAL_MESSAGE before
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
500
/where/you/want/to/go
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
> I recently added the following to my JSP pages to force
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 unsubs
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;
>
> request.getRequestDispatcher(/e
I know has a redisplay option. Is there any way to put
this functionality on tags as well?
Any thoughts?
Andrew
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
The only other thing I can think of is in the application.properties file:
errors.header=
errors.prefix=
errors.suffix=
errors.footer=
logon.form.password.invalid=Invalid Password.
all should be set to something. I've included mine as an example
public ActionErrors Validate(...)
{
ActionEr
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"));
> >>>
> >>>
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
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]
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 you have
25 matches
Mail list logo