RE: [OT] - Request against Session

2004-02-13 Thread shirishchandra.sakhare
But what we are talking about is the concept functionality.And what you are saying is the implementation. Agreed the workflow container is in session scope .But for the user(The developer), it gives the choice of an additional scope definition.How it is implemented is not important. Any how,

RE: [OT] - Request against Session

2004-02-13 Thread shirishchandra.sakhare
True. But as soon as the user exits the workflow, the workFlow object is cleared.So instead of having a session with n number of objects still in session you have the session and the workflow container which is empty(assuming the user has exited the workflow.). -Original Message- From:

RE: [OT] - Request against Session

2004-02-13 Thread shirishchandra.sakhare
??? -Original Message- From: Michael McGrady [mailto:[EMAIL PROTECTED] Sent: Thursday, February 12, 2004 11:56 PM To: Struts Users Mailing List Subject: RE: [OT] - Request against Session The work flow solution being talked about actually is the worst bloat for the session. It uses

Re: [OT] - Request against Session

2004-02-13 Thread Mark Lowe
hi shirish You said something yesterday about never being sure what data is being displayed when using a session scoped action form, have you any references or can you elaborate? Sounds interesting, and I think its something I should know about. Cheers Mark On 13 Feb 2004, at 09:49, [EMAIL

RE: [OT] - Request against Session

2004-02-13 Thread Michael McGrady
At 12:45 AM 2/13/2004, you wrote: But what we are talking about is the concept functionality.And what you are saying is the implementation. Agreed the workflow container is in session scope .But for the user(The developer), it gives the choice of an additional scope definition.How it is

RE: [OT] - Request against Session

2004-02-13 Thread Michael McGrady
At 12:48 AM 2/13/2004, you wrote: True. But as soon as the user exits the workflow, the workFlow object is cleared.So instead of having a session with n number of objects still in session you have the session and the workflow container which is empty(assuming the user has exited the workflow.).

AW: html:button and Javascript

2004-02-13 Thread Sniadach, Tomasz
Yes it is realy simple , but it works :) Thanks a lot Tomek -Ursprüngliche Nachricht- Von: Rahul Mohan [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 13. Februar 2004 07:37 An: Struts Users Mailing List Betreff: Re: html:button and Javascript u cant nest tags

Re: [OT] - Request against Session

2004-02-13 Thread Mark Lowe
At least i'm not the only one. I also have/had no idea about this issue. Which is why I asked. Oh well I've just asked shirish what he meant, see what s/he (not taking the piss just not familar with the name) comes up with. Cheers Mark On 13 Feb 2004, at 04:47, Michael McGrady wrote: At

newlines

2004-02-13 Thread Turner Benjamin
hello, i looked in the archives about this problem but couldn't find anything useable. i have text data which contains newlines (\n) which has been entered via textarea's. on a different page i wish to present this data with the newlines converted to br/'s. i however don't want to turn the

RE: [OT] - Request against Session

2004-02-13 Thread Andrew Hill
snip How it is implemented is not important. /snip Well except in that the abstraction cannot be total due to the underlying technology limitations imposed by working with http and browsers over which one has very little control. My example of multiple windows and not knowing when windows are

RE: [OT] - Request against Session

2004-02-13 Thread Andrew Hill
snip To maintain functionality across a standard scope (request, session, application) something in the work flow application will have to go into that scope or into some other equivalent persistence mechanism such as a database. If the work flow application maintains the persistence, then it is

class cast exception

2004-02-13 Thread Baiju
Hi While running my first struts application i am getting a class cast exception. I am not able to find where i am doing wrong. Any one please tell me where i am go wrong in configuration files. thanks regards baiju

RE: [SPAM] - class cast exception - Bayesian Filter detected spam

2004-02-13 Thread Gagné Jean-Christian
please include the full stacktrace -Message d'origine- De : Baiju [mailto:[EMAIL PROTECTED] Envoyé : vendredi 13 février 2004 11:08 À : Struts-User (E-mail) Objet : [SPAM] - class cast exception - Bayesian Filter detected spam Hi While running my first struts application i am

Re: [SPAM] - class cast exception - Bayesian Filter detected spam

2004-02-13 Thread Baiju
The full stack trace of the exception is follows exception javax.servlet.ServletException: Exception creating bean of class sws.tgb.vf.ValAction: java.lang.ClassCastException org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextI mpl.java:867)

preslect option from nested list

2004-02-13 Thread Linus Nikander
I'm having trouble pre-selecting one of the html:options/ entries that are generated by the below jsp code. Which attribute of which bean should i set to which value ? UnknownSportForm contains two ArrayLists one called currentSportsList and one called problematicOddsList. The

RE: [SPAM] - class cast exception - Bayesian Filter detected spam

2004-02-13 Thread Gagné Jean-Christian
Make sure your actions extends org.apache.struts.action.Action, and your forms extends org.apache.struts.action.ActionForm For example, given the following struts-config snippet : struts-config form-beans form-bean name=MyForm type=mypackage.MyForm /form-bean /form-beans

RE: Reading Context Data

2004-02-13 Thread Rassmann, Natalie D
smime.p7m Description: S/MIME encrypted message

RE: Reading Context Data

2004-02-13 Thread Rassmann, Natalie D
smime.p7m Description: S/MIME encrypted message

RE: html:link instead of html:submit

2004-02-13 Thread Paul McCulloch
I don't beleve this will submit the values in the form's input fields. I've achieved this functionality by having links which use javascript to set the dispatch form value call submit. Paul -Original Message- From: Gopalakrishnan, Jayesh [mailto:[EMAIL PROTECTED] Sent: 12 February

RE: Reading Context Data

2004-02-13 Thread Villalba Arias, Fredy [BILBOMATICA]
Ok. Let me know if that works. Good luck! -Mensaje original- De: Rassmann, Natalie D [mailto:[EMAIL PROTECTED] Enviado el: viernes, 13 de febrero de 2004 11:32 Para: Struts Users Mailing List Asunto: RE: Reading Context Data Attached is the servlet code from the other context which

Re: Securing Struts - Which is my best option

2004-02-13 Thread Adam Hardy
Joanne, struts can be used to implement security easily using the 'roles=' attribute on the action mappings in your struts-config. This allows you to specify which roles can access an action or not. This depends on use of container-managed security, but I think that the SecurityFilter plugin

[SOLVED] Re: preslect option from nested list

2004-02-13 Thread Linus Nikander
Solved it myself after a bit of experimenting. Presetting =%=\problematicOddsList[\ + i + \].sportTypeId\% to a valid sportTypeId did the trick. //Linus Linus Nikander [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm having trouble pre-selecting one of the html:options/ entries

RE: [SPAM] - RE: html:link instead of html:submit - Bayesian Filter detected spam

2004-02-13 Thread Gagné Jean-Christian
Works well with this javascript. Sorry for the french content... /* Déclancher un submit depuis un lien */ function submitForm(aFormName, aSubmitValue) { var vForm = document.forms[aFormName]; if (vForm == null) { alert(La page ne contient pas de formulaire nommé ' + aFormName + '); }

RE: Reading Context Data

2004-02-13 Thread Rassmann, Natalie D
smime.p7m Description: S/MIME encrypted message

Problem regarding DynaActionForm

2004-02-13 Thread Vishal Arora
I want to use DynaActionForm... my problem is in my jsp i have no of textfields. but they r generated dynamically now in struts-config.xml how should i decaler those dynamic textfields so that struts makes bean clas on it's own. can anyone solve my problem. Thanks in Advance I hope this time

RE: newlines

2004-02-13 Thread Ravi Kulkarni
Hello, I have the same requirement in my project. I am thinking to write a utility method to convert \n to br. I am also looking for the same problem. Does any one have faced similar problem. It would be very helpful if anyone share their experiences with this kind of situation. TIA, Kulkarni

RE: Hi

2004-02-13 Thread Navjot Singh
i could have given you my test case if i had not thrown away earlier. but you ca write a test case that create 10 threads and open up 100 connections. don's close. if your max-pool-size was set to 500 and pool can expand. then in the end, the total open connections returned from the pool should

RE: newlines

2004-02-13 Thread Navjot Singh
can you replace the \n to br/ before sending to jsp -Original Message- From: Turner Benjamin [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 2:33 PM To: Struts-User (E-mail) Subject: newlines hello, i looked in the archives about this problem but couldn't find anything

RE: newlines

2004-02-13 Thread Turner Benjamin
that requires me to set filter=false in bean:write which i don't want to do. Ben -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: 13 februari 2004 12:43 To: Struts Users Mailing List Subject: RE: newlines can you replace the \n to br/ before sending to jsp

DataSource help

2004-02-13 Thread Raman
Hi All, I have a problem regarding the DB connection. In my application i want to log the session time for each session. For that I am using the Session Listner in web.xml somthing like: listenerlistener-classactions.SessionListenerAction/listener-class/listener My problem is: In my

Re: Problem regarding DynaActionForm

2004-02-13 Thread Mark Lowe
There are a few ways of going about this. What are you trying to do? On 13 Feb 2004, at 12:20, Vishal Arora wrote: I want to use DynaActionForm... my problem is in my jsp i have no of textfields. but they r generated dynamically now in struts-config.xml how should i decaler those dynamic

ui gen from db

2004-02-13 Thread shankarr
Hi! One of my requirements is to generate my UI from DB. I am using struts1.1 with tiles and was wondering if anyone has come across the same and if so, what approach was taken. Right now, I am hardcoding my UI to say button and textareas. But, when I provide for UI customization, I would like

Re: ui gen from db

2004-02-13 Thread Mark Lowe
I see no reason why you can't create you tiles defs form data retrieved from you model, rather then defining in xml file. If you're familar with tiles defs then reading the javadocs on tiles should show you the way, I've never done this. But my cousin told me some he works with does the same

how to send checkbox value?

2004-02-13 Thread Sathish Babu K R
hi all i have a prob in sending checkbox value. i like to send check box value of a page to another page when a link is clicked which does not go thru any form.its a struts environment sathish __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing

RE: [OT] Case insensitive Map keys

2004-02-13 Thread Guillermo Meyer
I'm trying the following: public class KeyGeneratedMap extends HashMap { public Object put(Object key, Object value) { return super.put(this.generateKey(key.toString()), value); } public Object get(Object key) {

RE: html:link instead of html:submit

2004-02-13 Thread Samyukta Akunuru
Hi, Could you enclose the snippet please. I modified the struts-config_xml.xdt of my xdoclet-apache-module-1.2b4.jar I made my class extend struts's Dispatch action But xdoclet is not generating the requisite action mappings in my resultant struts-config.xml. also myForm.getDispatch() method

Re: html:link instead of html:submit

2004-02-13 Thread Timothy Stone
Paul McCulloch wrote: I don't beleve this will submit the values in the form's input fields. I've achieved this functionality by having links which use javascript to set the dispatch form value call submit. Paul I was going to say the same thing. Try something like a href=/page?queryString

Re: newlines

2004-02-13 Thread Jim Theodoridis
I think U must write your own jsp tag to display and convert \n to br/ - Original Message - From: Turner Benjamin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, February 13, 2004 1:49 PM Subject: RE: newlines that requires me to set filter=false in

XSL problem... not really struts, but I guess there are people here that know some XSL

2004-02-13 Thread Hendrickx Wesley
Any one has any ideas why the following statement does not work? xsl:if test=following-sibling::article/imgtype != 'none' WHILE the following does print out the correct value xsl:value-of select=following-sibling::article/imgtype/ Thx in advance

Problem with html:link

2004-02-13 Thread Daniel
I'm try to use this: html:link property=teste href=javascript:eSenha()Esqueci a senha/html:link ,and when I open de Internet Expore the hint of this link have the jsessionid value, ex.:(javascript:eSenha();jsessionid=123456), and the link fail, but if I refresh the browser it's ok , don't

client-side validation not working

2004-02-13 Thread Anderson, James H [IT]
Server-side validation is working fine, but I can't seem to get client-side working. I know I must be doing something wrong, but I can't figure out what it is :-( Here's a bit of the tile that uses validation: %@ taglib uri=/tags/struts-bean prefix=bean % %@ taglib uri=/tags/struts-html

RE: DataSource help

2004-02-13 Thread McCormack, Chris
put a trigger on the data table you are selecting from, that inserts a timestamp in to a timestamplog table, when a select is done on your data table. Or create a view and put a trigger on that, to preserve the functionality of the data table (ie not have a trigger fire when you are just doing

Re: client-side validation not working

2004-02-13 Thread Niall Pemberton
Everything looks OK to me. Have you checked what javascript is being generated - use view source in your browser when you are looking at the page. is there a validateActivityViewForm() method and is that method doing the validations you expect? A second thought is how are you submitting your

Re: DataSource help

2004-02-13 Thread Niall Pemberton
What was the error message? Niall -Original Message- From: Raman [mailto:[EMAIL PROTECTED] Sent: 13 February 2004 12:06 To: Struts Users Mailing List Subject: DataSource help Hi All, I have a problem regarding the DB connection. In my application i want to log the session time for

Re: [OT] XSL problem... not really struts, but I guess there are people here that know some XSL

2004-02-13 Thread Kris Schneider
Try: xsl:if test=string(following-sibling::article/imgtype) != 'none' I did a quick test with JSTL's x:if and it seemed to make a difference. Quoting Hendrickx Wesley [EMAIL PROTECTED]: Any one has any ideas why the following statement does not work? xsl:if

RE: client-side validation not working

2004-02-13 Thread Anderson, James H [IT]
Yes, the javascript is being generated which includes a validateActivityViewForm(). As far as I can tell, the javascript looks appropriate. I'm submitting the page using an html:image tag. Do you think the problem might be related to that? -Original Message- From: Niall Pemberton

problem with indexed properties

2004-02-13 Thread Shyam A
Hello, I'm trying to use indexed propeties in my form bean (ActionForm) to handle an array of text fields generated dynamically. Initially, I used a String[] to hold the text field values, and had a problem when validation errors occured in my validate() method, i.e, the values of the text fields

RE: client-side validation not working

2004-02-13 Thread Anderson, James H [IT]
To test the possibility of it being a problem with using html:image instead of html:submit, I replaced html:image by html:submit but got the same result, i.e., the client-side validation is not being invoked. -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent:

RE: problem with indexed properties

2004-02-13 Thread shirishchandra.sakhare
can you get the html code generated by your jsp?(using view source on that perticular page).The parameter name generated may be of help... But i can immediately see one problem. The example you are refering to contains List Of beans...So when a parameter reference like emp[i].name is created ,

RE: how to send checkbox value?

2004-02-13 Thread Wendy Smoak
From: Sathish Babu K R [mailto:[EMAIL PROTECTED] i like to send check box value of a page to another page when a link is clicked which does not go thru any form.its a struts environment You can send parameters on the URL of the link, no need to have a form. Or you can have a form and use

RE: how to send checkbox value?

2004-02-13 Thread Samyukta Akunuru
Hi, How about for an list of checkboxes and we want to send the values of checked parameters-could we do it as part of the URL... Thanks! -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 9:37 AM To: Struts Users Mailing List Subject: RE:

RE: how to send checkbox value?

2004-02-13 Thread Sathish Babu K R
hi all any no of checkboxes,fine. but how to know the box is checked r not and then send in url id u r able to find value of chekbox then u can better put in session r pass as hidden sathish __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing

RE: how to send checkbox value?

2004-02-13 Thread Ferguson, Scott
Have a hidden field that is the actual name of your field, use some jsp code fo set the value of the checkbox at load time based on the value of the hidden field, and use JavaScript to set the hidden field when the checkbox is changed. I have done this in non-Struts apps and expect to be using

RE: how to send checkbox value?

2004-02-13 Thread Samyukta Akunuru
Could you enlcose the sampleThanks! -Original Message- From: Ferguson, Scott [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 9:46 AM To: Struts Users Mailing List Subject: RE: how to send checkbox value? Have a hidden field that is the actual name of your field, use some

RE: how to send checkbox value?

2004-02-13 Thread Sathish Babu K R
hi yep an eg will do finethat should do as, get the value of checkbox stored in a variable whether it is checked r not.. sathish __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html

RE: how to send checkbox value?

2004-02-13 Thread Ferguson, Scott
Stolen from an old project... script function clicked_yn(hidden, option) { var temp = option.value; if (option.checked) { hidden.value = Y; } else { hidden.value = N; } } /script % String val = ; String hasFieldName = ; if(bean.getFieldName() != null

RE: how to send checkbox value?

2004-02-13 Thread Sathish Babu K R
hi scott thanx for code...it will work for modify flow but how abt setup flow? sathish __ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html

RE: how to send checkbox value?

2004-02-13 Thread Samyukta Akunuru
Thanks Scott,willl try mine with this sample -Original Message- From: Ferguson, Scott [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 9:58 AM To: Struts Users Mailing List Subject: RE: how to send checkbox value? Stolen from an old project... script function

RE: how to send checkbox value?

2004-02-13 Thread Guillermo Meyer
We've implemented the same solution in our project with this tag. Hope can help you. Cheers. Guillermo. package ar.com.eds.x71.framework.ui.taglibs.struts.html; import javax.servlet.jsp.JspException; import org.apache.struts.taglib.html.BaseFieldTag; import org.apache.struts.util.RequestUtils;

RE: [OT] Case insensitive Map keys

2004-02-13 Thread Villalba Arias, Fredy [BILBOMATICA]
Good. Well, I can see you are really looking for efficiency. Then, why don't you try fuzzy-logic? It should be even more efficient (and, frankly, even simpler). The key is in the 6th less-relevant bit. Do a bit-by-bit XAND and the result should be '1...01'. HTH, Freddy. -Mensaje

Where are the workflow extensions?

2004-02-13 Thread cnd
Hi I see all this chatter about Struts workflow extensions, but where can I download it? Thanks Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT] - Request against Session

2004-02-13 Thread Mark Lowe
Am i to assume that there's no issue then ? or am i being too stupid to warrant a response? On 13 Feb 2004, at 09:55, Mark Lowe wrote: hi shirish You said something yesterday about never being sure what data is being displayed when using a session scoped action form, have you any references

RE: Problem with html:link

2004-02-13 Thread Gagné Jean-Christian
Hi Daniel, jsessionid is appended by the html:link tag. If you don't want the jsessionid token, don't use the tag. Simply use plain html : a href=javascript:eSenha();click here/a JCG -Message d'origine- De : Daniel [mailto:[EMAIL PROTECTED] Envoyé : vendredi 13 février 2004 16:21 À

RE: RE: html:link instead of html:submit

2004-02-13 Thread Gagné Jean-Christian
It looks like my previous answer to this did't make its way to the list. Posting again... Works well with this javascript. Sorry for the french content... /* Déclancher un submit depuis un lien */ function submitForm(aFormName, aSubmitValue) { var vForm = document.forms[aFormName]; if

RE: client-side validation not working

2004-02-13 Thread Saul Q Yuan
Try to put some alerts in the validateDate javascript function in the validator-rules.xml file and see if the function is called. BTW, what version of Struts you are using? Saul -Original Message- From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004

RE: [OT] - Request against Session

2004-02-13 Thread shirishchandra.sakhare
Hi Mark, Sorry for not responding to your mail. Just got bogged down with work today.Having a lot of issues with the UAT right now.I had started the mail for you.But could not write a satisfactory (Understandable)explanation in short time.So the mail is incomplete till now :-((. I will try to

Re: client-side validation not working

2004-02-13 Thread Niall Pemberton
You seem to be missing a ';' at the end of your onsubmit(), if this is exactly how your code is, that would cause this html:form action=/SelectActivity onsubmit=return validateActivityViewForm(this); Niall - Original Message - From: Anderson, James H [IT] [EMAIL PROTECTED] To: Struts

RE: [OT] - Request against Session

2004-02-13 Thread Robert Nocera
Mark, My interpretation of that comment was that if a user has two windows open and are going back and forth between the windows, the system may use information from one window to update the information in the session that actually relates to the old window. This would be a pretty poor design,

Re: client-side validation not working

2004-02-13 Thread Niall Pemberton
Ignore that...I think I'm talking rubish. Its not a browser issues is it? Does the javascript validation work if you try out the sample webapp? How about posting the html that has been generated? If strust generates everything OK, then its another issue (browser?) but seeing the source might

global forwards with modules (Again)

2004-02-13 Thread Matt Bathje
Hi all. I asked this a while back and never got an answer, so figured I'd ask again and see if there were any bites. I am trying to have the admin area of my project use modules, but so far it is a no go. I setup the module as: init-param param-nameconfig/admin/param-name

RE: [OT] - Request against Session

2004-02-13 Thread shirishchandra.sakhare
This is one of scenerios I was talking about.But I am not sure if this problem is specific to forms being in session.I mean even if the form is in request(but has al teh data necessery to perform the request), even in this case the user may have 2 different windows open(One old and one

Using a java.util.List with a HTML:SELECT

2004-02-13 Thread sean jones
is it possible to use a java.util.List object with an HTML:SELECT control. import java.util.List; import java.util.ArrayList; public final class Roles extends Ojbect { public Roles() {} public static List getRoles() { List r = new ArrayList(); r.add(ADMIN);

RE: Where are the workflow extensions?

2004-02-13 Thread shirishchandra.sakhare
http://www.livinglogic.de/Struts/introduction.html -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 3:04 PM To: Struts Users Mailing List Subject: Where are the workflow extensions? Hi I see all this chatter about Struts workflow

Calling JSPs directly

2004-02-13 Thread Andy Engle
Hi all, I'm working with a web application in which I have multiple pages of information, currently located in PHP files. I want to convert these PHP files into JSPs, and then make them available to be directly called within my web application. I would like to have these JSPs available for

Re: Ben Janes/MaerskDataSverige/MDG is away from the office until 19-02-2004

2004-02-13 Thread Niall Pemberton
I keep getting these messages - I'm thinking its when I send an email to this list - is anyone else getting them? Niall - Original Message - From: Ben Janes [EMAIL PROTECTED] To: Niall Pemberton [EMAIL PROTECTED] Sent: Friday, February 13, 2004 5:08 PM Subject: Ben

Re: Using a java.util.List with a HTML:SELECT

2004-02-13 Thread Oliver Thiel
Hi, You can try something like this: 1. Instead of return r --- request.setAttribute(formprop,r); 2. In your JSP select name=formprop logic:iterate id=field name=formprop option value=bean:write name=field property=formprop[]/bean:write name=field property=formprop[]//option

Re: [OT] - Request against Session

2004-02-13 Thread Mark Lowe
Thats okay. I should be doing be work too. :o) On 13 Feb 2004, at 17:26, [EMAIL PROTECTED] wrote: Hi Mark, Sorry for not responding to your mail. Just got bogged down with work today.Having a lot of issues with the UAT right now.I had started the mail for you.But could not write a satisfactory

Re: [OT] - Request against Session

2004-02-13 Thread Mark Lowe
Cool thats good news then , i thought was missing something. So by copying properties into a session scoped object from a request based form should avoid a lot of these problems then (assuming you don't populate new windows from the session that is). The properties from the request based form

RE: Back to the originating screen...

2004-02-13 Thread shirishchandra.sakhare
Hi, Had almost forgetten about your mail :-(( We have following action hierarchy. AbstractApplicationAction(As per struts best üractice guidelines...) | |--| | | AbstractOpenAction

Re: Ben Janes/MaerskDataSverige/MDG is away from the office until 19-02-2004

2004-02-13 Thread Mark Lowe
yeah.. there's always someone :o) On 13 Feb 2004, at 18:12, Niall Pemberton wrote: I keep getting these messages - I'm thinking its when I send an email to this list - is anyone else getting them? Niall - Original Message - From: Ben Janes [EMAIL PROTECTED] To: Niall Pemberton [EMAIL

RE: how to send checkbox value?

2004-02-13 Thread Ferguson, Scott
The jsp code in the middle should handle the setting of the checkbox value at load time. The JavaScript code at the start handles the value after the page has been loaded. saF -Original Message- From: Sathish Babu K R [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 12:02 PM

Re: Using a java.util.List with a HTML:SELECT

2004-02-13 Thread Niall Pemberton
The html:options and html:optionsCollection... tags expect a collection of beans - not String values. If you put the values in beans then you it goes something like html:select name=myForm property=roleName html:optionsCollection name=myForm property=roleList label=roleName

array iteration

2004-02-13 Thread LILES, DAVID (CONTRACTOR)
I am trying to iterate through a two dimensional array and have hit a wall below is source code from a class that displays the values in a calendar style format. How can I do the same thing by using the Struts iterate tags? public String formatMatrix(int[][] aMatrix) { StringBuffer

RE: Back to the originating screen...

2004-02-13 Thread Paul-J Woodward
I agree. I have several 'wizards' in my site. The only sensible way I could do this was to have a separate prepare and complete action. If you want to do an operation and return to the same screen, simply define a 'repost' action forward for the completion that forwards to the prepare action.

RE: Back to the originating screen...

2004-02-13 Thread Villalba Arias, Fredy [BILBOMATICA]
Thanx, Shirish. I really appreciate it! Regards, Freddy. -Mensaje original- De: Paul-J Woodward [mailto:[EMAIL PROTECTED] Enviado el: viernes, 13 de febrero de 2004 18:33 Para: Struts Users Mailing List Asunto: RE: Back to the originating screen... I agree. I have several 'wizards' in

RE: RE: html:link instead of html:submit

2004-02-13 Thread Voinea, Marina
Thanks a lot Jean-Christian, this is a complete example, I will try it, but I was wondering if anybody has done same thing with Struts's html:link tag. I'll try to see if it works there, probably I'll have something like: onClick=submitForm('MyForm', 'MyDispatch'); The other problem is

keeping data between requests

2004-02-13 Thread Kelly Goedert
Hi all, I would like to know what would be the best approach to a situation like this: I have a form named formA which executes actionA, then he is forwarded to formB where he will execute actionB on submit. The problem is: when I execute actionB, I have to know about some data the user

Re: array iteration

2004-02-13 Thread Niall Pemberton
Why not just try it and see if it works - should do - have and iterate tag embedded in another iterate tag - Original Message - From: LILES, DAVID (CONTRACTOR) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, February 13, 2004 5:29 PM Subject: array iteration I am trying to

Re: keeping data between requests

2004-02-13 Thread Guilherme Barile
Save it on a session. on FormA HttpSession session = request.getSession(); session.setAttribute(somename, someObject); on FormB HttpSession session = request.getSession(); MyObject someObject = (MyObject) session.getAttibute(somename); On Fri, 2004-02-13 at 15:51, Kelly Goedert wrote: Hi all,

Re: keeping data between requests

2004-02-13 Thread Niall Pemberton
You can keep the form is session scope, which will preserve their values. Or... Have one ActionForm which contains all the data from formA and formB and store the values from formA as hidden fields on formB. That way when formB gets submitted, all the values from formA will also be populated.

RE: Calling JSPs directly

2004-02-13 Thread Wendy Smoak
From: Andy Engle [mailto:[EMAIL PROTECTED] I'm wondering if making JSPs available to the user in this manner is a poor practice, and if so, what would be a better way of doing it? Furthermore, will I run into any problems with the Struts custom tags or tiles by taking this approach? It

Re: Using a java.util.List with a HTML:SELECT

2004-02-13 Thread sean jones
i am aware of this option but DAO only returns a list of Strings and i prefer that to a list of beans. The reason is i am more interested in the role name than the role_id. I plan to delete all the roles then put them back with a batchupdate. This allows the user to selected all the roles

struts + IBatis + EJB

2004-02-13 Thread Kelly Goedert
Hello, has anyone ever tryed (or did) put this 3 pieces (struts, IBatis and EJB) to work together? Kelly. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: array iteration

2004-02-13 Thread sean jones
Niall Pemberton niall.pemberton at blueyonder.co.uk writes: Why not just try it and see if it works - should do - have and iterate tag embedded in another iterate tag - Original Message - From: LILES, DAVID (CONTRACTOR) DAVID.LILES at DFAS.MIL To: struts-user at

Session Problem

2004-02-13 Thread Ramachandran
Hi to all, I am facing problem in session varaible. I will exaplain the scenario here. When a user logins, I will keep all the users id in a session variable. I am listing all the id's in a select box. It is listing now perfectly. But when the same logged in users adds another user,

RE: [OT] Case insensitive Map keys

2004-02-13 Thread Brian Lee
Have you tried just using new Integer(str.hashCode())? It should be pretty quick. Its implementation is similar to yours below but has fewer operations so it should be faster (and more standard). BAL From: Villalba Arias, Fredy [BILBOMATICA] [EMAIL PROTECTED] To: Struts Users Mailing List

RE: struts + IBatis + EJB

2004-02-13 Thread Dalmia, Swati
Yes. In my application we are using this combination. It rocks!! -Original Message- From: Kelly Goedert [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 11:27 AM To: Struts Users Mailing List Subject: struts + IBatis + EJB Hello, has anyone ever tryed (or did) put this 3

RE: struts + IBatis + EJB

2004-02-13 Thread Samyukta Akunuru
Ay quick newbie sample tutorial on iBATIS. Truly, hearing for first time! -Original Message- From: Dalmia, Swati [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 12:38 PM To: Struts Users Mailing List Subject: RE: struts + IBatis + EJB Yes. In my application we are using this

RE: [OT] Case insensitive Map keys

2004-02-13 Thread Guillermo Meyer
The problem is that new Integer(hello.hashCode()) and new Integer(heLLo.hashCode()) are different integers, and I want them to be equals. Fredy's solution sounds interesting (Do a bit-by-bit XAND). We'll try it and let you know... -Original Message- From: Brian Lee [mailto:[EMAIL

RE: [OT] Case insensitive Map keys

2004-02-13 Thread Hookom, Jacob
Why don't you always just do string.toUpperCase() on get's and put's One liner -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: Friday, February 13, 2004 12:48 PM To: 'Struts Users Mailing List' Subject: RE: [OT] Case insensitive Map keys The problem is

  1   2   >