Re: Session Time Out

2004-03-30 Thread Adam Hardy
Hi Kumar, struts will create the session. AFAIK there is no way to disable it in struts. Adam On 03/30/2004 11:17 PM Kumar M wrote: I am setting the web application to time out in 60 mins. After that if the user sends a request from the expired browser session I was hoping to identify that sta

RE: Struts boooks: remommendations?

2004-03-30 Thread Gardner, David [IT]
Struts in action by ted husted. Covers tiles and the validator quite well to. Also the online doco for the project is pretty good. -Original Message- From: Laurie Harper [mailto:[EMAIL PROTECTED] Sent: Wednesday, 31 March 2004 4:10 PM To: [EMAIL PROTECTED] Subject: Struts boooks: remomme

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

Timothy J Theis is out of the office for jury duty.

2004-03-30 Thread Timothy . J . Theis
I will be out of the office starting 03/29/2004 and will not return until 04/05/2004. For any CSM or EPE issues, please contact Mike Bogie (952) 402-3271 or address the ENG IT - TCO mailing group. Thank you. - To unsubscribe,

RE: [OT] jspc from command line...

2004-03-30 Thread Kunal H. Parikh
You need to include the tomcat jars in ur classpath! TOMCAT_HOME\bin\*.jar TOMCAT_HOME\server\lib\*.jar TOMCAT_HOME\common\lib\*.jar -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Sent: Wednesday, 31 March 2004 00:02 To: [EMAIL PROTECTED] Subject: [OT] jspc from comma

Re: Scaffold, where can I get it?

2004-03-30 Thread Ted Husted
There's a zip file that can be downloaded from the Manning site, which should have everything you would need. The actual source lives in the Commons sandbox and in Struts contrib. Though, for database access, I'd recommend iBATIS or Hibernate. The ProcessAction stuff is still useful, if complex

Re: Scaffold, where can I get it?

2004-03-30 Thread Bill Siggelkow
Tate Austin wrote: I am looking to get a hold of scaffolding for struts, and I cannot find a page that describes it or a package to download? I see virtually no mention of it anywhere aside from the book 'Struts in Action'? Where can I download it? http://jakarta.apache.org/commons/sandbox/scaff

Re: Handling parameters not in a form bean

2004-03-30 Thread Bill Siggelkow
Andy, you can access form values by using request.getParameter("prod_1"); etc.. However, it sounds a simpler way would be to use an indexed property on your form bean. I have used these on web applications with spreadsheet-like input fields. Andy Engle wrote: Hi all, I am wondering if there

RE: Iterating 2 Lists in parallel

2004-03-30 Thread Avinash Gangadharan
Thanks Paul. That was definitely a good place to start. I also figured out how to get rid of the remaining ugliness ( <%=names.get(indexId.intValue())%> ). I use JSTL to do this for me : -Original Message- From: Paul Stanton [mailto:[EMAIL PROTECTED]

Re: One Action class but more than one functionality

2004-03-30 Thread Pedro Salgado
On 30/03/2004 21:02, "Joao Batistella" <[EMAIL PROTECTED]> wrote: > That's right. > But I have a problem. I have a superclass that all other actions extend and > this class only implement execute method with generic validations and so on. > So, I need the execute method being called, understand? >

Abstraction one way, Direct access the next

2004-03-30 Thread Matthew Ryan
I was wondering whether someone could tell me what is the best practice in the following scenario. Ok, performing data input I can encapsulate data in a Form Bean (whatever it may be ActionForm, DynaActionForm,etc) pass it along to the Action mapped through struts-config.xml, then at the Action cl

Re: One Action class but more than one functionality

2004-03-30 Thread Pedro Salgado
Have you tried dispatch action (1 class => several methods that can be executed)? This way you have: - class Person extends Action - add(request, mapping, form, etc) - edit(request, mapping, form, etc) - remove(request, mapping, form, etc) You could then create a PersonVUti

RE: Handling parameters not in a form bean

2004-03-30 Thread Andy Engle
Craig Berry <[EMAIL PROTECTED]> wrote: > Easily done; just grab them using getParameter on the request object > that's passed to your execute method. Ahh that sounds easy -- that must've been the one thing I didn't try. I'll give it a whirl. Thanks! Andy

RE: Handling parameters not in a form bean

2004-03-30 Thread Craig Berry
Easily done; just grab them using getParameter on the request object that's passed to your execute method. If you want to be a little slicker, you can also override the request processor to populate your form in a special way. -Original Message- From: Andy Engle [mailto:[EMAIL PROTECTED]

Handling parameters not in a form bean

2004-03-30 Thread Andy Engle
Hi all, I am wondering if there is a way that I can access submitted form information in an action that may not be a member of any form bean? Do name/value pairs submitted to an action *have* to be in a form bean? If they don't, how could they be accessed? I have a situation where my applicatio

Re: Iterating 2 Lists in parallel

2004-03-30 Thread Jayson Falkner
You could always up the two strings in to a single Map class or a JavaBean of sorts. You'd then just iterate through one list, the list of Map objects. Jayson Falkner [EMAIL PROTECTED] On Tue, 2004-03-30 at 17:54, Paul Stanton wrote: > you could use indexId of logic:iterate and replace <%=name%>

Re: Iterating 2 Lists in parallel

2004-03-30 Thread Paul Stanton
you could use indexId of logic:iterate and replace <%=name%> with <%=names.get(indexId.intValue())%>. this would save you creating the iterator and doing .next(). a little saved, but i don't think theres a tag to do this. Avinash Gangadharan wrote: I have 2 lists of Strings. How can I have 2 i

Re: Scaffold, where can I get it?

2004-03-30 Thread Larry Meadors
Eww, don't. >>> [EMAIL PROTECTED] 03/30/04 3:27 PM >>> I am looking to get a hold of scaffolding for struts, and I cannot find a page that describes it or a package to download? I see virtually no mention of it anywhere aside from the book 'Struts in Action'? Where can I download it? -

Scaffold, where can I get it?

2004-03-30 Thread Tate Austin
I am looking to get a hold of scaffolding for struts, and I cannot find a page that describes it or a package to download? I see virtually no mention of it anywhere aside from the book 'Struts in Action'? Where can I download it? -

RE: Problem with html:multibox not clearing

2004-03-30 Thread Robert Taylor
Sorry, I missed the part that said your form was in the session. And I also forgot that I do subclass my DynaValidatorActionForm and add the following code to the reset(). public void reset(ActionMapping mapping, HttpServletRequest request) { this.initialize(mapping); } It wo

Re: OFF Topic -- beginner's custom tag question

2004-03-30 Thread Craig McClanahan
Bender, James wrote: I am new to Custom tags and am totally confused that "A" works and "B" doesn't (below). I'm looking for a way to make "B" work if possible, so I don't have to use a scriptlet or declaration to keep my presentation code cleaner. Is this possible? Thanks! A: <% String searchT

RE: Problem with html:multibox not clearing

2004-03-30 Thread Jim Kennedy
Just an FYI, this did not work. I don't believe it's a reset() issue. From other threads, it's the way an http request is sent when no checkboxes are selected. Since nothing gets sent, nothing gets changed. I will write some JavaScript to manually check to see if anything has been checked. If n

Re: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Michael McGrady
Jerry, the redirect is just a url to a new resource of some sort, usually a response. The simple answer to your question is to put whatever you want in the response object to which the user is redirected. If, however, whatever you want to provide in the response object was somehow in the init

Session Time Out

2004-03-30 Thread Kumar M
Hi all, I am setting the web application to time out in 60 mins. After that if the user sends a request from the expired browser session I was hoping to identify that state using "request.getSession(false) == null" in my Action Servlet. But I am noticing that "request.getSession(false)" is nev

Hashmap and Tiles.

2004-03-30 Thread Mario St-Gelais
I am using Tomcat 5.0.19 and Struts 1.1. I made a small application using a hashmap to store user entry from a form. That works fine in itself. Then to make the thing nicer, I added tiles. All the pages work but the one with the form. I keep getting the message : javax.servlet.ServletExcep

RE: Problem with html:multibox not clearing

2004-03-30 Thread Robert Taylor
Jim, you can try this in your dynavalidatorform declaration: When you invoke an action, Struts will automatically reset your form. So when you hit submit, Struts will invoke form.reset() which will reset all your form properties to their initial values. If you declare your initial value as an e

Iterating 2 Lists in parallel

2004-03-30 Thread Avinash Gangadharan
I have 2 lists of Strings. How can I have 2 iterators run in parallel not nested. Can some one suggest a tag( JSTL ?? ) replacement for the scriptlets in the code below : <%--first - lists of names--%> <% Iterator i = names.iterator(); %> <%-- second - list of nicknames for the names --%>

RE: Problem with html:multibox not clearing

2004-03-30 Thread Jim Kennedy
That's not what I had in mind. Thanks for the suggestion though. I found a thread that suggests that you must subclass dynavalidatorform and override the reset() method. Not really sure how that will help. My form is a multipage form and the dynavalidatorform is in the session. I now know why

RE: Problem with html:multibox not clearing

2004-03-30 Thread Wiebe de Jong
This is an HTTP problem. If the user clears all the checkboxes, the browser doesn't send anything back to the server. In this case, it seems that all the checkboxes still have their default value. To fix this, I included a hidden checkbox on the form that is always checked. The user can't see or

RE: One Action class but more than one functionality

2004-03-30 Thread Menke, John
In our base action classes we have elected not to implement the execute method making them abstract actions instead. this way you can include protected methods in these classes to do validation and call them when needed. implementing exeucte method in base class seems too limiting. you could cal

Problem with html:multibox not clearing

2004-03-30 Thread Jim Kennedy
I am using an html:multibox that is pretty much working fine except when I uncheck all choices. I am also using the logic:iterate tag to generate many checkboxes. If I have a single box checked I can't seem to uncheck it if it's the last one. If I have several checked, I can uncheck them one at

RE: One Action class but more than one functionality

2004-03-30 Thread Joao Batistella
That's right. But I have a problem. I have a superclass that all other actions extend and this class only implement execute method with generic validations and so on. So, I need the execute method being called, understand? Thanks. -Original Message- From: Prabhat Kumar (IT) [mailto:[EMAIL

OFF Topic -- beginner's custom tag question

2004-03-30 Thread Bender, James
I am new to Custom tags and am totally confused that "A" works and "B" doesn't (below). I'm looking for a way to make "B" work if possible, so I don't have to use a scriptlet or declaration to keep my presentation code cleaner. Is this possible? Thanks! A: <% String searchTitle = request.getAtt

Re: OFF-TOPIC - Paging Results

2004-03-30 Thread Adolfo Miguelez
A question that I wondered for long. AFAIK, there are 2 paging policies: - paging in app server memory, in session scope to enable paging in clustered environments, or - paging in dababase, using scrollable resulsets or related. I guess, paging in app server, can overload server memory if query

Re: OFF-TOPIC - Paging Results

2004-03-30 Thread Adolfo Miguelez
A question that I wondered for long. AFAIK, there are 2 paging policies: - paging in app server memory, in session scope to enable paging in clustered environments, or - paging in dababase, using scrollable resulsets or related. I guess, paging in app server, can overload server memory if query

Re: switching to struts-el

2004-03-30 Thread Bill Siggelkow
I feel your pain, Dean :) With the relatively rapid changes in Java/Web technology it is difficult for print material to keep up. I really liked JSTL in Action -- however, you may want to read the JSTL 1.1 spec to pick up the new features. I put out a JSTL Quick Reference that you might find

Re: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Craig McClanahan
Jerry Jalenak wrote: OK - I can see how using cookies in this case is less than desirable (thanks Craig) So, am I just screwed? The problem with returning data on the query string is that I can easily exceed the 2k limit; using session variables won't work either because I can be called from

Re: Global locale in Struts web applications?

2004-03-30 Thread Jan Normann Nielsen
Nizeyimana Zabulon wrote: try change the scope of the le locale from "session" to "application" Wouldn't that make all users have the same locale? I don't want that. I just want all users to have the same locale in all deployed Struts applications. Best regards, Jan Nielsen --- Jan Normann N

Re: OFF-TOPIC - Paging Results

2004-03-30 Thread Craig McClanahan
Joao Batistella wrote: Hello! Sorry for the off-topic message. I would like to know if you recommend any good component for paging results and presenting it in a JSP page. I'm using struts, so if you know a component that integrates well with struts, that's perfect. Thanks for your help. For

Re: One Action class but more than one functionality

2004-03-30 Thread Mark Lowe
Well i prefer having many buttons per form, form buttons not links, while preferring this I also prefer having an action per button. Lets say we've a form with an edit, save, add, delete and various other bits n pieces. Or do you have to use links? In fact i've tried this using links and any ne

Re: Html:select and request variable - got it~

2004-03-30 Thread Mark Lowe
if the request parameter and form property have the same name it will work without this. /foo.do?fullName=Brian%20Sparrow On 30 Mar 2004, at 19:31, as as wrote: I got it.. I just added this in my jsp and it works... as as <[EMAIL PROTECTED]> wrote: Hi, I have a select drop down whic

RE: Html:select and request variable - got it~

2004-03-30 Thread Wendy Smoak
> From: as as [mailto:[EMAIL PROTECTED] > I got it.. > I just added this in my jsp and it works... > I confess to not having been following along, but... haven't we already had this discussion? You do not have to mess with the 'value' attribute of the Struts tags. Struts will populate your for

Re: Html:select and request variable - got it~

2004-03-30 Thread as as
I got it.. I just added this in my jsp and it works... as as <[EMAIL PROTECTED]> wrote: Hi, I have a select drop down which I want to set to a default selected option, based on the selected option. my code is as below. (from the jsp) My form class is as follows: TeacherDispla

RE: One Action class but more than one functionality

2004-03-30 Thread shirishchandra.sakhare
Hello Mark, I have used the same approach(1 action per functionality..So 3 different actions for insert/update/delete) But I have never used session scoped forms. I am not sure why do u need to have session scoped forms? Also as far the design decision about which way is better(1 action for CRU

RE: One Action class but more than one functionality

2004-03-30 Thread Menke, John
we try to avoid the session as much as possible and wherever possible only pass information via url encoded params, hidden fields or with a class called ParameterActionForward it allows you to add request params to a forward. I originally found on the list and have reposted several times. We also

Re: One Action class but more than one functionality

2004-03-30 Thread Mark Lowe
Sure but I found that you need to always need to scope to session. And/or have links in you forms. Or create a javascript dependency changing the action. or have you a way aorund this problem using actions? On 30 Mar 2004, at 18:33, Menke, John wrote: we have found that implementing 1 action f

Shared session between multiple .war files in one .ear?

2004-03-30 Thread Paul, R. Chip
Is this possible using any Servlet container? Specifically we're using Oracle9iAS. If not, and I assume you can't, what is the suggested method of communication between applications when more than a few parameters on the URL are required? Chip Paul Sr Software Engineer ComFrame Software Corporat

RE: One Action class but more than one functionality

2004-03-30 Thread Menke, John
we have found that implementing 1 action for add 1 action for edit etc... is better from the standpoint of maintainability. (it's easier to find the edit code if it's in the edit Action) we avoid code duplication by making abstract actions that contain the duplicated code ie. AbstractPersonActio

RE: One Action class but more than one functionality

2004-03-30 Thread Prabhat Kumar (IT)
look at the org.apache.struts.actions.DispatchAction class. It is exactly for the use case you described. -Original Message- From: Joao Batistella [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 11:28 AM To: 'Struts Users Mailing List' Subject: One Action class but more than one f

One Action class but more than one functionality

2004-03-30 Thread Joao Batistella
Hello. I have an action class to create, edit and remove a Person, for example. Is this a poor decision? I mean, should I create 3 action classes, one for create, another for edit and another one for remove? Does struts have a mechanism to help me in that? Thanks all.

RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Shyam A
Just a shot in the dark...How about creating an XML file and FTP'ing it to a location accessible to different servers? Shyam --- Jerry Jalenak <[EMAIL PROTECTED]> wrote: > OK - I can see how using cookies in this case is > less than desirable > (thanks Craig) > > So, am I just screwed? Th

RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Jerry Jalenak
Thanks for taking a look at this for me. I'll investigate the use of a DB to pass this stuff around... Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -Original Message- > From: Mark Lowe [mailto:[

Html:selectand request variable

2004-03-30 Thread as as
Hi, I have a select drop down which I want to set to a default selected option, based on the selected option. my code is as below. (from the jsp) My form class is as follows: TeacherDisplayForm.java: /** selected fullName */ private String currentFullName = null; public void reset(Act

Re: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Mark Lowe
Ah i see the problem now.. I think one of the suggestions was have a database in between, sounds the most straight forward to me. On 30 Mar 2004, at 17:48, Jerry Jalenak wrote: The Java based apps are all running on the same instance of Tomcat (currently) under Linux. The ASP and ASP.Net apps

RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Jerry Jalenak
The Java based apps are all running on the same instance of Tomcat (currently) under Linux. The ASP and ASP.Net apps are running on IIS under Win2K. These are all different apps - however, they share the common need to access images from our image servers Jerry Jalenak Development Manager, W

Re: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Mark Lowe
Okay .. And are both the containers running the same stuff? Or different applications? On 30 Mar 2004, at 17:35, Jerry Jalenak wrote: 5.0.18 Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Mess

RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Jerry Jalenak
Larry, I've considered the web services approach, but still need to support non-dotNet ASP applications. An interface could be written for this environment, so it's still on the radar as a possible solution. I've even considered re-writing everything into a true web service, but I'm not sure if

RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Jerry Jalenak
5.0.18 Jerry Jalenak Development Manager, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] > -Original Message- > From: Mark Lowe [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 30, 2004 9:29 AM > To: Struts Users Mailing List > Subject:

RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Menke, John
>>Hey! that was my idea! ;-) +1 to Larry's idea :) sorry didn't read the thread :) -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 10:31 AM To: [EMAIL PROTECTED] Subject: RE: [OT] request object w/ response.sendRedirect >>> [EMAIL PROTECTE

[OT] Providers JDBC Provider

2004-03-30 Thread Appel, Jeremy D
I know this off-topic but I have seen several posts regarding the Providers taglib. I was experimenting with using Providers to populate a list of options from the database but I am running into an error. I think it has to do with my JNDI DataSource. What should be the value of the jndi attri

RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Larry Meadors
>>> [EMAIL PROTECTED] 03/30/04 7:56 AM >>> > store information in a db that both webapps have access to. Hey! that was my idea! ;-) Another option someone else mentioned was to create a form in a jsp that does a post submit to the page you are redirecting to using javascript. I think those are

Re: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Mark Lowe
What version of tomcat are you running? On 30 Mar 2004, at 16:56, Menke, John wrote: store information in a db that both webapps have access to. -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 9:45 AM To: 'Struts Users Mailing List' Subject:

Re: switching to struts-el

2004-03-30 Thread Dean A. Hoover
Thanks Bill. That fixed the errors thing *and* allowed me to stop using the struts-el tags. I have "Struts in Action" and "JSP Tag Libraries" (from Manning) in my library and it looks like I will go ahead and get "JSTL in Action". In general, I like the Manning books. The one complaint I have abou

Re: how to initiate an actionform?

2004-03-30 Thread Joe Germuska
At 5:51 AM + 3/30/04, Mu Mike wrote: no one cares about my uncertainty? Have a look at the source code, particularly RequestProcessor.processActionForm and RequestUtils.createActionForm You can get the source in lots of places, but here are a few links: http://cvs.apache.org/viewcvs.cgi/jak

Re: switching to struts-el

2004-03-30 Thread Bill Siggelkow
Dean A. Hoover wrote: I'm not sure I understand what "the EL is already available" means. Tomcat 5 supports JSP 2.0 -- JSP 2.0 supports the use of Expression Language (EL) within template text. IIRC, Tomcat 5 will ignore EL on a JSP page if the web app referencs the Servlet 2.3 DTD -- however,

RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Menke, John
store information in a db that both webapps have access to. -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 9:45 AM To: 'Struts Users Mailing List' Subject: RE: [OT] request object w/ response.sendRedirect OK - I can see how using cookies

Re: string substitution in tiles

2004-03-30 Thread Dean A. Hoover
That broke it. It seems I need the el stuff (struts 1.1). Mark Lowe wrote: You're using tc 5 so this should work for you <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %> On 30 Mar 2004, at 16:21, Dean A. Hoover wrote: Mark, Thanks! T

RE: [OT] request object w/ response.sendRedirect

2004-03-30 Thread Jerry Jalenak
OK - I can see how using cookies in this case is less than desirable (thanks Craig) So, am I just screwed? The problem with returning data on the query string is that I can easily exceed the 2k limit; using session variables won't work either because I can be called from separate instances o

RE: [OT] jspc from command line...

2004-03-30 Thread Pat Quinn
If your using any tag libraries in your JSP check that their in your classpath. -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Sent: 30 March 2004 15:02 To: [EMAIL PROTECTED] Subject: [OT] jspc from command line... Tomcat 5.0.16... When I try to run jspc from comma

Re: string substitution in tiles

2004-03-30 Thread Mark Lowe
You're using tc 5 so this should work for you <%@ taglib uri="/tags/struts-html" prefix="html" %> <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %> On 30 Mar 2004, at 16:21, Dean A. Hoover wrote: Mark, Thanks! That works. I'm still going to try to figure out what I should be using from s

Re: switching to struts-el

2004-03-30 Thread Dean A. Hoover
Karr, David wrote: I'm assuming you're not using Tomcat 5. If you are, you don't need to use Struts-EL, as the EL is already available. I'm not sure I understand what "the EL is already available" means. You should read the JSTL specification. It doesn't go into as much detail as the book refer

Re: string substitution in tiles

2004-03-30 Thread Dean A. Hoover
Mark, Thanks! That works. I'm still going to try to figure out what I should be using from struts(-el) and what I should be using from JSTL. Dean Hoover Mark Lowe wrote: I'm still on tc4.1 so i need the el tags but I have this working. On 30 Mar 2004, at 15:51, Dean A. Hoover wrote: Than

RE: string substitution in tiles

2004-03-30 Thread Lowery, Mat
As an alternative to tiles:importAttribute and bean:write, you could just use: tiles-def.xml can stay the same. tiles:importAttribute would not be necessary with this approach. -Original Message- From: Dean A. Hoover [mailto:[EMAIL PROTECTED] Sent: Monday, March 29, 2004 5:05 PM To: S

RE: switching to struts-el

2004-03-30 Thread Karr, David
I'm assuming you're not using Tomcat 5. If you are, you don't need to use Struts-EL, as the EL is already available. You should read the JSTL specification. It doesn't go into as much detail as the book referred to, but it is the best place to start. > -Original Message- > From: Dean A.

Re: string substitution in tiles

2004-03-30 Thread Mark Lowe
I'm still on tc4.1 so i need the el tags but I have this working. On 30 Mar 2004, at 15:51, Dean A. Hoover wrote: Thanks for the help, but this is still throwing an exception. I am using tomcat 5 and this is what I did. I grabbed all of the contrib/lib stuff for struts-el. Made web.xml aw

Re: validator indexed properties

2004-03-30 Thread Mark Lowe
Nice one.. Cigars and dancing girls are on there way :o) On 30 Mar 2004, at 15:46, Takhar, Sandeep wrote: you'll get other replies, but I think it should be indexedListProperty="stockItems" property="colour" sandeep -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Tues

Re: string substitution in tiles

2004-03-30 Thread Dean A. Hoover
Thanks for the help, but this is still throwing an exception. I am using tomcat 5 and this is what I did. I grabbed all of the contrib/lib stuff for struts-el. Made web.xml aware of bean-el, html-el and c. Have the following in tiles-defs.xml: Have the following in the JSP file: <%@ taglib uri

[OT] jspc from command line...

2004-03-30 Thread Pady Srinivasan
Tomcat 5.0.16... When I try to run jspc from command line, I get this error: C:\projects>jspc -v -d c:\jspoutput -p com.myapp.reports -c Test newtest.jsp java.lang.NullPointerException at org.apache.jasper.JspC.initServletContext(JspC.java:990) at org.apache.jasper.JspC.execute(J

RE: validator indexed properties

2004-03-30 Thread Takhar, Sandeep
you'll get other replies, but I think it should be indexedListProperty="stockItems" property="colour" sandeep -Original Message- From: Mark Lowe [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 30, 2004 8:42 AM To: Struts Users Mailing List Subject: validator indexed properties I've hear

validator indexed properties

2004-03-30 Thread Mark Lowe
I've heard it can be done , read the presentations, brought the t-shirt, brought another tee shirt for my gran but does using validator of indexed properties works. .. I'm validating other fields so its not that i haven't validate="true" or anything like that. I've bee googling and

Re: switching to struts-el

2004-03-30 Thread Mark Lowe
I believe so . I haven't been brave enough yet to move to tc5 but the el support is a good reason for me to do so. I think (haven't tried it) as you're using tc 5 you wont need the el struts tags as the expressions are evaluated before the tags, working much the same way as <%= foo.getBar() %>

[OT] Re: Typical time sink

2004-03-30 Thread Susan Bradeen
news <[EMAIL PROTECTED]> wrote on 03/29/2004 10:31:26 PM: > Joe Hertz wrote: > > >>No sooner had I composed a lengthy, yet well crafted posting to the > >>Struts Users' newsgroup than I spotted my error. > > > > > > LOL. Don't feel bad, I've done this probably 4 times myself on this mailing

Re: switching to struts-el

2004-03-30 Thread Dean A. Hoover
Thanks Mark. I am using Tomcat 5. So is the ${error} notation part of the latest JSP spec? Dean Mark Lowe wrote: I've got by using the appendix to struts in action. its a bit annoying but there seem no elegant way of drilling action errors but if error is scoped to the request or page then i

Re: switching to struts-el

2004-03-30 Thread Mark Lowe
I've got by using the appendix to struts in action. its a bit annoying but there seem no elegant way of drilling action errors but if error is scoped to the request or page then if you're using tomcat 5 then just ${error} as jsp2 doesn't require the c:out wrappers. On 30 Mar 2004, at 15:10,

switching to struts-el

2004-03-30 Thread Dean A. Hoover
I am going to experiment with embracing struts-el. Is there any downside to this? Also, I am not currently up on JSTL. How would you recommend learning it? I have seen "JSTL in Action" on the bookshelves. Is that a good book on the subject? One last thing: How do I express in JSTL? Thanks. Dean H

RE: [OT] JSTL : fn library

2004-03-30 Thread Andrew Hill
Hmm, and there I was thinking it was just an abbreviation of what stressed programmers scream after struggling with some obscure feature that refuses to work! - "arrgh! I hate this fn library!" ;-> -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Bill Siggelkow Sent: Tuesd

Re: [OT] JSTL : fn library

2004-03-30 Thread Bill Siggelkow
"fn" refers to the JSTL "functions" library -- a feature of JSTL 1.1. Matthew Fisher wrote: what library does "fn" refer to? -Original Message- From: Pady Srinivasan [mailto:[EMAIL PROTECTED] Sent: Wednesday, 24 March 2004 4:14 AM To: Struts Users Mailing List Subject: RE: [OT] JSTL : tes

Re: how can I use the to dynamically display images?

2004-03-30 Thread Mark Lowe
or "> or depending on what you dig. alternatively you could have an action that returns an image from a request which may render to something like /myapp/image.do?path=/images/foo.gif&name=fooImage depending on the properties of you object (this example getName() and getPath()). There

how can I use the to dynamically display images?

2004-03-30 Thread Daniele Santanche'
I have to create a page in which I display information of a collection of objects. Each object has it's own image which I want to render near the details of the object. For these purpose I'm trying to use the html:img tag, which seems to be able to render images dynamically, but I don't understand

Re: OFF-TOPIC - Paging Results

2004-03-30 Thread John Ferguson Smart
Try http://displaytag.sourceforge.net/ Joao Batistella wrote: Hello! Sorry for the off-topic message. I would like to know if you recommend any good component for paging results and presenting it in a JSP page. I'm using struts, so if you know a component that integrates well with struts, that'

OFF-TOPIC - Paging Results

2004-03-30 Thread Joao Batistella
Hello! Sorry for the off-topic message. I would like to know if you recommend any good component for paging results and presenting it in a JSP page. I'm using struts, so if you know a component that integrates well with struts, that's perfect. Thanks for your help.

Re: string substitution in tiles

2004-03-30 Thread Niall Pemberton
It comes with struts 1.1 but its in the "contrib" area (i.e. not part of struts proper yet) - look in the "contrib" directory. Niall - Original Message - From: "Dean A. Hoover" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, March 30, 2004 3:18 AM S