OTP-Dynamically building an SQL Query from ActionForm inputs

2003-07-19 Thread Curtney Jacobs
Hi everyone, I know this is of the topic but I am hoping that someone has came accross this and wouldn't mine shareing with me how they eloquently solve this problem. I have an ActionForm (and corresponding Action class) that takes input from the user and does a search depending on the

Struts 1.10 final version released

2003-07-19 Thread Ditlinger, Steve
Struts 1.10 final version is now released. New features (originally added in RC2, but not announced here): secure property for actions in struts config file now accepts values true, false AND any. A value of any means that the action will accept http or https protocol, whichever is current.

RE: Struts 1.10 final version released

2003-07-19 Thread Ditlinger, Steve
Guess I forgot to say Struts 1.10 final version of *sslext* released. Find it at sslext.sourceforge.net. -Original Message- From: Ditlinger, Steve [mailto:[EMAIL PROTECTED] Sent: Saturday, July 19, 2003 1:21 AM To: 'Struts Users Mailing List' Subject: Struts 1.10 final version

Struts 1.10 final version *of sslext* released

2003-07-19 Thread Ditlinger, Steve
Find more info at sslext.sourceforge.net. Struts 1.10 final version is now released. New features (originally added in RC2, but not announced here): secure property for actions in struts config file now accepts values true, false AND any. A value of any means that the

Tiles: attribute 'head' not found in context

2003-07-19 Thread stephan
Hi list, I have a problem getting tiles definitions to work (using Struts 1.1). It works fine, when I use tiles:put name=head value=Kopf.jsp / in my JSP pages, but not with the XML: Here is the code in my tiles-defs.xml definition name=mainLayout path=Layout.jsp put name=head

tiles: Comments are ignored

2003-07-19 Thread stephan
Hi list, I found something weird: tiles:insert page=Layout.jsp flush=true tiles:put name=head value=Kopf.jsp / tiles:put name=book value=Buch.jsp / tiles:put name=foot value=Fuss.jsp / tiles:put name=author value=Autor.jsp / /tiles:insert Works fine in a JSP. And it still works if I

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Axel Sachmann
[EMAIL PROTECTED] wrote: Hi list, I have a problem getting tiles definitions to work (using Hi Stephan, Struts 1.1). It works fine, when I use tiles:put name=head value=Kopf.jsp / in my JSP pages, but not with the XML: Here is the code in my tiles-defs.xml definition name=mainLayout

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Stephan Wiesner
Hi Axel, that did not help. Now I just get null as the exception .-( Axel Sachmann wrote: [EMAIL PROTECTED] wrote: Hi list, I have a problem getting tiles definitions to work (using Hi Stephan, Struts 1.1). It works fine, when I use tiles:put name=head value=Kopf.jsp / in my JSP pages, but not

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Axel Sachmann
Hi Stephan, has you define the tile-config in your struts-config? You must define the tile - plugin in the struts-config CIao Stephan Wiesner wrote: Hi Axel, that did not help. Now I just get null as the exception .-( Axel Sachmann wrote: [EMAIL PROTECTED] wrote: Hi list, I have a problem

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Stephan Wiesner
yes I have. Axel Sachmann wrote: Hi Stephan, has you define the tile-config in your struts-config? You must define the tile - plugin in the struts-config CIao - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Axel Sachmann
[EMAIL PROTECTED] wrote: Hi list, I have a problem getting tiles definitions to work (using Struts 1.1). It works fine, when I use tiles:put name=head value=Kopf.jsp / in my JSP pages, but not with the XML: Here is the code in my tiles-defs.xml definition name=mainLayout path=Layout.jsp

RE: package org.apache.struts.action Does Not Exist?

2003-07-19 Thread Jimmy Emmanual
are you sure struts.jar is in your classpath? It doesn't matter that struts.jar is in $TOMCATHOME\webapps\MyApplication\WEB-INF\lib when you are compiling. only that it is in your classpath. echo $CLASSPATH or echo %CLASSPATH% and see if you see struts.jar. -Original Message- From:

Re: tiles: Comments are ignored

2003-07-19 Thread Yann Cébron
I'd guess you didn't reload/restart your webapplication after the first editing of your tiles-defs.xml.. Tiles uses Digester - and Digester surely does know about comments Yann Hi list, I found something weird: tiles:insert page=Layout.jsp flush=true tiles:put name=head

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Stephan Wiesner
Hi Axel, ? insertAttribute is not valid. Axel Sachmann wrote: %@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles % tiles:insertAttribute name=head/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: tiles: Comments are ignored

2003-07-19 Thread Stephan Wiesner
I have to restart my application when I change a JSP? Tried it again. Even stopped the Tomcat completely. He clearly recompiled the JSP (I can hear the hard disc work). The comments are ignored. I can send you a WAR file, if you want to try it yourself... Stephan Yann Cébron wrote: I'd guess

File Upload with Mac IE

2003-07-19 Thread otsuka
I made a web application using struts which enables users to upload image (Bfiles. (BWhen files are submitted with Mac IE 5, the exception below occured. (BWith Mozilla or any browsers for Windows, it will work fine. (B (BWhat is the cause and how can I solve this problem? (B

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Axel Sachmann
Hi, have a look at this tutorial - http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf Go to Page 7. Insert Attribute works with my complete site Ciao Axel Stephan Wiesner wrote: Hi Axel, ? insertAttribute is not valid. Axel Sachmann wrote: %@ taglib

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Stephan Wiesner
ah, but there is a space in between. tiles:insert attribute='menu'/ not tiles:insertAttribute name=head/ That is how it works for me, but without the tiles-defs.xml. So, sadly, I am still where I started (about the day before yesterday) .-( Axel Sachmann wrote: Hi, have a look at this tutorial

RE: Bread crumb trail

2003-07-19 Thread Holman, Cal
Hi - That person was me. I have built a war with a demo of using the tiles context through the tiles action and another example of accessing the tiles context through a tag. Unfortunately I have been plagued by poor Bell South DSL service for over a week. They have the worst customer service

RE: package org.apache.struts.action Does Not Exist?

2003-07-19 Thread Caroline Jen
Jimmy, thanks for your reminder and sorry for my stupid question. I worked late last night (after mid-night) and was not thinking well. Now, I put the struts.jar file back to the CLASSPATH (not $TOMCATHOME/webapps\MyApplication\WEB-INF\lib) and everything works. --- Jimmy Emmanual [EMAIL

Re: Tiles: attribute 'head' not found in context

2003-07-19 Thread Axel Sachmann
okay - last try. It is possible that the tile-plugin is not starting? Have you any german sonderzeichen in yout tiles-defs.xml? That will cause an error when the digester parsing your file Stephan Wiesner wrote: ah, but there is a space in between. tiles:insert attribute='menu'/ not

Re: Tiles: attribute 'head' not found in context [Solveed]

2003-07-19 Thread Stephan Wiesner
Hi list (or better: hi Axel), thanks for the try to help. Figured it out now and wrote it down (in German, though). Can be found here: http://rzserv2.fhnon.de/~lg002556/Templates.zip (html with screenshots) Just wrote it down, so expect tons of Rechtschreibfehler. Will be part of a book about

RE: Tiles: attribute 'head' not found in context

2003-07-19 Thread Holman, Cal
If you are using the XML definition factory then you should call the definition instead of the jsp. So in your JSP to call the definition it should look like this: tiles:insert definition=mainLayout flush=true/ mainLayout then will provide the link to Layout.jsp do to the path attribute. Then

RE: Action Under a Tile?

2003-07-19 Thread Holman, Cal
Have you tried using a TilesAction? Using an action tied to a definition allow for the building of independent jsps - they not only have the html but they have an action attached to them that can load any beans necessary for rendering. You can then drop into any definition or template a self

RE: tiles: Comments are ignored

2003-07-19 Thread Holman, Cal
I think JSPs ignore html comments only the browser respects them. Have you tried commenting out with JSP comments? %-- tiles:put --% Cal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, July 19, 2003 06:30 To: [EMAIL PROTECTED] Subject: tiles:

search results display

2003-07-19 Thread victor gu
Hi, After user clicks on search button, I try to display the search results at the botton of the page. I am not sure how to do this without using frames ( my html and _javascript are very lame) in Struts? This must be vry common, but I just cannot think a nice way to do it. Is it possible to use

Suggestions

2003-07-19 Thread Saman Ghodsian
Hi everyone, I just completed phase one of my project which is the development and testing of my business model. some 120 classes, now I'm evaluating options to implement my front end. I've been looking at struts as an option, but I still have some concerns about how to go about it. I'm

Re: search results display

2003-07-19 Thread Thomas Cornet
If you put your search results in a bean to be able to display them, it is quite simple : just check if such a bean exists. If so, then a search has been called. html // display search form here logic:present name=yourresultbean // display results here /logic:present /html Thomas

Re: search results display

2003-07-19 Thread victor_gusz
Thanks, Thomas: Seems pretty easy to handle, I gotto try it out using your suggestions. regards, --- In [EMAIL PROTECTED], Thomas Cornet [EMAIL PROTECTED] wrote: If you put your search results in a bean to be able to display them, it is quite simple : just check if such a bean exists.

Re: search results display

2003-07-19 Thread victor gu
Thanks, Thomas: Seems pretty easy to handle, I gotto try it out using your suggestions. regards, --- Thomas Cornet [EMAIL PROTECTED] wrote: If you put your search results in a bean to be able to display them, it is quite simple : just check if such a bean exists. If so, then a search

html:optionsCollection bug

2003-07-19 Thread Henrik Lindqvist
I'we found a bug in struts-html.tld (1.1-b3), the attribute property of html:optionsCollection-tag has required set to true. According to the doc's its not required. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: html:optionsCollection bug

2003-07-19 Thread David M. Karr
Henrik == Henrik Lindqvist [EMAIL PROTECTED] writes: Henrik I'we found a bug in struts-html.tld (1.1-b3), the attribute Henrik property of html:optionsCollection-tag has required set to true. Henrik According to the doc's its not required. If you check the online CVS history,

Re: OTP-Dynamically building an SQL Query from ActionForm inputs

2003-07-19 Thread David Graham
Name all of your search fields using this pattern: criteria(name). For example, input name=criteria(firstName) input name=criteria(email) Now use a Map backed form attribute called criteria in your form bean with a method like this: public void setCriteria(Map criteria) {

Re: OTP-Dynamically building an SQL Query from ActionForm inputs

2003-07-19 Thread Curtney Jacobs
Greetings David. I understood everything up to the point where I have to read in a properties file. If it is not to much of a problem., can you please elaborate from that point downwards. I thought that once I have the criteria I would just build the SQL query. However, your approach appears

Re: Action Under a Tile?

2003-07-19 Thread Aaron Longwell
Cal, Thank you for your in-depth reply... I have a few questions about the implementation. You are referring to a TilesAction. Is this an extension of the Struts Action class. Does your /do/portalWhatsNew Action extend TilesAction? Secondly, the do/portalWhatsNew and the PortalWhatsNew.jsp