Re: preferred way to jump start app into struts?

2009-08-29 Thread Peter Phillips
Luis- there's nothing wrong with your code, but Rusty is also right. The trick is to create an empty file called the same name as your action (e.g. start.action) at the root of your web app. Tomcat will see the empty file and then call your action directly. 2009/8/30 Luis Martín Canaval Sánchez

RE: Radio options left aligned

2009-08-29 Thread Lee Clemens
I guess I'm trying to ask, how would you do this? -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Saturday, August 29, 2009 5:50 PM To: Struts Users Mailing List Subject: Re: Radio options left aligned Lee Clemens wrote: > theme 'simple' is horizontally aligned

Re: preferred way to jump start app into struts?

2009-08-29 Thread Luis Martín Canaval Sánchez
My bad, I´m really sorry the code I posted is totally wrong. please ignore it. I usually start with a index.jsp or html as a welcome page. On Sat, Aug 29, 2009 at 18:37, Rusty Wright wrote: > Luis, are you using tomcat? I've tried that but it only works for me when > the welcome-file is a actua

RE: ajax validation problem in IE8

2009-08-29 Thread Martin Gainty
you can take all your JS scripts and run it thru RhinoScript thats what i did for Dojo http://www.rhinoscript.org be sure to toss in plenty of alert statements! Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Re: preferred way to jump start app into struts?

2009-08-29 Thread Musachy Barroso
this bug was fixed, are you having this problem? On Sat, Aug 29, 2009 at 12:22 PM, Xyzr wrote: > > BTW Struts < 2.1.8 will fail into infinite loop on > "FORWARD". > > > Xyzr wrote: >> >> I use this: >> >> myapp/index.jsp >> (only 1 line of code) >> --- >> >> >> >>

Re: preferred way to jump start app into struts?

2009-08-29 Thread Rusty Wright
What do you mean by "Use a welcome page"? As far as I can tell I can't have welcome-file specify a resource that's inside the app (i.e., maps to an Action), it has to be an actual, physical file. In other words, the web.xml tag is welcome-file, not welcome-url or welcome-resource, so it has t

Re: preferred way to jump start app into struts?

2009-08-29 Thread Rusty Wright
Luis, are you using tomcat? I've tried that but it only works for me when the welcome-file is a actual, physical file in the ~tomcat/webapps/myapp directory. Luis Martín Canaval Sánchez wrote: This is my preffered choice, just a welcome page defined in the web.xml file start.acti

Re: ajax validation problem in IE8

2009-08-29 Thread Mitch Claborn
I'll give that a try. I thought I remembered seeing instructions for a way to extract those .js files to somewhere so that I can put in some debugging statements. Do you know about that? Mitch Martin Gainty wrote: > /template/css_xhtml/validation.js > > function addErrorCSS(e, errorText) { >

Recursive Execution of Tag

2009-08-29 Thread Anthony Frasso
Hi all, and thanks for your help in advance. I wrote a while back to ask if there was a struts tag that could be used to execute some recursive logic; I was directed to create my own tag that would accomplish what I would need. I was successful in creating "standard" tags using the javax.servlet.

ajax validation problem in IE8

2009-08-29 Thread Mitch Claborn
Struts 2.1.6 I have a form that uses ajax validation before a non-ajax POST. In IE8, if the ajax validation call returns a field error (like a missing field), I get the error in a pop up box in IE8: "An exception occurred: Error. Error message: Invalid argument." Only happens when there are field

Re: Radio options left aligned

2009-08-29 Thread Dave Newton
Lee Clemens wrote: theme 'simple' is horizontally aligned (and my default) theme 'xhtml' puts everything else out of whack theme 'ajax' puts everything else out of whack Are you suggesting my own theme, where I put a or whatever > between the options? If you're not going to do it via CSS I

RE: Radio options left aligned

2009-08-29 Thread Lee Clemens
theme 'simple' is horizontally aligned (and my default) theme 'xhtml' puts everything else out of whack theme 'ajax' puts everything else out of whack Are you suggesting my own theme, where I put a or whatever between the options? -Original Message- From: Dave Newton [mailto:newton.d...

Re: preferred way to jump start app into struts?

2009-08-29 Thread Luis Martín Canaval Sánchez
This is my preffered choice, just a welcome page defined in the web.xml file start.action No redirects just straight to the action. On Sat, Aug 29, 2009 at 17:34, Rusty Wright wrote: > Is there a preferred way to "jump start" a web app when the user starts at > the to

Re: Radio options left aligned

2009-08-29 Thread Dave Newton
Lee Clemens wrote: If this can only be done by changing the theme, is there a way for changing that single element to use theme="" to not complete destroy the integrity of the rest of the page? Use the "theme" attribute? That aside, you may be able to just use plain CSS. Dave -

Radio options left aligned

2009-08-29 Thread Lee Clemens
Hello, I'm using Struts 2.1.6 with an tag. I want the radio options to line up vertically against the left margin (one option per line), rather than in a straight line. By default, I'm using (and have to use do to other aspects of the page) theme="simple" Is there a way to have the radio optio

Re: preferred way to jump start app into struts?

2009-08-29 Thread Dave Newton
Rusty Wright wrote: Is there a preferred way to "jump start" a web app when the user starts at the top; e.g., they use the url http://somehost.com/myapp/ What I'm doing now is putting a redirect in index.jsp, as follows. Is there a better way? <%@ page contentType="text/html; ch

Re: preferred way to jump start app into struts?

2009-08-29 Thread Xyzr
BTW Struts < 2.1.8 will fail into infinite loop on "FORWARD". Xyzr wrote: > > I use this: > > myapp/index.jsp > (only 1 line of code) > --- > > > > myapp/WEB-INF/web.xml > (notice "FORWARD"s) > --- > > >

Re: preferred way to jump start app into struts?

2009-08-29 Thread Xyzr
I use this: myapp/index.jsp (only 1 line of code) --- myapp/WEB-INF/web.xml (notice "FORWARD"s) --- StrutsPrepareFilter /* REQUEST FORWARD

preferred way to jump start app into struts?

2009-08-29 Thread Rusty Wright
Is there a preferred way to "jump start" a web app when the user starts at the top; e.g., they use the url http://somehost.com/myapp/ What I'm doing now is putting a redirect in index.jsp, as follows. Is there a better way? <%@ page contentType="text/html; charset=UTF-8" %> <%

Re: ActionForm is been called once only

2009-08-29 Thread sharadsingh
thanks Pawel for the help.. in the previous mail you told me about configuring. So i was just going through my struts-config file where i saw that i didnt specified the scope in the action mapping. Then i realized that reset is called whenever there is a new session, which means by default the sco

Re: ActionForm is been called once only

2009-08-29 Thread Paweł Wielgus
Hi, i was thinking about redirect scenario where You load some page through a redirect so there are two actions involved, and after redirect only one action is called. But that's just a wild guesing, so please send struts-config.xml and the action that You are reffering and form, so maybe i or some

Re: Problems loading struts.xml from non-standard directory

2009-08-29 Thread Paweł Wielgus
Hi All, why can't You add your directory to the classpath? Best greetings, Pawel Wielgus. 2009/8/29, Arthur Nogueira Neves : > O'Neil, Tom wrote: >> I'm having problems loading my struts.xml file from a non-standard >> directory in Struts 2.1.6. My web.xml file contains the following >> >> >>