Re: Eclipse plug-in for Struts

2005-06-22 Thread Andrew Thorell
---- > 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]

Re: Newbie Help

2005-07-05 Thread Andrew Thorell
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

Re: help on accessing txt file

2005-04-15 Thread Andrew Thorell
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

Validation Problems

2005-04-19 Thread Andrew Thorell
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

Re: Validation Problems

2005-04-19 Thread Andrew Thorell
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

Displaying Formatted Vector Data

2005-04-25 Thread Andrew Thorell
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

Re: Displaying Formatted Vector Data

2005-04-25 Thread Andrew Thorell
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'

Base Context

2005-04-29 Thread Andrew Thorell
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

Verified by Visa, MasterCard Secure Code and Struts

2005-05-12 Thread Andrew Thorell
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

Submitting form data via redirect

2005-05-20 Thread Andrew Thorell
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 ---

Re: Antwort: RE: howto redirect to login site after session expiration?

2005-05-23 Thread Andrew Thorell
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

Collecting Dynamic Form Data

2005-05-23 Thread Andrew Thorell
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

Re: Re: Antwort: RE: howto redirect to login site after session expiration?

2005-05-23 Thread Andrew Thorell
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

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
/** * 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

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
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 -

Re: Creating a standard page to handle Error 500

2005-05-26 Thread Andrew Thorell
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

Re: Creating a standard page to handle Error 500

2005-05-26 Thread Andrew Thorell
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

Re: Creating a standard page to handle Error 500

2005-05-26 Thread Andrew Thorell
,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

Re: Creating a standard page to handle Error 500

2005-05-26 Thread Andrew Thorell
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

Redisplaying Information

2005-05-26 Thread Andrew Thorell
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]

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
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

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
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")); > >>> > >>>

Re: Blank page returned from ActionForm

2005-05-26 Thread Andrew Thorell
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

Re: not catching errors...

2005-05-26 Thread Andrew Thorell
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]

Re: redirect from index.jsp

2005-06-02 Thread Andrew Thorell
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