RE: JSP to static html...

2004-01-26 Thread Neil Pattinson
Jacob, Another approach is to enclose the part of the JSP that you want to 'snap' to HTML in a Custom Tag that allows you to get at the JspWriter's output stream; if the page is one that would also need to be viewed as-is by a browser, then the tag could use a settable attribute to control

Re: Favorite tag reference?

2004-01-26 Thread Adam Hardy
I find the struts docs for struts taglibs the best. The API docs at the link you give are all I've ever needed. 2nd to that is the JSTL spec for the JSTL taglibs i18n: or fmt:, c: etc. On 01/26/2004 12:56 AM P. Hill wrote: Hi, Just thought I'd ask if anyone has any favorite on-line or paper

monday morning theory question

2004-01-26 Thread Adam Hardy
Here's a question to all you theorists out there about division of a use-case between model and controller. I have a use case where my struts app receives a http post from PayPal detailing a transaction which it has just processed for me, taking payment from a customer I sent there from my

Re: monday morning theory question

2004-01-26 Thread HG
Hi Adam As I read your post you are doing business logic here. I used a design somehow similar to the Business Delegate pattern. The business delegate takes care of the whole purchase-workflow, except simple field validations on the values coming along with the ActionForm instance in progress.

Logic:iterate and logic:equalquestion

2004-01-26 Thread Marco Mistroni
Hi all, I need to use the logic:equal inside a logic iterate..and I am Having problems.. My case is that I hae in an ActionForm an HashMap property which contains Pairs of String, MyObject. My object has a Boolean property called status What I want to do is to loop thru all the objects

Re: Logic:iterate and logic:equalquestion

2004-01-26 Thread Nicolas De Loof
Solution 1 : bean:define id=myObject name=element property=value/ logic:equal name=myObject property=status value=trueActive/logic:equal ... Solution 2 : logic:equal name=element property=value.status value=trueActive/logic:equal ... Nico. Hi all, I need to use the logic:equal inside a

session control

2004-01-26 Thread Vinicius Carvalho
Hi there! I was wondering of how to keep my session clean, I mean, don't overload it with a lot of objects. Sometimes I need to register some objects in the session scope for a certain group of pages in my application, after the client leaves that (could be an item of a menu for example), I'd

Re: session control

2004-01-26 Thread Manfred Wolff
Vinicius. I think having objects in the session is no good solution. It might have a little bit of global variables, but thats only my 0.02$. I try to group objects into own contexts - I call it action-contexts, and allow actions only write information in these context. So you have better

problem with nested tags

2004-01-26 Thread Marco Mistroni
Hi all, I have problem in invoking a javascript for following code... nested:iterate id=element name=batchTaskForm property=tasks tr class=workscreen td align=right class=workscreen bean:write name=element property=value.type/

Re: Configuring Struts applications on OC4J (Oracle 9i AS)

2004-01-26 Thread Duncan Mills
If you are using a deployment profile in JDeveloper to do the deployment then all you'll have to do is to change your project J2EE properties to set the context root to the path you want - e.g. test/appName rather than just appName. If you are doing his manually then you can bind an application

Validator question

2004-01-26 Thread Andriy Ruzhevych
Hi. I have a sum field that can have different values (money or percent), depending on the other field isPercent. I want to validate money and percent type through the mask validator. I am not sure , whether I can set two mask validators with different masks on the same field. Maybe, somebody has

Re: Validator question

2004-01-26 Thread Markus
Hi. I have a sum field that can have different values (money or percent), depending on the other field isPercent. I want to validate money and percent type through the mask validator. I am not sure , whether I can set two mask validators with different masks on the same field. Maybe,

RE: dbcp and mysql

2004-01-26 Thread PlrAndrea
It not works, these are the errors: GRAVE: Parse Error at line 4 column -1: Lelemento {0} non consente {1} qui. org.xml.sax.SAXParseException: Lelemento {0} non consente {1} qui. at org.apache.crimson.parser.Parser2.error(Parser2.java:3317) at

Re: problem with nested tags

2004-01-26 Thread Claire Wall
You cannot have custom tags within custom tags. As you say you want a bean:write tag within an html:button tag, then this will not work as they are both custom tags. You could get around this by using bean:define and then using the value of this in your html:button tag like so: bean:define id=a

RE: Validator question

2004-01-26 Thread Andriy Ruzhevych
Thanks Markus Did you write your custom validator? I always use DynaValidatorForm and don't want to write custom java beans for this. -Original Message- From: Markus [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 4:04 PM To: Struts Users Mailing List Subject: Re: Validator

Re: Convert JSP to static HTML...

2004-01-26 Thread Manfred Wolff
Jacob. *Simple*: When you browse through your app right mouse click View Page Source and per copy and paste to a html file. *More difficult*: That is possible to do automatic. You need a little program that accessed the side via an URL http://my.server/myapp/dosomething.do and gets the

RE: Convert JSP to static HTML...

2004-01-26 Thread Lawrence Williams
how about a shell script that calls wget? ( http://www.gnu.org/software/wget/wget.html ) Ive used that a couple of times with good results. Cheers Lawrence -Original Message- From: Manfred Wolff [mailto:[EMAIL PROTECTED] Sent: Mon 26/01/2004 14:26

RE: Validator question

2004-01-26 Thread Markus
Thanks Markus Did you write your custom validator? I always use DynaValidatorForm and don't want to write custom java beans for this. Hi, No, for this solution you can't use DynaForms. You have to write an ActionForm. Kind regards, Markus

checkbox taglib problem

2004-01-26 Thread Bubeník Miroslav
Hi all, how can I set value to the formbean for non checked checkbox (I use checkbox taglib from struts)? If in HTML form is checkbox unchecked, this value is not sent, but I don't want to have in my formbean value null, but default value. Thanx miro

RE: Convert JSP to static HTML...

2004-01-26 Thread McCormack, Chris
I haven't tried this bit of code (modified it from something else) but it should work. Just add in the file writing part and you are away. try { StringBuffer urlString = new StringBuffer(http://my.server.co.uk;); urlString.append(/myapp/dosomething.do);

Locale Object and locale-dependent validation

2004-01-26 Thread Theodosios Paschalidis
Hi all, I am trying to get my validator to detect the user's local by having this in the validation.xml, before the alternative validation form name=registerForm locale=el As it is, it seems to use the server's default locale and not the client's. I have already internationalized my JSPs by

Re: dbcp and mysql

2004-01-26 Thread Adam Hardy
Hi Andrea, I can't figure out the non-English bit, but it looks like your XML configuration is incorrect. Presumably in your server.xml or your context config file. On 01/26/2004 03:08 PM [EMAIL PROTECTED] wrote: It not works, these are the errors: GRAVE: Parse Error at line 4 column -1:

Re: Favorite tag reference?

2004-01-26 Thread P. Hill
Adam Hardy wrote: I find the struts docs for struts taglibs the best. [...] 2nd to that is the JSTL spec for the JSTL taglibs i18n: or fmt:, c: etc. I wrote: Reading the new JSP 2.0 spec [...] I assume now that the JSP 2.0 is out, you are flipping through that spec, if needed. Or is there a

Struts PDF

2004-01-26 Thread Claus Weng Madsen - TELMORE
Hi Does anyone know how to forward to pdf I try something like this in my action byte[] pdf = facade.getPdfBytesFor(); response.setContentType(application/pdf); response.setContentLength(pdf.length); response.getOutputStream().write(pdf);

Struts Actions Forms Actions - ?????????

2004-01-26 Thread Vinicius Carvalho
Well, sometimes I wonder if struts is really the best framework to use in our application scope, it brought so many problems then solutions... But now I think its too late. Here's my problem (another one in the huge, never-ending list) I need to call the same Action from a link and a Form,

RE: [OT] jPowered chart example in Struts

2004-01-26 Thread Barnett, Brian W.
ChartFx looks nice. Unfortunately, it's 10x the price of jPowered charts. ($500 vs $5000) -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Saturday, January 24, 2004 2:26 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: [OT] jPowered chart example in

Re: Favorite tag reference?

2004-01-26 Thread Adam Hardy
There is a seperate JSTL spec doc in pdf format from Sun somewhere I think. I guess the link is on the jakarta-commons website. On 01/26/2004 04:38 PM P. Hill wrote: Adam Hardy wrote: I find the struts docs for struts taglibs the best. [...] 2nd to that is the JSTL spec for the JSTL taglibs

Re: Struts PDF

2004-01-26 Thread Franck Lefebure
Le Monday, January 26, 2004 11:45 AM, Claus Weng Madsen - TELMORE [EMAIL PROTECTED] m'a, d'une plume avisee, ecrit: Hi Does anyone know how to forward to pdf reponse.reset(); reponse.setContentType(application/pdf);

Re: Help URL Rewriting

2004-01-26 Thread Michael E. Allen
Christian Bollmeyer wrote: Am Freitag, 23. Januar 2004 19:59 schrieb Michael E. Allen: Where would I put that? Already tried putting it in the %@ page [..] % on top of your JSP pages? :-) As Struts tends to create a session implicitly, such as for storing the default locale settings etc, doing

SV: Struts Actions Forms Actions - ?????????

2004-01-26 Thread Tommy Holm - TELMORE
Are you using a html:form ... Tag for submitting the user request ? and are you sure that you are mapping the action to the correct action in the html:form action=? Did you implement the token check and forgot about it, so that you actually are getting double form submit exceptions ? I have

Re: SV: Struts Actions Forms Actions - ?????????

2004-01-26 Thread Vinicius Carvalho
Sorry, I don't think you understood my question. The problem is not within th html:form but html:link which action is the same that the html:form on the other page will use. Got it? | Selectmodel.jsp | -- calls an action (listModels.do) via link -- forwards to |listmodels.jsp| -- calls an

RE: Convert JSP to static HTML...

2004-01-26 Thread Nicholson, Robb
The Apache Commons HTTP Client (see org.apache.commons.httpclient.* packages) makes it pretty easy to make HTTP requests and get the response back as a String. -Original Message- From: Jacob Wilson [mailto:[EMAIL PROTECTED] Sent: Friday, January 23, 2004 4:28 PM To: [EMAIL PROTECTED]

SV: SV: Struts Actions Forms Actions - ?????????

2004-01-26 Thread Tommy Holm - TELMORE
Ok lets look at it. You have a flow like this 1.) Selectmodel.jsp - 2.) listModels.do - 3.) listmodels.jsp - 4.)listModels.do - 5.)listmodels.jsp *** Correct ? From which point doesn't it work anymore, after number 3 ? Are you using an action for forwarding to Selectmodel.jsp ? If you

Dealing wiht exception in DispatchAction

2004-01-26 Thread Marco Mistroni
Hi all, I am using a DispatchAction in my application. I have declared the Type of the exception that will be raised in case one method raises an exception.. But I am stuck with the fact that i have, in 4 methods, the same type of Exception but with different message. When I declare the

entity includes in tiles-defs.xml (again)

2004-01-26 Thread Matt Bathje
Hi, I asked this question a month or 2 ago, and never got a response, so thought I'd try again - Using XML entities, I was able to get my struts-config file broken up into multiple files. I am attempting the same thing on my tile-defs.xml file, and when I do it, I get the following error:

RE: Dealing wiht exception in DispatchAction

2004-01-26 Thread Hunt, Steve
Marco If these are expected exceptions catch them and forward to a failure page with whatever actionErrors objects and messages you wish to create. Or throw them all and handle the different messages in your exceptionHandler class. Regards Steve -Original Message- From: Marco Mistroni

Where is struts-scaffold.jar?

2004-01-26 Thread Anderson, James H [IT]
What am I missing? It's not in the Struts 1.1 distribution, and I haven't been able to find it anywhere. jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Session Problem

2004-01-26 Thread VERMA, SANJEEV (SBCSI)
I put the topic as Re: Session Problem because it may be related with same problem. In my application I am using Struts 1.1 and WebSphere 5.0. First time when I login into the application it works fine. The problem starts after that, when I open a new browser not by Ctrl+N or File--New--Window,

RE: Where is struts-scaffold.jar?

2004-01-26 Thread Richard Hightower
Look at the bottom of the page... http://sourceforge.net/project/showfiles.php?group_id=49385 Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring -Original Message-

RE: Session Problem

2004-01-26 Thread Robert Nocera
If there is no server activity, is it possible the page you are looking at is cached? -Rob -Original Message- From: VERMA, SANJEEV (SBCSI) [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 12:24 PM To: [EMAIL PROTECTED] Subject: Re: Session Problem I put the topic as Re: Session

problems in iPlanet 6.05?

2004-01-26 Thread Newcomer, Kenneth
All New to Struts, hope to learn from the group. An issue that we are tracking is potential configuration/execution problems on iPlanet 6.05 that are apparently "solved" by migrating to iPlanet 6.1. So far, I haven't been able to find much information on this - can anyone help by

[OT] How to use java constants as bean identifiers in jsps

2004-01-26 Thread Paul McCulloch
Hi, Is there a common solution to using Constants for bean identifiers in your views? For example in some action I have ... Collection foo = new SomeCollection(); request.setAttribute(Constants.SOME_THING, foo); I want to access this collection via the JSTL in my view. Something like

Re: [OT] How to use java constants as bean identifiers in jsps

2004-01-26 Thread James Mitchell
Look at the unstandard tags. Specifically, the bind tag. -- James Mitchell Software Engineer / Struts Evangelist http://www.struts-atlanta.org 678.910.8017 (cell) AIM: jmitchtx MSN: [EMAIL PROTECTED] - Original Message - From: Paul McCulloch [EMAIL PROTECTED] To: Struts Users Mailing

Re: SV: SV: Struts Actions Forms Actions - ?????????

2004-01-26 Thread Vinicius Carvalho
Well I changed my application (last time, next one I'll change framework ;P ) to fit, and now it works, but thanks for all the help. At 14:34 26/1/2004, you wrote: Ok lets look at it. You have a flow like this 1.) Selectmodel.jsp - 2.) listModels.do - 3.) listmodels.jsp - 4.)listModels.do -

RE: Where is struts-scaffold.jar?

2004-01-26 Thread Anderson, James H [IT]
Terrific! Thanks very much. jim -Original Message- From: Richard Hightower [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 12:35 PM To: Struts Users Mailing List Subject: RE: Where is struts-scaffold.jar? Look at the bottom of the page...

Looping through a VO collection

2004-01-26 Thread Vinicius Carvalho
Hi there! I have a collection of VOs in my request, I'd like to loop through it using the html:logic and html:link The idea is to create links for a page. But how do I access the properties of the VO? Let's suppose I want to build a list of links like this How do I combine those tags to render

Re: entity includes in tiles-defs.xml (again)

2004-01-26 Thread James Mitchell
Try changing this: Here is what DOES work in tiles-defs: !ENTITY kurt-tiledefs SYSTEM C:\Inetpub_Tomcat\rsg_java\struts\pub\WEB-INF\kurt-admin-tilesdefs.xml to this !ENTITY kurt-tiledefs SYSTEM /Inetpub_Tomcat/rsg_java/struts/pub/WEB-INF/kurt-admin-tilesdefs.xml normally, / will be

RE: Looping through a VO collection

2004-01-26 Thread Matthias Wessendorf
hi Vinicius logic:iterate id=element name=allVOS html:link action=/doSomething paramId=name paramName=element paramProperty=propertyOfA_VO link me /html:link /logic:iterate this shoud work cheers, matthias -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]

RE: Looping through a VO collection

2004-01-26 Thread Richard Hightower
Classic Struts logic:iterate id=foo name=bar property=foos html:link action=someAction paramID=id paramName=foo paramProperty=idbean:write name=foo property=name//html:link /logic:iterate JSTL c:forEach var=foo collection=${bar.foos}

RE: Session Problem

2004-01-26 Thread VERMA, SANJEEV (SBCSI)
Initially I thought the same way, but it is happening between different Machines. Looks like this is some kind of caching problem but couldn't figure it out where. -Original Message- From: Robert Nocera [mailto:[EMAIL PROTECTED] Sent: Monday, January 26, 2004 12:40 PM To: 'Struts Users

RE: Looping through a VO collection

2004-01-26 Thread Kris Schneider
JSTL jsp:useBean id=params class=java.util.HashMap/ c:forEach var=vo items=${voList} c:set target=${params} property=name value=${vo.name}/ c:set target=${params} property=ID value=${vo.ID}/ html:link action=/someAction name=params c:out value=${vo.ID}/ /html:link /c:forEach Quoting

RE: Looping through a VO collection

2004-01-26 Thread Richard Hightower
Cool beans! I forgot about that one. Good show... Rick Hightower Developer Struts/J2EE training -- http://www.arc-mind.com/strutsCourse.htm Struts/J2EE consulting -- http://www.arc-mind.com/consulting.htm#StrutsMentoring -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED]

Declaring Definitions in a JSP Page

2004-01-26 Thread Carlos Dias
Since I need to integrate Cocoon into the Struts framework I though in using the plugin developed by Don Brown. The problem is that my web application use Tiles, and from what I read the plugin doesn't support it. But I try to create a test page with two links, one uses the cocoon architecture

Re-deploying in JBoss3.2.3

2004-01-26 Thread Ramadoss Chinnakuzhandai
Hi, Can anybody suggest me Is there anyway I can avoid re-deploy the ear file contains war again and again whenever we make changes to JSP's in JBoss 3.2.3 bundle with Tomcat 4.1.29..? earlier we were running separate container(JBoss and Tomcat as different container) and were able to

Re: 'response has already been committed' on protected page when I expected the login form?

2004-01-26 Thread Janice
I'm sorry to repost this question, but I wanted to add some more details: I experimented by adding a test page to my protected directory that does not use tiles. When I accessed that test page, got a 404: Page cannot be found. So then I changed the following in my web.xml file from:

Torque and Struts problem

2004-01-26 Thread Paul Daniell
I've encountered a strange problem with Struts when used with Torque. I retrieve an object using the following: ArrayList list = (ArrayList)ComponentPeer.doSelect(new Criteria()); request.setAttribute(components, list); Component c = (Component)list.get(0); request.setAttribute(comptest, c);

Re: Torque and Struts problem

2004-01-26 Thread Kris Schneider
I suppose this could be a classloader issue. Are all your Struts, Torque, and JSTL JAR files colocated? Quoting Paul Daniell [EMAIL PROTECTED]: I've encountered a strange problem with Struts when used with Torque. I retrieve an object using the following: ArrayList list =

Re: Torque and Struts problem

2004-01-26 Thread Paul Daniell
From: Kris Schneider [EMAIL PROTECTED] I suppose this could be a classloader issue. Are all your Struts, Torque, and JSTL JAR files colocated? Yes. I am using Struts 1.1 rc1, Torque 3.0.2, and JSTL 1.0. Quoting Paul Daniell [EMAIL PROTECTED]: I've encountered a strange problem with

RE: bean:write question

2004-01-26 Thread Daniel Lipofsky
Or replacing all newlines with BR. Either should work, but BR might look nicer. This is not a struts issue ... just a basic fact of how HTML works. - Dan -Original Message- From: Hien Q Nguyen [mailto:[EMAIL PROTECTED] Sent: Saturday, January 24, 2004 4:30 PM To: Struts Users Mailing

RE: html:checkbox pls help

2004-01-26 Thread Wendy Smoak
From: Raman Garg [mailto:[EMAIL PROTECTED] Thanks for your reply... BUT it take the default value=on when I do the way as you were telling me. I want to put the value=232 where 232 is the id value corresponding to my record. Can you post the iterate tag along that's outside the

Struts upload

2004-01-26 Thread Edgar Silva
Hi Folks... Anybody can send to me any address of docs or articles, talking about Struts uploads. since now... TIA Edgar _ MSN Hotmail, o maior webmail do Brasil. http://www.hotmail.com

Manually placing errors for display

2004-01-26 Thread Wendy Smoak
Seems there's been a lot of back and forth over ActionError/ActionMessage and I'm a bit confused. I've also been using Validator, so I don't manually create error messages very often. Using a recent nightly build, say I've called some DAO method in my Action code and something has gone wrong.

Re: Favorite tag reference?

2004-01-26 Thread P. Hill
Adam Hardy wrote: There is a seperate JSTL spec doc in pdf format from Sun somewhere I think. I guess the link is on the jakarta-commons website. Just to make this thread more complete, both the PDF and a very short java Doc summary version of just the STL can be found at:

constant url

2004-01-26 Thread shankarr
hi! whenever i click on any link, my url shows the action name and the parameters being passed. i want to avoid showing this. how to do it? Richie To achieve all that is possible, one must attempt the impossible - To

Re: Torque and Struts problem

2004-01-26 Thread Kris Schneider
My email's acting flaky, sorry if this gets posted twice: What happens with this instead of JSTL: jsp:useBean id=comptest scope=request type=org.ttemplating.internal.dataobjects.Component/ jsp:getProperty name=comptest property=name/ Paul Daniell wrote: From: Kris