Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
types towards String (another method in the same converter class?) - Map (set) some (non-String) data object into the corresponding String property on the form bean. Thanks, Freddy. -Mensaje original- De: Mark Lowe [mailto:[EMAIL PROTECTED] Enviado el: viernes, 26 de marzo de 2004 0:59 Para

Re: Handling Date objects in ActionForm gracefully

2004-03-26 Thread Mark Lowe
to say that using anything but strings for user input will lead to problems. And my suggestion could well be incorrect, I was putting it out there to see what response it would provoke. Cheers Mark On 26 Mar 2004, at 10:51, Freddy Villalba Arias wrote: Mark, didn't mean to be pedantic... just

Re: LookupDispatchAction default

2004-03-25 Thread Mark Shifman
should explicitly state that it does not utilize the 'unspecified' behavior of its parent class. Or, maybe I missed something and didn't implement correctly? Regards, Brian. Mark Lowe [EMAIL PROTECTED] 03/24/2004 09:21 AM Please respond to Struts Users Mailing List To: Struts Users

Re: blocking bookmarked actions

2004-03-25 Thread Mark Shifman
Thanks , I was using jakarta-struts-1.1-rc1 which did the nul parameter trapping. mas Wendy Smoak wrote: From: Mark Shifman [mailto:[EMAIL PROTECTED] Unfortunately LookupDispatchAction checks for the parameter an throws an error before it gets a chance to use unspecified(), but it should

Re: LookupDispatchAction default

2004-03-25 Thread Mark Lowe
state that it does not utilize the 'unspecified' behavior of its parent class. Or, maybe I missed something and didn't implement correctly? Regards, Brian. Mark Lowe [EMAIL PROTECTED] 03/24/2004 09:21 AM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL

Re: html inside an action

2004-03-25 Thread Mark Lowe
I'd go n have a cup of tea.. On 25 Mar 2004, at 17:54, ruben wrote: hi Those are my requirements, i have to convert objects to html, in my action and get this html in a String, i thought that the jsp is a good way to do this, I want the code that jsp generate (that is sent to the browser) on

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
Have it as a string and convert it to a date or calendar when you pass it back to the model. On 25 Mar 2004, at 20:28, Sreenivasa Chadalavada wrote: All, We are facing a problem when we define java.util.Date field in ActionForm. Is there any way to override the default behavior provided by

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
agreement or government initiative expressly permitting the use of e-mail for such purpose. --- - Mark Lowe mark.lowe @boxstuff.com 03/25/2004 02:36 PM Please respond to Struts Users Mailing List

Re: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Mark Lowe
* that it is a user interface component is only going to create complications for the world. /snippet I hope this helps Mark On 25 Mar 2004, at 21:26, Sreenivasa Chadalavada wrote: Application Tier is strongly typed. So if the field is a java.util.Date in the database, then the data object

Re: LookupDispatchAction default

2004-03-24 Thread Mark Lowe
unspecified() is the method you want look at the javadoc. you do need the method name though /admin/list.do?method I saw that using submit as the parameter name causes problems so i wouldn't use that. On 24 Mar 2004, at 15:16, Brian Sayatovic/AMIG wrote: I'd like to be able to have someone

Re: LookupDispatchAction default

2004-03-24 Thread Mark Lowe
. On 24 Mar 2004, at 15:30, Wendy Smoak wrote: From: Mark Lowe [mailto:[EMAIL PROTECTED] unspecified() is the method you want look at the javadoc. you do need the method name though /admin/list.do?method I saw that using submit as the parameter name causes problems so i wouldn't use that. I

Re: File upload location

2004-03-24 Thread Mark Shifman
/temp/sessionID thanks Deepak -- Mark Shifman MD. Ph.D. Yale Center for Medical Informatics Phone (203)737-5219 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: html:rewrite action problem

2004-03-24 Thread Mark Lowe
try page=/SomeAction.do On 24 Mar 2004, at 17:50, Ruben Pardo wrote: i've got the next tag html:rewrite action=/SomeAction?prefix=page=/SomePage and in the actionConfig action path=/SomeAction type=org.apache.type=org.apache.struts.actions.SwitchAction /action but i always get an error saying

Re: LookupDispatchAction default

2004-03-24 Thread Mark Lowe
On 24 Mar 2004, at 16:13, Wendy Smoak wrote: From: Mark Lowe [mailto:[EMAIL PROTECTED] It was you post on the thread last week where i pick it up. Sorry, I'm apparently repeating myself! I can't remember last week this early in the morning. Good to know that its been addressed, but I'm

Re: Using Tomcat declarative security for my app

2004-03-24 Thread Mark Lowe
If you're using a javax.servlet.Filter and you then filter-mapping filter-nameMyFilter/filter-name url-pattern/administrator/*.do/url-pattern /filter-mapping you can also map to a servlet name rather than a url pattern but this seems what you want. On 24 Mar 2004, at 18:10,

Re: Using Tomcat declarative security for my app

2004-03-24 Thread Mark Lowe
opps.. sorry for the dodgy info. in fact mine follow the /dir/* pattern. On 24 Mar 2004, at 18:45, Kris Schneider wrote: You can use either path or extension mapping, but not a combination of both. So /administrator/* is okay and *.do is okay but /administrator/*.do is not. Quoting Mark Lowe

blocking bookmarked actions

2004-03-24 Thread Mark Shifman
Suppose someone bookmarked an action such as /yourhost/yourapp/someAction.do and you really want them to only go through the html pages. How do your block or catch these actions and redirect them to the appropriate place? mas

Re: blocking bookmarked actions

2004-03-24 Thread Mark Shifman
(LookupDispatchAction.java:199) ... Paul McCulloch wrote: You code code your app to always use http POST, but block GETs. This may not be suitable if you've already written the app though! Paul -Original Message- From: Mark Shifman [mailto:[EMAIL PROTECTED] Sent: 24 March 2004 18:17

Re: blocking bookmarked actions

2004-03-24 Thread Mark Shifman
Thanks. Unfortunately LookupDispatchAction checks for the parameter an throws an error before it gets a chance to use unspecified(), but it should be easy enough to modify it and then override dispatchActions unspecified(). mas Wendy Smoak wrote: From: Mark Shifman [mailto:[EMAIL PROTECTED

Re: How can I refresh my jsp

2004-03-23 Thread Mark Lowe
forward name=succes path=/sampe2.jsp redirect=true / On 23 Mar 2004, at 03:38, Mu Mike wrote: sample1.jsp: form action=/action1.do .. /form this is my action definition action path=/action1 type=com.mycom.Action1 name=myForm scope=session

Re: html:select / html:options

2004-03-23 Thread Mark Lowe
session.setAttribute(myList, list); session.setAttribute(myList,list.toArray()); for some reason you need to cast to list to an array. On 24 Mar 2004, at 01:23, Lokanath wrote: hi , i think u have to get the bean from session to some Collection useing session.getAttribute(mylist) then assign

Re: AW: Re[2]: are you sure?

2004-03-23 Thread Mark Lowe
submitting to the server returning an action message with a checkbox (check to confirm). and then resubmitting I reckon would be nicer than a javascript dependency. html:form action=/save.do logic:messagesPresent bla bla (i hate this tag) Are you sure you want to do that or are you just

Map-backed ActionForms, validating using validWhen

2004-03-23 Thread Mark Thill
/form The first two for marketCategoryId and shortDescription work fine, but when I add the 3rd it gives me an error unexpected token: value. Does anyone know how to access a map-backed property in this conditional part of the validWhen validation? Thanks for any help Mark

Re: There *has* to be an easy way to do this...

2004-03-22 Thread Mark Lowe
Your using OM objects and stuffing them into your view but this should still work anyhow. CreditCost newCost = new CreditCost(); creditCostList.add(newCost); Have an add action do the above, I assume you're scoping to session as you're iterating through a scoped array/list and not a form

Re: There *has* to be an easy way to do this..

2004-03-22 Thread Mark Lowe
is in Struts. Thanks for your help. -Joe -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 4:20 AM To: Struts Users Mailing List Subject: Re: There *has* to be an easy way to do this... Your using OM objects and stuffing them into your view

Re: Indexed Property

2004-03-22 Thread Mark Lowe
I don't know how helpful those examples are in reality as there are a few details missing.. So here's an example. Personally i like nesting forms although this isn't to everyone's taste. The example uses LazyList to allow you to scope the form to request and the example was provided by Paul

Re: Indexed Property

2004-03-22 Thread Mark Lowe
correction On 22 Mar 2004, at 14:42, Mark Lowe wrote: I don't know how helpful those examples are in reality as there are a few details missing.. So here's an example. Personally i like nesting forms although this isn't to everyone's taste. The example uses LazyList to allow you to scope

Re: html:Selectalternatives

2004-03-22 Thread Mark Lowe
You haven't even tried using the struts tag.. html:select property=teacher html:option value=--/html:option html:options collection=teachers property=ssn labelProperty=completeName / /html:select now if the value of teacher equals one of the ssn values it will be selected. On 22 Mar 2004,

Re: html:Selectalternatives

2004-03-22 Thread Mark Lowe
. On 22 Mar 2004, at 15:57, as as wrote: MArk, Thanks for the quick reply. Yes, I did try that tooIt shows me correctly (in System.out.println), my form's default value of completeName of teacher but on the jsp page/form bean, it shows the drop down sorted and not the selected value. Really donno

Re: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Mark Lowe
to the console (seems ok): The following dates are critical: 20.03.2004: 5 hours. I want this format exactly being displayed using the alert function. I cannot see where the problem is. any idea? thx, Dirk -Ursprüngliche Nachricht- Von: Mark Lowe [mailto:[EMAIL PROTECTED] Gesendet: Montag, 22

Re: struts-reports

2004-03-22 Thread Mark Lowe
On 22 Mar 2004, at 19:06, as as wrote: Hi, I have a struts page that needs to generate reports based on filtering criterion like (date from, date to, type of report, type of data to show). Make some util classes that return what you need with what you need from you model. List fooList =

Re: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Mark Lowe
appear in your rendered html.. On 22 Mar 2004, at 20:45, Just Fun 4 You wrote: Hi Mark, the properties file holds for critical.schedule.text: critical.schedule.text=Folgende Termine sind wg zeitlicher Überlastung für The rendered jsp looks like this: ... logic:messagesPresent

Re: AW: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-22 Thread Mark Lowe
goes on here. I cannot see any difference... -Ursprüngliche Nachricht- Von: Mark Lowe [mailto:[EMAIL PROTECTED] Gesendet: Montag, 22. März 2004 21:09 An: Struts Users Mailing List Betreff: Re: AW: AW: multiple lines in an ActionMessage object displayed via javascript alert Weird .. I

Re: multiple lines in an ActionMessage object displayed via javascript alert

2004-03-21 Thread Mark Lowe
What characters have you in your strings ? There must be something a quote or something give js a bad day. I assume you've something like this. msg1 = bean:message key=message1 /; msg2 = bean:message key=message2 /; msg3 = bean:message key=message3 /; msg = msg1 +\n+ msg2 +\n+ msg3; alert(msg);

Re: Pls help on shopping cart App

2004-03-20 Thread Mark Lowe
-Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 18, 2004 1:36 PM To: Struts Users Mailing List Subject: Re: Pls help on shopping cart App Do your html:text have the indexed=true attribute? On 18 Mar 2004, at 07:07, sougata wrote: Hi All, I have a shopping cart

Re: Mapping Forward to new form

2004-03-20 Thread Mark Lowe
If you form is scoped to request you can also set redirect=true in the action forward. On 19 Mar 2004, at 20:03, Saul Q Yuan wrote: You can call ((UserForm) form).reset() before forwarding. Saul -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Friday, March 19,

Re: DynaValidatorForm for java.lang.Integer

2004-03-19 Thread Mark Lowe
Use String. Anything else is asking of trouble. According to the party line (ref: struts dev list) action form properties should always be of type string. You can still validate whether a string is 1 for example or whether it looks like a date whatever, it doesn't have to be typed as such.

Re: SessionTimeout handling

2004-03-19 Thread Mark Lowe
If your container supports it use a Filter. And I think (perhaps don't know) that session timeout is something you usually configure the container to do, but again i'm not sure of your requirement. On 19 Mar 2004, at 10:48, Sanoj, Antony (IE10) wrote: Hi, I am trying to handle session

Re: Database backed forms

2004-03-19 Thread Mark Lowe
If there's talk of having action forms populated by themselves then I wouldn't. For example you want to create a new record, to instantiate a new form bean you'd perhaps have to save a record to the db, and all this before the user decides what s/he wants to do with it. niall wrote some

Re: Database backed forms

2004-03-19 Thread Mark Lowe
DynaValidatorActionForm to provide a reset() implementation. If required, the actionForm's properties are populated from the backend model. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 10:41 To: Struts Users Mailing List Subject: Re: Database backed forms If there's

Re: Database backed forms

2004-03-19 Thread Mark Lowe
. Sounds like a much better way of going about it... Thanks. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 19 March 2004 11:41 To: Struts Users Mailing List Subject: Re: Database backed forms How would you suggest implementing view/edit functionality without pre

Re: Pls help on shopping cart App

2004-03-18 Thread Mark Lowe
Do your html:text have the indexed=true attribute? On 18 Mar 2004, at 07:07, sougata wrote: Hi All, I have a shopping cart apps.When the user is buying items it is coming to mycart .In my mycart page I am showing all the products and the beside that I have a update button by which I can update

Re: LookupDispatchAction with html:image?

2004-03-18 Thread Mark Lowe
Will this not work then? html:image property=method value=Save page=/image/buttons/en/save.gif / assuming the value is set by nesting bean:message html:image property=method page=/image/buttons/en/save.gif bean:message key=button.save / /html:image

Re: Way tho highlight error form field

2004-03-18 Thread Mark Lowe
You could modify the client-side validation stuff to do this rather than just alerting. An easy way of layering this on is to define a compulsory array of fields and then loop through the form on validation. changing the borderColor style attribute when you have a match between the element

Re: java.lang.VerifyErrror - Illegal stste of Jump or Branch

2004-03-18 Thread Mark Lowe
Why not populate an array and use that ? If doing it in the action seems a little tiresome then JSTL could help. It will be tidier than including a page with a bunch of options in. On 18 Mar 2004, at 13:00, Ramachandran wrote: Hi List, I am facing one problem in a jsp file. In this file, i am

Re: EL buggy? this shouldn't happen

2004-03-18 Thread Mark Lowe
${testPrimKey[ctr]} or perhaps with the wrappers c:set var=key value=${testPrimKey[ctr]} / ${key} what does that do? On 18 Mar 2004, at 12:46, Axel Groß wrote: hi all! while trying to figure out how indexed/mapped properties work I get some strange behaviour - I'm pretty sure this doesn't

Re: indexed property problem

2004-03-18 Thread Mark Lowe
try html-el:text name=mappedTest property=testPrimKey(${ctr}) / On 18 Mar 2004, at 14:49, Axel Groß wrote: Hi Mark! thanks for your answer tdtestPrimKey[${ctr}]/td evaluates to as it should to testPrimKey[0], testPrimKey[1].. ( i did a stupid mistake in my code ), On 2004-03-18 at 13:25

Re: indexed property problem

2004-03-18 Thread Mark Lowe
I thought you were trying to get a mapped property. What does the structure look like? I cant see what you're drilling to. On 18 Mar 2004, at 15:23, Axel Groß wrote: On 2004-03-18 at 15:10:47 +0100, Mark Lowe wrote: try html-el:text name=mappedTest property=testPrimKey(${ctr}) / doesnt exist

Re: Context relative URL

2004-03-16 Thread Mark Lowe
looks like a basic javascript question to me but here goes anyway. Stop trying to put everything in the event context = c:url value=/ /; imgdir = context + /images/; //perhaps create an array to preload. images = [inico]; function mover(name) { document.images[name].src = imgdir + name

Re: submit an arraylist

2004-03-12 Thread Mark Lowe
The name in the iterate tag needs to match the name you've using to define the form bean in struts-config form-bean name=testForm type=com.mike.struts.TestBeanForm / html:form action=/testAction.do logic:iterate id=mybean name=testForm property=testBean html:text

Re: submit an arraylist

2004-03-12 Thread Mark Lowe
does your nested bean have a getString1() method? There's load of examples in the archives. Have a look. On 12 Mar 2004, at 09:48, Mu Mike wrote: Mark I did as you wrote form-bean name=TestBeanForm type=com.mycom.form.TestBeanForm/ in jsp file: html:form action=/testAction.do logic:iterate

Re: Struts, Tiles, javax.servlet.Filter: Redirect Problem

2004-03-12 Thread Mark Lowe
try request.getRequestDispatcher(/myACtion.do).forward(request, response); rather than redirect. On 12 Mar 2004, at 10:59, Christian Schlaefcke wrote: Hi Folks, This is the situation: A struts application that uses tiles. A user needs to logon to work with the app. A logged-on user has a

Re: help! I m going mad

2004-03-12 Thread Mark Lowe
Okay here's a full example, first of all i'm going to mess with your naming conventions as they'd drive me mad also //bean package com.sparrow.struts; public class TestBean { private String name; public String getName() { return name; }

Re: Struts, Tiles, javax.servlet.Filter: Redirect Problem

2004-03-12 Thread Mark Lowe
boolean isAJollyGoodFellow = false; //some logic here where you check whether s/he is a jolly good fellow if(isAJollyGoodFellow) { filterChain.doFilter(request, response); } else { request.getRequestDispatcher(/myAction.do).forward(request, response); } doFilter method passes on the

Re: Switching from HTTPS to HTTP

2004-03-12 Thread Mark Lowe
There's some java thingy you can use to do this, sslext or something.. If you are using apache for your webserver you can use mod_rewrite which means less hassle configuring development envionments and such like. Here's an example. NameVirtualHost machinedomain.net:80 VirtualHost

Re: Switching from HTTPS to HTTP

2004-03-12 Thread Mark Lowe
?? Ex: sendRedirect(http://myserver/myapp/main.jsp;); -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 12 de março de 2004 13:30 To: Struts Users Mailing List Subject: Re: Switching from HTTPS to HTTP There's some java thingy you can use to do this, sslext

[OT] Your Message to struts-user@jakarta.apache.org is Blocked

2004-03-12 Thread Mark Lowe
Anyone else been getting these when you send stuff to the list? I doubt I've got a virus as I don't use windoze. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] Your Message to struts-user@jakarta.apache.org is Blocke d

2004-03-12 Thread Mark Lowe
These seem to be the folks sending such useful information http://www.s2lservers.com/ On 12 Mar 2004, at 15:44, Joao Batistella wrote: I'm getting also. And I don't got a virus... I hope :-) -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: sexta-feira, 12 de março de

Re: how to automatically forward user's page to a html link at speified time

2004-03-12 Thread Mark Lowe
Filter will do what you want if you're using a supporting container. On 12 Mar 2004, at 17:18, ~{UT~} ~{F=~} wrote: Hi, all I want the struts application have an internal timer. When the specified time(like 9:00pm) arrive, the user's current page should be forwarded to another html link.

Changing position of nested beans

2004-03-11 Thread Mark Lowe
I was wondering if anyone has found any slick, no javascript dependent solution to the following situation. My question in short is, is there a way of having an indexed dispatch action, or have i been on the crack again? I have a form of nested beans which are ordered according to a position

Re: Changing position of nested beans

2004-03-11 Thread Mark Lowe
: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: donderdag 11 maart 2004 10:31 To: Struts Users Mailing List Subject: Changing position of nested beans I was wondering if anyone has found any slick, no javascript dependent solution to the following situation. My question in short is, is there a way

Re: Changing position of nested beans

2004-03-11 Thread Mark Lowe
, at 12:19, Niall Pemberton wrote: Mark, Seems to me you have already worked out the solution, except why do you need a lookup dispatch action - rather than a roll your own - you have two methods right - Move Up and Move Down? Your jsp will populate a (foo?) List with either Move Up or Move Down

Re: Changing position of nested beans

2004-03-11 Thread Mark Lowe
, I would have understood crack programmer as a compliment - now I'm thinking it could be a support group for those of us who spend too much time on lists like this :-). - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday

Re: Changing position of nested beans

2004-03-11 Thread Mark Lowe
Niall Okay.. Can i assume your solution involves links and scoping to session or is there something I'm missing? On 11 Mar 2004, at 12:19, Niall Pemberton wrote: Mark, Seems to me you have already worked out the solution, except why do you need a lookup dispatch action - rather than a roll

Re: Changing position of nested beans

2004-03-11 Thread Mark Lowe
appropriately. Hmm... the question is, how do you get the value of logic:iterate's indexId to the value of your html:radio without using %= %? Could I have been on the crack, too, and not know it? Hubert -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 11, 2004

Re: Newbie Q

2004-03-10 Thread Mark Lowe
html-el:link page=${myProp} a href=c:url value=${myprop} / or as has been suggested html:link page=%= myProp % on tc 5 and other jsp2 supporting containers el works without having to use an el library html:link page=${myProp} On 10 Mar 2004, at 04:12, Paul Stanton wrote: yes, but theres

Re: Populating form Elements from another object.

2004-03-10 Thread Mark Lowe
=fooForm4 type=lib.framework.struts.LazyValidatorActionForm dynamic=true / Oh, I noticed an error in LazyValidatorForm, its declared as abstract - which it shouldn't be - I don't use it directly, I use LazyValidatorActionForm which extends it. Niall - Original Message - From: Mark Lowe

Re: porting to struts

2004-03-10 Thread Mark Lowe
On 10 Mar 2004, at 12:02, Rajat Pandit wrote: Hello All, we have a product which was built on an inhouse developed controller, and we are currently planning to port the application on struts. This application was built on the MVC architecture with a central controller as the application entry

Re: Populating form Elements from another object.

2004-03-09 Thread Mark Lowe
I haven't seen the code but if what i understand of what Niall has been saying you'd use them instead of DynaActionForm. form-bean name=fooForm type=com.ilovesparrows.struts.NiallsForm / of course you'll need to call the package and class name to something appropriate. On 9 Mar 2004, at

Re: Cookies And Session Problems

2004-03-09 Thread Mark Lowe
to that effect. Might be an egg sucking lesson but seems to be this trendy coding style thats confusing you. So could very well be useful. HTH mark On 9 Mar 2004, at 14:15, Daniel Henrique Alves Lima wrote: I think that i've found the problem. Please, look below : Ciaran Hanley wrote: Hi thanks

Re: SSL and actionforms

2004-03-09 Thread Mark Lowe
what's your deployment setup like? running with apache? On 9 Mar 2004, at 16:21, Håkan Fransson wrote: Hi!! I'm running a struts application on Websphere and have encountered a problem when added SSL. It seems that on submit, the set methods on the actionform sometimes are not invoked. It works

Re: Struts starter

2004-03-08 Thread Mark Lowe
strikethis is strike-through formatting/strike On 8 Mar 2004, at 05:36, Martin Gainty wrote: I'll ask the dumb question What is Strike-thru formatting? ~Martin~ - Original Message - From: Joe Germuska [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, March

Re: validation.xml multiple select

2004-03-08 Thread Mark Shifman
your replies in advance. - Post your free ad now! Yahoo! Canada Personals -- Mark Shifman MD. Ph.D. Yale Center for Medical Informatics Phone (203)737-5219 [EMAIL PROTECTED] - To unsubscribe

Re: can we have multiple paths for the same action class?

2004-03-04 Thread Mark Lowe
:o) On 4 Mar 2004, at 12:25, Niall Pemberton wrote: Yes you can, no problem. Why not give it a go if you're wondering whether something will work - be brave, seize the day. Niall - Original Message - From: Shobhana.S, ASDC Chennai [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

Re: Numeric validator

2004-03-04 Thread Mark Lowe
No the field type should be string like all form properties. On 4 Mar 2004, at 12:39, MOHAN RADHAKRISHNAN wrote: Thanks. I was trying to find out why this particular check is not run while the depends=required check in the same validation.xml is run. I can see that this check

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Mark Lowe
the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't flip out..;) bort wrote: Hi all I have an Action class that loads up a Vector with information from a database. What I would like to do is pass this Vector

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Mark Lowe
= (Vector)request.getParameter(vectorname); TIA bort Geeta Ramani [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ..as a request attribute..? Look through the archives for a fun and spirited discussion on request vs. session vars held just over a week or so ago.. Geeta P.S. Mark, don't

Re: Best way to handle big search results..

2004-03-04 Thread Mark Lowe
Sound's like you'll need some scrolling mechanism in between this can range from changing a query string for a jdbc type app or using an object model like hibernate which supports result scrolling.. I'd say with reasonable confidence that returning 48,000 records in one go is a pretty

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Mark Lowe
, at 17:49, bort wrote: I feel like an idiot asking this, but... within the logic:iterate /logic:iterate tags how am I supposed to pull out the objects I have stored in my Vector? bort Mark Lowe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Vector myvector = .. request.setAttrubute

Re: Best way to handle big search results..

2004-03-04 Thread Mark Lowe
Sure but how do does the query get made? On 4 Mar 2004, at 17:49, Jerry Jalenak wrote: Mark, Let me give you some background first. On any given day I will be reporting on about 80,000 accounts with over 300,000 detail records available for the past 90 days. My clients are using this data

Re: Best way to handle big search results..

2004-03-04 Thread Mark Lowe
? or from the app to the database? Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 10:55 AM To: Struts Users

Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Mark Lowe
: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a vector to a JSP from an Action Cool: i just knew I could get you going...;) Mark Lowe wrote: On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read only data. Anyone would think

Re: Best way to handle big search results..

2004-03-04 Thread Mark Lowe
to the database? Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, March 04, 2004 10:55 AM To: Struts Users Mailing List Subject

[OT] was: Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Mark Lowe
List [EMAIL PROTECTED] Sent: Thursday, March 04, 2004 4:30 PM Subject: Re: Passing a vector to a JSP from an Action Cool: i just knew I could get you going...;) Mark Lowe wrote: On my way to see my crack dealer right this minute :o) In the request its where is belongs, like pretty much all read

Re: [OT] was: Re: Passing a vector to a JSP from an Action

2004-03-04 Thread Mark Lowe
became an issue in terms of ram usage than all that other stuff. On 4 Mar 2004, at 18:35, Geeta Ramani wrote: Mark, m'boy, repeat after me: breathe in,... breathe out.. breathe in... breathe out that's 3 sets of 12. Didn't work? Ok, I guess it's that crack dealer's lucky day.. Geeta

JSP context in an action

2004-03-02 Thread Mark Lowe
Does anyone know how to retrieve the servlet context of a given jsp and place an object in that context (say a map) and then request the page ? I've been putting together a email templating system using velocity, but logic tells me i can do this using the servlet and struts api's without using

[OT]Re: IdGenerator ... is null

2004-03-02 Thread Mark Lowe
Looks like a torque question to me, but that list can get kinda robot-wars. Its been a while but, does the id field in your schema look like this? column name=FOO_ID type=INTEGER required=true primaryKey=true / On 2 Mar 2004, at 14:41, Silviu Marcu wrote: Hi I configured torque for mysql and

Re: JSP context in an action

2004-03-02 Thread Mark Lowe
Pemberton wrote: Mark, I'd like to know how to do what you're but, unless someone else knows, how about a different approach: You could have a store tag which gets the body of a tag and stores it somewhere (in the request or session or in a bean in the request or session) and then forwards

Re: calculating sum inside logic:iterate

2004-03-02 Thread Mark Lowe
Depends how you've done things. If your items are nested in a form (indexed/mapped proerties) you could have a total that is calculated there. Thus no need to do it in an action or a jsp. On 2 Mar 2004, at 17:18, Marco Mistroni wrote: Hi all, I have a colletion of items that have a

Re: calculating sum inside logic:iterate

2004-03-02 Thread Mark Lowe
I see what you're saying. But at the same time, if you wanted to develop a shopping cart that you could plug onto any model. Then IMO calculating in a web tier bean say an action form isn't the most evil thing in the world. I agree entirely that the total should be calculated in the model,

Re: Date attribute in ActionForm

2004-03-02 Thread Mark Lowe
Its also usually the case with dates that downs make less work for the user. This along with beanutils conversions hassles mean s its usually easier to have a day, month , year properties of type String or Integer which then you use to create a Date or Calendar object before passing up to your

Re: Tiles problem

2004-03-02 Thread Mark Lowe
put name=foo value=${bar} type=string/definition/page / On 2 Mar 2004, at 22:15, Anderson, James H [IT] wrote: There's something I'm not understanding :-( I've got the following tiles definitions. definition name=.mainLayout path=/tiles/layouts/mainLayout1.jsp put name=header

Re: Tiles problem

2004-03-02 Thread Mark Lowe
to definition name=.activity.detail extends=.mainLayout put name=content value=.portfolioLayout/ put name=app-specific value=/tiles/activityinfo.jsp type=page/ /definition and it didn't make any difference. What am I missing? -Original Message- From: Mark Lowe [mailto

Re: BODY onLoad Workaround

2004-03-02 Thread Mark Lowe
Iframe would be one possible hack. Have the page that loads run a javascript function that drills back up to your page. or an onload on an image, or simply execute the function in the page. lastly have something like this in your layout tile:get name=javascriptHack scope=page / script

Re: html:link problem

2004-03-02 Thread Mark Lowe
When i have the misfortune of porting the mother of all abominations known as dreamweaver generated code I tend to use c:url instead a href=c:url value=/findtitle.do / this will do what i think you want. On 2 Mar 2004, at 23:19, mucus snot wrote: Hi list, Just wondering if anyone has any

Re: BODY onLoad Workaround

2004-03-02 Thread Mark Lowe
correction tiles:useAttribute name=javascriptHack scope=page / On 2 Mar 2004, at 23:33, Mark Lowe wrote: Iframe would be one possible hack. Have the page that loads run a javascript function that drills back up to your page. or an onload on an image, or simply execute the function in the page

Re: BODY onLoad Workaround

2004-03-02 Thread Mark Lowe
try a simple alert to test the body onload= you can try my other suggestions but i think the tiles way should work. On 2 Mar 2004, at 23:39, Alan Weissman wrote: Thanks Mark for your response. The issue is that even without my layout, which contains the body tag, if I add an onLoad event

Re: BODY onLoad Workaround

2004-03-02 Thread Mark Lowe
I guess its possible that the layout isn't getting reloaded with the tiles request. an iframe or an image will do as a quick hack. iframe width=0 height=0 src=foo.html / On 2 Mar 2004, at 23:51, Alan Weissman wrote: Thanks Richard for your input. Can you let me know where you see people

Re: BODY onLoad Workaround

2004-03-02 Thread Mark Lowe
view the source.. On 2 Mar 2004, at 23:58, Alan Weissman wrote: Thanks everyone for all your attention to this. Now I'm really confused because I am positive my event isn't being called. Here is the source to my layout page. Pages that use this layout do not get any alert box popping up.

Re: Grid..........

2004-03-01 Thread Mark Lowe
Sounds great.. On 1 Mar 2004, at 06:05, Milind P wrote: Hi All! Iam a new developer using the struts framework... We are developing a web application where in we are using the MVC architecture..Hence we are using the Jsp for the view. Now the problem is our project demands to dsiplay the

  1   2   3   4   5   6   7   8   9   10   >