Re: [FRIDAY] URL O' The Day

2003-10-17 Thread Mark Lowe
Nice link ... Sent to us with.. Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) :o) On Friday, October 17, 2003, at 12:58 PM, Mark Galbreath wrote: http://www.kmfms.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Calling a javascript function with the logic:iterate tag

2003-10-16 Thread Mark Lowe
If you dont need the link then using html:link would be a waste of time.. so.. a href=javascript: closeWindowWithCode('bean:write name=signal property=code ') or a href=# onlclick=closeWindowWithCode('bean:write name=signal property=code ') or a href=# onclick=closeWindowWithCode('c:out

Re: RSS and Struts

2003-10-08 Thread Mark Lowe
Here you go anyway, but i don't really like answering when you obviously think the list is a short cut to doing any work and reading.. http://jakarta.apache.org/jetspeed/site/index.html On Wednesday, October 8, 2003, at 08:32 AM, Stefan Trcko wrote: Hello I want to put RSS channel with news

Re: urlrewriting Vs Cookies

2003-10-08 Thread Mark Lowe
Hi Prashanth IMHO if you thinking about these as separate things then you're thinking wrong. Sessions use url encoding and cookies to maintain state. But when site building you shouldn't need to drill down this far. Folks often think it clever to manipulated cookies, cos it looks real

Re: urlrewriting Vs Cookies

2003-10-08 Thread Mark Lowe
I'd have though cookie use was upto the user rather than your client. http://jakarta.apache.org/struts/userGuide/struts-html.html#link On Wednesday, October 8, 2003, at 12:16 PM, Prashanth.S wrote: Hi navjot, My clients doesnt want me to use cookiesSo that my application should run even

Re: Struts/SQL Server rephrased

2003-10-08 Thread Mark Lowe
Godfrey I think what folks are trying to say is that the SQL stuff is separate to the struts stuff, and this is kind of what its about. There is a data source definition that confuses the hell out of people new to struts as it seems to implicitly suggest that it should be used. However most

Re: Struts/SQL Server rephrased

2003-10-08 Thread Mark Lowe
On Wednesday, October 8, 2003, at 07:30 PM, David Graham wrote: --- Mark Lowe [EMAIL PROTECTED] wrote: Godfrey I think what folks are trying to say is that the SQL stuff is separate to the struts stuff, and this is kind of what its about. There is a data source definition that confuses the hell

Re: Dynamic form fields on ActionForm

2003-10-07 Thread Mark Lowe
Indexed form property is what you want.. I'll avoid any clever explanations, grandiose meta language or to try and sell you a book.. And give you an example.. form-bean name=productForm form-property name=product type=java.util.ArrayList / .. action name=productForm path=/products

[ot] mod_jk, mod_jk2, mod_webapp virtual hosting

2003-10-01 Thread Mark Lowe
Okay sorry to send this to this list but I'm not getting much joy out of the tomcat lists. So.. I've apache 2.0.47, tomcat 4.1.27, tomcat connectors src 4.1.27. I've compiled mod_jk, mod_jk2 and mod_webapp.. Now i've had all three running so i've a choice, but only in such a way that the

Re: And now for something completely different... [OT]

2003-09-26 Thread Mark Lowe
Umm .. I've known a lot more coked-up account managers than alcoholic programmers... Donald Burleson should get booted just for looking like an older man's hair product advert. He probably just getting his own back because no body ever invited him to the right kinda parties. On Friday,

Re: JSP IDEs

2003-09-24 Thread Mark Lowe
A text editor and a browser refresh button i suppose just wouldn't do then? On Wednesday, September 24, 2003, at 02:16 PM, Stankard, David wrote: Hello there, I'm working on a JSP application in WSAD 5.0. Does anyone know a way to have the WYSIWYG JSP previewer evaluate jsp:include

Re: JSP IDEs

2003-09-24 Thread Mark Lowe
in another cheap/free application. Thanks, -Dave Stankard -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2003 10:27 AM To: Struts Users Mailing List Subject: Re: JSP IDEs A text editor and a browser refresh button i suppose just wouldn't do

[ot] dhtml question was - Re: footer problem

2003-09-16 Thread Mark Lowe
Last time i messed with dhtml, using with:100% didn't work on everything. and inline css was also a bit ropey.. You'll need to detect screen width and height, and dynamically set the width, position and height. This has nothing to do with tiles or struts really, so either you thought you'd

Re: where I put my property files?

2003-09-15 Thread Mark Lowe
The bit you're looking for is in web.xml, init-param param-nameapplication/param-name param-valueApplicationResources/param-value /init-param This means your ApplicationResources.properties is in: /WEB-INF/classes/ApplicationResources.properties were it the case that you

Re: Really Dynamic Forms

2003-09-13 Thread Mark Lowe
DynaForms aren't as dynamic as there name suggest, at least not until you start using indexed properties.If the case of forms you'll still be wanting to use struts html tags, as jstl doesn't cover this yet until java servers faces is released. For most cases nesting beans works //in struts

Re: [resend] indexed properties without setFoo(foo, index)

2003-09-09 Thread Mark Lowe
I don't know if you can change the size if you set in ion the form property tag. If you dont know if you'll have 12 then leave that out.. Also scope the form bean to session if you're changing the size like this. If you're not changing the size then it should work as things stand. Cheers Mark

Re: Tabindex missing in html:link generated code.

2003-09-04 Thread Mark Lowe
, 2003, at 06:00 AM, deepaksawdekar wrote: Thanks mark, I tried it but its not working at my end. Even I tried to put sparrow, but in vain. I am using struts 1.1 , Can you please send me you code snippet. Deepak .. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Tuesday

Re: basic struts question....

2003-09-04 Thread Mark Lowe
I'm stumped also.. Have you this in your action? MyForm theForm = (MyForm) form; or DynaActionForm theForm = (DynaActionForm) form; ? If so i'm really confused.. On Thursday, September 4, 2003, at 10:38 PM, Pady Srinivasan wrote: Redirect is false by default. I also tried to put it in

Re: Struts html tags and XHTML 1.0....Again

2003-09-03 Thread Mark Lowe
are in the head version in cvs, so i guess they'll be along with the next release or something. But struts 1.1 doesn't seem to ship with this functionality. Cheers Mark On Wednesday, September 3, 2003, at 12:49 AM, David Graham wrote: --- Mark Lowe [EMAIL PROTECTED] wrote: I guess this bug

[ot]Re: Bars Graph

2003-09-03 Thread Mark Lowe
I'm not really sure you'd need a framework for this. Just a little bit of java, or even perl will do. They'll be lots of examples around, look for stuff aimed at DBA's, that sort of thing. Whatever you use you can then use cron to fireup your java util or perl script when you want. I wouldn't

Re: Subject: Re: Struts html tags and XHTML 1.0....Again

2003-09-03 Thread Mark Lowe
is supported. Hope this will help, Marco ORIGINAL MESSAGE From: Mark Lowe [EMAIL PROTECTED] That's great.. I'm running 1.1 , yes and the base tag renders as xhtml. I'll certainly be sleeping more soundly. I've just downloaded the latest stable release and as far as form elements are concerned

Re: Subject: Re: Struts html tags and XHTML 1.0....Again

2003-09-03 Thread Mark Lowe
, 2003, at 06:24 PM, Marco Tedone wrote: Well, I download the binaries of Struts 1.1 and the functionality is supported. Hope this will help, Marco ORIGINAL MESSAGE From: Mark Lowe [EMAIL PROTECTED] That's great.. I'm running 1.1 , yes and the base tag renders as xhtml. I'll certainly be sleeping

Re: Subject: Re: Struts html tags and XHTML 1.0....Again

2003-09-03 Thread Mark Lowe
ORIGINAL MESSAGE From: Mark Lowe [EMAIL PROTECTED] That's great.. I'm running 1.1 , yes and the base tag renders as xhtml. I'll certainly be sleeping more soundly. I've just downloaded the latest stable release and as far as form elements are concerned it doesn't, either that or it just hates me

Re: how can I get Chekbox value

2003-09-02 Thread Mark Lowe
html:checkbox property=nilai2 indexed=true value=true / Cheers Mark On Tuesday, September 2, 2003, at 09:17 AM, hari_s wrote: How can I get an iterate value And this is My code logic:iterate id=tanda name=halForm property=data logic:present name=tanda tdbean:write property=nilai name=tanda

Re: How to get the url containing anchor from request

2003-09-02 Thread Mark Lowe
There's an anchor attribute html:link page=/action.do anchor=foo renders as a href=/context/action.do#foo Its not like there's not documentation one this. http://jakarta.apache.org/struts/userGuide/struts-html.html#link On Tuesday, September 2, 2003, at 09:58 AM, Firat TIRYAKI wrote: if it

[ot]Re: German Testreaders needed

2003-09-02 Thread Mark Lowe
I think the subject should be a clue. Its in english, unless of course you only speak english but have trouble reading it. On Tuesday, September 2, 2003, at 10:28 AM, Rohit Aeron wrote: Which language is this ... I understand only English -Original Message- From: Stefan Werner

Re: How to pre-populate - Husted post doesn't work (or I'm implementing it wrong)

2003-09-02 Thread Mark Lowe
I try to avoid scoping to session also, but as soon as you try anything dynamic or vaguely clever you have to, otherwise everything gets nullpointerexceptiontastic. On Tuesday, September 2, 2003, at 12:33 PM, Adam Hardy wrote: Sure it works in principle, I use the technique too. I depends

Re: Struts plugins and modules

2003-09-02 Thread Mark Lowe
If you're saying what i think you are, inheritance works fine in tiles. You have one definition that specifies the layout and then have the sub definitions extend your initial one. Cheers Mark On Tuesday, September 2, 2003, at 10:45 AM, Carlos Sánchez wrote: Hi. I'm using Struts modules (in

Re: Migrating to struts

2003-09-02 Thread Mark Lowe
I don't know of a url. but I'd start with just using you jsp's as they are, and then map all them all to forwards in struts-config. Struts console is useful and it validates config files also. So you'll then have a struts config file with action path=/myaction

Re: Tabindex missing in html:link generated code.

2003-09-02 Thread Mark Lowe
After seeing your posting I gave it a go, and it worked.. My understanding is that its just an attribute thats passed straight through nothing clever going on, it should even work if you don't stick a number in there. For example try tabindex=sparrow and it should render okay. Although any

Re: ANYONE Know How To Validate Nested Form Beans?

2003-09-02 Thread Mark Lowe
Okay Sorry i took a while i forgot about it. So we've a nested user bean as a form property //struts config form-property name=user type=com.sparrow.UserBean / //in validator field property=user.email depends=required,email .. //jsp html:text property=user.email / Cheers Mark On Monday,

Re: Migrating to struts

2003-09-02 Thread Mark Lowe
with you artisan attitudes, but I've learnt to keep an eye on my disposition toward this sort of thing. Thanks for the wisdom Mark Adam On 09/02/2003 06:10 PM Mark Lowe wrote: I don't know of a url. but I'd start with just using you jsp's as they are, and then map all them all to forwards

Re: Struts html tags and XHTML 1.0....Again

2003-09-02 Thread Mark Lowe
It is a tad strange that the tags don't close as valid xhtml. There is a mechanism for this in the source of BaseTag in the renderBaseElement method. .. if (TagUtils.getInstance().isXhtml(this.pageContext)) { tag.append( /); } else { tag.append(); } .. I guess its just a

Re: Warning: Page has Expired The page you requested was created using information

2003-09-02 Thread Mark Lowe
Another guess for the mix.. but have you checked the %@ page language=java % for any differences between the ones that do and those that don't? There's a cache attribute (or something like that). Could be donkey's jiz you never know. Cheers Mark On Tuesday, September 2, 2003, at 10:23 PM,

Re: Struts html tags and XHTML 1.0....Again

2003-09-02 Thread Mark Lowe
have to see if there's a release version with these changes. I'm not sure if there is a release with these changes, the one i'm using hasn't, just the base tag. Cheers Mark On Tuesday, September 2, 2003, at 11:35 PM, Mark Lowe wrote: It is a tad strange that the tags don't close as valid

Re: Muliple Tomcats

2003-09-01 Thread Mark Lowe
Yes .. You can have as many as you like. If this is just for dev purposes you can just change the port numbers. On any live machines you'd want to be more cunning with JVM's etc. Cheers Mark On Monday, September 1, 2003, at 06:34 AM, Kannan wrote: Hi ,Is it possible to have two tomcats, one

Re: ANYONE Know How To Validate Nested Form Beans?

2003-09-01 Thread Mark Lowe
Programming jakarta struts is a nice introduction to webapp development in general and struts development too. The only problem is as soon as you want to do anything vaguely useful there's no detail. Its not a criticism of the book as such just that its scope is different to these sorts of

Re: Muliple Tomcats

2003-09-01 Thread Mark Lowe
, 2003, at 09:03 AM, Mark Lowe wrote: Yes .. You can have as many as you like. If this is just for dev purposes you can just change the port numbers. On any live machines you'd want to be more cunning with JVM's etc. Cheers Mark On Monday, September 1, 2003, at 06:34 AM, Kannan wrote: Hi

Re: Struts Taglib + JSTL Feasible ??

2003-09-01 Thread Mark Lowe
Ha... Nice one Seems to be so as well, Although... a href=c:url value=/foo.jsp / target=_blank but I don't like it.. it lacks the elegance of html:link page=/foo.jsp target=_blank So I guess I'll use the later, given that JSTL looks a little tortured. Cheers Mark On Monday,

[OT] Re: Struts Taglib + JSTL Feasible ??

2003-09-01 Thread Mark Lowe
Mark Lowe wrote: Ha... Nice one Seems to be so as well, Although... a href=c:url value=/foo.jsp / target=_blank but I don't like it.. it lacks the elegance of html:link page=/foo.jsp target=_blank So I guess I'll use the later, given that JSTL looks a little tortured. Cheers Mark On Monday

Re: [OT] Re: Struts Taglib + JSTL Feasible ??

2003-09-01 Thread Mark Lowe
: Is html: taglib still being developed then? I thought it was frozen. I'm afraid you've lost me on 'redirect mechanism' - I'm not sure what you mean there. You don't really mean throwing a redirect from the JSP, do you? On 09/01/2003 12:09 PM Mark Lowe wrote: Adam I've been thinking about

Re: ANYONE Know How To Validate Nested Form Beans?

2003-09-01 Thread Mark Lowe
in the nested beans. The nested beans just aren't being checked for validation. 2) About the book. I completely agree. Glad to know it's not just me ;) --- Mark Lowe [EMAIL PROTECTED] wrote: Programming jakarta struts is a nice introduction to webapp development in general and struts

Re: [OT] Re: Struts Taglib + JSTL Feasible ??

2003-09-01 Thread Mark Lowe
I was being a dick.. I was on about the html:img tag what i said might make sense now :o) On Monday, September 1, 2003, at 05:15 PM, Mark Lowe wrote: No but i'm sure if someone looks into stuff and wants to add a few bits nobody is going to get knee-capped for it. I just don't think that any

Re: Question about DynaActionForm

2003-09-01 Thread Mark Lowe
Hi Erez Things should work as they are and nesting beans in dynaforms works fine. I have no idea about the logging, yes and things can get a little hard to drill down to where the beef is. You'll have to explain what you mean by DynaActionForm derived class? Cheers Mark On Monday, September

Re: pop up window

2003-09-01 Thread Mark Lowe
When you forward to the post-process after the first submit forward to a jsp with something like body onload=popup('html:rewrite page=/preview.do /') Your window will popup.. the preview action can be mapped to you form and life should be great.. Does this help? Cheers Mark On Monday,

Re: dinamically add href into html:link

2003-08-31 Thread Mark Lowe
opps... c:url value=${menuItem.link} c:out value=${menuItem.name} / /c:url is better On Sunday, August 31, 2003, at 05:02 PM, Mark Lowe wrote: The ideal way would be something like this. c:url url=${menuItem.link} c:out var=${menuItem.name}/ /c:url Cheers Mark On Sunday

Re: load data from db into form

2003-08-31 Thread Mark Lowe
Your from bean definition is the most useful thing you can provide to answer this.. if in your formBean definition or in the actionForm class you've got type form-property name=myprop type=com.whatever.ComplRegisterDTO / Then you're on the right lines.. But you're nesting so you jsp needs to

Re: load data from db into form

2003-08-31 Thread Mark Lowe
got exception ServletException: No destination bean specified what is wrong? Mark Lowe wrote: Your from bean definition is the most useful thing you can provide to answer this.. if in your formBean definition or in the actionForm class you've got type form-property name=myprop type

Re: dinamically add href into html:link

2003-08-31 Thread Mark Lowe
The ideal way would be something like this. c:url url=${menuItem.link} c:out var=${menuItem.name}/ /c:url Cheers Mark On Sunday, August 31, 2003, at 04:27 PM, Yann Cébron wrote: how I can do something as this: html:link action=${menuItem.link} c:out value=${menuItem.name} / ? Use the

Re: dinamically add href into html:link

2003-08-31 Thread Mark Lowe
? Thanks, Jiri Mark Lowe wrote: The ideal way would be something like this. c:url url=${menuItem.link} c:out var=${menuItem.name}/ /c:url Cheers Mark On Sunday, August 31, 2003, at 04:27 PM, Yann Cébron wrote: how I can do something as this: html:link action=${menuItem.link} c:out value

Re: load data from db into form

2003-08-31 Thread Mark Lowe
registerDTO = service.loadUser(request); BeanUtils.copyProperties(form, registerDTO); return null; } If I understand well, in BeanUtils.copyProperties I copy data from DTO into form defined in execute method? Or something other is wrong? Thanks Mark Lowe wrote: Okay assuming the following.. form

Re: JSTL API docs?

2003-08-29 Thread Mark Lowe
I think that would be for bean:message key=contextHeader / the var might be the confound choice of attribute name that jstl uses.. fmt:message var=${contextHeader} / Cheers Mark On Thursday, August 28, 2003, at 11:50 PM, David Erickson wrote: fmt:message key=contextHeader/ I believe. -

Re: Struts Tag Question

2003-08-28 Thread Mark Lowe
single quotes may be what you want. But this is less tourtured a href=javascript:Start('bean:write name=indexedBean property=id /')... cheers mark On Thursday, August 28, 2003, at 10:57 PM, David Erickson wrote: Here is the code I'm trying to get to work: html-el:link

Re: J2EE IDE

2003-08-27 Thread Mark Lowe
IDE's aren't really my bag but there is a plugin for borland that gives you vi inside the IDE. Think I saw it on source forge.. On Wednesday, August 27, 2003, at 06:37 PM, Witt, Mike (OH35) wrote: If I could get an IDE to emulate vi in its editor ... I'd really be happy. I said that through

Re: struts and flash

2003-08-26 Thread Mark Lowe
This may work.. If you can set you form action in the embed tags you could set the value to html:rewrite page=/MyAction.do /. If that doesn't just use /myapp/MyAction.do then in you action.. DynaActionForm theForm = (DynaActionForm) form; Map paramMap = request.getParameterMap(); Object[]

Re: Html-el:hidden tag!?!?!

2003-08-26 Thread Mark Lowe
Drilling to document object via the id is a bit restricting anyhow. Using the older way of using name (property) is more reliable, and supported by just about everything. I've always restricted id for dhtml stuff, and always use name for form work. Hope this sounds like a guide to egg sucking.

Re: Html-el:hidden tag!?!?!

2003-08-26 Thread Mark Lowe
Sorry.. I mis-typed.. I hope this doesn't sound like a guide to egg sucking.. On Tuesday, August 26, 2003, at 01:54 PM, Mark Lowe wrote: Drilling to document object via the id is a bit restricting anyhow. Using the older way of using name (property) is more reliable, and supported by just

Re: DynaForm Beans and Indexed Text fields.

2003-08-25 Thread Mark Lowe
That's more like it. Are all you fields of type string? Can I see the before and after actions? Cheers MArk On Monday, August 25, 2003, at 02:04 AM, Joel wrote: Okay, so I set the scope of both the preload action, and the action servlet that my form is bieng posted to, to session. I also

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-25 Thread Mark Lowe
thing is.. will the struts-validator go well with this ? R Balaji Mark Lowe wrote: Okay .. I've been thinking about this. I think it might work something like this.. form-property name=beans property=java.util.ArrayList / The arrayList will be a container for your beans with indexed

Re: suggestion needed

2003-08-25 Thread Mark Lowe
Hi Raju Can you give me more info on you background, do you already use ant? tomcat or other container? new to jsp/java? 50 years experience as a C programmer but new to struts, you get the idea. It will make a difference as to what's to good example or not. On Monday, August 25, 2003, at

Re: Problems with: cannot find bean under name concesiones

2003-08-25 Thread Mark Lowe
So what's you list 'concesiones' full off then? The browser thing looks like a red herring to me. Could also try using request to store the list in just to iron out any potential confusion. ArrayList concesiones = new ArrayList(); Concesion c = new Consesion(); c.setIdentificador(1);

Re: DynaForm Beans and Indexed Text fields.

2003-08-25 Thread Mark Lowe
things in java. Cheers Mark On Monday, August 25, 2003, at 03:26 PM, Joel Wickard wrote: Mark Lowe wrote: That's more like it. Are all you fields of type string? Can I see the before and after actions? You sure can. The fields inside the PMIRateDTO ( the object that makes up each element

Re: multilingual app

2003-08-25 Thread Mark Lowe
If you use *_EN.properties test.string = hello!! *_FR.properties test.string = allo!! rather than lower case will work out the box, no need to specify in struts-config just in web.xml as you perhaps have done already. The internationalization is built in. Try it out by changing your browser

Re: ActionForm null after context restart?

2003-08-25 Thread Mark Lowe
If it works okay after restart rather than just reload, i'd suggest it would be the container not maintaining sessions across reloads. And that I guess would be the nature of your question. I know that tc 4.127 has this as a fix from 4.124. Cheers Mark On Monday, August 25, 2003, at 03:53 PM,

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-24 Thread Mark Lowe
On 08/23/2003 12:03 PM Mark Lowe wrote: You cant dynamically add properties to DynaActionForms. I'm not sure why you've a problem with just adding the fields to you form bean in struts config. I've demonstrated how to literally do what you want, but you'd have to specify the properties

Re: Java Question

2003-08-24 Thread Mark Lowe
Read the messages its telling you what's going on.. You've got 2 errors.. 1. stmt is already defined 2. that rs is already defined I don't know how much simpler this could be.. On Sunday, August 24, 2003, at 07:32 PM, Kapadia Mitesh-C23457 wrote: I've been trying to compile my BLB (Business

Re: DynaForm Beans and Indexed Text fields.

2003-08-24 Thread Mark Lowe
In the action tag is the form scoped to session? Cheers Mark On Sunday, August 24, 2003, at 04:59 PM, Joel wrote: I'm having a problem using Indexed text fields with DynaActionForms. I can make a jsp display my indexed text fields just fine using the logic:iterate and html:text custom tags.

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-23 Thread Mark Lowe
You cant dynamically add properties to DynaActionForms. I'm not sure why you've a problem with just adding the fields to you form bean in struts config. I've demonstrated how to literally do what you want, but you'd have to specify the properties you want in you jsp anyway. But here

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-23 Thread Mark Lowe
the bean , i will get to know the list of properties to be displayed in the UI. This stops me from modeling a bean for the view data. Hope i m clear ... I am jst trying your second approach .. do you have any code snippet for that ... Thanks regards, R Balaji Mark Lowe wrote: You cant

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-23 Thread Mark Lowe
(); BeanUtils.populate(viewBean, viewData); it is working fine now Regards, b Mark Lowe wrote: Okay The code for creating a dynaBean etc is in the archieves when i messing around with dynaResultSet or whatever it was called. Then try creating a form property form the key

Re: How to dynamically decide the properties of the DynaValidator/DynaActionForm

2003-08-23 Thread Mark Lowe
I've made an obvious error in that you want an arrayList of beans with indexed props being stamped-out in your page. in your action ArrayList beanList = new ArrayLIst(); beanList.add(bean); theForm.set(resource,beanList); On Saturday, August 23, 2003, at 04:01 PM, Mark Lowe wrote: Okay

Re: [OT] Shopping cart best practices - Cookie, HttpSession or DB

2003-08-22 Thread Mark Lowe
Storing a few bits and pieces in a session is all storing a cart will do anyway. While I can see why some folks would consider it a clear benefit to save all carts to the db , i don't. But that can be layered on afterwards, especially with handy packages like beanutils. Given that most the

Re: Model 1 Struts

2003-08-22 Thread Mark Lowe
Shouldn't be any trouble at all having scriptlets and struts stuff on the same container. You could just map all the old jsp's as forwards to have everything controlled from a centralized place. Then if you ever got time you could start thinking about porting the old stuff, moving some code

Re: Problem on displaying table keys, please help

2003-08-21 Thread Mark Lowe
Not sure about how you've named you methods for one.. for getIndustryId() bean:write name=Detail property=industryId / This has always been the case with JSP tags even if you use jsp:getProperty name=Detail property=industryId / if you dislike the lowercaseization(such a credit to the

Re: [OT] Shopping cart best practices - Cookie, HttpSession or DB

2003-08-21 Thread Mark Lowe
I haven't any tech input, but I've an idea how I'd stagger the development.I'd forget about cookies and db's at first, save them for a later stage. 1. Store your cart in session, and when that all works. For everyone. Gets to the checkout and funds are exchanged. 2. Create a login where

Nesting beans in DynaActionForm

2003-08-20 Thread Mark Lowe
Has anyone had any joy nesting Beans in DynaActionForms with out using indexed properties.. form-property name=bean type=com.sparrow.Bean / .. package com.sparrow; public class Bean { private foo; public String getFoo() { return foo; } public

Nesting beans in DynaActionForm

2003-08-20 Thread Mark Lowe
Has anyone had any joy nesting Beans in DynaActionForms with out using indexed properties.. form-property name=bean type=com.sparrow.Bean / .. package com.sparrow; public class Bean { private foo; public String getFoo() { return foo; } public

Re: mailto in html:link

2003-08-20 Thread Mark Lowe
Given that you'll probably be able to do without url encoding on a mailto a href=mailto:yourtag:map name=it property=email /Hit me!!!/a On Wednesday, August 20, 2003, at 06:05 PM, Adam Levine wrote: I don't believe you can nest tags like that. If your custom tag is assigning something to a

Re: Nesting beans in DynaActionForm

2003-08-20 Thread Mark Lowe
Panic over I think My mistake was html:text name=bean property=property / instead of html:text property=bean.property / On Wednesday, August 20, 2003, at 07:18 PM, Paananen, Tero wrote: Well looks like there're two of us on the case now.. I'll post if/when i find the solution, you input

Re: list Map iby c:forEach

2003-08-19 Thread Mark Lowe
/ tiles:add value=invoice/index.jsp / /tiles:putList /tiles:insert Where is the better thing to use it? I think I must write it dirrectly here in tiles :-( Mark Lowe wrote: Depends what you mean by better, you could have a menu item bean like simpleItem in tiles. And use a tileContext

Re: list Map iby c:forEach

2003-08-19 Thread Mark Lowe
as ' ... ' language 'plpgsql'; Mark Lowe wrote: Can I see where you add this object with the properties id and name? And what you wrap it in? You haven't just populated a map.. On Tuesday, August 19, 2003, at 05:34 AM, Jiri Chaloupka wrote: Little yes, thanks ... first for second way: c:forEach var=map items

Re: [OT] RE: J2EE certified

2003-08-18 Thread Mark Lowe
Despite the slightly distasteful reference to the L and R phoneme discrimination in folks who have Oriental languages as there first language, I haven't seen any reason for anyone to make inferences like this. The L R thing was a bit snide, but I doubt was racially motivated. Just chill a bit

Re: [OT] RE: J2EE certified

2003-08-18 Thread Mark Lowe
I'd prefer to know the guys name. I wouldn't like to make any judgments about disturbedness, give him a chance. He could have got off to a bad start, been up against the wire and trying to get something working when he started out. And forgot that there are real people at the end of the

Re: Tiles. using action for attribute value.

2003-08-18 Thread Mark Lowe
or use a definition and then insert that tiles:definition id=thePage... .. /tiles:definition titles:insert beanName=thePage controllerUrl=/header.do... Cheers Mark On Monday, August 18, 2003, at 02:07 PM, deepaksawdekar wrote: I am using tiles Using struts for the page layout    

[ot] Virus checking blobs was [Re: file upload problem]

2003-08-18 Thread Mark Lowe
Evan That's interesting about storing files as BLOB's and the bit about viruses checking. How do the mechanics of the virus checking work? Are there any virus checkers that can check while everything's stored in the db? Sounds interesting. Cheers Mark On Monday, August 18, 2003, at 03:24 PM,

Re: DynaForms - c:forEach wont iterate

2003-08-18 Thread Mark Lowe
You'll want to scope your form to the session when you map it to your action.. action name=myForm scope=session.. not in form-bean and form-property, struts console is great for the config files. Can i have a look at the referring action (the one thats run before the form is loaded)?

Re: list Map iby c:forEach

2003-08-18 Thread Mark Lowe
request.setAttribute(myMap,myMap); or session.setAttribute(myMap,.. should get you going.. On Monday, August 18, 2003, at 10:20 PM, Jiri Chaloupka wrote: Hello, I'm using JSTL first time (with struts etc.) and I have this problem: I have 2 HashMap, filled in class: for(int i=0;rs.next();i++)

Re: list Map iby c:forEach

2003-08-18 Thread Mark Lowe
${oMenu.get(new String(id))} ... how to do it now? Thanks much Jiri Mark Lowe wrote: request.setAttribute(myMap,myMap); or session.setAttribute(myMap,.. should get you going.. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: DynaForms - c:forEach wont iterate

2003-08-18 Thread Mark Lowe
of error checking and xml parsing, so I've left that out) // Populate the user registration form if (form == null) { form = new DynaActionForm(); DynaActionForm bean = (DynaActionForm)form; bean.set(users, aryList); Claire - Original Message - From: Mark Lowe [EMAIL PROTECTED

Re: getDataSource compile Error

2003-08-17 Thread Mark Lowe
I think perhaps there was a change in the getDataSource method somewhere along the way.. ServletContext context = servlet.getServletContext(); DataSource ds = (DataSource) context.getAttribute(yourkey); I doubt that you've the same version of struts on you live and your dev server, else what

Re: html:link can't access DAF getMap()

2003-08-17 Thread Mark Lowe
This might work html:link name=myform.map or html:link name=myform property=map.property or html:link name-myform property=map('property') in which case what's wrong with html:link name=myForm property=property You've been doing this with struts tags.. c:out value=${myForm.map} / Hope

Re: DynaValidatorForm

2003-08-17 Thread Mark Lowe
You need the indexed attribute on you form properties html:text property=productId indexed=true / with render to input type=text name=productId[0] value= Keyword: indexed properties. Cheers Mark On Sunday, August 17, 2003, at 03:00 PM, Juan Alvarado wrote: Hello all: I am iterating over a

Re: DynaValidatorForm

2003-08-17 Thread Mark Lowe
for my reasons] html:text name=product property=id indexed=true / renders to... input type=text name=product[0].id value= Cheers Mark On Sunday, August 17, 2003, at 03:07 PM, Mark Lowe wrote: You need the indexed attribute on you form properties html:text property=productId indexed=true

Re: [OT] BaseBean portal

2003-08-17 Thread Mark Lowe
To you? I thought you knew everything already, if there's an example to copy and paste that is.. I think its vic's site. He's one of the commiters and done some stuff with iBatis and struts I think.. Why are you still looking for other folks to do you work? On Sunday, August 17, 2003, at

Re: html:link can't access DAF getMap()

2003-08-17 Thread Mark Lowe
Is myForm scoped to the page? Cheers Mark On Sunday, August 17, 2003, at 03:21 PM, Mike Whittaker wrote: This might work html:link name=myform.map Cannot find bean myForm.map in any scope or html:link name=myform property=map.property I want the java.util.Map for property attribute of

Re: html:link can't access DAF getMap()

2003-08-17 Thread Mark Lowe
sorry mike i meant mapped to the action On Sunday, August 17, 2003, at 03:57 PM, Mark Lowe wrote: Is myForm scoped to the page? Cheers Mark On Sunday, August 17, 2003, at 03:21 PM, Mike Whittaker wrote: This might work html:link name=myform.map Cannot find bean myForm.map in any scope

Re: html:link can't access DAF getMap()

2003-08-17 Thread Mark Lowe
); then html:link name=myMap to display all the key=value pairs as parameters or specify the property as the key. Cheers Mark On Sunday, August 17, 2003, at 05:57 PM, Mike Whittaker wrote: sorry mike i meant mapped to the action On Sunday, August 17, 2003, at 03:57 PM, Mark Lowe wrote

Re: DynaActionForm and nesting

2003-08-16 Thread Mark Lowe
I've got this working using ArrayList .. I couldn't imagine how arrays would allow the resizing.. I could be wrong, but I can tell you it works for sure with arrayList.. Cheers Mark On Friday, August 15, 2003, at 09:53 PM, Hary wrote: --- Hary [EMAIL PROTECTED] wrote: Hi, I am trying to build

Re: ActionMapping forward to another mapping

2003-08-14 Thread Mark Lowe
try forward redirect=false or scope the form to the session.. On Saturday, August 9, 2003, at 05:45 PM, Shryock, Chad wrote: Hello, I have an action mapping: action path=/notamWorkingList type=naimes.aisr.flightplan.action.NotamWorkingListAction name=notamForm scope=request validate=false

Re: JSTL and Struts-el

2003-08-14 Thread Mark Lowe
Has this easier to use premiss been run past any folks with good markup skills, but aren't programmers as such? Seems to me the only folks who are saying this is easier lean more toward the programming end of the spectrum than formatting folks. Um the burden of using expert groups. On

<    1   2   3   4   5   6   7   >