RE: Composing a link

2005-07-29 Thread GP
so much , all to generate a stupid link. -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Friday, July 29, 2005 3:19 PM To: user@struts.apache.org Subject: Re: Composing a link N G wrote: > only allows 1 map and 1 param-value pair. However, I nee

feedback on roomity [was: Re: [ot friday] test - ignore]

2005-07-29 Thread James Mitchell
Env --- Mac OS X 10.4.2 JDK 1.4.2 1. Under Clubs (bottom left), when I click on an item, the select cell (not the whole row, but the first item) becomes white on white, not very helpful. 2. Clicking the search tab should select the search text box by default. 3. Hitting return does not cau

Re: Composing a link

2005-07-29 Thread Laurie Harper
You can do it with JSP tags, no scriptlets required. Try something like this (I haven't tested it, but experiment a bit if it doesn't work quite as written here): ... L. N G wrote: How do you push the 2 parameters into the Map? You mean using a scriptlet? I want to avoid any type of st

Re: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-29 Thread Laurie Harper
Dave Newton wrote: Laurie Harper wrote: There's a couple of ways to do this better ;-) Firstly, you can reference the URL pattern matches ({1} etc) in the 'parameter' attribute of the action mapping, so you can pass stuff along that way. Yeah, I didn't want to parse the parameter, plus I'm al

Re: [OT] saving stats from session when session destroyed

2005-07-29 Thread Craig McClanahan
On 7/29/05, Rick Reumann <[EMAIL PROTECTED]> wrote: > Craig McClanahan wrote the following on 7/29/2005 12:43 PM: > > > One approach to consider is to make your listener implement > > HttpSessionAttributeListener as well as HttpSessionListener. That > > means you'll hear about session attributes

Re: [OT] saving stats from session when session destroyed

2005-07-29 Thread Rick Reumann
Craig McClanahan wrote the following on 7/29/2005 12:43 PM: One approach to consider is to make your listener implement HttpSessionAttributeListener as well as HttpSessionListener. That means you'll hear about session attributes being removed -- which is what happens as the session is being inv

Re: probably a cleaner way... testing for just one user

2005-07-29 Thread Rick Reumann
Another option other the solution below, that might even be easier to implement... When sessionCreated is called it puts a simple flag in the ServletContext. Then in the filter that checks to see if there is a valid session, you check to see if this flag is in the Servlet context. If it is not

[ot friday] test - ignore

2005-07-29 Thread Cekvenich
testing roomity - please ignore. I wonder if it works on Linux. Y use: save email from public mail lists, faster, nicer.. it's java. .V People are conversing... without posting their email or filling up their mail box

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread John Henry Xu
BTW, I don't make assumptions on extensions only. I check their hosting machines and modules also. In my emails, I said some sites have NO Evidence running Java. When I see most Microsoft sites .aspx, I am pretty sure they are .net sites, not JSF sites. When I see Sun's site, does .jsp means the

Re: probably a cleaner way... testing for just one user

2005-07-29 Thread Rick Reumann
Tamas Szabo wrote the following on 7/28/2005 11:56 PM: However, I would like to have a general solution for this and since we took the time to think it over we could have this code somewhere so it will be reusable in the future. Well, if we want a general solution that 'should' truly work, th

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Dave Newton
John Henry Xu wrote: However, it is rare that people wants get rid of all extensions. In fact I only heard about this claim the second time today. "Rare" doesn't mean that it shouldn't be done. There are some strange-behavior-people like to use php for .net pages, .aspx for java pages, .js

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread John Henry Xu
Ideally, no "? & = + -" symbols should be in URL at all. Many people complained about these "user unfriendly" URLs. However, it is rare that people wants get rid of all extensions. In fact I only heard about this claim the second time today. There are some strange-behavior-people like to use php

Re: Composing a link

2005-07-29 Thread N G
How do you push the 2 parameters into the Map? You mean using a scriptlet? I want to avoid any type of straight Java code in my page. Is there a way to push those parameters into the map using JSTL? Thanks, NG On 7/29/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > N G wrote: > > only allows 1 m

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Frank W. Zammetti
I thought I remembered that Tiles only worked when using extension matching rather than prefix matching... but I was thinking of modules, which does require extension matching as per the user guide. My bad, flaky Friday memory :) Frank Dave Newton wrote: Frank W. Zammetti wrote: Jeff, are

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Dakota Jack
I didn't say I was unhappy. I suppose you mean that you would be unhappy under the circumstances I outlined. I am happy as a clam. Doesn't it seem a bit arrogant to tell me how I could be happy? LOL On 7/29/05, James Mitchell <[EMAIL PROTECTED]> wrote: > I'm not speaking for the world, but I a

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Dakota Jack
Of course you are. You are a committer. On 7/29/05, James Mitchell <[EMAIL PROTECTED]> wrote: > I'm not speaking for the world, but I am +1 to what Steve said. If > you are truly unhappy, take the code elsewhere. That is what I am > planning to do for a certain commons component in a few months

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Dave Newton
Frank W. Zammetti wrote: Jeff, are you saying we shouldn't use extensions at all? IIRC, Tiles is extension-based, so wouldn't this mean, at the least, that we can't use Tiles? What do you mean by 'tiles is extension-based?' Also, we're talking about extensions on the client view of the URL

Re: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-29 Thread Dave Newton
Laurie Harper wrote: There's a couple of ways to do this better ;-) Firstly, you can reference the URL pattern matches ({1} etc) in the 'parameter' attribute of the action mapping, so you can pass stuff along that way. Yeah, I didn't want to parse the parameter, plus I'm already using it. Pu

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Frank W. Zammetti
Jeff, are you saying we shouldn't use extensions at all? IIRC, Tiles is extension-based, so wouldn't this mean, at the least, that we can't use Tiles? Frank Jeff Beal wrote: I think you're missing the point. There's no reason to include .php, .asp, .jsp, .xml, or .html in *any* page. They

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Jeff Beal
I think you're missing the point. There's no reason to include .php, .asp, .jsp, .xml, or .html in *any* page. They don't mean anything. Furthermore, any assumptions you make about the technology behind a site based on those extensions is simply not valid. (OT: I'll never forget the day my 7th

Re: Composing a link

2005-07-29 Thread Laurie Harper
N G wrote: only allows 1 map and 1 param-value pair. However, I need to add 2 params besides the map. Adding this param to the map is not an option, I don't think. I generate my map inside the form bean. The data for the 2 extra params is not available in the form and is only available on the p

Re: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-29 Thread Laurie Harper
Dave Newton wrote: Tomasz Nazar wrote: One more question: I don't see how would you pass two parameters into the action. Can you tell? Yeah, but you won't like it ;) In the AdminCrud action I manually pick apart the URL and create 'table', 'command', and 'id' values that I pass to the comman

Re: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-29 Thread Dave Newton
Tomasz Nazar wrote: On the next beautiful day: Fri, 29 July, 2005, Dave Newton wrote: Yes, you can use multiple wildcards: my "solution" has two wildcard mappings (to the same action): One more question: I don't see how would you pass two parameters into the action.

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Dave Newton
John Henry Xu wrote: Only dynamically changing pages should use .php, .asp or .jsp. Why? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-29 Thread Tomasz Nazar
On the next beautiful day: Fri, 29 July, 2005, Dave Newton wrote: > Tomasz Nazar wrote: > > > /context/department/*/employee/*/view > > -> > > /context/employee/view.do?departmentOID={1}&employeeOID={2} > > > >path="/department/*/employee/*" > >???="??? {1} ??? {2}" > > > Yes, you can use

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread John Henry Xu
Nice article. that explains why google save sites the way it is. So all pages that will not be changed should have no .php, .asp, at most .html/.shtml. Only dynamically changing pages should use .php, .asp or .jsp. John H. Xu http://www.usanalyst.com http://www.GetusJobs.com (The largest free jo

Re: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-29 Thread Tomasz Nazar
On the next beautiful day: Fri, 29 July, 2005, Dave Newton wrote: > Tomasz Nazar wrote: > > >But Laurie, do you know if it is possible to use those wildcards so they > >can rewrite patterns to include more parameters? > > > > /context/department/*/employee/*/view > > -> > > /context/employee/view

How to modify the date validation in Struts?

2005-07-29 Thread Thai Dang Vu
Hello everybody, I just tested the date validation in Struts and it seems to me that 12/31/2004 is valid but 12-31-2004 is invalid. Where should I change so that 12-31-2004, Dec 31 2004 are valid? Sincerely, Thai

Re: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-29 Thread Dave Newton
Tomasz Nazar wrote: But Laurie, do you know if it is possible to use those wildcards so they can rewrite patterns to include more parameters? /context/department/*/employee/*/view -> /context/employee/view.do?departmentOID={1}&employeeOID={2} Will struts handle that properly? I doubt if that's

html:messages not displaying all messages

2005-07-29 Thread Jeff Beal
I have the following in an action class: msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("This is an Action-inserted error",false)); msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("So is this",false)); addErro

Re: Path like urls with objects' OIDs: /objects/object/17/198/4 possible?

2005-07-29 Thread Tomasz Nazar
On the next beautiful day: Thu, 28 July, 2005, Dave Newton wrote: > Tomasz Nazar wrote: > > >Say: /context/emplyee/17 > > Sorry for the ramble--I'm motivated to work on that code again now, though! > Dave Thanks for the extensive idea, I had something similar in mind. Though, Yuniar pointed ou

Composing a link

2005-07-29 Thread N G
Hi, only allows 1 map and 1 param-value pair. However, I need to add 2 params besides the map. Adding this param to the map is not an option, I don't think. I generate my map inside the form bean. The data for the 2 extra params is not available in the form and is only available on the page. Ho

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread James Mitchell
I'm not speaking for the world, but I am +1 to what Steve said. If you are truly unhappy, take the code elsewhere. That is what I am planning to do for a certain commons component in a few months. I am unhappy about how it is being maintained, and the author/committer refuses to listen t

Re: [OT] jakarta taglibg countMatches syntax

2005-07-29 Thread Laurie Harper
temp temp wrote: I wantindex of substring from a string . I would like to acheive this using jsp tags. I found jakarta taglib countMatches tag which would print no of times substring is present in the string.Rather than printing I want to capture the output from this jsp tag into

Re: jakarta taglibg countMatches syntax

2005-07-29 Thread Ed Griebel
The below worked for me. If you are getting output, make sure that you are including the taglib and the prefix you are using is the same ("str" in your case, but "string" for me) E.g., <%@ taglib prefix="string" uri="http://jakarta.apache.org/taglibs/string-1.0.1"; %> Hello world

[ANN] Struts Plugin V0.1alpha for IntelliJ IDEA 5

2005-07-29 Thread Yann Cebron
Dear Struts/IDEA community, I'm pleased to announce the very first public version of StrutsPlugin! Its goal is to detect errors in Struts XML configuration files as well as in Struts specific code. This initial alpha release contains 5 inspections (4 of them for config files), please see Setti

Re: String concatenation

2005-07-29 Thread Dave Newton
Laurie Harper wrote: Konrad Billewicz wrote: I unfortunately don't know anything about JSTL. My project is so urgent that currently I am not able to experience and use this technology. But I'll look at it closely. Thank you for advice. Invest an hour on some learning and you'll be repaid w

Re: String concatenation

2005-07-29 Thread Laurie Harper
Konrad Billewicz wrote: I unfortunately don't know anything about JSTL. My project is so urgent that currently I am not able to experience and use this technology. But I'll look at it closely. Thank you for advice. Invest an hour on some learning and you'll be repaid within a day ;-) -- Laurie

jakarta taglibg countMatches syntax

2005-07-29 Thread temp temp
I wantindex of substring from a string . I would like to acheive this using jsp tags. I found jakarta taglib countMatches tag which would print no of times substring is present in the string.Rather than printing I want to capture the output from this jsp tag into a variable .This tag

Re: Exception on deployment

2005-07-29 Thread chuck harris
The file is actual in \java\config. I figured out what the problem was. I changed the doctype declaration to a file on the file system rather than PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN" "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd"; at that was wh

Re: integration between sslext and servlet auth

2005-07-29 Thread Jim Kennedy
I had to do this to make it work. Login Page Login Page must be under SSL /login.jsp GET POST

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Dakota Jack
Committers have a way of speaking for the world. That is a wonderful thing. I can only speak for myself. I can also only listen for myself. On 7/28/05, Steve Raeburn <[EMAIL PROTECTED]> wrote: > Michael / Jack / Thingamabob, > > Struts is licensed in such a way that if you are unhappy with the

Re: what is M (of MVC) in struts

2005-07-29 Thread Craig McClanahan
On 7/29/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > Struts does not provide any part of the "M" (Model). The more colloquial way to say this is that Struts is a BYOM (Bring Your Own Model) framework :-). Craig PS: ActionForm is part of the view ... the purpose is to maintain the server side

Re: [OT] saving stats from session when session destroyed

2005-07-29 Thread Craig McClanahan
On 7/29/05, Varley, Roger <[EMAIL PROTECTED]> wrote: > > > > I could be losing my mind, but, I swear that I tried this technique > > once and by the time the sessionDestroyed() method was called, I was > > not able to get any of the session attributes back anymore. For > > various reasons, the weba

Re: Exception on deployment

2005-07-29 Thread Ed Griebel
Chuck- I'm thinking along the same lines Dave is, that it isn't in the classpath where you think it is. The error is generated after the "standard" Struts resources are loaded; it looks like Struts is bailing out because it can't find the app resources file you specified. For what you included ab

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Jeff Beal
In Tim Berners-Lee's defense, the URI without '.html' works. The link from Google included the '.html', and I didn't notice it when I pasted into the email. It's Google's fault! http://www.w3.org/Provider/Style/URI -- Jeff On 7/29/05, Marsh-Bourdon, Christopher <[EMAIL PROTECTED]> wrote: > It

Re: Exception on deployment

2005-07-29 Thread Dave Newton
chuck harris wrote: it is in the classpath. Where specifically is the file? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Exception on deployment

2005-07-29 Thread chuck harris
I have : it is in the classpath. --- Ross Gibb <[EMAIL PROTECTED]> wrote: > Hi Chuck, > > Not really sure. However, in your struts-config.xml > I assume you have > an entry for your message resources. Something > like: > > > parameter="com.company.resources.ApplicationResou

Re: Exception on deployment

2005-07-29 Thread Ross Gibb
Hi Chuck, Not really sure. However, in your struts-config.xml I assume you have an entry for your message resources. Something like: Meaning you should have a file in your source code folder called com/company/resources/ApplicationResources.properties. This file also needs to exist insi

integration between sslext and servlet auth

2005-07-29 Thread Tremal Nailk
Hi everibody, it'ss the first time I'm writing to this list, I hope I'm not annoying anyone. I'm using the ssl extension library for Struts (sslext) to switch between encrypted and unencrypted pages in my webapp. Everything works fine excerpt for the login page, which is handled by the servlet aut

Exception on deployment

2005-07-29 Thread chuck harris
I am moving a struts app from development to test and am getting an exception that I can't track down and am stuck. What file is not found? 2005-07-29 08:42:06,925 INFO [main] [org.apache.struts.util.PropertyMessageResources] Initializing, config='org.apache.struts.action.ActionResources', ret

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-29 Thread Werner Punz
Pilgrim, Peter wrote: I think the jewel in the crown with the EJB 3 specification is actually the new persistent model sub part of it. Following Linda De Michels and Scott Crawford presentations at JavaONE this year, you should be able to persist POJOs with any O/RM implementation that supplies

Re: [OT] Hibernate vs. iBatis vs. POJO

2005-07-29 Thread Werner Punz
Stéphane Zuckerman wrote: netsql a écrit : So are you saying Hibreante for big complex or iBatis for big complex? I don't know about iBatis, but Hibernate is definitely for medium to big projects. The real "complexity" of Hibernate is in its configuration (there is more or less one Java cl

Re: what is M (of MVC) in struts

2005-07-29 Thread netsql
Joe Germuska wrote: Struts does not provide any part of the "M" (Model). oh yeah, that's right. .V - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: what is M (of MVC) in struts

2005-07-29 Thread Frank W. Zammetti
The Model is something, conceptually, outside of Struts. Struts provides nothing for dealing with the Model. Imagine that you write some classes that know how to talk to your database, know how to perform your business logic. Further imagine that these classes have a known set of methods (i.e.,

RE: what is M (of MVC) in struts

2005-07-29 Thread Baranj, Bala
ActionForm cannot be considered as the Model except for very trivial applications. ActionForm is also very tightly coupled to the Struts framework. The model components are developed using EJB, Hibernate etc. It provides the business logic and persistance for the application. So, Struts does not pr

Re: what is M (of MVC) in struts

2005-07-29 Thread Joe Germuska
At 6:40 AM -0700 7/29/05, Carl Smith wrote: Struts privide strong C (of MVC) components, tyical of which are ActionServlet, Actions and RequestProcessors, but I am wondering which part is the M (of MVC). Struts does not provide any part of the "M" (Model). I think this is what often leads n

Re: what is M (of MVC) in struts

2005-07-29 Thread netsql
The form"Bean". ;-) it maps to html form. .V Carl Smith wrote: Struts privide strong C (of MVC) components, tyical of which are ActionServlet, Actions and RequestProcessors, but I am wondering which part is the M (of MVC). Thanks. __ Do You Y

what is M (of MVC) in struts

2005-07-29 Thread Carl Smith
Struts privide strong C (of MVC) components, tyical of which are ActionServlet, Actions and RequestProcessors, but I am wondering which part is the M (of MVC). Thanks. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection ar

RE: [OT] saving stats from session when session destroyed

2005-07-29 Thread Frank W. Zammetti
Well, there we go Van :) I would not have known that... I just got lucky in using containers that didn't follow the spec exactly :) -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Fri, July 29, 2005 5:29 am, Varley, Roger said: >> >> I co

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Frank W. Zammetti
I have always choosen an extension that was meaningful for the application... for instance, for a system I did called Transfer Of Assets, it was .toa... for the blog on my own page it is .blog. I never really thought about it in terms of URLs not changing or being able to know what technology was

Re: probably a cleaner way... testing for just one user

2005-07-29 Thread Frank W. Zammetti
On Fri, July 29, 2005 12:34 am, Tamas Szabo said: > Did you made the modification I suggested? > I mean not continuing the chain if a sessionCount = MAX_SESSIONS. > Or you didn't find that a good idea? I haven't yet, although I agree with you that it is a good idea... the thing I'm stuggling with

Composite datatypes - dynaform, is it faisaible?

2005-07-29 Thread delbd
Hello, I am wondering if it is possible to adress this problem using struts: Form must show/edit datas (this is quite simple :p) Some datas are read-only, other are read-write. (ok, not too difficult) The datas to show/edit are different based upon an id given to the action (Thinking about a dy

RE: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Marsh-Bourdon, Christopher
It is vaguely amusing that the page's url dos not adhere to the page's content! Not sure how practical it would be to use url that do not contain an (file) extension with Struts or most web app frameworks. Aren't they there to give guidance to their content (Hacker subterfuge excluded)? It sho

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Jeff Beal
Imagine a company currently using PHP who decides their app has grown past the constraints of PHP. It would be silly of them to change the file extension on their URIs just because they're changing technology, so they just map *.php to the Struts Servlet. Of course, if the web developers at that

Re: How to access a Servers connection pool with Struts?

2005-07-29 Thread Daniel Henrique Ferreira e Silva
Hi Starki, Maybe this is a bit beyond your scope, but, if you are willing to do plain JDBC, i'd like to suggest you to give iBATIS Data Mapper a try. It's a cleaner and simpler way of issueing SQL statements to your database, hiding all JDBC complexity. It is rock stable and has a great community

Two-dimensional checkbox table form

2005-07-29 Thread Mike Haller
Hi, i've got two nested iterators How do I populate such a two-dimensional checkbox table? I tried to manually produce the checkbox tag that it looks like the following, but this did not work (BeanUtils doesn't recognize and doesn't seem to know how to store a boolean[][]) Hitti

RE: [OT] saving stats from session when session destroyed

2005-07-29 Thread Varley, Roger
> > I could be losing my mind, but, I swear that I tried this technique > once and by the time the sessionDestroyed() method was called, I was > not able to get any of the session attributes back anymore. For > various reasons, the webapps I develop need to be deployable in a > Servlet 2.3 environ

Re: [OT] saving stats from session when session destroyed

2005-07-29 Thread Van
On 7/28/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Believe me, I wouldn't have gone to all that trouble if the session > > data was available for me to get to the user attribute in the session. > > Interesting... I'd bet it was a peculiarity of the container's spec > implementation. Di

Re: String concatenation

2005-07-29 Thread Stéphane Zuckerman
Konrad Billewicz a écrit : do you need to put dictionaryId to querystring? i come up with "> as an alternative It is a good idea. But... shouldn't I avoid using non-Struts HTML form tags in Struts-driven applications? I am quite new in Struts and I don't want to get bad habits. :-) In

Re: String concatenation

2005-07-29 Thread Konrad Billewicz
Laurie Harper holoweb.net> writes: > Firstly, you can combine get with forms; if you use method="GET" the hidden > parameter Dave suggested will show up in the URL. Either way, you wouldn't > have to 'check the request and secondly the form' since GET and POST > parameters are both accessed th