Re: Spring + Tiles not working

2007-12-19 Thread Antonio Petrelli
Todd, please repost, since your message is unreadable!!! Antonio 2007/12/19, Todd Prickett <[EMAIL PROTECTED]>: > > I'm trying to wire tiles (from Struts 1.3 jars) into Spring 2.0.7 and > Spring Web Flow 1.0.5.In doing so, I'm receiving the error: No Tiles > definition found for name '/WEB-INF/js

Re: Loading dojo.js in struts2.0.9 is very slow

2007-12-19 Thread Yoge
Thanks. I will try and let you know. -- Yoge, AdventNet, Inc. 925-965-6528 site24x7.com On Dec 19, 2007 3:36 PM, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: > Hi, > > i think this mail thread will help you. > > http://www.mail-archive.com/user@struts.apache.org/msg67703.html > > Thanks, > Nu

Re: validation and CSS

2007-12-19 Thread [EMAIL PROTECTED]
Thanks so much, Alberto. Your guide is very helpful. On Dec 19, 2007 10:21 PM, Alberto A. Flores <[EMAIL PROTECTED]> wrote: > As the matter of fact, I found several ways in which you can modify the > outcome of the tag. > > The basic (and in my opinion, a hack) is to look at the generated HTML >

Re: validation and CSS

2007-12-19 Thread Alberto A. Flores
As the matter of fact, I found several ways in which you can modify the outcome of the tag. The basic (and in my opinion, a hack) is to look at the generated HTML code and then use your own CSS to modify the look and feel of your view. I'm currently using the "simple" theme and in all my "textf

Re: validation and CSS

2007-12-19 Thread [EMAIL PROTECTED]
Thanks Alberto. Which class contains style for ? I need to customize it so that no is around it and the text associated with it is in bold. e.g., If the value of the "some key" is Password, I want the "Password" is in bold. Any suggestion? Thanks again. On Dec 19, 2007 10:00 PM, Alberto A.

Re: validation and CSS

2007-12-19 Thread Alberto A. Flores
I believe the errors are within a "span" with class "errorField" (it may be something else). Custom CSS can make you look like whatever you want. [EMAIL PROTECTED] wrote: Thanks Dave. It seems the simple theme is used so the message is in black. I overrode the ..errorMessage style in JSP whic

Re: validation and CSS

2007-12-19 Thread [EMAIL PROTECTED]
Thanks Dave. It seems the simple theme is used so the message is in black. I overrode the ..errorMessage style in JSP which solved my problem but I'm not sure if it's a right way to do that. Thanks again. On Dec 19, 2007 8:09 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > Er, the default stylesh

Re: validation and CSS

2007-12-19 Thread Dave Newton
Er, the default stylesheet *does* make it show up in read. Are you using the tag? IIRC that is what includes the CSS file. d. --- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Is there a way to apply style sheet (CSS) to the message validator > generates? For example, how to make the "Color

validation and CSS

2007-12-19 Thread [EMAIL PROTECTED]
Is there a way to apply style sheet (CSS) to the message validator generates? For example, how to make the "Color me red" message in red when it is shown up? *Color me red* Many thanks.

Re: Printing a PDF file from JSP

2007-12-19 Thread Jeff Amiel
On Dec 19, 2007 4:03 PM, Zoran Avtarovski <[EMAIL PROTECTED]> wrote: > I don't know if you can print the file without displaying it first. > I'm just trying to think how you could set it up to print only. Maybe Flash > where you have greater control. Not really..I went through this last month

Re: Printing a PDF file from JSP

2007-12-19 Thread Zoran Avtarovski
I don't know if you can print the file without displaying it first. To display it, I'd just use the stream result in S2 and S1, just hijack the request and stream the file to the user. I'm just trying to think how you could set it up to print only. Maybe Flash where you have greater control. Z.

Re: How to do logic in struts tags?

2007-12-19 Thread Dave Newton
Exposing the values you want as action properties is probably the easiest way, but you should be able to use OGNL as values, so I would have thought that "%{#parameters.lang}" (or whatever it is) would have worked. --- "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I need to pass a request para

How to do logic in struts tags?

2007-12-19 Thread [EMAIL PROTECTED]
I need to pass a request parameter value to a form action. If using a hidden fild, I can do it like as the tag doesn't allow an experssion as its value. How can I get around it? Another question is how to use or other struts tag to do this logic: <% if ("en".equals(request.getParameter("lan

Spring + Tiles not working

2007-12-19 Thread Todd Prickett
I'm trying to wire tiles (from Struts 1.3 jars) into Spring 2.0.7 and Spring Web Flow 1.0.5.In doing so, I'm receiving the error: No Tiles definition found for name '/WEB-INF/jsp/defs/loginForm.jsp'My tiles-defs.xml looks like:My servlet-config.xml looks like:/WEB-INF/defs/tiles-defs.xmlThe fl

Re: Printing a PDF file from JSP

2007-12-19 Thread Dave Newton
Isn't FOP for creating PDFs from XML? I think the question was how to download a PDF that already exists on the filesystem. d. --- [EMAIL PROTECTED] wrote: > The technology is called FOP > (Formatting Object Processor) > http://xmlgraphics.apache.org/fop/ > I've used it quite extensively from th

Re: Printing a PDF file from JSP

2007-12-19 Thread mgainty
The technology is called FOP (Formatting Object Processor) http://xmlgraphics.apache.org/fop/ I've used it quite extensively from the back end .. implementing from JSP would work as well (but there are security concerns on where to store the PDF file...) Martin-- - Original Message - Wrom:

Re: accessing url parameters in jsp.

2007-12-19 Thread Zarar Siddiqi
Well, you could just use the pageContext variable to get the query string like so: ${pageContext.request.queryString} Zarar strutstwouser wrote: > > Hi, > > I need to access certain url parameters and pass them on as the query > string > to an iframe within the jsp > > So, if the incoming

Printing a PDF file from JSP

2007-12-19 Thread Prasad, Srinivasa
Hi, Is it possible to print a PDF file from a JSP.The pdf resides in my application server. Regards Srinivasa Prasad -Original Message- From: Jake Robb [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 2:30 PM To: Struts Users Mailing List Subject: RE: Struts 2 and SSL Hav

RE: Struts 2 and SSL

2007-12-19 Thread Jake Robb
Have a look at the implementation of the plugin's interceptor: http://struts2-ssl-plugin.googlecode.com/svn/trunk/plugin/src/main/java/ com/googlecode/sslplugin/interceptors/SSLInterceptor.java Just change it so that it looks at something else instead of the annotation. -Jake -Original Mes

Re: Struts 2 and SSL

2007-12-19 Thread Maxx
Hello, Good idea, but when it's about "annotations", is it about Java 5? How to handle/use this in Java (1.)4 ? Thanks, Maxx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: accessing url parameters in jsp.

2007-12-19 Thread Maxx
On Dec 19, 2007 6:45 AM, j alex <[EMAIL PROTECTED]> wrote: > Ideally, i would want the entire incoming query string be passed on to the > iframe- but didn't find anything handy. > > Note : i can't use the s:action tag in this case, since the result is a > jasperreport page, and it flushes the resp

Re: Question about validation mechanism

2007-12-19 Thread Ian Roughley
The validator interceptor doesn't do anything. If you are using the s2 tags, then the getter matching the name attribute will be called on the action or model. /Ian -- Ian Roughley From Down & Around, Inc. Consulting * Training / Mentoring * Agile Process * Open Source web: http://www.fdar.

Question about validation mechanism

2007-12-19 Thread Jeremy JGR. Grumbach
Hi, I have a page "add.jsp" with a form and lots of fields. I have added a validation in my struts configuration to validate the form. During the form validation, if an error is detected, then an action error is added to the request and struts redirects to the "input" forward. In most of cases

Re: form + file problem

2007-12-19 Thread Pablo Vázquez Blázquez
I suppose so, as the rest of the form works OK when there is no file field. The form loads part of its content via AJAX. When the loaded content includes a takes place the problem. Regards. Dave Newton escribió: Do you have the appropriate tag lib declarations in the included JSP file? --

Re: form + file problem

2007-12-19 Thread Dave Newton
Do you have the appropriate tag lib declarations in the included JSP file? --- Pablo Vázquez Blázquez <[EMAIL PROTECTED]> wrote: > I have the following form: > > http://www.w3.org/1999/xhtml"; > xmlns:jsp="http://java.sun.com/JSP/Page"; > xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"; >

form + file problem

2007-12-19 Thread Pablo Vázquez Blázquez
I have the following form: http://www.w3.org/1999/xhtml"; xmlns:jsp="http://java.sun.com/JSP/Page"; xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"; xmlns:c="http://java.sun.com/jsp/jstl/core"; xmlns:s="/struts-tags" version="2.0"> Why, if I have a field inside JobV

Error parsing web-inf/struts-nested.tld

2007-12-19 Thread rapsy
Hi All, I am trying to deploy struts aplication on Oracle Application server 10g. I am getting following list of error, any input will be greatly appreciated. It is really urgent. Below is the stack trace of errors I am getting in deployment log file: Error parsing web-inf/struts-nested.tld Er

Re: Struts 2.0.9 server side validation problem

2007-12-19 Thread Brian Relph
If you are building with maven2, you might make sure that you are adding the xml files in your source directory to your compiled output directory. I know this was something that fooled me at first ... src/main/java **/*.properties **/*.xml

Re: OpenSessionInView with Struts 2.x

2007-12-19 Thread Alberto A. Flores
Gary, Thanks a lot for bringing this to my attention. You are correct, that's the setup I have in place. I checked my "readonly" configuration and it turned out that there was a hidden bug in my xml code (nasty to trace) where the "read-only" attribute was not part part of my "get*" keys. I c

Re: Struts 2.0.9 server side validation problem

2007-12-19 Thread Dave Newton
--- TuomoS <[EMAIL PROTECTED]> wrote: > How can I confirm that the XML validator file is read? Turning up the debug level on com.opensymphony.xwork2.validator is the easiest. > It seems that the actionName-validation.xml is not read. I That's not very likely; this definitely works. > have check

Struts 2.0.9 server side validation problem

2007-12-19 Thread TuomoS
How can I confirm that the XML validator file is read? It seems that the actionName-validation.xml is not read. I have checked many times that the action java class matches with the xml file name. actionName.java actionName-validation.xml (when using execute method in submit) I overrided the val

Re: Struts 2 and SSL

2007-12-19 Thread Nuwan Chandrasoma
Hi, take a look at this plugin and code. i hope it will help you http://code.google.com/p/struts2-ssl-plugin/ Thanks, Nuwan. Filipe David Manana wrote: Hi, I am novice in Struts 2 and web development in general. I want to know the following: 1) How can an action know what is the protocol

Struts 2 and SSL

2007-12-19 Thread Filipe David Manana
Hi, I am novice in Struts 2 and web development in general. I want to know the following: 1) How can an action know what is the protocol (http or https) of the url that was used to invoque the action (the url that is mapped to the action in struts.xml) ? 2) How can an action redirect itself (or

Re: [s2] How do I output unicode characters please help

2007-12-19 Thread Jonny Cavell
I am also having difficulty with using Struts2 and Freemarker. I am setting default_encoding=UTF-8 in freemarker.properties, and leaving the struts encoding in default.properties untouched (i.e. struts.i18n.encoding=UTF-8). When I use a struts action to forward to a test page with Spanish text, w

Re: Loading dojo.js in struts2.0.9 is very slow

2007-12-19 Thread Nuwan Chandrasoma
Hi, i think this mail thread will help you. http://www.mail-archive.com/user@struts.apache.org/msg67703.html Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) Yoge wrote: My App is using ajax theme of struts2.0.9. It takes more than 3 seconds to load /struts/ajax/dojoRequire.js and

Re: Struts 2.1.x

2007-12-19 Thread Nuwan Chandrasoma
Hi, I think the below link has a test build of struts 2.1 http://people.apache.org/builds/struts/2.1.0/ Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) Frans Thamura wrote: i am seeking the S2 2.1.x binary anyone can share your binary so i can use and test the feature F

RE: Exception Handling keeping user input

2007-12-19 Thread Jeremy JGR. Grumbach
Yes I think it's more what I had in mind. My three requests were: 1) Go back to the "add" page without losing user input 2) Display an error message above the "add" form 3) Do this in a generic way => the business layer returns functional exceptions which appear automatically in the user screen Th

Re: How to use dojo 1.0?

2007-12-19 Thread Alvaro Sanchez-Mariscal
> Yeah, that right. It would be convenient if tags existed for 1.0 > already but there's none. It'll takes someone with a lot of familiarity > with Dojo 1.0 to be able to build useful reusable tags like the current > dojo plugin so I expect it'll take a while. However, if you use "raw > Dojo" ins

Re: html:submit & html:img comb

2007-12-19 Thread Paul Benedict
Your image is part of the servlet container. You need to need the context root to your image path. There is also an tag part of S1, I believe. Paul On Dec 18, 2000 5:57 PM, Martin Gainty <[EMAIL PROTECTED]> wrote: > change to > <%@ taglib prefix="s" uri="/struts-tags" %> > > http://struts.apac