Re: microsoft sqlserver driver struts

2004-02-27 Thread Mark Lowe
about it. Cant be too difficult.. Thanks Claire - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, February 27, 2004 11:43 AM Subject: Re: microsoft sqlserver driver struts Can i see the bits of code in the servlets (non

Re: how to set selectedIndex at html:select

2004-02-27 Thread Mark Lowe
set the value of the form property that you wish to select. On 27 Feb 2004, at 17:40, Daniel wrote: How can change the selectedIndex of dropdown values obrigado Daniel S. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: struts-actions.xml

2004-02-27 Thread Mark Lowe
do your source files contained in the same directory structure as you package path? e.g. package com.sparrow.struts; .. /src/com/sparrow/struts/*.java You might have more luck on the xdoclet list. I use xdoclet but not for action classes as struts console helps me cross that bridge. On 27 Feb

Re: How to use html:link... with JSTL?

2004-02-26 Thread Mark Lowe
html-el:link page=${mylink} a href=c:url value=${mylink} / or if you're running tc5 then just use the expression language in html:link .. (i think it should work). On 26 Feb 2004, at 08:37, Zsolt Koppany wrote: Hi, how can (should) I use html:link... with JSTL? Zsolt

Re: DynaValidatorForm loses property value

2004-02-26 Thread Mark Lowe
Perhaps validate=true.. Another point is you don't need to cast DynaValidatorForm in your action, DynaActionForm will do or even DynaBean. When the action servlet see's that validate = true the validate() method is called and errors returned to the view before the action is run. If you

Re: JavaScript Parameter

2004-02-26 Thread Mark Lowe
First when debuging javascript alert boxes are handy. alert(this.form,'%= val %') or alert(this.form,'c:out value=${val} /') or on tc 5 alert(this.form,'${val}') if that does what you want start debuging the functions by using alert boxes. function myfunction(form,val) {

Re: Problem in nested tags- Very Urgent - Please Help

2004-02-26 Thread Mark Lowe
wouldn't mind an example of how to use lazy list if you have one. On 26 Feb 2004, at 15:33, Paul, R. Chip wrote: Or use the Commons Collections LazyList which handles this problem automatically. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26

Re: [ot]Re: JavaScript Parameter

2004-02-26 Thread Mark Lowe
yeah thanks.. you know, i'd never thought of that.. On 26 Feb 2004, at 15:39, Jim Theodoridis wrote: Another solution is to to see the source of the page ie-View-source - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent

Re: Problem in nested tags- Very Urgent - Please Help

2004-02-26 Thread Mark Lowe
(), factory); } // Getter/setters for list omitted } -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 8:49 AM To: Struts Users Mailing List Subject: Re: Problem in nested tags- Very Urgent - Please Help wouldn't mind an example of how

Re: need help converting from session to request scope

2004-02-26 Thread Mark Lowe
PersistentManager was the keyword i needed.. Nice one On 26 Feb 2004, at 17:27, Craig R. McClanahan wrote: Quoting Mark Lowe [EMAIL PROTECTED]: sure i agree .. but I've been wanting to dick around with alternatives to storing in the session for a while (since the request vs session debate

Re: need help converting from session to request scope

2004-02-26 Thread Mark Lowe
to your production one to determine which method is more efficient. Personally I'd just spend the money on a bit more ram instead of developer time... Paul -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 26 February 2004 13:24 To: Struts Users Mailing List Subject: Re: need

Re: Problem in nested tags- Very Urgent - Please Help

2004-02-26 Thread Mark Lowe
shirish posted this a few times. if you're scoping to request you'll need a while loop in your getFoo(int index) method public class OrgManagementForm extends ActionForm { private List addressList = new ArrayList(); public Address getAddress(int index) { while(index =

Re: need help converting from session to request scope

2004-02-26 Thread Mark Lowe
like a good candidate for a session scoped form. I agree with what Mark Lowe said - usually/often ...theres no more work invloved scoping to request - thats been the case for my app. I would also do what you said in a previous post - which is clean up the session stuff when they navigate away

[ot]Re: JavaScript Parameter

2004-02-26 Thread Mark Lowe
() are still very useful though. Espcially for bugs that only come up in IE!) -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, 26 February 2004 18:58 To: Struts Users Mailing List Subject: Re: JavaScript Parameter First when debuging javascript alert boxes are handy

request scoped forms

2004-02-25 Thread Mark Lowe
Okay following the session vs request debate I've a situation like the one I was describing. If you wanted to make someone see the light this is the time to do so. I've success fully scoped a few forms with indexed properties to request, and all is fine and dandy. but I've a form with 2

Re: request scoped forms

2004-02-25 Thread Mark Lowe
Seems to be working now.. Also i had a while loop not an if statement in my getFoo unlike my example. Just to deal with wizard style forms now. On 25 Feb 2004, at 10:46, Mark Lowe wrote: Okay following the session vs request debate I've a situation like the one I was describing. If you

Re: request scoped forms

2004-02-25 Thread Mark Lowe
the mutipart stuff that did the trick? Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 10:21 AM Subject: Re: request scoped forms Seems to be working now.. Also i had a while loop

Re: need help converting from session to request scope

2004-02-25 Thread Mark Lowe
I have to say I'm changing sides in this debate. The only 'need' i see to store forms in the session is for wizard type interfaces, although I'm looking into a tidy solution into this. I agree that hardware it cheaper than time, and that sessions are by no means evil, but unless there's a

Re: need help converting from session to request scope

2004-02-25 Thread Mark Lowe
forms increase development time as you cant see problems until runtime, but okay for the odd simple form. On 25 Feb 2004, at 12:36, Mark Lowe wrote: I have to say I'm changing sides in this debate. The only 'need' i see to store forms in the session is for wizard type interfaces, although I'm

Re: html:link dynamic URI

2004-02-25 Thread Mark Lowe
html-el will do you. If you're running tc5 then you can use the expression syntax in standard tag libs (i think). if not then . html-el:link page=${refVO.link} or html:link page =%= refVO.getLink() % or a href=c:url value=${refVO.link} / If you get the jstl route then use c:forEach rather

Re: More then one servlet mapping

2004-02-25 Thread Mark Lowe
I hereby confirm that you can have more that one servlet mapping according to the servlet 2.2 spec On 25 Feb 2004, at 16:51, Kale, Nilesh wrote: Hi Can anyone confirm if on servlet can have more then one servlet-mapping in Servlet 2.2 spec? Thanks Nilesh The Royal Bank of Scotland plc,

Re: need help converting from session to request scope

2004-02-25 Thread Mark Lowe
to my customers they may have their own JSP developer show extra prpoerties of the selected Person. So, that's my justification for using session scoped form beans. Any comments gratefully recieved. Paul -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 25 February 2004 11

Re: Implementing A Search Dialog - Struts

2004-02-25 Thread Mark Lowe
I'm not sure that session doesn't do this anyway, but you could write to a text file and save the values that way. The overhead will be reading an' writing but it should stay pretty constant. Could even develop it saving to httpsession and then replace http session with your file appending

Re: Implementing A Search Dialog - Struts

2004-02-25 Thread Mark Lowe
True.. Writing to the db is another option, but I suspect slower than writing to a flat file (probably depends on the db and jdbc drivers). Still think store in the session and see what breaks. If you use request scoped forms but store the values in the session, should be easier to swap out

Re: Status 500

2004-02-24 Thread Mark Lowe
First please HTML formatted email really get on my wick, i know you whizz-band outlook power users like this sort of jazz, but the jakarta mailing list rules do clearly state that this isn't cricket. If your problem has a request scope form, as a diagnostic measure scope the form to session

Re: Why can't I name a form using html:form?

2004-02-24 Thread Mark Lowe
the name of the form will be whatever you called it in struts config. There was a name attribute in 1.0 but this became deprecated and now must have been removed. I imagine that something will be done in newer releases (perhaps already) to support strict xhtml and thus do away with rendering

Re: Why can't I name a form using html:form?

2004-02-24 Thread Mark Lowe
styleId will give you a hook if you need have a way of drilling to something. But i'm guessing what your needs are. On 24 Feb 2004, at 13:38, Mark Lowe wrote: the name of the form will be whatever you called it in struts config. There was a name attribute in 1.0 but this became deprecated

Re: ActionForward and onLoad()

2004-02-24 Thread Mark Lowe
Pass the values back by returning a body tag from a servlet with an onload function, I've done this by generating an iframe in javascript, and the servlet when its done its stuff returns if(isDone()) { response.write(body onload=\myfunction()\); } But passing back anything more than a boolean

Re: ActionForward and onLoad()

2004-02-24 Thread Mark Lowe
is populated my the sneakyForm hidden in an iframe, frame window or something (ns4 a dic should work also). You'll be reaching for the crack trying to get this to work, across browsers. On 24 Feb 2004, at 19:38, Mark Lowe wrote: Pass the values back by returning a body tag from a servlet

Re: %= problem

2004-02-23 Thread Mark Lowe
http://jakarta.apache.org/site/micromail.html On 23 Feb 2004, at 08:44, Dixit, Shashank (Cognizant) wrote: Hi all I am using Tomcat 4.0 plugged in Eclipse 2.1 In any jsp I cannot use %= ..  % i.e. JSP Expression. E.g if I define %! String var = Anyvar % And html:select name=form

Re: Urgent repost: How to avoid bean:writeto print null on the screen

2004-02-23 Thread Mark Lowe
use c:out it wont display null values. On 23 Feb 2004, at 13:51, [EMAIL PROTECTED] wrote: Hi, I am thinking of overriding get and set methods of DynaForm Class in my Base Form class which extends Dyna Form in that if I can make a check it should be good .. What do you think? Regards anant

Re: spontaneous disappering ApplicationResources.properties

2004-02-22 Thread Mark Lowe
Ah.. I remember giving eclipse a go, and it ate my homework also. My guess is that it get you producing at such supersonic rates that the files just ant keep up. :o) sorry I've nothing useful to add. On 21 Feb 2004, at 20:45, [EMAIL PROTECTED] wrote: Hi list, I have a weird problem with all

Re: Dynamic Textboxes Problem

2004-02-20 Thread Mark Lowe
Look at the posts on nesting beans, indexed properties and such like. I haven't looked but Niall's post yesterday I believe covers this sort of problem. The basic idea is that you have a bean/actionform per row. On 20 Feb 2004, at 04:41, Vishal Arora wrote: Hi, My problem is that on my

Re: [OT] Animated .GIF's

2004-02-20 Thread Mark Lowe
I wouldn't use hide show by way of css for this. Use an old fashioned image swap with the transparent gif. Unless you need the image positioning over the top of anything (if its a form you'll need to hide that to c/o z-indexing and forms). In short don't hide-show but swap. On 20 Feb 2004,

Re: Error page problems with Tiles

2004-02-19 Thread Mark Lowe
global-forwards forward name=error path=/error.jsp / /global-forwards in your action you can forward to error in the event that something's gone pear-shaped. On 19 Feb 2004, at 01:58, Russ Baker wrote: I am having a real issue with the way Tiles handles an error page. I am setting up

Re: Form Submission

2004-02-19 Thread Mark Lowe
make more sense than mine..:) Hope this will sustain you without the crack..;) Geeta Mark Lowe wrote: I said no such thing about javascript. I'm in the httpsession != evil school and I'd say this isn't an occasion where you'd use it as you don't need anything to persist beyond the request

Re: Nested Indexed Property Question

2004-02-19 Thread Mark Lowe
What about indexed=true on the radio button? On 19 Feb 2004, at 04:36, Johnson, Gary wrote: Hello *, I've been trying to generate a variable list of text fields with each row containing a radio button and 2 text fields. The getters seem to work OK, but can't seem to make the setters work.

[OT]Re: 2 combo Box (drop down list)....

2004-02-19 Thread Mark Lowe
without a refresh its a javascript question find the oreilly book on javascript and look at the Option() constructor. Struts and tiles may help you to get the data to the page, but the re-population of select menus is javascript. On 19 Feb 2004, at 13:05, Daniel wrote: How can I make two

Re: 2 combo Box (drop down list)....

2004-02-19 Thread Mark Lowe
That tag lib guillermo suggested, or writing your own javascript like i suggested is the way to do it then .. On 19 Feb 2004, at 13:34, Daniel wrote: I used iframe, some time ago at one project but I was not using struts,tiles with iframe it's work very well, but don't have many advantages

Re: Sturts JSP and Javascript

2004-02-19 Thread Mark Lowe
How's this? you can put it in a tile wooo (I hear gasps of amazement) .. script language=javascript type=text/javascript !-- function ajavascriptfunctioninatile() { alert(Mellow World!!); } //-- /script a href=javascript:ajavascriptfunctioninatile()Hit me/a On 19 Feb 2004, at 18:14,

Re: Form Submission

2004-02-18 Thread Mark Lowe
.. Use of javascript is restricted. So i cant call a javascript function to set the action atribute and then call the submit function. Avinash Tiwari Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Mark Lowe [EMAIL PROTECTED

Re: can tiles be put in a jar?

2004-02-18 Thread Mark Lowe
Umm I like the sound of that. I haven't thought it through fully yet so there could be some glitch i've missed. just to complement the suggestion (other than having an ant task the fire everything up) you could have xdoclet comments to generate your web.xml % /** * * @web.servlet *

Re: Form Submission

2004-02-18 Thread Mark Lowe
well make more sense than mine..:) Hope this will sustain you without the crack..;) Geeta Mark Lowe wrote: I said no such thing about javascript. I'm in the httpsession != evil school and I'd say this isn't an occasion where you'd use it as you don't need anything to persist beyond the request

Re: can tiles be put in a jar?

2004-02-18 Thread Mark Lowe
. This allows you to construct links and test in a manner that isn't locked to a particular deployment. In development, we work within the JSP directories so we want to compile these as they change. If you're still skeptical, remember that Tomcat does the same thing on-the-fly. Mark Lowe wrote: Umm

Re: html:checkbox

2004-02-18 Thread Mark Lowe
String's always a safe bet.. But you can use Boolean although I understand that you don't want to use the primitive boolean. On 18 Feb 2004, at 22:46, Anand M S wrote: Hi All, Is we use html:checkbox, what should be the type in struts-config.xml? is that boolean or string? THanks, Anand

Re: repost : creation of UI from DB

2004-02-17 Thread Mark Lowe
Take a look at the advanced tiles pdf that someone else mentioned on another tiles thread. If you extend tilesaction then you could generate your definitions from the data collected from your model. I'm not sure of the performance issues related to this. And i don't thing anyones done the work

Re: trubble with session

2004-02-17 Thread Mark Lowe
I doubt you need to store your list in the session, 'in this case' you can use the request without introducing additional work, complication, geeking and/or messing around. request.setAttribute(list,data); [data is the plural (datum singular), not that this matters I understood what you are

Re: Form Submission

2004-02-17 Thread Mark Lowe
May I ask why you don't want a submit button? On 17 Feb 2004, at 15:55, [EMAIL PROTECTED] wrote: Hi How can we submit a form without using html:submit tag. I dont want to use JavaScript for this? Thanks Regards Avinash Tiwari Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website:

Re: Form Submission

2004-02-17 Thread Mark Lowe
In which case you want a input type=image .. in stuts speak html:image .. On 17 Feb 2004, at 16:26, [EMAIL PROTECTED] wrote: there is a hyperlink in my form - clicking this hyperlink should submit the form. I can't use html:submit because it displays a button instead of a hyperlink.

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
Should java.sql.Date belong in an form bean? On 17 Feb 2004, at 16:15, Marco Mistroni wrote: Hi Guillermo, I have one question: will 'your trick' work also if I have properties of type, for example, Short, or Integer, or java.sql.Date? Thanx and regards marco -Original

Re: Form Submission

2004-02-17 Thread Mark Lowe
Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Mark Lowe [EMAIL PROTECTED] 02/17/2004 08:57 PM Please respond to Struts Users Mailing List [EMAIL PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject Re: Form Submission May I ask why you don't

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
input DynamicBean to validate rules. 4) the service passes the validated DynamicBean to the persistence layer, where DynamicBean is transformed to Persistence Object. 5) Persistence framework persists this object in the database. Regards. Guillermo. -Original Message- From: Mark Lowe

Re: Printer Friendly using Tiles

2004-02-17 Thread Mark Lowe
Assuming you're not cramming too much formatting inline then change the layout. On 17 Feb 2004, at 17:58, Eric Dahnke wrote: What is the best way to do printer friendly pages using Tiles? We've got a portal type application. I'm looking at the Dynamic Look Feel capability of Tiles as a

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
DynamicBean to the persistence layer, where DynamicBean is transformed to Persistence Object. 5) Persistence framework persists this object in the database. Regards. Guillermo. -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Martes, 17 de Febrero de 2004 12:34 p.m. To: Struts

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
/ /action So you can plug any validations you need. And ValidatorDynamicForm invokes Validator framework in the validate() method. Note that we are using old version of validator (com.wintecinc.struts.action.Validator) -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Martes

Re: [RePOST]: How to avoid Action-Chaining?

2004-02-17 Thread Mark Lowe
You can store the values from formA and put them into the request before forwarding to the jsp with formB FooForm theForm = (FooForm) form; String foo = theForm.getFoo(); String bar = theForm.getBar(); //do what you want with form data. // Then request.setAttribute(foo,foo);

Re: [OT] - Request against Session

2004-02-16 Thread Mark Lowe
On 15 Feb 2004, at 23:43, Michael McGrady wrote: You [Mark Lowe] said: Having additional fields that may not related to the given form I'd say at least would confuse a site builder who comes along and has to work out what's going on. For example a bunch of user details in a credit card form

Re: persistent data storage - the right way

2004-02-16 Thread Mark Lowe
One advantage hibernate has over ibatis is xdoclet support. You can generate your mapping files from xdoclet comments which means that you have the mappings and java code in the same place. Perhaps there's ibatisdoclet but I haven't noticed it. Other advantages vs disadvantages I haven't a clue

Re: [OT] - Request against Session

2004-02-16 Thread Mark Lowe
fours but purring like a kitten :o) Mark On 16 Feb 2004, at 15:56, Michael McGrady wrote: You [Mark Lowe] said: Perhaps HttpSession is a blunt instrument, and would need to be substituted by another persistence mechanism like say writing to a temporary text file, but IMO this would be something

Re: [OT] - Request against Session

2004-02-16 Thread Mark Lowe
: Mark Lowe [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, February 16, 2004 3:41 PM Subject: Re: [OT] - Request against Session Ah.. I'm having a bad hibernate day instead today so I'm a bit more distracted from this debate. Truth is I'm pretty stupid, my simplistic

Re: [OT] - Request against Session

2004-02-16 Thread Mark Lowe
thinking about hardware while developing, approaching the problem in a general way like you're suggesting I like. Cheers Mark On 16 Feb 2004, at 18:48, Michael McGrady wrote: At 07:41 AM 2/16/2004, you [Mark Lowe] wrote: Not on all fours but purring like a kitten :o) I think you are making

[OT]Re: Java / J2EE Developer

2004-02-16 Thread Mark Lowe
I'm only joking here guys so don't take me too serious. Role description: Must be able to spam mailing lists an forums with poorly defined questions like I need to build a webapp using struts and oracle, please help. On 16 Feb 2004, at 18:58, Andy Engle wrote: deepak saini [EMAIL PROTECTED]

[OT] Re: Java / J2EE Developer

2004-02-16 Thread Mark Lowe
Look the US is the great bastion of free trade, take a look around the world and get real please. Both the US, UK and others have done well out of global trade. So its no good crying when the competition comes along. US and UK companies also benefit from being able to exploit the emerging

Re: [OT] - Request against Session

2004-02-16 Thread Mark Lowe
interesting. do you havce a name for this methodologysomething that when it rolls off the tongue impresses the hell out of managers - they're a sucker for believing its not my fault if I can give them a good acronym. Niall - Original Message - From: Mark Lowe [EMAIL PROTECTED

Re: [OT] - Request against Session

2004-02-15 Thread Mark Lowe
On 14 Feb 2004, at 20:12, Craig R. McClanahan wrote: Quoting Michael McGrady [EMAIL PROTECTED]: Now let us assume that the ActionForm for the record editing form needs to go in session scope (nb: in request scope there is not a problem so if the design can be done practically with request

Re: [OT] - Request against Session

2004-02-15 Thread Mark Lowe
On 15 Feb 2004, at 14:02, Michael McGrady wrote: At 04:20 AM 2/15/2004, you wrote: You Said: During a payment process one may want to collect various details about a user, likewise in other parts of a system you perhaps want to do the same albeit in a different order. Hiding form values from a

Re: [OT] - Request against Session

2004-02-14 Thread Mark Lowe
wrote: Well, Mark, I love you. But, I don't know what the issue is. LOL At 08:21 AM 2/13/2004, you wrote: Am i to assume that there's no issue then ? or am i being too stupid to warrant a response? On 13 Feb 2004, at 09:55, Mark Lowe wrote: hi shirish You said something yesterday about never

Re: [OT] - Request against Session

2004-02-13 Thread Mark Lowe
hi shirish You said something yesterday about never being sure what data is being displayed when using a session scoped action form, have you any references or can you elaborate? Sounds interesting, and I think its something I should know about. Cheers Mark On 13 Feb 2004, at 09:49, [EMAIL

Re: [OT] - Request against Session

2004-02-13 Thread Mark Lowe
At least i'm not the only one. I also have/had no idea about this issue. Which is why I asked. Oh well I've just asked shirish what he meant, see what s/he (not taking the piss just not familar with the name) comes up with. Cheers Mark On 13 Feb 2004, at 04:47, Michael McGrady wrote: At

Re: Problem regarding DynaActionForm

2004-02-13 Thread Mark Lowe
There are a few ways of going about this. What are you trying to do? On 13 Feb 2004, at 12:20, Vishal Arora wrote: I want to use DynaActionForm... my problem is in my jsp i have no of textfields. but they r generated dynamically now in struts-config.xml how should i decaler those dynamic

Re: ui gen from db

2004-02-13 Thread Mark Lowe
I see no reason why you can't create you tiles defs form data retrieved from you model, rather then defining in xml file. If you're familar with tiles defs then reading the javadocs on tiles should show you the way, I've never done this. But my cousin told me some he works with does the same

Re: [OT] - Request against Session

2004-02-13 Thread Mark Lowe
Am i to assume that there's no issue then ? or am i being too stupid to warrant a response? On 13 Feb 2004, at 09:55, Mark Lowe wrote: hi shirish You said something yesterday about never being sure what data is being displayed when using a session scoped action form, have you any references

Re: [OT] - Request against Session

2004-02-13 Thread Mark Lowe
(Understandable)explanation in short time.So the mail is incomplete till now :-((. I will try to explain it now..(Hopefully there will be no more bugs to eb fixed till end of day...) BTW, I am HE :-)) and not SHE -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday

Re: [OT] - Request against Session

2004-02-13 Thread Mark Lowe
is either added to Order B (instead of the intended Order A) Seems to me a pretty easy thing to check if the info they are updating relates to the info in the session, but that could be just me. -Rob -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004

Re: Ben Janes/MaerskDataSverige/MDG is away from the office until 19-02-2004

2004-02-13 Thread Mark Lowe
yeah.. there's always someone :o) On 13 Feb 2004, at 18:12, Niall Pemberton wrote: I keep getting these messages - I'm thinking its when I send an email to this list - is anyone else getting them? Niall - Original Message - From: Ben Janes [EMAIL PROTECTED] To: Niall Pemberton [EMAIL

Re: html:link instead of html:submit

2004-02-13 Thread Mark Lowe
if you're saying what i think you are function submit(form,dispatch) { // jsut to test alert(form.name); } onclick=submit(this.form,'MyDispatch') perhaps i haven't understood however. On 13 Feb 2004, at 18:43, Voinea, Marina wrote: Thanks a lot Jean-Christian, this is a

Re: [OT] - Request against Session

2004-02-12 Thread Mark Lowe
-Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 4:45 PM To: Struts Users Mailing List Subject: Re: [OT] - Request against Session There was an interesting posting the other day on this, I tend to stick stuff in the session because I cant be arsed

Re: struts actions and content/type responses

2004-02-12 Thread Mark Lowe
Hi ben I assume you know how to get request parameters, construct query strings and get a byte array from you db. Here's some code that will stream an image. This should get you far enough to adapt to you needs. if you use an action just return null instead of a forward, or just use a

Re: Problem with opening a file that comes from SevletResponse

2004-02-12 Thread Mark Lowe
have a look at the posting called struts actions and content/type responses and see the randomaccessfile bit.. Not sure but I reckon that could be the beef..also perhaps response.setHeader(Cache-Control, no-cache); On 12 Feb 2004, at 13:29, Villalba Arias, Fredy [BILBOMATICA] wrote: Hi,

Re: validation.xml and java.sql.Date

2004-02-12 Thread Mark Lowe
You can have a string that looks like a date and validator will still validate it. To my knowledge there is no need to have the property of type Date. same is true of other types also. On 12 Feb 2004, at 14:36, Carl Walker wrote: Hi, I'm having a problem setting an initial value for a

Re: Getting data from a disabled form field

2004-02-12 Thread Mark Lowe
i believe that disabled form elements return null. I hate to say it, but you could have the uid stored as a hidden variable in the case of the non admin user but still display a text field with the value displayed. On 12 Feb 2004, at 14:31, Arne Brutschy wrote: Hi, I have a problem with

Re: validation.xml and java.sql.Date

2004-02-12 Thread Mark Lowe
is not required, so specifying a string like '1970-01-01' for an initial value isn't desirable. - Original Message - From: Mark Lowe [EMAIL PROTECTED] Date: Thursday, February 12, 2004 8:44 am Subject: Re: validation.xml and java.sql.Date You can have a string that looks like a date

Re: [OT] - Request against Session

2004-02-12 Thread Mark Lowe
While I found your solution interesting. But whether the session is bloated or not is other folk's problem. The javadoc for HttpSession says what its for, the other way is to persist out-side of the web tier which is another subject. Sure you don't want to use session for everything that would

Re: [OT] - Request against Session

2004-02-12 Thread Mark Lowe
as abuse very much depends on your expected load (and things like whether you need to cluster). Whats abuse for a public portal with 1000 hits per second is just fine for an intranet app thats unlikely to have more than a dozen simultaneous hits... -Original Message- From: Mark Lowe [mailto

Re: [OT] - Request against Session

2004-02-12 Thread Mark Lowe
is not an issue..Even in that case i will refrain from using session scoped form beans...U are never sure which set of data you are working with...:-(( -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 4:54 PM To: Struts Users Mailing List Subject

Re: DynaFormBean base on other DynaFormBeans?

2004-02-12 Thread Mark Lowe
the indexedList property in the validation.xml. I am not sure how I can convert the internal action form to a DynamActionForm without subclassing it. Nathan Maves Sun Microsystems On Feb 11, 2004, at 2:17 PM, Mark Lowe wrote: yeah.. I read that too never seen it working though (made a nice article

Re: [OT] - Request against Session

2004-02-12 Thread Mark Lowe
Hi Michael.. Do you know anything about this not knowing what data one is looking at issue when scoping forms in the session? I've never come across this and you sound like you might know about this kind of thing. On 12 Feb 2004, at 23:47, Michael McGrady wrote: There is no such thing as work

Re: [OT] - Request against Session

2004-02-12 Thread Mark Lowe
Okay.. Sure speed wise the filling ram approach that java uses would have everything ready n waiting. While most c cgi's will be hitting the disk. But as the beef was bloat and thus I assume ram usage then I'd say that our session-shy friend would be all the happier. Java would only win/draw

Re: problem with DynaActionForms in conversion of values

2004-02-11 Thread Mark Lowe
I've always found that BeanUtils doesn't like BigDecimal and use type string then convert to BigDecimal before passing it up to the model . If you don't want to use string then perhaps Double or even its primitive (if you can get away with it) might work for you. On 11 Feb 2004, at 11:47,

Re: multipart problem

2004-02-11 Thread Mark Lowe
You can do all the work in one action, just don't do the image stuff if there's not one present. int imageLength = image.getFileData().length; if(imageLength 0) { //do the image stuff. } On 11 Feb 2004, at 14:57, Turner Benjamin wrote: hi, well i have an action that compiles all the

Re: Struts Decision making

2004-02-11 Thread Mark Lowe
If you're new to this stuff then jstl might be preferable c:choose c:when test=${email.type == 'html'} Stop sending HTML Emails they suck /c:when c:when test=${email.type == 'rtf'} What the f**k is wrong with plain text then?

Re: Struts Decision making

2004-02-11 Thread Mark Lowe
Ohh. Make a wish :o) On 11 Feb 2004, at 15:18, Slattery, Tim - BLS wrote: Can anybody tell me how to make decision making in struts (IF-THEN-ELSE). I couldn't find proper tags in LOGIC. That's because they aren't there. Instead use the JSTL logic tags: c:choose c:when test=${...} this

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Mark Lowe
Yep.. I've done this with arrayList before, don't know if you can use an array of DynaForm's but I'd imagine you can. But it works with ArrayList. On 11 Feb 2004, at 15:52, Nathan Maves wrote: I need a DynaFormBean that has an array property. I want this property to be of made up of a second

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Mark Lowe
form-property name=nestedForms type=java.util.ArrayLIst / On 11 Feb 2004, at 16:18, Nathan Maves wrote: What do you use to specify the type attribute of the form to be? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:12 AM, Mark Lowe wrote: Yep.. I've done this with arrayList before, don't

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Mark Lowe
, Nathan Maves wrote: Ok I got that part but what is the best way to populate that arraylist with other DynaActionForm? Nathan Maves Sun Microsystems On Feb 11, 2004, at 8:36 AM, Mark Lowe wrote: form-property name=nestedForms type=java.util.ArrayLIst / On 11 Feb 2004, at 16:18, Nathan Maves

Re: DynaFormBean base on other DynaFormBeans?

2004-02-11 Thread Mark Lowe
Microsystems On Feb 11, 2004, at 11:52 AM, Mark Lowe wrote: In a referring action. DyanActionForm theForm = (DynaActionForm) form; //could use dynabean also DynaActionForm nestedForm = new DynaActionForm(); ArrayList nestedFormList = new ArrayList(); nestedFormList.add( nestedForm ); theForm.set

Re: [OT] - Request against Session

2004-02-11 Thread Mark Lowe
There was an interesting posting the other day on this, I tend to stick stuff in the session because I cant be arsed messing around. After things are working I then see whether i can move things out. There seems to be a lot on not storing stuff in the session i imagine because things can

Re: Errors or messages or??

2004-02-10 Thread Mark Lowe
I was in the same boat, thinking that html:errors tag was up for deprecation, but no. Just ActionErrors are, ActionMessages can be rendered using html:errors. On 10 Feb 2004, at 17:10, Slattery, Tim - BLS wrote: With Struts 1.1, we have support for both error messages and non-error messages.

Re: Problems (re)populating nested bean

2004-02-09 Thread Mark Lowe
There are two ways of dealing with this (that i know of), as you've seen scope to session or you can use lazy list. Usually complex forms have limited users anyhow so I scope to session. However folks on the list have used lazy list which apparently works although i've never seen it down

Re: Problems (re)populating nested bean

2004-02-09 Thread Mark Lowe
.. http://marc.theaimsgroup.com/?l=struts-userm=107458904510606w=2 -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Monday, February 09, 2004 5:03 PM To: Struts Users Mailing List Subject: Re: Problems (re)populating nested bean There are two ways of dealing with this (that i

<    1   2   3   4   5   6   7   >