Re: javascript in returned jsp through xhr

2008-08-16 Thread Jeromy Evans
Dave Newton wrote: Somewhat on-topic: we should really figure this out, enumerate go/no-go use-cases, and write something up, since it comes up pretty frequently--I was never able to reproduce that JIRA issue around this, but I'd sure like to put this issue to rest w/ an easily-spewable wiki p

Re: javascript in returned jsp through xhr

2008-08-16 Thread Dave Newton
Somewhat on-topic: we should really figure this out, enumerate go/no-go use-cases, and write something up, since it comes up pretty frequently--I was never able to reproduce that JIRA issue around this, but I'd sure like to put this issue to rest w/ an easily-spewable wiki page. Dave --- On Sa

Re: javascript in returned jsp through xhr

2008-08-16 Thread Jeromy Evans
Kropp, Henning wrote: Hi, I am a little stuck here. A action loads a jsp into a div. For this I use the ajax theme (dojo) and a form submit with target. Works fine. The Problem ist, that the jsp returned by the action has javascript in it. Its the jcalendar. Having this jsp load normally the

Re: Validate associate Map

2008-08-16 Thread Dave Newton
On a vaguely-related side note, I spent yesterday floating in my kayak counting herons (1 great blue), egrets (4, species unknown), and, parenthetically, turtles, wondering where my bug spray was. The variety in turtle size was astonishing; some were bigger than my head (I know, right?!) while

Struts loses action configuration

2008-08-16 Thread tjstavenger
I'm using Struts 2.1.2 and Tiles 2.0.5 on WebLogic 9.2.1. Periodically I see a TilesException in my server logs caused by a SocketException: Broken Pipe. The next request made into Struts seems to lose the Struts action configuration as I subsequently get a message "There is no Action mapped for a

Re: Validate associate Map

2008-08-16 Thread stanlick
Dude, I totally think technical books on audio would sell! Most NERDS (like myself) have the attention span of a moth and are so busy chasing shiny things they can never get to the end of a book! I would slam an aBook in my iPod for the commute. For a great example of what I mean by attention sp

Re: javascript in returned jsp through xhr

2008-08-16 Thread Frans Thamura
talking about XHR anyone have success a JSON send and request? the idea is to make S2 as the JSON RPC implementation anyone F - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: javascript in returned jsp through xhr

2008-08-16 Thread Kropp, Henning
--- Begin Message --- Dear Gainty, vielen Dank for your reply. I am very sorry but I cant supply you with a url. What I load into the div is the following: <%@ include file="/common/taglibs.jsp"%> .. src="${ctx}/scripts/calendar/calendar.js"> src="${ctx}/scripts/cale

[OT][JSTL] Re: value from varstatus

--- On Sat, 8/16/08, cpanon <[EMAIL PROTECTED]> wrote: > Whenever I try to get the numerical value of varStatus all > I get is this Typejavax.servlet.jsp.jstl.core.LoopTagSupport [...] "All you get" is giving you precisely what you've asked for. You'd need to use ${varStatus.count} (or index) or

value from varstatus

Hello Whenever I try to get the numerical value of varStatus all I get is this [EMAIL PROTECTED] Furthermore I cant seem to use the name attribute to properly evaluate down to value, it keeps saying that the value(which I want and proves it can do the dereferencing) is not a bean, no matter what

javascript in returned jsp through xhr

Hi, I am a little stuck here. A action loads a jsp into a div. For this I use the ajax theme (dojo) and a form submit with target. Works fine. The Problem ist, that the jsp returned by the action has javascript in it. Its the jcalendar. Having this jsp load normally the calendar works fine, b

Re: Validate associate Map

--- On Sat, 8/16/08, Al Sutton wrote: > lol... I've just had a mental image of Dave reading the > XML examples. I have a very soothing XML voice. I'm like the Isaac Hayes (but alive-ier) of structured text. Dave - To unsub

Re: Validate associate Map

--- On Sat, 8/16/08, Kibo <[EMAIL PROTECTED]> wrote: > Thanks a lot for your help. I found out that the > VisitorFieldValidator can work with Object, Arrays and Collections. Wow, that's nothing like the question I answered; glad it's working for you, although I'm a little confused now. Dave >

Re: Validate associate Map

Hi Dave Thanks a lot for your help. I found out that the VisitorFieldValidator can work with Object, Arrays and Collections. Then I convert the Map to Collection and it begins work correct. @Validations( visitorFields = { @VisitorFieldValidator( message = "Default messa

Re: Validate associate Map

I'll offer it as a service along with my mad meta-Google skillz. --- On Sat, 8/16/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > From: [EMAIL PROTECTED] <[EMAIL PROTECTED]> > Subject: Re: Validate associate Map > To: "Struts Users Mailing List" , [EMAIL PROTECTED] > Date: Saturday, August 16,

Re: Validate associate Map

lol... I've just had a mental image of Dave reading the XML examples. Some things just don't work in audio. Al. [EMAIL PROTECTED] wrote: Can you record *yourself *reading these documents and just post the Podcast? On Sat, Aug 16, 2008 at 9:24 AM, Dave Newton <[EMAIL PROTECTED]> wrote:

Struts Authorization Interceptor

Hello, I have recently integrated my struts2 apps with spring security for authentication. We use an implementation of CAS for single-sign-in/out. I am now looking to add authorization, and I was wondering if anyone had implemented an authorization interceptor with spring-security, and how t

Re: Validate associate Map

Can you record *yourself *reading these documents and just post the Podcast? On Sat, Aug 16, 2008 at 9:24 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- On Sat, 8/16/08, Kibo wrote: > > I have to write custom validation method where I iterate all > > "PageText" class and validate it. I want to

RE: Memcached

in struts-default.properties you can config the objectFactory cache created classes struts.objectFactory.spring.useClassCache = true ###suggestion to browser to please cache static parts ### If true -> Struts will write out header for static contents such that they will ### be cache

Re: Validate associate Map

--- On Sat, 8/16/08, Kibo wrote: > I have to write custom validation method where I iterate all > "PageText" class and validate it. I want to use validate() > method from ActionSupport class but the method is invoke always. > I need invoke validator method only when is invoke method > save(); Is b

Re: Validate associate Map

I have to write custom validation method where I iterate all "PageText" class and validate it. I want to use validate() method from ActionSupport class but the method is invoke always. I need invoke validator method only when is invoke method save(); Is better resolution? public String save() thr

RE: Struts2 Application Structure

Good Morning Al if you're using Apache you want to config the ajp13 connector to handle any/all struts/jsp/servlet requests so in your %APACHE_HOME%/conf/httpd.conf you'll want to config in ajp13 worker as illustrated here # send all requests ending in .jsp to ajp13 JkMount /*.jsp ajp13 JkMount

Re: Struts2 Application Structure

Roger wrote: Any link http://www.host.com/MyApplication passes directly to Struts 2. Only if you're using a strange configuration that says it should. Otherwise http://www.host.com/MyApplication/blah.jsp will be processed in the same way as any other jsp, and http://www.host.com/MyApplicati

Re: Struts2 Application Structure

On Saturday 16 August 2008 13:06:19 Al Sutton wrote: > Not sure where you get the action-per page is the generally accepted > norm, but if your page is purely static (i.e. accesses no variables and > includes no forms), go straight to the html page. > > Not only does this save you the JSP compile/p

Re: Struts2 Application Structure

Al Sutton wrote: Not sure where you get the action-per page is the generally accepted norm, but if your page is purely static (i.e. accesses no variables and includes no forms), go straight to the html page. Not only does this save you the JSP compile/post-compile interpretation time it also

Re: Struts2 Application Structure

Not sure where you get the action-per page is the generally accepted norm, but if your page is purely static (i.e. accesses no variables and includes no forms), go straight to the html page. Not only does this save you the JSP compile/post-compile interpretation time it also allows you to move

Validate associate Map

Hi konference How can I validate classes which are associated in collection. The class "Page" contents Map with "PageText" classes: Page.java -- private Map texts = new HashMap(); ... getter / setter PageText.java -- private String description; @String

Struts2 Application Structure

Having followed this group for a while I know that the generally accepted wisdom is that every page should be handled via an Action. However, I have an application that is probably going to be 70% static pages with 30% Strut-able actions to handle form entry etc etc. This means that I'm going to