[OT] JSP 2.0 tag files and expressions

2004-09-16 Thread Laurie Harper
Sorry for the off-topic post but I'm sure someone here will be able to tell me what's going on with this... I'm trying to use the JSTL forEach tag in a tag file invoked by another tag file and I'm getting an error. Here's an example piece of JSP: v: ${v} That works fine in a JSP. It w

Re: [OT] JSP 2.0 tag files and expressions

2004-09-17 Thread Laurie Harper
t;http://java.sun.com/jsp/jstl/core"; %> v: ${v} tagfile.jsp: <%@ taglib prefix="tags" tagdir="/WEB-INF/tags/" %> Which generated: v: 0 v: 1 v: 2 v: 3 v: 4 Is that what you

Struts boooks: remommendations?

2004-03-30 Thread Laurie Harper
I'm looking for a good book on Struts, but there seem to be a number of choices... Choice is all well and good, but i need some selection criteria :-) I'm looking for a book that has comprehensive coverage of Struts, is up-to-date, and which focuses on Struts (not a book on web application deve

validaton and i18n

2004-03-31 Thread Laurie Harper
I've finally managed to get the Struts Validator working, thanks to the sample chapter on it from Struts in Action. I'm having one small problem still, though. When validation fails, I get a blank alery popup. Looking at the generated Javascript the problem appears to be that the message string

Re: Tricky configuration?

2005-06-03 Thread Laurie Harper
Another option might be to use two URL mappings: *.do and /users/*. Would that get you what you want? L. amol k wrote: There are several ways to make this transparent to the user! I can send details if >you don't know how? Do send details if you can. Something like what Martin is suggesti

Nested properties in DynaActionForm

2005-06-07 Thread Laurie Harper
I'm probably missing something really obvious but I've been fiddling about with this for a while now. Maybe someone can spot what I'm doing wrong... I'm using DynaActionForms in my Struts app and I'd like to be able to reference a property like this: I tried a form declaration like this:

DynaActionForm / BeanUtils usage issue

2005-06-07 Thread Laurie Harper
Code in a unit test: DyanActionForm form = new DynaActionForm(); BeanUtils.copyProperties(bean, form); This results in a NullPointerException when BeanUtils calls form.getDynaClass().getProperties() (or something like that). BeanUtils is expecting dynaClass to be set, but DynaActionFrom g

Re: Nested properties in DynaActionForm

2005-06-08 Thread Laurie Harper
bjects. :) Using a property name like "iterationLength.time" would be like saying "getIterationLength().getTime()", and this is what BeanUtils would try to do. Hubert On 6/7/05, Laurie Harper <[EMAIL PROTECTED]> wrote: I'm probably missing something really obvious

Re: Test whether an application resource is empty

2005-06-09 Thread Laurie Harper
Try: "> ... where 'name' is the name of the attribute your resource bundle is stored under. L. Chris Loschen wrote: Hi Wendy, Thank you very much for your reply. Yes, I also thought that I could test the key, then check to see if the value was empty. But just how to do it is elu

Re: Test whether an application resource is empty

2005-06-10 Thread Laurie Harper
en -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Thursday, June 09, 2005 7:07 PM To: user@struts.apache.org Subject: Re: Test whether an application resource is empty Try: "> ... where 'name' is the name of the

Re: Adding parameter to local forwards

2005-06-10 Thread Laurie Harper
If a redirect rather than a forward is acceptable, you can also look at ActionRedirect (new in 1.2.7). ActionForward fwd = mapping.findForward(...); ActionRedirect ar = new ActionRedirect(fwd); ar.addParameter("name", f.getString("name")); return ar; L. Michael

Re: [OT] using JSTL with escapeXML="false" for preview HTML

2005-06-10 Thread Laurie Harper
What's an 'html special space char'? Lixin Chu wrote: Hi, I am trying to preview a piece of html content. but the c:out with escapeXML=false can not handle space char correctly. is there an easy way to replace the ' ' with html special space char ? thanks lixin ---

Re: [HELP]onchange in the tag

2005-06-10 Thread Laurie Harper
Leandro_Dorileo/[EMAIL PROTECTED] wrote: onchange="javascript:form.action='value="myFormBean.myProperty"/>';form.submit();"> You can't nest JSP custom tags like that. If you can use JSTL, this will work: If you can't use JSTL you'll have to resort to a runtime expression: HTH, L

Re: Test whether an application resource is empty

2005-06-11 Thread Laurie Harper
other way, but I'm still curious what I did wrong. Chris -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Friday, June 10, 2005 2:49 PM To: user@struts.apache.org Subject: Re: Test whether an application resource is empty You want to use the name

Re: Test whether an application resource is empty

2005-06-13 Thread Laurie Harper
I missing some thing here? or may be the subject is misleading.. Thanks and Regards, Nitish Kumar Tavant Technologies Ltd Bangalore -Original Message- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 6:30 AM To: user@struts.apache.org Subject: Re: Test

Re: Test whether an application resource is empty

2005-06-13 Thread Laurie Harper
Thanks and Regards, Nitish Kumar Tavant Technologies Ltd Bangalore -Original Message- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Sunday, June 12, 2005 6:30 AM To: user@struts.apache.org Subject: Re: Test whether an application resource is empty Doh, I'm an idiot! :-( What I su

Wildcard action paths

2005-06-13 Thread Laurie Harper
I didn't get any response to this last time so I'm asking again... :-) I'd like to replace URLs like this: /Sections/Subsections/?section=Section1&subsection=SubSection1 with URLs like this: /Sections/Section1/Subsections/Subsection1 An action mapping like this will match that URL: T

Re: Wildcard action paths

2005-06-14 Thread Laurie Harper
Van wrote: The problem is, there's then no way to get what the wildcards matched in the view (JSP). For reasons discussed elsewhere I don't want to put a different action in front of each view, so I need a more general solution. This seems so obvious to me that I'm probably missing something ab

Re: Wildcard action paths

2005-06-15 Thread Laurie Harper
Michael Jouravlev wrote: On 6/13/05, Laurie Harper <[EMAIL PROTECTED]> wrote: I didn't get any response to this last time so I'm asking again... :-) I'd like to replace URLs like this: /Sections/Subsections/?section=Section1&subsection=SubSection1 with URL

Re: Wildcard action paths

2005-06-15 Thread Laurie Harper
Van wrote: > Okay. So maybe this isn't the only wildcard mapping you will have. Still, you could have one SectionAction class for this particular wildcard mapping. That would be a vast improvement over status quo. How many different wildcard mappings do you have in this application? Almost eve

Re: Wildcard action paths

2005-06-17 Thread Laurie Harper
ious deficiency in Struts right now. Don On 6/15/05, Laurie Harper <[EMAIL PROTECTED]> wrote: Van wrote: > Okay. So maybe this isn't the only wildcard mapping you will have. Still, you could have one SectionAction class for this particular wildcard mapping. That would be a vast

Re: Wildcard action paths

2005-06-18 Thread Laurie Harper
this up as it has been a problem of mine that I haven't revisited since before properties were added to ActionConfig by Joe I believe. Hopefully this should make things more simple and straightforward. Don On 6/17/05, Laurie Harper <[EMAIL PROTECTED]> wrote: I ended up writing an actio

Re: HTML file generated by JSP is truncated...why?...Please help!...source attached

2005-06-18 Thread Laurie Harper
You're running into a limitation of the JVM I think. Java classes can only have a maximum of 64Kb (?) data heap. If you have a very large JSP, the generated Java source will contain enough string data to exceed that. In my last job our application had one JSP that was sufficiently large and com

Re: long struts-config.xml file

2005-06-18 Thread Laurie Harper
Craig McClanahan wrote: Validation against the DTD requires two things: * Using the DOCTYPE declaration (as shown above) in the outer configuration file * Setting the servlet init parameter "validating" to "true" in /WEB-INF/web.xml for the Struts ActionServlet It doesn't matter whether you

Re: [OT] Serializing object with null pointers (performance?)

2005-06-19 Thread Laurie Harper
I would expect the performance of serializing a null object reference to be trivially different than serializing a primitive value. In fact it may be slightly worse due to the overhead of writeObject(). Unless you're doing a hell of a lot of serialization and profiling has shown that it's caus

Re: [OT] Serializing object with null pointers (performance?)

2005-06-19 Thread Laurie Harper
Yaakov Chaikin wrote: As for the question, I'd expect a null object reference to be 24 bit, which should be smaller than most primitives. That's useful info. How do you know this? I just want some way to verify this. "24 bit" didn't sound likely to me, so I checked. Compare the serialized fo

Re: Accessing nested properties

2005-06-21 Thread Laurie Harper
Change property="bar.test" to property="test"; assuming foos_array is an array of Bar then, within the iterate tag body, 'foos' is bound to an instance of Bar on each iteration. L. Fredrik Bostrom wrote: Hi list, How do I access a nested property in an iterated object? I've got two classes

Re: How to pass Jstl param implicit Object to html:link

2005-06-21 Thread Laurie Harper
'params' is a JSTL implicit object; I don't think it's required to be bound to a bean in any scope. Also, the 'name' attribute is looking for the name of a bean, not a value. You'll need to bind the request parameter map to a name in some scope first I think, something like: (not tested)

Re: How to use multiple tiles definitions files for multi channel

2005-06-21 Thread Laurie Harper
Michael Mattox wrote: In the tiles documentation webapp, it's stated: "A mechanism similar to Java properties files is used for definitions files : you can have one definition file per key. The appropriate definition is loaded according to the key." I'd like to use this to have different tiles

Re: running tomcat on port 80

2005-06-21 Thread Laurie Harper
That would produce a bind exception (address already in use) rather than permission denied. Balasubramaniam, Sezhiyan wrote: Make sure that you don't have any other processes using port 80. This problem may come when other process already uses the same port. -Original Message- From

Re: How to pass Jstl param implicit Object to html:link

2005-06-21 Thread Laurie Harper
It is, by definition (at least in a JSTL aware environment). L. Zarar Siddiqi wrote: Make sure params is of type java.util.Map. - Original Message - From: "Laurie Harper" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 21, 2005 12:48 PM Subject: Re: How to pass Jst

Re: [OT] running tomcat on port 80

2005-06-21 Thread Laurie Harper
And on Windows Tomcat may need to run as Administrator (not sure on that). Running Tomcat as root (or Administrator) may not be the best idea, though. The best place to explore this further would be tomcat-users. L. mario nee wrote: in Unix system you must have root permission to open a port

Re: How to use multiple tiles definitions files for multi channel

2005-06-22 Thread Laurie Harper
Michael Mattox wrote: The text I quoted above was from the tiles documentation, which claims Tiles *is* able to do this. I just can't figure out how. I'm now wondering if this text is incorrect and tiles does not offer this. Hmm, I had a quick look and saw the section you quote; there doesn't

Re: Validation & Anchoring

2005-06-22 Thread Laurie Harper
I'm not sure if you can tell the browser to scroll to an anchor from within the page (rather than in the URL). It would have to be done using Javascript, HTML doesn't provide this. Other than Javascript, I can think of two possibilities: 1) in your JSP, check for errors and, if they exist, ren

Re: trouble passing multiple parameters using

2005-06-22 Thread Laurie Harper
Are you sure stockingStoreSalesReviewForm.getStoreNumber() is returning valid data? L. Phani wrote: Here is my code in the JSP page: <% java.util.HashMap params = new java.util.HashMap(); params.put("storeNo",param1); params.put("storeName",param2); pageContext.setAtt

Re: Validation & Anchoring

2005-06-22 Thread Laurie Harper
="margin: 0em;"> Using "document.location" would cause an infinite loop, so I basically needed to scroll down the page using a timeout. *Phew... Struts has so many crazy tags, I learn new ones every day :D Thank to all that helped, and let me know if you have any

Re: How to encode byte array as url parameter

2005-06-22 Thread Laurie Harper
Just to add to your options ;-), here's another suggestion: convert the byte[] to an integer (store it in a BigInteger). BigInteger can give you a string representation in whatever base you want. Base 10 would give you a purely numeric but rather long string; base 16 (hex) would be more compact. Bu

Re: ValidatorActionForm and java script validation....

2005-06-23 Thread Laurie Harper
Yes, that's the point of ValidatorForm / ValidatorActionForm. The validation rules are looked up according to the action mapping 'name' or 'path' attribute, respectively. It shouldn't make any difference if the actions use the same form. L. Lucas Bern wrote: Hi guys does anybody know if

Re: ValidatorActionForm and java script validation....

2005-06-23 Thread Laurie Harper
Doh, scatch that; the 'name' attribute in the action mapping is, of course, the form name, so what I said is true of ValidatorActionForm only. Yawn. Bed time! L. Laurie Harper wrote: Yes, that's the point of ValidatorForm / ValidatorActionForm. The validation rules are looked

Re: Strange error-page behavior

2005-06-24 Thread Laurie Harper
The problem is that by the time the error occurs in your JSP, the response has already been committed. When Tomcat tries to issue the redirect to the error page, it fails. Your only recouse is to increase the size of the response buffer. To be robust, the buffer would need to be at least as lar

Re: Strange error-page behavior

2005-06-25 Thread Laurie Harper
ness can reduce operating costs by 17% or more in 6 months or less! http://newsletter.JAMMConsulting.com -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Friday, June 24, 2005 7:32 PM To: user@struts.apache.org Subject: Re: Strange error-page behavi

Re: configure DTD version to use for validation of struts-config

2005-06-26 Thread Laurie Harper
nicole.wollgast wrote: the DOCTYPE I am using is: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd";> Your doctype declaration is inconsistent: you specify version 1.0 in the public identifier and 1.1 in the system identifier. You need to fix the public identifier to also referenc

Re: String as Parameterwith html:link

2005-06-27 Thread Laurie Harper
http://struts.apache.org/userGuide/struts-html.html#link You can use paramId, paramName and paramPropery to supply a single parameter w/out building a map, though that still requires the parameter value to be stored in a bean in some scope. There's no way to supply arbitrary values directly (i

Re: Strange error-page behavior

2005-06-27 Thread Laurie Harper
Neil Aggarwal wrote: I am using Tiles to construct the site. I set the page buffer on my layout page and the content page to a large value and I still get the IllegalStateException. Does the tiles:insert tag cause a problem? Hmm, maybe Tiles is fluching the response somewhere along the line..

Re: Problem accessing elements of Collection inside logic:iterate (II)

2005-06-27 Thread Laurie Harper
Riemann Robert (Platinion) wrote: Hello everyone, (a second post since my mail editor just made the posting unreadable... sorry!) I need your help with a tricky problem, where I do not see any explanation currently: I try to construct a table with all data items stored in a database using Hib

Re: [OT] Populating Form objects without Struts?

2005-06-28 Thread Laurie Harper
Take another look at BeanUtils -- that's what Struts uses to auto-populate ActionForms from the request. You should be able to do the same thing in your app pretty easily using, e.g. BeanUtils.populate(form, request.getParameters()) or something similar. L. Greg Pelly wrote: In previous pro

Re: [OT] Populating Form objects without Struts?

2005-06-28 Thread Laurie Harper
Since Greg isn't using Struts, its health is not at issue ;-) Mark Galbreath wrote: Yes - use .NET or JSF; Struts is dead. ~mark -Original Message- From: Greg Pelly [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 9:24 PM Is there a way to harvest the advantages of ActionForms w

Re: Validation for select box

2005-06-28 Thread Laurie Harper
Goswami, Raj wrote: I have a Select box which has all the states. The first option is 'Select One.' I need to display an error message if none of the state is selected. I am using DynaActionForm and the xml config file for validation. I put the value of 'Select One' as '-1' and it display

Struts modules and prefix matching

2005-06-28 Thread Laurie Harper
Argh, I just wasted an hour trying to figure out how to access the new module I just defined in my Struts application before finally finding a note in the docs [1] that only extension mapping is supported with modules :-( Has anybody ever looked at lifting that restriction? I have everything se

Action path matching

2005-06-28 Thread Laurie Harper
Given the following action mappings, I can reach every JSP bar one: The problem mapping is "/pathtest/one/*/two/" (or "/pathtest/one/*/two/**", depending on how you look at it...) Basically, the former is never matched. Reque

Re: quick simple question

2005-06-28 Thread Laurie Harper
ori wrote: currently i map all *.do requests to the action servlet. i have an action at myHost/action.do. i also want myHost/action to map to that same struts action. how can i do this? thanks a lot. You only have two options for URL mapping: prefix or extension. In other words, you can sa

Re: quick simple question

2005-06-29 Thread Laurie Harper
propriately. Although the "appropriately" part is a bit of a hand-wave, as you need to forward the request back to the web server. -ed On 6/29/05, Laurie Harper <[EMAIL PROTECTED]> wrote: ori wrote: currently i map all *.do requests to the action servlet. i have an action at myHost/action

Re: Error deploying struts webapp to sunone 6.1

2005-06-29 Thread Laurie Harper
What does your taglib directive look like? Where is the TLD file withing the webapp? Richard Reyes wrote: Hi All, I have a working struts webapp ( working in tomcat 5 ), now i need to deploy this app to a sunone web server 6.1. Upon copying the whole webapp folder to the new instance I have e

Re: Is there any Jsp template like Smarty template ?

2005-06-29 Thread Laurie Harper
Heh, 'capabile'? I'd agree with that in maven's case... ;-) Simon Chappell wrote: Some of us don't like any of them! http://uab.blogspot.com/2005/06/ides-we-dont-need-no-stinking-ides.html Simon On 6/29/05, Mark Galbreath <[EMAIL PROTECTED]> wrote: Sun's Creator Studio rulez the inexpensiv

Re: [OT] Serialization and no-arg constructor. Is it needed?

2005-06-29 Thread Laurie Harper
Yaakov Chaikin wrote: Here is the line from the spec: A Serializable class must do the following: . Have access to the no-arg constructor of its first non-serializable superclass What does this mean and why do you need this requirement? But it does It means that if you have an inher

Re: Checkbox question

2005-06-29 Thread Laurie Harper
Apte, Dhanashree (Noblestar) wrote: ... I would like to have the vaue of the field temporaryId passed back. right now, with what i have, i just get a String array called temporaryId and temporaryId[0] = "temporaryId", temporaryID[1]="temporaryId". I want the actual value of the temporaryId

Re: Passing collection Objects from html form to Action class

2005-06-30 Thread Laurie Harper
Huh? All you have to do is render the collection as a set of hidden fields on the form and treat the data the same way as the string value. L. Mark Benussi wrote: Sadly you cannot unless you make the scope of the form session. I find it limiting to say the least! -Original Message

Re: [OT] check role - isUserInRole in jstl

2005-06-30 Thread Laurie Harper
See also the standard Struts logic tags, particularly logic:present: http://struts.apache.org/userGuide/struts-logic.html#present L. Lindholm, Greg wrote: I've used the Jakarta taglibs-request tags to do this. <%@ taglib uri="http://jakarta.apache.org/taglibs/request-1.0"; prefix="req" %>

Re: Action path matching [BUG]

2005-06-30 Thread Laurie Harper
quot;/suffix" or not. Has anyone seen this? Anyone have a fix or work-around? L. Laurie Harper wrote: Given the following action mappings, I can reach every JSP bar one: The problem mapping is "/pathtest/one/*/t

Re: Action path matching [BUG]

2005-06-30 Thread Laurie Harper
Oops, never mind, error between keyboard and chair... Laurie Harper wrote: Extending the test cases listed below, I believe I've found a bug in the path matching logic. Given the following pair of action mappings: Struts allways matches the latter. That is, it ma

Re: log4j log

2005-07-04 Thread Laurie Harper
Vijay K Anand wrote: Hi Here goes my log4j property file log4j.rootLogger=ERROR, A2 log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.Threshold=DEBUG log4j.appender.A2.file=npi_log log4j.appender.A2.append=true log4j.appender.A2.layout=org.apache.log4j.PatternLayout

Re: Marking fields having errors

2005-07-06 Thread Laurie Harper
Or see the errorClassId attributes on the the form tags. L. Rauf Khan wrote: Hi, In ur application resources file, u can add this errors.header=Error List errors.footer= here color = anycolor Regards Khan On 7/5/05, Kalra, Ashwani <[EMAIL PROTECTED]> wrote: Hi, Does struts has any fa

Re: stopOnFirstError

2005-07-06 Thread Laurie Harper
I'm not sure why stopOnError isn't working for you, but why would you *not* want to show as much validation information as possible? I hate forms that tell me I've filled in one field incorrectly, only to complain about another when I fix the reported error... L. EROL TEZCAN wrote: Any sugg

Re: Newbie Help

2005-07-06 Thread Laurie Harper
Frasso, Anthony wrote the following on 7/5/2005 5:34 PM: <% ProjectsBean projectsBean = new ProjectsBean(); projectsBean.populate(); pageContext.setAttribute("pojectsBean", projectsBean); %> Any scope should work. Also make sure the Project object includes the appropriate (JavaBe

Re: Struts and Generics

2005-07-06 Thread Laurie Harper
I'd say it depends on how Struts processes the form bean declaration. Assuming it's using straight reflection, I don't see why generics wouldn't work. However, Kent, you will need to correct your XML: the error you're seeing is becuase what you have can't be parsed (it's not well formed). Give

Re: Which request is used in automatic Validation when the requirements aren't met?

2005-07-07 Thread Laurie Harper
Thai Dang Vu wrote: Perhaps I stated it unclearly. I am using automatic validation, not manual validation (which uses validate method of the form bean). If the requirements aren't met, Struts will lead us to the input page (in my case the /WEB-INF/provider/addprovider.jsp) without going to th

Re: Using struts forms as Value Objects: your opinion?

2005-07-07 Thread Laurie Harper
Vincent wrote: I'm currently designing and developping an enterprise J2EE application based on Struts. In this application there's a layer of Data Access Object which abstract the underlying persistent storage. For populating my struts' *Form I've imagined first a transfert between forms and DA

Re: logic iterate

2005-07-08 Thread Laurie Harper
Why can't you just change your JSP? In other words, why does the markup you would like to use not work for you? It looks fine to me. L. Vijay K Anand wrote: Hi All I have a problem in logic iterate .. I would like to dispaly checkbox in each row of the iteration like instead o

Re: Struts Tiles Question

2005-07-08 Thread Laurie Harper
[EMAIL PROTECTED] wrote: I am using Struts Tiles to layout my site. I have a vboxmenu design which contains 4 menu levels: I am wanting to control when the Authenticated menu and the Admin Menu are displayed. For example, only display the admin menu if the user is

[OT] Re: generate image by servlet for large amount of requests

2005-07-08 Thread Laurie Harper
Using a servlet seems reasonable. Whether or not you code will scale adequately really depends on how generateMap() is implemented. If it can process calls at the rate you anticipate needing you'll be fine. If it can't you'll have to optimize it, introduce caching, use client-side pre-fetching

Re: Validator, sutrts-config and form-property's types

2005-07-08 Thread Laurie Harper
Actually, BeanUtils can convert from String to a variety of Java types; Date just doesn't happen to be one of them by default. However, it's generally recommended to use String properties in action forms exclusively so that invalid user inputs can be re-displayed as entered. For example, if yo

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Laurie Harper
Ted Husted wrote: In my own work, I tend to think of an enterprise-grade application as a set of overlapping rings, like the Olympics logo. * http://www.olympic.org/ In the Blue ring... Nice analogy! :-) -- Laurie, Open Source advocate, Java geek and novice blogger: http://www.holoweb.net/~l

Re: Using struts forms as Value Objects: your opinion?

2005-07-11 Thread Laurie Harper
Michael Jouravlev wrote: On 7/7/05, Laurie Harper <[EMAIL PROTECTED]> wrote: Is not it easier to have one nested VO/BO with string properties, than to copy properties back and forth from action form to VO? I use web framework only to expose my real objects to the outer world. If you

Re: Using struts forms as Value Objects: your opinion?

2005-07-12 Thread Laurie Harper
Michael Jouravlev wrote: /** * Flag that demo mode is on */ private boolean isDemo; public boolean getIsDemo() { ... } public setIsDemo(boolean isDemo) { ... } ... and my methods *would be commented in javadoc* too, it would be much better than current approach with lots of lines and comments

Re: Using struts forms as Value Objects: your opinion?

2005-07-12 Thread Laurie Harper
Rick Reumann wrote: (By the way I pass in an optional default format in my constructor as shown above, but my converters have a setFormatPattern(..) method that can change the format at any time) Don't you end up with thread safety issues calling setFormatPattern() though? I would want to cal

Re: Parameterized messages

2005-07-12 Thread Laurie Harper
Rick Reumann wrote: N G wrote the following on 7/12/2005 4:14 PM: Is it possible to use the resource properties for keys as well as args? For example, Properties: test.val1=hello {0} test.val2=world So, what I am trying to accomplish is to have the above statement output: hello world Howeve

Re: Iterate over list in in list in form bean.

2005-07-12 Thread Laurie Harper
Michael Jouravlev wrote: Does the above mean that "Struts + JSP 1.2 + JSTL 1.0" (no Struts-EL) is not possible? I don't know about 'possible' but JSP 1.2 includes JSTL 1.1, so why would you want to? L. -- Laurie, Open Source advocate, Java geek and novice blogger: http://www.holoweb.net/~lau

Re: Iterate over list in in list in form bean.

2005-07-13 Thread Laurie Harper
Michael Jouravlev wrote: On 7/12/05, Laurie Harper <[EMAIL PROTECTED]> wrote: Michael Jouravlev wrote: Does the above mean that "Struts + JSP 1.2 + JSTL 1.0" (no Struts-EL) is not possible? I don't know about 'possible' but JSP 1.2 includes JSTL 1.1, so

Re: Problem with action forward while using Frames

2005-07-13 Thread Laurie Harper
syed abrar wrote: Hello All, I have a problem.I have two frames with two different jsps.And after selecting the options(checkboxes) in the second frame the control goes to the Action class.After processing the request the control has to be passed to other jsp page(which have declare

Re: Forward path entry in Struts-config

2005-07-14 Thread Laurie Harper
rajiv verma wrote: Hi, I want to place my JSPs under the WEB-INF directory[login directory]. How ths struts-config entries should look in this case. If I try to add the following forward--entry: But, this by default looks everything under the context[root]. Any solution to this? I know there

Re: struts and multi-level access - please give me your ideas how to restructure..

2005-07-14 Thread Laurie Harper
Not sure what a .def file is, but I think you're on the right track with combining them and using conditional logic within the JSP to control what's displayed based on user role. Look at for a simple way to wrap role-dependent markup in your JSPs: http://struts.apache.org/userGuide/struts-l

Re: html:select default value overwriting bean value

2005-07-14 Thread Laurie Harper
The html tags don't support what you want directly; if you specify a 'value' attribute it always takes precedence. You can set the default in the form bean (either in your setup action, or using or similar in the JSP page) and not use a value attribute or, if that's not possible, you can use a

Re: Token element wrapped with a div tag

2005-07-14 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Just curious as to why in the JSP the token is wrapped in a div tag? value="383952ea7a0093448e02f3f0d635865b"> I'm using v1.2.7. What does your JSP look like? L. -- Laurie, Open Source advocate, Java geek and novice blogger: http://www.holoweb.net/~laurie/ ---

Re: [OT] olipmic rings metaphor - LDAP?

2005-07-15 Thread Laurie Harper
Frank W. Zammetti wrote: Not sure I have an answer for that :) My guess would be because of the first letter in the acronynm: Lightweight. Otherwise, your question seems reasonable to me. Yep, the 'lightweight' is certainly a key factor. LDAP is optimized toward high read volume, low write

Re: another mutliple file uploading question

2005-07-15 Thread Laurie Harper
dumbQuestionsAsker _ wrote: Im new to Struts, and I want to upload multiple files using only one tag. I made some googleling but I did not find anything working, only "that's not possible"-like answers. So my question is simple, is it really impossible to upload multiple files usng only one ?

Re: help needed - struts internatonalization

2005-07-15 Thread Laurie Harper
Ramesh Mekkara, ASDC Chennai wrote: I have an Application built on EJB-Struts framework. I need to implement internationalization on all jsp pages which we view. How can it be done ? That's a big topic... :-) You might want to be a bit more specific about what you need to know, but as a starti

Re: passing param as part of URL path

2005-07-15 Thread Laurie Harper
You can do this using wildcard action mapping paths: http://struts.apache.org/userGuide/building_controller.html#action_mapping_wildcards L. Brian Lalor wrote: I'm working on a product catalog display application that uses the same logic and code, but takes a common parameter for *every req

Re: How to populate a FormFile?

2005-07-15 Thread Laurie Harper
lk wrote: I want an field to show the name of a file I get from a database. I've tried to populate the field with a FormField object I instantiate with the name of the file. But there is something wrong as I get in the html field something like: value="[EMAIL PROTECTED]"> What does your

Re: I remember now why I said I usually use my VO in my ActionForm

2005-07-15 Thread Laurie Harper
Rick Reumann wrote: The reason I often end up using my Value Object directly in my ActionForm is because rarely do I ever end up with a nice simple case where the users are submitting simple form fields. Typically I end up with cases where I have to deal with a bunch of nested beans. It gets I

Question re. StrutsCatalogRedirectToInputPage

2005-07-15 Thread Laurie Harper
I just read the StrutsCatalogRedirectToInputPage wiki entry [1] and have a question: given that failed validation causes the action not to be called, where exactly am I supposed to call Action.saveMessages()? Is this even required? Shouldn't it be handled by the validator already? L. PS, the

FormDef [was Re: I remember now why I said I usually use my VO in my ActionForm]

2005-07-16 Thread Laurie Harper
Hubert Rabago wrote: Well, since you asked. The current FormDef dev build supports defining dynamic forms that have nested properties. https://formdef.dev.java.net/servlets/ReadMsg?list=users&msgNo=116 Awsome, I clearly need to check this out :-) I have an article to illustrate how the

Re: passing param as part of URL path

2005-07-16 Thread Laurie Harper
Brian Lalor wrote: Hey, cool! The two books that I can find (of the 3 I own) only cover up to Struts 1.1. The link Laurie sent contains some more info on the wildcard mappings, but it appears that you've gotta use a custom ActionMapping class[1, 2], with the className property of the /> e

Re: Question re. StrutsCatalogRedirectToInputPage

2005-07-16 Thread Laurie Harper
these errors are removed automatically after they accessed. I will change the wording in this entry, thanks for pointing out. Michael. P.S. "Next" means 1.3 if I am not mistaken. The code is there, in SVN. On 7/15/05, Laurie Harper <[EMAIL PROTECTED]> wrote: I just read the S

Re: [FRIDAY OT ANN] My new project is beta

2005-07-16 Thread Laurie Harper
FYI, I didn't even get as far as the JNLP on my Mac; I got a page telling me I needed version 1.4 of the Java plugin and a link to a .exe... netsql wrote: We still have some JNI issues in Mac. :-( .V Simon Chappell wrote: I tried it on my Mac (OS X 10.3.9) and while it triggered the JNL

[OT] documentation versions [was Re: actionservlet init-params]

2005-07-16 Thread Laurie Harper
Wendy Smoak wrote: Keep in mind, however, that the "official" online website actually comes from the current source code, so it will diverge from the documentation for the latest GA release as changes are made. You may find things online that do not apply to your version of Struts, which is w

Re: [FRIDAY] What technology do you use for authentication and authorization?

2005-07-16 Thread Laurie Harper
I posted some thoughts in response to this and Greg's entry to my blog: http://www.holoweb.net/laurie/archives/2005/07/16/86 Unfortunately, I don't seem to be able to post to Greg's comments (it keeps asking me to login again)... Would somebody be so kind as to post the link there for me?

Re: Question re. StrutsCatalogRedirectToInputPage

2005-07-16 Thread Laurie Harper
Michael Jouravlev wrote: On 7/16/05, Laurie Harper <[EMAIL PROTECTED]> wrote: So if I'm understanding correctly, the only thing that needs to change to make this all work nicely is for automatic validatain to save errors with session scope. The code is already there to support redire

Re: [FRIDAY] What technology do you use for authentication and authorization?

2005-07-16 Thread Laurie Harper
Thanks! Craig McClanahan wrote: Forwarded. Craig On 7/16/05, Laurie Harper <[EMAIL PROTECTED]> wrote: I posted some thoughts in response to this and Greg's entry to my blog: http://www.holoweb.net/laurie/archives/2005/07/16/86 Unfortunately, I don't seem to be able t

Re: FormDef [was Re: I remember now why I said I usually use my VO in my ActionForm]

2005-07-17 Thread Laurie Harper
Hubert Rabago wrote: On 7/16/05, Laurie Harper <[EMAIL PROTECTED]> wrote: I then fill the form in using a JSP tag if necessary (i.e. the first time the form is displayed, I call a tag to populate it). So will the techniques described in the article work with this scheme? It probably

Re: I need help running an example

2005-07-18 Thread Laurie Harper
Stéphane Zuckerman wrote: First of all, you should understand that using JBoss, Tomcat (which implicitly is run under JBoss), or any other application server doesn't change anything. If you embed the right libraries (jar, ear, war, whatever), everything should work fine for your server. Anythin

  1   2   3   4   5   6   7   8   9   10   >