Re: How to get http and https port # from struts-config in filter?

2004-05-08 Thread Mark Lowe
The api you want would be the servlet api request.getScheme() On 8 May 2004, at 18:35, Martin Alley wrote: Hi, I have a servlet filter to handle session timeouts. This filter needs to redirect to an http page so that the new session works in both http and https, so a forward is no good as the

Re: sending emails from a struts app

2004-05-18 Thread Mark Lowe
wouldn't something like this do what you're talking about? try { Transport.send(msg); } catch (Exception e) { ActionMessages errors = new ActionMessages(); errors.add("mail",new ActionMessage("mail.pearshaped.error"); saveErrors(request, errors); } On 18 May 2004,

Re: Problem with number formatting

2004-05-19 Thread Mark Lowe
You could try something like On 19 May 2004, at 13:12, [EMAIL PROTECTED] wrote: Hi I see a kind of strange behaviour with the Struts html tags. When on a form I have a html:text field which displays a number, say 1.2 it displays as "1.2", but according to the locale I am using it should display a

Re: Struts - not compatible with IE 5.2 on MacIntosh???

2004-05-27 Thread Mark Lowe
I saw this thread and thought I'd give things a test, but as far as I can see I've a file upload working fine with MSIE 5.2. Why anybody would be silly enough to use it now there's safari, is another question. This app i'm testing with is using the stable 1.1 release of struts with TC5. The on

Re: Struts - not compatible with IE 5.2 on MacIntosh???

2004-05-27 Thread Mark Lowe
e dev and stage configurations use tc 5.19 while the live deployment is new using 5.24. Mark On 27 May 2004, at 09:34, Mark Lowe wrote: I saw this thread and thought I'd give things a test, but as far as I can see I've a file upload working fine with MSIE 5.2. Why anybody would be silly enough to

Re: id attribute and struts not supported

2004-05-27 Thread Mark Lowe
styleId="" renders to id="" http://jakarta.apache.org/struts/userGuide/struts-html.html On 27 May 2004, at 12:16, Ayoub, Ashraf A wrote: Dears, I have HTML code with lots of attribute id in any of its tag, the problem when I convert to struts 1.1, ID is not a valid attribute in struts, the problem

Re: Struts - not compatible with IE 5.2 on MacIntosh???

2004-05-27 Thread Mark Lowe
+0200 5/27/04, Mark Lowe wrote: I've just tested on our staging server. Apache 2 + jk2 the same app, with msie 5.2 mac. And the same multipart form including an image upload worked just fine. Hm. I use Safari and Firefox almost completely these days, but I could swear that we'd run i

Re: presentation tag

2004-05-27 Thread Mark Lowe
This should sort you out. On 27 May 2004, at 22:54, Kathy Zhou wrote: How could I show 3 elements of a ArrayList per line on the page with tag. My code is: HashMap ilist =..; Its value is a ArrayList of javabeans having getter/setter methods. c:out value="${vissue.key}"/>

Re: how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
What happens if you try this in your page? <%= "JSP Works!!!" %> On 28 May 2004, at 11:05, [EMAIL PROTECTED] wrote: Hi Janarthanan,         I tried that, Im getting '<%= index.intValue()%>' in doThis() and not the value. Regards Subramaniam "Janarthan Sathiamurthy" <[EMAIL PROTECTED]> 05/28/2

Re: how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
esitate in putting forward in the face of such conviction. On 28 May 2004, at 11:25, [EMAIL PROTECTED] wrote: Scirptlets will not work within a html struts tag. If you want to use scriplets use a normal html tag instead. Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED]

Re: how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
expression. Regards, Janarthan S -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Friday, May 28, 2004 3:07 PM To: Struts Users Mailing List Subject: Re: how to send the 'index' to javascript function Scirptlets will not work within a html struts tag. If you want to

Re: how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
Which bit? The no scriptlets in jsp tags? or vice versa..? On 28 May 2004, at 15:04, Michael McGrady wrote: This is not true. At 02:36 AM 5/28/2004, Mark Lowe wrote: Scirptlets will not work within a html struts tag. If you want to use scriplets use a normal html tag instead. Thats the first I

Re: RE : how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
alue() + ")" %>'/> When using <%= %> you need to put everything in it. Hope it help .. hope I'm right :-) Ciao /David -Message d'origine- De : Mark Lowe [mailto:[EMAIL PROTECTED] Envoyé : May 28, 2004 05:54 À : Struts Users Mailing List Objet : Re: how to

Re: RE : how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
But then again, the only sensible answer on this thread was martin's. On 28 May 2004, at 15:25, Mark Lowe wrote: Interesting.. Didn't work as i originally predicted.. But as you said this puppy did.. " /> On 28 May 2004, at 14:38, David Gagnon wrote: Hi If I remembrer correct

[friday]Re: [OT] Re: RE : how to send the 'index' to javascript function

2004-05-28 Thread Mark Lowe
to us all, in the Xtreme view of things. LOL I love giving Mark advice because he is such a sweetheart as a rule and rarely provides one the opportunity to be all puffy. LOL Michael At 06:27 AM 5/28/2004, Mark Lowe wrote: But then again, the only sensible answer on this thread was martin&#

Re: Memory Issues

2004-05-28 Thread Mark Lowe
If its on a live deployment and your using tc 5.019 with jk 1 then upgrade to 5.024 (Look for the decoding error in the logs). If its a dev server and you get this when you reload webapps, it just happens. TC5 is better than 4.1 but still eventually happens. Scoping to request will help reduce

Re: nested tiles:insert tags

2004-05-29 Thread Mark Lowe
or or This will work in inserted tiles as the variable is scoped to the request rather than page. On 28 May 2004, at 13:03, Colm Garvey wrote: Has anyone been able to nest tiles such that placeholders in the topmost frame can be populated by another tile 2 levels down? For example, I have

Re: [OT] Why do you keep torturing me shaikh.sohrab!

2004-05-31 Thread Mark Lowe
I did once but the doctor gave be a cream to clear it up. On 30 May 2004, at 22:02, Michael McGrady wrote: I didn't even know you had a "shaikh.sohrab", Rick! LOL At 07:58 AM 5/30/2004, Rick Reumann wrote: "Why do you keep torturing me shaikh.sohrab of rave-tech dot com!" -- Rick -

Re: Hibernate configuration problems

2004-06-01 Thread Mark Lowe
There are alternatives to using the struts plugin, but the plugin is as reasonable option as any other, especially if you're not trying to minimize the dependency on struts. 1. One alternative is to take a look at the struts plugin code and write a servlet that runs the jndi service. 2. Anothe

Re: Hibernate configuration problems

2004-06-01 Thread Mark Lowe
Perhaps there are better ways but this works http://www.hibernate.org/42.html it will certainly avoid jndi problems and give you breathing space. On 8 May 2004, at 11:47, Zaid wrote: HI Marko and Mark and all friends in this Group, Thanx alot for being such a help for me, anyhow, does any one has

Re: [OT] JSF Tutorial

2004-06-01 Thread Mark Lowe
The http://horstmann.com/corejsf/ link looks really good. I've got all the available chapters of JSF in action and so far I'm not that impressed. Its a lot of IDE stuff, that I really cant be arsed with. But the horstman link looks like the canine's genitalia. On 1 Jun 2004, at 21:09, Michael M

Re: workers2.properties

2004-06-01 Thread Mark Lowe
More sensibly.. in server.xml directory="logs" prefix="mywebapp_access_log." suffix=".log" pattern="common" resolveHosts="false"/> This needs to match the stuff in your httpd.conf and you will have what you want. The only problem you might get with jk2 is

Re: AW: Struts Tag Library

2004-06-02 Thread Mark Lowe
While I can see that JSTL can be used for model 1 style development, I'd still use JSTL for model 2 with or without struts. There are lots of useful toys with JSTL that just aren't there in struts, which are needed by the site builder JSTL functions especially, these are used for purely present

Re: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Mark Lowe
With the stable release of 1.1 you need to pass the parameter through usually /foo.do?method=save but to get the unspecified method running /foo.do?method suck it n see. On 2 Jun 2004, at 17:07, Kamholz, Keith (corp-staff) USX wrote: Yeah, I have basically that code for the submit buttons. Isn't th

Re: [SOLVED] Default methodName for DispatchAction

2004-06-02 Thread Mark Lowe
es the 'unspecified' method no matter what I do, even if I click on one of the buttons... - Keith -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 02, 2004 11:21 AM To: Struts Users Mailing List Subject: Re: [SOLVED] Default methodName for Di

Re: [OT] Good env for struts-based-web-tier and ejb components development

2004-06-03 Thread Mark Lowe
+1 On 3 Jun 2004, at 14:30, Frank Zammetti wrote: I'm going to pull a Bill Gates here... "UltraEdit and a command prompt should be enough for anybody!" Seriously though... I know many people swear by this IDE or that IDE, but I've done a large number of projects ranging from small ones to huge on

Re: Why not Torque?

2004-06-03 Thread Mark Lowe
I've used torque and hibernate. Torque gets you up and running very quickly, and has less files to maintain (mapping files) . In the case of hibernate to get around the mapping file maintenance a lot of folk including me use xdoclet. Hibernate gives you more control than Torque but has all that

Re: Sorry : Semi-OT: Organizing WEB-INF/lib dir...

2004-06-04 Thread Mark Lowe
I think you perhaps what to organise you jars in a central place like ~/Projects/lib/struts-1.1 ~/Projects/lib/hibernate-2.1 ~/Projects/myapp/src and such like and then use ant to copy the dependencies into ~/Projects/myapp/build/WEB-INF/lib at build time with an ant task. This will give you the cl

Re: HTTP header for dynamic pdf and IE6

2004-06-04 Thread Mark Lowe
I'm not sure, but i think bill thought the world a better place if applications associate file types according to the file suffix. it will need .pdf at the end of the filename. filename=\"" + attachment.getFileName() + "\".pdf" could fix it. On 4 Jun 2004, at 14:37, Dean A. Hoover wrote: Sorry if

Re: Aw: Re: Reload Ressources on the fly

2004-06-05 Thread Mark Lowe
This guy explains and supplies the code on how to reload when a change is made to struts-config.. You could adapt it to deal with properties files (maybe) http://www.brainysoftware.com/ On 4 Jun 2004, at 16:36, [EMAIL PROTECTED] wrote: Thanx James, that was the point. I have another question, is

Re: HTML pages convert to Struts/JSP pages

2004-06-09 Thread Mark Lowe
well you could start by grabbing your webapp with something like wget or curl. wget -r www.mysite.com/ This would give you the rendered html to then start working from, you'd still have to deal with the form input when the user submits it. I dont know if there' s a zero-cognition, abracadabra w

Re: Struts 1.2.x binaries download?

2004-06-11 Thread Mark Lowe
You'll want to look at the nightlies. http://cvs.apache.org/builds/jakarta-struts/nightly/ Mark On 11 Jun 2004, at 14:08, Illya Kysil wrote: Hi all, Are there any Struts 1.2.x binaries downloads available? http://jakarta.apache.org/site/binindex.cgi reports 1.1 is the latest. -- Illya Kysil, soft

Re: Struts 1.2.x binaries download?

2004-06-11 Thread Mark Lowe
nts for release are stricter than when 1.1 came out. But there's certainly a hive of activity going on to get 1.2 released. Mark On 11 Jun 2004, at 15:48, Illya Kysil wrote: Mark Lowe wrote: You'll want to look at the nightlies. http://cvs.apache.org/builds/jakarta-struts/nightly/ T

Re: The html:link Tag

2004-06-13 Thread Mark Lowe
try and forget the rest. Mark On 12 Jun 2004, at 23:56, Caroline Jen wrote: Thanks for the reply. If I use the html:link tag and I have one parameter, how do I use the paramId/paramName/paramProperty? For example, I have: what should I do when I convert it to html:link Caroline --- Niall Pember

Re: Newbie FORM authentication problems with a Struts app - TC 5.0.25

2004-06-15 Thread Mark Lowe
try this. On 15 Jun 2004, at 11:15, Adam Lipscombe wrote: Folks, Apologies - this may be a Tomcat issue rather than Struts. I am trying to configure Tomcat FORMS based authentication with a JDBC realm (MySQL). I have added the MySQL driver to the server.xml and configured the Login.jsp page th

Re: Simple struts question. (tiles ... )

2004-06-15 Thread Mark Lowe
If you mean how can you use a tiles definition as an action forward. Use a blank action that forwards to your definition, All the action does is returns a forward called success or whatever you choose. On 15 Jun 2004, at 15:50, Bullard, James wrote: 1.) Is there any way to have a

Re: LookupDispatchAction and Form validation + DispatchAction

2004-06-16 Thread Mark Lowe
Another way is to check which dispatch action is being activated and then run validation or not depending on which action is being run. e.g. /foo.do?method=save mapping.getParameter() return the name of the parameter used to dispatch with. In this case "method" request.getParameter(mapping.ge

Re: Theoretical debate

2004-06-17 Thread Mark Lowe
I've been playing with JSF recently. If the standard sun version had file upload support The Form, Action JSP is all very well and good but there are certain limitations to this, for example to be able to plug a non webapp front on the model you have to have a bunch of util classes that man

Re: tomcat 5 breaks my tiles

2004-06-17 Thread Mark Lowe
I've been using tiles quite happily with tc5. But i never use get. I always use useAttribute and then just el to display stuff. <%@ page isELIgnored="false" %> <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> ${foo} could be a solution for you. On 18 Jun 2004, at 00:28, Matt Bathj

Re: OT - why to get an answer to a j2ee install question?

2004-06-21 Thread Mark Lowe
which bits do you need? J2EE is a bit of a vague term dreamt up by marketing folk to describe some genuinely good stuff. Be careful by the time you realize which bits you don't need you'll have forgotten the problems you were trying to solve in the first place. Apple's dev tools was bundled wit

2 deep nested forms (solution to 2 dimensional arrays with struts html tags)

2004-06-24 Thread Mark Lowe
A question came up the other week/month where someone nesting 2 deep and was trying to use a 2 dimesional array. I had the some problem today and had my chance to combine indexed and mapped properties to solve the problem. I want to create a Restaurant Menu editor. So a menu has a few properti

Re: 2 deep nested forms (solution to 2 dimensional arrays with struts html tags)

2004-06-24 Thread Mark Lowe
Not quite.. hang on. On 25 Jun 2004, at 00:14, Mark Lowe wrote: A question came up the other week/month where someone nesting 2 deep and was trying to use a 2 dimesional array. I had the some problem today and had my chance to combine indexed and mapped properties to solve the problem. I want

Re: 2 deep nested forms (solution to 2 dimensional arrays with struts html tags)

2004-06-24 Thread Mark Lowe
No needs a rethink . indexed="true" uses whatever iteration tags that its between.. Arses,, drat and double drat. On 25 Jun 2004, at 00:27, Mark Lowe wrote: Not quite.. hang on. On 25 Jun 2004, at 00:14, Mark Lowe wrote: A question came up the other week/month where someone nesting 2

Re: 2 deep nested forms (solution to 2 dimensional arrays with struts html tags)

2004-06-25 Thread Mark Lowe
eys array-%> renders to On 25 Jun 2004, at 01:09, Mark Lowe wrote: No needs a rethink . indexed="true" uses whatever iteration tags that its between.. Arses,, drat and double drat. On 25 Jun 2004, at 00:27, Mark Lowe wrote: Not quite.. hang on. On 25 Jun 2004, at 00:14, Mark Lowe wrote:

Re: AW: 2 deep nested forms (solution to 2 dimensional arrays with struts html tags)

2004-06-25 Thread Mark Lowe
ted taglib too. Could make your jsp easier but renders to the same as below. http://jakarta.apache.org/struts/userGuide/struts-nested.html http://www.keyboardmonkey.com/next/index.jsp Hope it's of any use to you René -Ursprüngliche Nachricht- Von: Mark Lowe [mailto:[EMAIL PROT

Re: AW: 2 deep nested forms (solution to 2 dimensional arrays with struts html tags)

2004-06-25 Thread Mark Lowe
Sat under my nose all the time :o) On 25 Jun 2004, at 15:06, Mark Lowe wrote: I haven't played with netsted tags for a while, I always preferred seeing where in indexed properties were. I have to confess it completely escaped my attention. Mark On 25 Jun 2004, at 13:55, René Zbinden

Re: Getting index value of iteration

2004-06-25 Thread Mark Lowe
Thanks Rick. You've shown me exactly how to do what i need do and I didn't even ask the question :o) 2 deep indexed properties and no nested tag llib. On 25 Jun 2004, at 16:03, Rick Reumann wrote: Wendy Smoak wrote: From: Tom McCobb [mailto:[EMAIL PROTECTED] In another section of the page I d

Re: Getting index value of iteration

2004-06-25 Thread Mark Lowe
I'm using spring too, albeit not for the web stuff. Haven't looked into spring web tier wise, not sure it has anything for forms. On 25 Jun 2004, at 17:23, Rick Reumann wrote: Mark Lowe wrote: Thanks Rick. You've shown me exactly how to do what i need do and I didn't even

Re: Converting Java Code in JSP to JSTL

2004-06-26 Thread Mark Lowe
The article != preArticle I am not quite sure. At least in terms of how the el works (not nesting el). Cant see the point in porting this to JSTL unless there's nothing else to do. I'd sooner copy and past the java in the jsp page into an action like bill was saying. On 26 Jun 2004, at 11:48,

Re: [OT] Storing Birth Date

2004-06-26 Thread Mark Lowe
I do string - calendar conversion in an action form, its gets and sets strings modifying a calendar object which can be then given to the action ready to be saved back to the model. private Calendar dob = Calendar.getInstance(); public String getDayOfBirth() { int dayInt = dob.get(Calend

Nested dispatch action

2004-06-27 Thread Mark Lowe
I've been looking through the struts source with a view to trying to find a way of handling nested dispatch actions. Basically the problem is passing through an index or key to the getMethodName (MappedDispatchAction) or the getKeyMethodMap (LookupDispatchAction) and running a method based on

Re: Nested dispatch action

2004-06-27 Thread Mark Lowe
a bit heavy going. On 27 Jun 2004, at 12:42, Mark Lowe wrote: I've been looking through the struts source with a view to trying to find a way of handling nested dispatch actions. Basically the problem is passing through an index or key to the getMethodName (MappedDispatchActi

Re: EJB + Struts + Hibernate

2004-06-27 Thread Mark Lowe
+1 You'll want to look at spring whether you want to use EJB or Hibernate. On 27 Jun 2004, at 16:02, Bryan Hunt wrote: I don't believe it is unless you feel that the application will need to be distributed across a cluster. I use the (excellent) spring framework ( springframework.org ) so that I

Re: Nested dispatch action

2004-06-27 Thread Mark Lowe
x27;s something on quite as simple as i perhaps first imagined. Ideas? On 27 Jun 2004, at 13:15, Mark Lowe wrote: The only means i've thought this could be possible would be to iterate through the parameter names enumeration like this.. Enumeration parameterNames = request.getParameterName

Re: Nested dispatch action

2004-06-27 Thread Mark Lowe
I gave up my tree barking with that last approach and simply defined a index int with get and sets in my NestedDispatchAction class. Now when i submit my indexed button .. But getMethodName called in my execute method returns null. null[index] On 27 Jun 2004, at 17:05, Mark Lowe wrote: I'v

Re: Nested dispatch action

2004-06-27 Thread Mark Lowe
ch action in my methods map. On 27 Jun 2004, at 19:25, Rick Reumann wrote: Mark Lowe wrote: I've been looking through the struts source with a view to trying to find a way of handling nested dispatch actions. I don't think it matters what kind of action it is, but maybe I'm missing w

Re: EJB + Struts + Hibernate

2004-06-27 Thread Mark Lowe
#x27;s app fuse follows the same pattern. Mark On 27 Jun 2004, at 19:40, Michael McGrady wrote: What's so special about SPRING? I am always interested in application frameworks. Can anyone give a quick synopsis of the pluses and minuses? Micahel At 07:42 AM 6/27/2004, Mark Lowe wrote: +1

Re: RE : Struts, XDoclet, and Maven...

2004-06-27 Thread Mark Lowe
I had a go with struts xdoclet tags, the advantages aren't that great but it does help keeping the mapping information in the same file. Given there are no real cross container issues relating to the struts-config file then its not as useful as webdoclet tags. The other problem is that i think

Re: EJB + Struts + Hibernate

2004-06-28 Thread Mark Lowe
The only thing thats stopped me using ibatis is that there's no xdoclet template thus the need to edit and maintain a bunch of mapping files, "YAWN". Mark On 28 Jun 2004, at 02:11, Vic Cekvenich wrote: EJB is heavy, therefore slow and less scaleable. So in order to support a heavy transaction l

Re: EJB + Struts + Hibernate

2004-06-28 Thread Mark Lowe
+1 If your interfaces are in place you can pretty much change the persistence layer to whatever you like very quickly. I'll check ibatis 2 out if it does mean editing lots of xml files :o) On 28 Jun 2004, at 10:54, <[EMAIL PROTECTED]> wrote: On 04/06/28 8:55, "Mark Lowe&qu

Re: Struts, Dreamweaver, and JSP

2004-06-29 Thread Mark Lowe
If you want to have valid accessible html why use dreamweaver? Seems a contradiction in terms. I'd be more concerned with the ropey generated code than the html rendered by struts tags. On 29 Jun 2004, at 17:43, McCormack, Chris wrote: use wget -r http://www.site.co.uk to save your html to disk

Re: why do we need to integrate tomcat with apache webserver and how.pls urgent

2004-06-30 Thread Mark Lowe
I agree with everything nico just said, however there is no reason if you're just wanting to run a basic webserver with java/jsp you cant just change tomcat to serve over port 80 and forget about apache. The built in http server is pretty good and in some situations performs as well as apache w

Re: [OT] Netscape 7.1 WOW!

2004-06-30 Thread Mark Lowe
To my knowledge netscape is a stable grab of mozilla slightly propagandized with netscape logos. Firefox is a lighter version of mozilla, without all that silly mail/new reader jism and focuses on being an html browser. But basically they're all the same thing. On 1 Jul 2004, at 02:04, Michael

Re: issue

2004-07-01 Thread Mark Lowe
If theList is a List that cast it to an array theList.toArray() On 1 Jul 2004, at 14:01, John Antonakos wrote: i had something like this: , property="a2"/>"> i changed it and now i have something like this: As you see i

Re: issue

2004-07-01 Thread Mark Lowe
? I found a solution myself, to combine the 2 fields and pass an a4 param which is actually the combined a1,a2. But i was searching for a Struts solution, not a Java one. John - Original Message ----- From: "Mark Lowe" <[EMAIL PROTECTED]> To: "Struts Users Mailing List&quo

Re: Urgent help needed on struts!

2004-07-01 Thread Mark Lowe
I've have no experience of this problem however given that its a EL processing problem then like the next man said check your web.xml and see what servlet spec it is. As JBoss ships with tomcat then it could well be a tomcat issue rather than a JBoss one. I know that 3.2.5 ships with tomcat 5

Re: unable to set html-el:link parameters

2004-07-01 Thread Mark Lowe
Seeing as you're using jstl, there's more that one way but you might "> or perhaps But i haven't used the htm-el lib in a while so could be wrong. Mark On 24 Jun 2004, at 19:06, Bryan Hunt wrote: Good evening list users. I have been trying to get html-el to work with JSTL in order to c

Re: Urgent help needed on struts!

2004-07-01 Thread Mark Lowe
stance"; version="2.4"> action org.apache.struts.action.ActionServlet config /WEB-INF/struts-config.xml 1 cacheControl com.embisoft.embicast.servlets.CacheControlFilter action *.do .. Thank you. Ding Lei On Thu, Jul 01, 2004 at 06:5

Re: unable to set html-el:link parameters

2004-07-01 Thread Mark Lowe
opps.. You need to access a method in you ForRentalProperty class if there's a getId() method then add paramProperty="id" On 1 Jul 2004, at 19:17, Mark Lowe wrote: Seeing as you're using jstl, there's more that one way but you might "> or perhaps But

Re: Urgent help needed on struts!

2004-07-01 Thread Mark Lowe
You could try removing And hope that works, otherwise I haven't had much to do with 2.4 web.xml 's as xdoclet only support 2.3 and under.. Mark On 1 Jul 2004, at 19:37, Ding Lei wrote: Hi Mark, Thank you very much for your fast reply. I was told that there are much differences b

Re: unable to set html-el:link parameters

2004-07-01 Thread Mark Lowe
of this tag are a little convoluted. --b Mark Lowe wrote: opps.. You need to access a method in you ForRentalProperty class if there's a getId() method then add paramProperty="id" On 1 Jul 2004, at 19:17, Mark Lowe wrote: Seeing as you're using jstl, there's more that

Re: Urgent help needed on struts!

2004-07-02 Thread Mark Lowe
Ding http://java.sun.com/j2ee/dtds/web-app_2_3.dtd";> If you had to guess which servlet spec the above was used for what would you guess be? web-app_2_3.dtd http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; version="2.4" xsi:schemaLocation="http://java.s

Re: [OT] Calendar How-to

2004-07-03 Thread Mark Lowe
If your model or SQL queries (depending on how you've done things) returns a list of events then put these where you can present them and list them in you tile. I don't see the problem you're having what do you have in terms of the data? a list or Event beans? On 1 Jul 2004, at 20:14, Ruffin,

Re: Form bean scope question

2004-07-06 Thread Mark Lowe
What does your mapping look like? On 6 Jul 2004, at 10:18, John Moore wrote: Hi, I hope someone can help me get my head around a scoping question here. I have a multi-page wizard, used for purchasing. There are five pages in all and I'm trying to factor out as much of the common stuff as possible

Re: Form bean scope question

2004-07-06 Thread Mark Lowe
You may have stuff configured to process such requests but an out the box version of struts would probably need to find a mapping such as On 6 Jul 2004, at 10:46, John Moore wrote: Mark Lowe wrote: What does your mapping look like? For the action in question: John

Re: more: Re: almost OT - html4.0 buttons don't work in IE 6 SP 1 ??

2004-07-07 Thread Mark Lowe
Nothing wrong with LookupDispatch action, just needs a base action that extends it, and have all the common behavior for all executes in there. Also need to create support for nested form buttons. I've hacked in an index retriever to get indexed form buttons working, but i'd like to support key

Re: EJB + Struts + Hibernate

2004-07-22 Thread Mark Lowe
nager, which is included in Hibernate's ehcache2.1.jar (something like that) I made error go away by including it in my war file, but I was wondering If I can put it instead in some of tomcat \lib directories .. Any clues? Thanx and regards marco -Original Message- From: Mark

Re: Accessing index properties in javascript validator

2004-07-23 Thread Mark Lowe
Similarly but more compatible with older browsers. total = ${fn:length(theForm.properties)}; form = document.forms["theForm"]; for(i = 0;i < total;i++) { target = "property["+ i +"]"; element = form.elements[target]; alert(element.name +"="+ element.value); } Mark On 23 Jul

Re: not quite struts: handling Images

2004-07-27 Thread Mark Lowe
Not sure about the resize and save (3-4) but the rest i use for ensuring users dont upload any old sizes.. java.io.ByteArrayInputStream; java.awt.image.BufferedImage; javax.imageio.ImageIO; byte[] image = form.getImage().getFileData(); ByteArrayInputStream stream = new ByteArrayInputStream(image

[OT] Cvs windows

2004-07-27 Thread Mark Lowe
Hello sorry about this being a tad off the beaten track but I'm trying to get someone up and running, connecting to our cvs server using a windows work station. Does anyone here work with a plain cvs server, with a client on a windows work station? Its not cvsnt or anything, just plain old cvs

Re: [OT] Cvs windows

2004-07-27 Thread Mark Lowe
HTH Raghu -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 27, 2004 11:29 AM To: Struts Users Mailing List Subject: [OT] Cvs windows Hello sorry about this being a tad off the beaten track but I'm trying to get someone up and running, connecting to our c

Re: OT/ Tomcat, Hibernate and MYSQL problem

2004-07-30 Thread Mark Lowe
Marco What jdbc driver are you using? They was a shady version 3 behaving like this. On 30 Jul 2004, at 10:05, Joe Hertz wrote: Hibernate's internal connection pooling isn't meant for production because it does things just like that. Suggest you use c3p0 for the pooling. From my hibernate.cfg.xml,

Re: OT/ Tomcat, Hibernate and MYSQL problem

2004-07-30 Thread Mark Lowe
using a version 3 jdbc driver for mysql. Mark On 30 Jul 2004, at 11:07, Marco Mistroni wrote: Hello, If I remember correct, mysql connector 3.0.11 Regards marco -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: 30 July 2004 09:36 To: Struts Users Mailing

Re: OT/ Tomcat, Hibernate and MYSQL problem

2004-07-30 Thread Mark Lowe
MAIL PROTECTED] Sent: Friday, July 30, 2004 5:08 AM To: 'Struts Users Mailing List' Subject: RE: OT/ Tomcat, Hibernate and MYSQL problem Hello, If I remember correct, mysql connector 3.0.11 Regards marco -----Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTE

Re: IE5.0 and CSS import

2004-07-30 Thread Mark Lowe
We tend to use relative paths to css and other static resources. @import url("../../style/main.css"); 1. Because the session id isn't appended to the path 2. Because static html layouts can be developed separately to the rest of the app. As tiles let you use just 1 or a few templates/layouts for

Re: IE5.0 and CSS import

2004-07-30 Thread Mark Lowe
Yeah there is a cost.. in which case i'd get the context path and use that, but makes moving a template into the app a little more work. Mark On 30 Jul 2004, at 11:57, Nicolas De Loof wrote: Having this, you need all your action path to have same number of directory levels, so that ../.. points

Re: OT/ Tomcat, Hibernate and MYSQL problem ( byte to blob )

2004-07-30 Thread Mark Lowe
ageUploadAction My code is a mess at the moment but that code is working. --b Mark Lowe wrote: I've had the same thing happen using DBCP and C3PO, I believe its the driver rather than the pooling. As I said we've a app thats live, and i haven't touched it in months using DBCP. [

Re: OT/ Tomcat, Hibernate and MYSQL problem

2004-07-30 Thread Mark Lowe
I went down the same road using autoReconnect="true" to no avail. Had the same thing with tc4 and 5.. And c3po and dcbp.. Turned out to be the driver. I'd try the version 2 driver and then try the version 3 driver with c3po, and test joe's and my competing theories.. On 30 Jul 2004, at 12:24,

Re: [OT] XML Schema for Tiles

2004-07-30 Thread Mark Lowe
Is downloading this what you want to do? http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd Mark On 30 Jul 2004, at 14:18, Duncan Mills wrote: I spent a while yesterday Googling around for an XSD for Tiles and simply couldn't find one, so as a result I've generated one up for anyone els

Re: [OT] XML Schema for Tiles

2004-07-30 Thread Mark Lowe
sorry i just read the blog and seen that its not what you want at all. In fact you didn't want anything in the first place :) On 30 Jul 2004, at 14:42, Mark Lowe wrote: Is downloading this what you want to do? http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd Mark On 30 Jul 2004,

Re: OT/ Tomcat, Hibernate and MYSQL problem ( byte to blob )

2004-07-30 Thread Mark Lowe
crazy hibernate kids thought it was too easy. Also check for the following --b On Fri, 30 Jul 2004 12:30:45 +0200, Mark Lowe <[EMAIL PROTECTED]> wrote: Hi Bryan Just downloaded the latest, but the action just prints a test message.. System.out.println("at least i managed to get ca

Re: OT/ Tomcat, Hibernate and MYSQL problem ( byte to blob )

2004-07-31 Thread Mark Lowe
makes life easier rather than adding addition complication) To be fair the hibernate docs do say that blob support is patchy between vendors. mark On 30 Jul 2004, at 12:30, Mark Lowe wrote: Hi Bryan Just downloaded the latest, but the action just prints a test message.. System.out.println(&qu

Re: Excel File Conversion

2004-08-06 Thread Mark Lowe
Depending on how complex your requirements are you could generate a csv and set the appropriate file header to excel. On 6 Aug 2004, at 08:04, David Friedman wrote: Are you talking about showing data in your JSP in an HTML table? Check out the export to Excel functions of displaytag: www.displ

Re: Scriptlet in html:img

2004-08-11 Thread Mark Lowe
Um.. Might just do it for you.. On 10 Aug 2004, at 08:56, ashwini jagtap wrote: me error can anyone correct this - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: purpose of integrating JSF+STRUTS

2004-09-20 Thread Mark Lowe
I think the main reasons are a. You can start using JSF with existing apps and not have to rewrite apps that may have been written with struts. b. That you can use tiles as your templating mechanism, while using your JSF forms. So far I've only been using JSF and struts separately, but I'm start

Re: set not working

2004-09-20 Thread Mark Lowe
<% java.lang.String a = "init"; request.setAttribute("a",a); %> or Mark On 20 Sep 2004, at 20:16, Anna Kerekes wrote: Hello, I am having some problems running the program below (it does not run the way it should). *The output I get is*** before a a is null afte

Re: set not working

2004-09-20 Thread Mark Lowe
: javax/servlet/jsp/el/VariableResolver Any ideas? From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Mon 20/09/2004 2:56 PM To: Struts Users Mailing List Subject: Re: set not working <% java.lang.String a = "init"; request.setAttribute("a",a);

Re: set not working

2004-09-20 Thread Mark Lowe
ut no luck Does the var have to be in a specific format? Is there anything else I can try? ____ From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Mon 20/09/2004 4:35 PM To: Struts Users Mailing List Subject: Re: set not working Interesting.. what about ? On 20 Sep 2004

Re: JSTL and scope

2004-09-22 Thread Mark Lowe
As this is a struts list then perhaps you'd consider using a struts action or even perhaps a plain old servlet to do what you need. request.setAttribute("test",MyClass.TEST); if its a map then request.setAttribute("mymap",map); or even Iterator keys = map.keySet().iterator(); while(keys.hasNext()

Re: Struts and html:base - hidding implementation

2004-09-23 Thread Mark Lowe
To my knowledge the html:base tag is to help resolve images and other media. If you use the app context to resolve your images and things then there should be no issue. or The other alternative is to use encoded urls but then you need a filter or other mechanism to remove the sessionid as th

  1   2   3   >