release of struts-faces library

2004-07-28 Thread Krzysztof Krzak
Hi All, I am starting new project and I plan to use Struts with JSF support. I have two related questions : 1. What is the estimated date of struts-faces library release ? 2. Is struts-faces library already rather steable ? I need such features as tiles, modules and external (not Struts) JSF ta

Re: advice needed: use taglib to render dynamic links to embeded objects

2004-07-28 Thread alu, artifex
it works just perfectly! using the tag and having all images use a relative path. i haven't figured out any disadvantages yet. thanks, great solution! art alu, artifex wrote: mhm, sounds very promising - if i use pure html for all stylset-based links they would use the adress base from the base

RE: Back navigation using application back buttons

2004-07-28 Thread James Sheridan
Thanks Niclas for the ideas. While I think the currentPage/lastPage hidden field idea would work for the simple case I outlined, I don't think it would work for slightly more complex case (requirements changing already :-), eg. (original) Page1->Page3->Page2->(back)->Page3 (extended) Pa

PortableRemoteObject.narrow()

2004-07-28 Thread Viral_Thakkar
Hi All, This is an EJB question. Sorry to put this in struts forum. I am using servicelocator component to get the EJB home object. Method inside this component uses PortableRemoteObject.narrow() to get the Home object after Jndi lookup. I also uses Business Delegate component which has init(

RE: Back navigation using application back buttons

2004-07-28 Thread James Sheridan
Hi Puneet, Good to hear you have a solution. Item 3 in your list is exactly the situation I describe. Would you mind sharing the code with the user group ? Thanks James -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 28 July 2004 05:15 To: Struts Users M

RE: Back navigation using application back buttons

2004-07-28 Thread puneet . a
>>Hi Puneet, >>Good to hear you have a solution. Item 3 in your list is exactly the >>situation I describe. Would you mind sharing the code with the user group ? Sure I'll share it, you will have to bear with me, i'll extract that code tonight(from home) and be able to send you the code tomorro

[OT]Re: PortableRemoteObject.narrow()

2004-07-28 Thread puneet . a
please mark such mails as [OT] in the subject line - This means Off Topic PortableRemoteObject.narrow() is a decent way to check whether an object can be casted to given class or not...so..decide yourself...!!! Puneet Agarwal Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://ww

RE: PortableRemoteObject.narrow()

2004-07-28 Thread Kataria, Satish
Yes u shld use the PortableRemoteObject.narrow() method. The short reason for this Is is this will ensure that ur code is portable across different software Platforms(Corba, EJB) Thanks, Satish -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 28, 2

RE: Back navigation using application back buttons

2004-07-28 Thread James Sheridan
Hi Martin, I'm not sure if I'm interpreting your suggestion correctly, but it appears that it does not solve my basic problem of being able to navigate back via different routes (depending on the forward route). For example the mappings you define appear to show that page2 can only be forwared "ba

Re: advice needed: use taglib to render dynamic links to embeded objects

2004-07-28 Thread ron1
:-) alu, artifex wrote: it works just perfectly! using the tag and having all images use a relative path. i haven't figured out any disadvantages yet. thanks, great solution! art alu, artifex wrote: mhm, sounds very promising - if i use pure html for all stylset-based links they would use the a

[OT] CreditCard-Validator

2004-07-28 Thread Matthias Wessendorf
Hi, i looked at TestCase for Commons-CreditCardValidator and saw '4417123456789113' as a valid Visa-# CreditCardValidator uses the luhn-algorithm. however, is anyone using CreditCardValidator on a production-system? or do you use third-party validation for that. Regards, Matthias Weßendorf Aec

Struts from XSLT

2004-07-28 Thread Johan Wasserman - BCX - Infrastructure Services
How do I assign output from xsl to bean:message or fmt:message. For example "/> I have tried using It doesn't work.

is an action path attribute with periods ok?

2004-07-28 Thread Jurn Ho
Hi Everyone, I've been experimenting with Struts, and have got up to the stage where I'm using the 'html' taglib to create a link to my action classes, but when I've got periods in my action paths it doesn't seem to create the correct url e.g. in my test.jsp: a b c test link in my web.xml the se

RE: Struts from XSLT

2004-07-28 Thread Matthew Van Horn
Assuming an element: If you are doing a XSLT transform, it would be: This will result in: -Matt > -Original Message- > From: Johan Wasserman - BCX - Infrastructure Services > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 6:25 PM >

RE : PortableRemoteObject.narrow()

2004-07-28 Thread Aditya Athalye
I dont think there should be any need to use Portable Remote object.narrow() method for getting reference to EJBObject. Basically there is no need to cast since home.create() will directly give the reference to the component interface irrespective of underlying protocol Thanks Aditya

detecting a change in field value

2004-07-28 Thread Kalra, Ashwani
hi, I want to detect if the use has changed/edited any filed on the webpage. How can I do that. Is there anything in struts which I can use ? Thanks & Regds Ashwani Our name has changed. Please update your address book to the following format: "[EMAIL PROTECTED]". This message con

RE: Struts from XSLT

2004-07-28 Thread Johan Wasserman - BCX - Infrastructure Services
Tried that approach unsuccessfully (output is "null"). Is your suggestion factual (do you have it working that way)? Then maybe I'm looking at a xalan version issue or something (I doubt, it's quite current). Aolso tried: But that renders to the HTML output an

RE: Struts from XSLT

2004-07-28 Thread Marco Mistroni
Hello,] How about ? Regards marco -Original Message- From: Johan Wasserman - BCX - Infrastructure Services [mailto:[EMAIL PROTECTED] Sent: 28 July 2004 11:02 To: Struts Users Mailing List Subject: RE: Struts from XSLT Tried that approach unsuccessfully (output is "null

RE: 1.21

2004-07-28 Thread Ted Husted
For future reference, you'll find links to tagged distributions here: http://struts.apache.org/acquiring.html There have only been minor changes in the nightly build since 1.2.1. Beta or GA releases would also be announced and the announcement archived here: http://struts.apache.org/announce.ht

RE: RE : PortableRemoteObject.narrow()

2004-07-28 Thread Kataria, Satish
Agreed if your all ur middle tier applications are coded in java. However if you want ur application to interact with a CORBA application then this will not work. The EJB specifications also recommend to use Portable Remote object.narrow() as this will ensure that ur application is truly portable

RE: Back navigation using application back buttons

2004-07-28 Thread gmeyer
James: The navigation framework we have can also manage complex navigations with different actions perhaps in differents use cases, for example: [listCustomers.jsp (is Checkpoint)] -> (vierDetailCustomer) -> [detailCustomer.jsp] [detailCustomer.jsp] -> (listOperators) -> [listOperators.jsp] >F

advice needed: view+form needs data from an action

2004-07-28 Thread alu, artifex
i've ran into an problem using struts or, maybe, it's me not understanding the mvc concept correctly: the user has to fill out a form which contains several drop-down-boxes filled with possible values from a database. so i need an preceding action to gather the data from the database. if the fo

RE: advice needed: view+form needs data from an action

2004-07-28 Thread Kataria, Satish
I am not very clear what is the issue ur facing. For populating the dropdowns , u cld hit DB in the action and polulate apropriate DTO and put it in request. U cld then use the values from the DTO for populating the dropdowns. Next on form submission u cld persist the new values to DB in the submi

RE: advice needed: view+form needs data from an action

2004-07-28 Thread Paul McCulloch
You need to remember the values for your dropdowns between requests if you don't want to keep asking the database. There are two places you could store this - in session or in application scope. You need to decide which is more appropriate. HTH, Paul > -Original Message- > From: alu, art

Re: advice needed: view+form needs data from an action

2004-07-28 Thread alu, artifex
Kataria, Satish wrote: I am not very clear what is the issue ur facing. For populating the dropdowns , u cld hit DB in the action and polulate apropriate DTO and put it in request. U cld then use the values from the DTO for populating the dropdowns. Next on form submission u cld persist the new val

Re: advice needed: view+form needs data from an action

2004-07-28 Thread Mike Millson
What I do is populate the data in the form's validate() method if an error is found. For example, if an option collection for a pulldown menu is used on the input page, when validate fails, I create the option collection and store it as a request attribute. That way it is in scope when the request

Re: advice needed: view+form needs data from an action

2004-07-28 Thread alu, artifex
thanks paul, but i'll keep asking the database. i only thought this wouldn't be possible (to perform an action after validation failes) - it is, of course, possible to specifiy an action as input for another action. thanks for your time regards art Paul McCulloch wrote: You need to remember the

form tag and root context isssue

2004-07-28 Thread Ludovic Bailly
Hi, My web app is running under tomcat 5.0/struts 1.21. It was deployed in webapps/ROOT. All was working fine (request.getContextPath() was returning ""). Now the same web app is deployed using a xml file in conf/Catalina/localhost tomcat's directory : path attribute context is set to "/" an

Re: OT: Re: ibatis and jndi pooling

2004-07-28 Thread josh
vic, I have moved everything to the Ibatis forum. You are right, the discussion has very little struts specific information unless someone else is interested in the discussion about plugins or how to properly manage the db connection (of which I could use some guidance) I posted my reply to your

RE: release of struts-faces library

2004-07-28 Thread James Holmes
Chris, The Struts-Faces integration library is relatively new and thus considered alpha/beta code. However, I would say it is fairly stable. We need people like you to use it and report any issues. Craig McClanahan and I have been working on it recently and are making sure bugs resolved as they

Re: is an action path attribute with periods ok?

2004-07-28 Thread Kishore Senji
tag uses RequestUtils's getActionMappingName(String action). The getActionMappingName(String action), if it finds a '.' in the action, it assumes that we also supplied the extension(.do) to the path (for eg; /login.do) and so it removes the extension and later appends the extension stored in the s

struts-faces with modules example

2004-07-28 Thread sirhck
Hi All, I am looking for example of using struts-faces library with struts-modules feature Is it already possible to use struts modules with struts-faces library? Have anybody any experience with this matter ? I tried to build that application by extending example2 application (from struts-face

Re: OT: Re: ibatis and jndi pooling

2004-07-28 Thread Vic Cekvenich
So I think Clinton answerd your question there, so done!? .V josh wrote: vic, I have moved everything to the Ibatis forum. You are right, the discussion has very little struts specific information unless someone else is interested in the discussion about plugins or how to properly manage the db co

Why does work differently than ?

2004-07-28 Thread Andrew Close
hi all, i'm still struggling with form submission. i would prefer to use links on the page to submit my form instead of a 'submit button'. but i'm unable to get the correct functionality to work. when submitting with the submit button all my hidden fields are slurped up and populated on the nex

Re: Why does work differently than ?

2004-07-28 Thread Robert Miller
Andy, Sorry, I haven't been following your situation closely. Have you looked into using Javascript to have the link trigger form submission? An example of what I am talking about can be found here: http://www.javascript-coder.com/javascript-form/javascript-form-submit.phtml Robert >>> [EMAIL

Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
hi Robert, yes i've tried using javascript, but i must be doing something wrong. i've tried two approaches. 1) i was calling a javascript function that set the action for me and then submited the form. but the values inside my hidden fields weren't getting picked up. 2) Wendy gave me a slightl

Re: Re: Why does work differently than ?

2004-07-28 Thread Robert Miller
Andy, I don't have an answer but what I would try first is examining those values on the client. First do a view source on your generated HTML and make sure your values are there. Next in your Javascript after you've set any values but before you submit your form (which should be last anyway) use a

Re: Re: Why does work differently than ?

2004-07-28 Thread Wendy Smoak
From: "Andrew Close" <[EMAIL PROTECTED]> > 2) Wendy gave me a > slightly different approach to try by calling the function and setting > the values of the hidden fields and then submitting. however, two of > the hidden fields are set upon arrival to the page by my action form. > but they are not b

RE: Re: Why does work differently than ?

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 9:10 AM > To: Struts Users Mailing List > Subject: Re: Re: Why does work differently than > action="">? > > > hi Robert, > > yes i've tried using javascript, but i must be doing some

[ANNOUNCE] StrutsDoc 0.5 Released

2004-07-28 Thread Nick Heudecker
StrutsDoc 0.5 has been released. This is primarily a bugfix release. It may be downloaded from: http://sourceforge.net/project/showfiles.php?group_id=49385 What is StrutsDoc? StrutsDoc is an Ant task that generates JavaDoc-like documentation from a Struts configuration file. You may see an ex

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
Hi, Andrew: If you are going to show HTML try the tag and change the HTML tags with "<" and ">" instead of < and >. What you are doing, Andrew, is not clear to me. You have talked about using instead of to submit a form. I have no idea why you would ever think these two would work the sam

Re: Re: Why does work differently than ?

2004-07-28 Thread Matt Bathje
Andy - Based on your email it is hard to tell, but I think you are attempting to do a form.submit(); call in the link action to submit the form. Assuming this is the case, I have the following advice - if you MUST submit using javascript instead of a submit button, avoid the use of form.submit();

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
Andrew, could you restate what you are trying to do? Why are you using JavaScript? My guess is there is a safer and sounder way to solve whatever your problem is, if you merely are trying to submit a form with some issues which are unknown to me around that. Michael -

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
Robert, :) i'm a step ahead of you. my values do show up in the client side html before submitting the form. and they show up in alert statements upon submission. that is what is so puzzling. i'm seeing the data, but when i set breakpoints in my actionform set methods, two of them aren't bein

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:39 AM 7/28/2004, you wrote: Andy - Based on your email it is hard to tell, but I think you are attempting to do a form.submit(); call in the link action to submit the form. Andy, I would be willing to bet against pretty heavy odds that your attempted solution here, Andy, is not necessary or

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
Hi Wendy, yes my submit button is named submit. but when i tested using it i wasn't using javascript. ;) only the links are using javascript to set one hidden field on the form. i hard coded that value with the submit button. in all cases the hardcoded value or the value set via javascript is p

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:41 AM 7/28/2004, you wrote: Robert, :i'm seeing the data, but when i set breakpoints in my actionform set methods, two of them aren't being called... andy The question, Andy, whatever your problem is, that Robert is posing is whether "form.field.value" shows the data. Whether you are just s

RE: Re: Why does work differently than ?

2004-07-28 Thread Geeta Ramani
+1 on this.. Actually make that a +100..:) > -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 12:44 PM > To: Struts Users Mailing List > Subject: Re: Re: Why does work differently than > action="">? > > > At 09:39 AM 7/28/2004,

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:46 AM 7/28/2004, you wrote: yes my submit button is named submit. but when i tested using it i wasn't using javascript. ;) only the links are using javascript to set one hidden field on the form. i hard coded that value with the submit button. in all cases the hardcoded value or the value

Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
Jim, heh, i would prefer not to use javascript, but i couldn't think of another way to submit the form with links. the form is a and all of the html components inside the form are Struts html components. the link just has an onclick parameter in it that calls the javascript. the javascript is

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:52 AM 7/28/2004, you wrote: heh, i would prefer not to use javascript, but i couldn't think of another way to submit the form with links. Why in Heaven's name would you want to submit a form with a link? Please step back one step further and tell us why you want to use a link to do what i

RE: Using within other nested tags

2004-07-28 Thread Maurice Nicholson
Hi Paul, yes, it looks like it may have been fixed in 1.2 already: http://www.mail-archive.com/[EMAIL PROTECTED]/msg22036.html Thanks, Maurice -Original Message- From: Paul McCulloch [mailto:[EMAIL PROTECTED] Sent: 27 July 2004 11:35 To: 'Struts Users Mailing List' Subject: RE: Using

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
Hi Michael, i agree, what i'm attempting is kindof goofy. i'm trying to submit a form using a hyper-link instead of a submit button. i have three links on the page that perform similar but different actions. each link sets a value in a hidden field that should be picked up by the actionform upon

RE: Re: Why does work differently than ?

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 9:52 AM > To: Struts Users Mailing List > Subject: Re: Re: Why does work differently than > action="">? > > > Jim, > > heh, i would prefer not to use javascript, but i couldn't think

How to add new events to HTML tag library objects

2004-07-28 Thread Mazen, Tamer S
Dears, I want struts HTML objects to support extra events like onpaste for text object, I tried to add that event in struts-html.tld and add it in my JSP, but when I run that JSP I had that error 'Attribute onpaste invalid according to the specified TLD' , I think there are other files must be c

RE: How to add new events to HTML tag library objects

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Mazen, Tamer S [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 10:04 AM > To: '[EMAIL PROTECTED]' > Subject: How to add new events to HTML tag library objects > > > Dears, > I want struts HTML objects to support extra events like > onpaste for t

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:58 AM 7/28/2004, you wrote: i agree, what i'm attempting is kindof goofy. Hi, Andy, You are stuck in a bad solution and all the discussion is about the goofy solution. However, if you would, once again, just tell us what the problem is, we can give you solutions, I would bet, that are not

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:58 AM 7/28/2004, you wrote: if i was 'allowed' to use separate submit buttons i would do that. YOU ARE ALLOWED TO USE SEPARATE SUBMIT BUTTONS. PLEASE TELL US WHAT THE DARN PROBLEM IS. - To unsubscribe, e-mail: [EMAIL PR

Re: FW: error in new bea

2004-07-28 Thread Erik Weber
My team is experiencing a redeploy problem with JBoss/Tomcat 3.2.5/5.0 on Windows 2000. I'm not seeing the problem on Red Hat. On the Windows boxes we are having to restart the server for every redeploy. A huge pain. At this point I'm not ready to say we don't have something naively set up in t

Re: Re: Why does work differently than ?

2004-07-28 Thread Wendy Smoak
From: "Michael McGrady" <[EMAIL PROTECTED]> > Why in Heaven's name would you want to submit a form with a link? This is not as odd as you seem to think. Case in point... I have a tabbed menu, and each tab has a [Struts] form on it. The text on each tab is a hyperlink, and I *have* to make the

RE: Re: Re: Why does work differently than ?

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 10:10 AM > To: Struts Users Mailing List > Subject: Re: Re: Re: Why does work differently than > ? > > > At 09:58 AM 7/28/2004, you wrote: > >if i was 'allowed' to use separate submi

Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 09:58 AM 7/28/2004, you wrote: if i was 'allowed' to use separate submit buttons i would do that. or even radio buttons and a single submit button. but i was asked to use hyperlinks... Is this just a school problem where the instructor wants to see if you can do something goofy? If so, pleas

Re: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
Sorry Michael, i wasn't ignoring you. you must've responded to each of my responses to the others. :) the original problem was that i have to add a product to the database. when the user clicks the initial add button they are taken to a page that has three links on it. Add Member Product Add No

RE: How to add new events to HTML tag library objects

2004-07-28 Thread Mazen, Tamer S
Im sorry I was using nested:text and apply my changes on struts-html.tld :( After I applying changes on struts-nested.tld I had the follwing error 'Unable to find setter method for attribute: onpaste' -Original Message- From: Mazen, Tamer S [mailto:[EMAIL PROTECTED] Sent: Wednesday, Ju

RE: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:13 AM 7/28/2004, you wrote: I'm guessing the problem is client/boss/marketroids. Given what he said to me about not liking js either and he mentioned he was asked to use links for the form submission Something this hoaky is probably client/marketroids. My money is on marketroids. If

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 10:17 AM > To: Struts Users Mailing List > Subject: Re: Re: Re: Re: Why does work differently than > ? > > > Sorry Michael, i wasn't ignoring you. you must've responded to each > of my

RE: Re: Why does work differently than ?

2004-07-28 Thread Paul McCulloch
> document.form[0].myHiddenField.value = "myValue"; > document.form[0}.submit; There are two or three typos there. I'd write this as: document.forms[0].myHiddenField.value = "myValue"; document.forms[0].submit(); Paul > -Original Message- > From: Andrew Close [mailto:[EMAIL PROTECTED]

Re: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:16 AM 7/28/2004, you wrote: Sorry Michael, i wasn't ignoring you. you must've responded to each of my responses to the others. :) the original problem was that i have to add a product to the database. when the user clicks the initial add button they are taken to a page that has three links o

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:25 AM 7/28/2004, you wrote: Nope. It's not a struts issue at all... it's an HTML issue. Struts tags just generate html (well, except the validation tag.). What you want would be difficult to genreate in any kind of sensical way. This is not true. The tags may just generate HTML, but t

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:25 AM 7/28/2004, you wrote: Nope. It's not a struts issue at all... it's an HTML issue. My response was not really too tactful, Jim. Sorry! I am not a very tactful person. - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:12 AM 7/28/2004, you wrote: The text on each tab is a hyperlink, and I *have* to make the form submit when the user clicks to switch to another tab, or I lose whatever they've typed on the form. I do it with JavaScript: This is the problem, Wendy. Don't make the text on the tag a hyperlink

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Michael McGrady [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 10:31 AM > To: Struts Users Mailing List > Subject: RE: Re: Re: Re: Why does work differently than > ? > > > At 10:25 AM 7/28/2004, you wrote: > >Nope. It's not a struts issue at al

RE: Re: Why does work differently than ?

2004-07-28 Thread Paul McCulloch
Michael, I use this approach fairly often. A typical scenario would be an order confirmation screen where the user can enter delivery details and remove items from their shopping basket (by clicking on a hyperlink). It is important that any details the user enters into the form are not lost when

Re: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:16 AM 7/28/2004, you wrote: i'm a Struts newbie. and while playing around with this situation i wasn't seeing my values getting populated in my actionform. i figured it had to do with the way i set up my Struts tags, , and their parameters. so in the Struts world, is there a way to submit a

Re: Why does work differently than ?

2004-07-28 Thread Wendy Smoak
From: "Andrew Close" <[EMAIL PROTECTED]> > so in the Struts world, is there a way to submit a form using a > hyperlink without using javascript? In your case, YES, I think this can be done without JavaScript (although that's still my preferred solution). The reason is that it does not sound like

Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:37 AM 7/28/2004, you wrote: In your case, YES, I think this can be done without JavaScript (although that's still my preferred solution). The reason is that it does not sound like the user gets to make any changes to the data on this page with the three links. In this case, you already know

Re: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:42 AM 7/28/2004, you wrote: if([ActionForm].getButton().getFirstChoice().pressed()) { // do whatever } else if ([ActionForm].getButton().getSecondChoice().pressed()) { // do whatever } else if([ActionForm].getButton().getSecondChoice().pressed()) { // do whatever } else { // throw exc

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:36 AM 7/28/2004, you wrote: We're geeks who expects tact? :) I understood what you said. And you're probalby right.. Good point! ///8-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Paul McCulloch
Michael, The approach you outline is fine when buttons are an option. But what about when a hyperlink is neccessary (for whatever reason - be it to conserve screen space or customer requirements). Is it possible to use CSS to make a button look like a hyperlink (I have very limited CSS myself)?

Re: Re: Why does work differently than ?

2004-07-28 Thread Wendy Smoak
>Wendy wrote: > >The text on each tab is a > >hyperlink, and I *have* to make the form submit when the user clicks to > >switch to another tab, or I lose whatever they've typed on the form. I do > >it with JavaScript: > >Michael wrote: > This is the problem, Wendy. Don't make the text on the tag

RE: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:40 AM 7/28/2004, you wrote: Michael, I use this approach fairly often. A typical scenario would be an order confirmation screen where the user can enter delivery details and remove items from their shopping basket (by clicking on a hyperlink). It is important that any details the user enters

Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:37 AM 7/28/2004, you wrote: Personally I'd still do it with a form, three hidden fields, and JavaScript to set one of the form elements & submit the form. Mostly so I could POST the form and keep the user from bookmarking something they shouldn't. Actually, if you use the multiple button ap

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:55 AM 7/28/2004, you wrote: I'm going to bow out of this now-- you have your solution, I have mine, both of them work, and the OP can choose one of the many ideas that have been thrown out there and be on his way. Okay dokay, and agreed. I always like discussing these things with you Wendy

RE: Re: Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:56 AM 7/28/2004, you wrote: Is it possible to use CSS to make a button look like a hyperlink (I have very limited CSS myself)? Heck, Paul, you can use the struts tag to make the button "look like a hyperlink". There is nothing special about this. Check out the Struts HTML image tag which

Re: Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 10:55 AM 7/28/2004, you wrote: the first issue that comes to mind is that the tabbed menus are in a separate Tile from the one that contains the tags. For submit buttons to work, they'd have to be *within* the form tags, and AFAIK you can't split the form across multiple Tiles. You can split t

Re: Why does work differently than ?

2004-07-28 Thread Andrew Close
wow, i didn't mean to start such a heated debate. :) but thanks to everyone for their suggestions. Wendy, i was actually doing something similar to your suggestion but i was appending the parameters to the action using javascript. i don't know why i didn't think of just putting them in the origin

Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 11:40 AM 7/28/2004, you wrote: wow, i didn't mean to start such a heated debate. :) but thanks to everyone for their suggestions. Hopefully more light than heat, Andy. I know I learned a lot. Michael - To unsubscribe, e-mail:

Re: Why does work differently than ?

2004-07-28 Thread Michael McGrady
At 11:40 AM 7/28/2004, you wrote: (i may email you off list with questions if you don't mind). That's fine. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Ricardo Andres Quintero
Hello Guys I need not to let users to login in my app simultaneosly. I mean if a login-password is actually logged in, i need to invalidatye that session and then let the new login-password to work in, after invalidating the old session. Any ideas? and of course any examples? -- Ricardo Andrés

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Geeta Ramani
Ricardo: Not sure where you are having problems..? Why wouldn't something like this (pseudocode) work? if (isLoggedIn(user)) { session.invalidate(); } //now proceed normally with login with un/pw... Regards, Geeta > -Original Message- > From: Ricardo Andres Quintero [mailto:[

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 12:04 PM > To: [EMAIL PROTECTED] > Subject: Not Logged in with the same loggin-password if it is already > registered. > > > Hello Guys > I need not to let users to login in m

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Ivan Vasquez
It may not be as easy as the current session (for the new login) and the session that you want to invalidate are different objects. The main issue would be how to get a reference to all active sessions via some session id. Apache Axis, for example, keeps track of them with a list of ActiveSessio

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread David Friedman
Geeta, I read Ricardo's message differently in that the new login would come from another machine, so the session wouldn't be shared and invalidated as you wrote below. ough, technically, it (the session) could be shared across computers if cookies were turned off and they had the same jsessionid

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Geeta Ramani
You are quite right and I realised this after reading jim's response.. As a matter of fact we are using sort of the method taht jim suggested in his note (with a database).. so i am not sure why i was being stupid.. So never mind me: am going back to smoking crack.. > -Original Message-

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread David Friedman
Ricardo, I can't think of any easy way to do that strictly within JAAS, but you didn't write if you were using JAAS. If you are using an Account object (of some sort) in the Session context, here is an idea for you: Have an application-scope object containing a map of usernames (or id numbers).

Re: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Bill Siggelkow
Maybe you could have a hashtable in the ServletContext that maps loginId to HttpSession -- then use a HttpSessionListener to listen for session creation -- when the session is created look for a value in the hashmap in the servlet context -- if it is there then invalidate the mapped session. Th

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Geeta Ramani
yes you are right and I just realised that in fact.. ok never mind. i really need to go home > -Original Message- > From: David Friedman [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 4:28 PM > To: Struts Users Mailing List > Subject: RE: Not Logged in with the same loggin-pas

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Geeta Ramani
Exactly! Or use HttpSessionlistener and database solution (that jim outlined) simultaneously.. (We are doing almost this except as a solution to a kind of "opposite" problem - when a user logs off we need to do soem work so.. this seems to work nicely) > -Original Message- > From: news

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Jim Barrows
> -Original Message- > From: Geeta Ramani [mailto:[EMAIL PROTECTED] > Sent: Wednesday, July 28, 2004 1:25 PM > To: Struts Users Mailing List > Subject: RE: Not Logged in with the same loggin-password if it is > already registered. > > > Exactly! Or use HttpSessionlistener and database s

RE: Not Logged in with the same loggin-password if it is already registered.

2004-07-28 Thread Robert Miller
How do you handle the situation where the user closes the browser without logging out (the windows "X" is not always our friend ;) ). I am not familiar with the SessionListener. Would it help in some way? Robert >>> [EMAIL PROTECTED] 7/28/2004 3:25:16 PM >>> Exactly! Or use HttpSessionlistene

  1   2   >