how to handle refresh button ?

2003-12-08 Thread Kalra, Ashwani
hi, I am adding a blank row in my jsp page by pressing the button and submitting to the same page. The problem is that when user presses the referesh button, It should not add a row. Is there any standard way of handling this problem ? TIA Ashwani Kalra

Antwort: how to handle refresh button ?

2003-12-08 Thread Manuel Lenz
Hi, what does happen when the refresh button is pressed? You can test anyway if the user has pressed submit or refresh button. And you can add an if-expression which adds a row only if submit button is pressed. Manuel

html:form tag

2003-12-08 Thread Viral_Thakkar
I am converting a html form to .jsp page. Html file contains following form code. form name=frmName tag. This form name is getting used by few javascript functions. At present I have this line in .jsp page for form tag. html:form action=action1.do Which attribute in the html:form tag

RE: Antwort: how to handle refresh button ?

2003-12-08 Thread Kalra, Ashwani
Hi, I am talking about the refresh button of the browser. When user presses it, How I figure out that this is different request. I can always use some hidden field etc to detect this. Any other direct way ? -Original Message- From: Manuel Lenz [mailto:[EMAIL PROTECTED] Sent: Monday,

RE: html:form tag

2003-12-08 Thread Viral_Thakkar
Yes, u r rite. Thanks kadir for prompt reply. -Original Message- From: Kathiresan Murugesan [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 2:06 PM To: Viral_Thakkar Subject: RE: html:form tag Hi You can use the name attribute value you given in your form bean mapping in

AW: Pass A String From Servlet And Write Out Its Value in JSP

2003-12-08 Thread Samuel . Opoku-Boadu
bean:write name=c/ -Ursprungliche Nachricht- Von: Caroline Jen [mailto:[EMAIL PROTECTED] Gesendet: Montag, 8. Dezember 2003 03:37 An: [EMAIL PROTECTED] Betreff: Pass A String From Servlet And Write Out Its Value in JSP My servlet has a String called 'category'. I want to pass the

html:text with pattern

2003-12-08 Thread Budi Rostiarso
Hi all, is there any extension to html:text which accept pattern as in jstl formatNumber, i.e can handle percentage conversion? So if the actual property value is 0.45, then the generated html input tag will display 45 and vice versa? Or do i have to manually convert the values? TIA, bdr.

Re: how to handle refresh button ?

2003-12-08 Thread Caroline Lauferon
Hello! I think you should use redirect attribute of your action mapping. you should read the thread begun by : From: Antony Paul [EMAIL PROTECTED] To: struts [EMAIL PROTECTED] Sent: Monday, December 01, 2003 1:28 PM Subject: forward vs redirect ? - Hope it helps. Caroline hi,

downloading of files

2003-12-08 Thread Viral_Thakkar
Is there any struts support to download the files? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: downloading of files

2003-12-08 Thread Firat TIRYAKI
what exactly you want to do? please be more spesific. F. - Original Message - From: Viral_Thakkar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, December 08, 2003 11:33 AM Subject: downloading of files Is there any struts support to download the files?

Re: downloading of files

2003-12-08 Thread Kwok Peng Tuck
I assume that your Action prompts the user (the guy using the browser) to save the file ? Viral_Thakkar wrote: Is there any struts support to download the files? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: how to handle refresh button ?

2003-12-08 Thread Kalra, Ashwani
hi Caroline, Redirect has problem that request parameters will be lost. But I think I give it a try.. Thanks Ashwani Kalra http://www.geocities.com/ashwani_kalra -Original Message- From: Caroline Lauferon [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 2:59 PM To: Struts

Re: Very Troubled in Finding Ways to Pass a Variable to a Class

2003-12-08 Thread Max Cooper
How does your FindEditorData class get called? It is the responsibility of the caller to tell this class who the user is. I assume that there is an Action mixed in here since the call is made in response to an HTML form being submitted. Have your Action figure out who the user is

RE: Setting browser download dialogue box captions and suggesting file names

2003-12-08 Thread Peter Hilton
To make a JSP respond as a CSV download I start the JSP like this: % response.setContentType(text/csv); response.setHeader(Content-Disposition, attachment; filename=some-data.csv); % For Word, you probably need this: % response.setContentType(application/msword);

Re: how to handle refresh button ?

2003-12-08 Thread Firat TIRYAKI
send a random number, seed by date, that's like - (?random=10002373); F. - Original Message - From: Kalra, Ashwani [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, December 08, 2003 11:45 AM Subject: RE: how to handle refresh button ? hi Caroline,

RE: downloading of files

2003-12-08 Thread Viral_Thakkar
I have a screen which provides support to upload and download the files. To upload the files, I am using the struts example. Now, I need to know how to implement the download/display details functionality. Regards, Viral -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]

Re: downloading of files

2003-12-08 Thread Kwok Peng Tuck
Hmm, how about a page which provides a link or button(form) to the action which then starts the download ? Of course some variable can be submitted with the form to indicate to the Action which file should be sent to the browser. As for sending the content to the browser, you can just write

Re: downloading of files

2003-12-08 Thread Firat TIRYAKI
Define a download accessor class (that you'll write using servlet functionality) in the web.xml file that manages the file when requested. F. - Original Message - From: Viral_Thakkar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, December 08, 2003 12:00

ActionForm and password fields.

2003-12-08 Thread Antony Paul
Hi, How to tell struts that I dont want to display the password if validation fails ? What about other form elements ? rgds Antony Paul. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: ActionForm and password fields.

2003-12-08 Thread David Chelimsky
Assuming you're using struts validator, this goes in your ActionForm class: public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) { ActionErrors errors = super.validate(mapping, request); if (errors != null) { setPassword(null); } return errors; }

Re: ActionForm and password fields.

2003-12-08 Thread Antony Paul
Thanks for reply. So for all the fields that I dont want to display set that to null. What if it is DynaActionForm. I dont use validator because I am porting an application to Struts of which 20% is completed and we have written JavaScript for it. rgds. Antony Paul. - Original Message -

No getProperties() on ActionErrors?

2003-12-08 Thread Jeroen Breedveld
Hi all, I have the following problem: I want to access ActionError objects using the EL language in a JSP page like this (for a reason I don't want to work with the html:error taglib): c:forEach items=${requestScope}['org.apache.struts.action.ERROR'].properties var=error divc:out

Tiles, Definition inheritence

2003-12-08 Thread Oliver Wulff
Hi I'm quite new to Tiles and I've got the following problem: I've defined the following default definition: definition name=.mainLayout path=/layout/classicLayout.jsp put name=title value=Berechtigung WEB with Tiles / put name=header value=/top_menu.jsp / put name=menu

designing simple scheduler

2003-12-08 Thread Raman
Hello, I am using struts/beans in my application. I want a scheduler kind of thing that after regular interval of time should check the db and send mails. I want some suggestions regarding running it on red hat linux and way to go for this. Cheers, Raman Garg

Re: designing simple scheduler

2003-12-08 Thread Vic Cekvenich
With a layered MVC application you can re-use beans outside of Struts. Have cron call beans application. I do. .V Raman wrote: Hello, I am using struts/beans in my application. I want a scheduler kind of thing that after regular interval of time should check the db and send mails. I want some

Problem with Struts-Validation : datePattern and JavaScript

2003-12-08 Thread Rouven Gehm
I want to know if someone has updated the javascript code for the date validation in the validate-rules.xml ? Because the datePattern option, doesn't work correctly, only datePatternStrict will be validated. I have searched the user mailing list, for this problem, but have not found any

RE: downloading of files

2003-12-08 Thread Viral_Thakkar
Should I write the action class for the download functionality or servlet code required? -Original Message- From: Firat TIRYAKI [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 3:45 PM To: Struts Users Mailing List Subject: Re: downloading of files Define a download accessor

Re: downloading of files

2003-12-08 Thread Firat TIRYAKI
well, if you want to authenticate users to download the files, your software should handle the direct file requests (for example http://localhost/download/x.gif), because the direck file requests does not call action servlet in a standart struts designed web.xml file. With a servlet you can

Re: designing simple scheduler

2003-12-08 Thread Markus
Hi, search the mail archive. This thread was discussed about one or two weeks ago. Regards, Markus Hello, I am using struts/beans in my application. I want a scheduler kind of thing that after regular interval of time should check the db and send mails. I want some suggestions

RE: downloading of files

2003-12-08 Thread Viral_Thakkar
Can u please look at http://www.mail-archive.com/[EMAIL PROTECTED]/msg15750.html and tell me what code need to go in the download action class? -Original Message- From: Firat TIRYAKI [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 5:39 PM To: Struts Users Mailing List

Re: downloading of files

2003-12-08 Thread Firat TIRYAKI
Viral, I'm talking about the servlet, not struts action, mine is an alternative for you, and the thread you send is about the actions, use it if you want... F. - Original Message - From: Viral_Thakkar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED]

how to submit form using html:link tag

2003-12-08 Thread Nisith Dash
Hi, Can anyone of you help me with this..i have a hyperlink in my JSP on clicking which i want to submit an action form with some request parameters along with the form.Clicking the hyperlink in the JSPshouldideally perform the following task which is done by this _javascript_ below:

RE: how to submit form using html:link tag

2003-12-08 Thread Tim Lucia
html:link ... onclick=x(arg); .../ Tim Lucia -Original Message- From: Nisith Dash [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 7:28 AM To: Struts Users Mailing List Subject: how to submit form using html:link tag Hi, Can anyone of you help me with this..i have a

Re: how to submit form using html:link tag

2003-12-08 Thread Nisith Dash
in case html:link is specified , you have to give either a forward, or a href or a page attribute. onclick will not work here..the error is: Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of forward, href, how can i specify the forward attribute so that

RE : how to submit form using html:link tag

2003-12-08 Thread Franck
If you don't want to use Javascript to submit your form, I think you can use a submit button with a special CSS (on IE). The submit button will then looks like an hyperlink. Bye -- Franck Lefebure - To unsubscribe, e-mail:

Re: Struts and Commons Chain

2003-12-08 Thread Vic Cekvenich
This is very interesting I think. .V Hookom, Jacob wrote: I was looking at chain's implementation, instead of executing the commands with the visitor pattern, wouldn't a more powerful/flexible method be to implement it using a filter pattern? See:

Re: Link-to-action?

2003-12-08 Thread Theodosios Paschalidis
Dennis, thank you very much for the prompt reply. I had a brief look at the example application but upon googling for a link tag in struts I found the following http://husted.com/struts/resources/linkParam.htm (source code included) This seems to be exactly what I need (had no time to try using

getting the form name

2003-12-08 Thread Arne Brutschy
Hello, I'm trying to subclass the TextTag.java. I need to get the form name assiciated with this input field. How can I retrieve this? As I understand it right, the form field gets the name of the form from the associated actionmapping. But how can I get the form tag, the text tag is nested

Re: ActionForm and password fields.

2003-12-08 Thread David Chelimsky
Sorry, I have no experience w/ DynaActionForms. Someone else is going to have to field this one - anybody? - Original Message - From: Antony Paul [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, December 08, 2003 5:00 AM Subject: Re: ActionForm and

RE: getting the form name

2003-12-08 Thread Jarnot Kari Contr HQ SSG/STN
You could do this: FormTag htmlForm = (FormTag) TagSupport.findAncestorWithClass(this, FormTag.class); String actionFormName = htmlForm.getBeanName(); -Original Message- From: Arne Brutschy [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 7:42 AM To: Struts Users Mailing List

RE: how to submit form using html:link tag

2003-12-08 Thread Tim Lucia
This works for me: html:link href=# onclick=document.courseForm.submit();Done/html:link Put whatever javascript you want in the onclick handler. Tim Lucia -Original Message- From: Nisith Dash [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 7:51 AM To: Struts Users

RE: Tiles, Definition inheritence

2003-12-08 Thread List Mailbox
Only the template definition called can 'see' the Tiles context and access the attributes. In your case the classicLayout.jsp can use the input and result attributes. If the bodyTwoColumns.jsp is to be your layout then changing classicLayout.jsp to have the two columns format would be the best

RE: designing simple scheduler

2003-12-08 Thread Voinea, Marina
Vic, can you please explain a bit more how do you reuse your beans ? (and have cron job call yor application - you know the idea of separating layers, how is your architecture like now ?) (we would need something similar...) Thanks, M. -Original Message- From: Vic Cekvenich

Re: getting the form name

2003-12-08 Thread Arne Brutschy
Jarnot Kari Contr HQ SSG/STN wrote: You could do this: FormTag htmlForm = (FormTag) TagSupport.findAncestorWithClass(this, FormTag.class); String actionFormName = htmlForm.getBeanName(); Hey, that was excactly what I needed! Thanks alot, Arne

Antwort: RE: Tiles, Definition inheritence

2003-12-08 Thread Oliver Wulff
Wouldn't it make sense that the inserted tiles has access to the tiles context either? I think, my requirement is quite common. I think that the main layout of a web application won't change but the body tile contains sometimes one tile or is splitted in an upper- and lower-part or a left- and

RE: how to Remove the cached JSP's?

2003-12-08 Thread Julia Weaver
Thanks. I deleted java n class from 'WORK' directory, but still keep getting same/similar error: in the manu.jsp, I changed app.menu.profile to app.menu.po, but still show the value of app.menu.profile. item titleapp.menu.po/title item titleapp.menu.po.browse/title linkPoBrowse.do/link

Re: how to Remove the cached JSP's?

2003-12-08 Thread Martin Gainty
in that case you should Stop Websphere and then Start Websphere most appservers and webservers will load JSPs on startup and will the program will retain jsps after precompiling into memory unless configured NOT to do so.. Bouncing the server ALWAYS works -Martin - Original Message -

RE: designing simple scheduler

2003-12-08 Thread Turansky, Mark
how to reuse beans? You should be making your beans without any thought of the web whatsoever. THEN your Actions can calls your beans. This way, the Actions are clients of your API. By having an API containing business logic (instead of business logic in your actions), you promote reuse.

RE: Setting browser download dialogue box captions and suggesting file names

2003-12-08 Thread Mike Parfitt
Hi Peter, Apart from the file name, the only difference between your suggestion and what I am doing is that :- 1) your Java code is in a JSP, while mine is in an Action form 2) you are using text/csv as the content type, while mine is application/msword Perhaps by having my code in an

Re: how to Remove the cached JSP's?

2003-12-08 Thread Julia Weaver
Thanks. I did Stop Websphere, restart my computer, and then Start Websphere again. But still not work. Maybe I should change something in configuration. Could you please give me further instruction how to change in configuration? or something wrong in the tile definition? definition

Re: [OT] Athentication filter doesn't filter actions

2003-12-08 Thread Arne Brutschy
Ralf Rapude wrote: I've checked it out before I post the solution and it works fine here. (Tomcat 4.1.27). AB ideas. BTW, I'm using Tomcat 5 and 2.4 servlets.. So maybe it is a problem of using Tomcat 5 (isn't it still beta?). Maybe you should download a stable version for another attempt.

RE: Tiles, Definition inheritence

2003-12-08 Thread Hibbs, David
This is (IMHO) a classic issue with tiles. The Tiles meaning of 'inheritance' isn't quite the same as in Java or other OO concepts. Tiles inherit values from their parents, and can override those values. However, adding new values is not supported. The only way [that I've

Re: designing simple scheduler

2003-12-08 Thread Vic Cekvenich
Turansky, Mark wrote: how to reuse beans? You should be making your beans without any thought of the web whatsoever. THEN your Actions can calls your beans. This way, the Actions are clients of your API. By having an API containing business logic (instead of business logic in your actions),

about using DynaActionForm in SQL Maps framework with Struts...

2003-12-08 Thread Paul McCartney
I would use two things: a Data Transfer Object(DTO) and BeanUtils.copyProperties(). I would use a DTO because I do not want to pass a view component like ActionForm directly to a model component like your baseDAO. The DTO might look something like this: public class Author { String

RE: designing simple scheduler

2003-12-08 Thread Voinea, Marina
yes, calling APP layer API (beans) from the UI is OK. I was thinking if it is possible the other way around : to somehow inform the UI that soemthing happened on the backend and it has to display a message accordingly. (kind of polling from UI to back end). The APP layer bean triggering an event

Re: designing simple scheduler

2003-12-08 Thread Vic Cekvenich
No, no that is not what we are saying. Just call the beans from your UI. In this case your UI is console. Same bean that you allready tested. Struts is the fastest way to develop that I know (15 years of IT for me) So your console app check the JavaMail and saves it or send it from db. Same

Re: how to Remove the cached JSP's?

2003-12-08 Thread Martin Gainty
for caching properties on IBM http server: http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/040502.html Specifically look at httpd.conf in the IBM Http Server: AfpaEnable AfpaCache on AfpaLogFile c:/Program Files/IBM HTTP Server/logs/afpalog V-ECLF AfpaDynaCacheMax 10

RE: designing simple scheduler

2003-12-08 Thread Turansky, Mark
Online is just the icing. Right! The business logic of the application should be UI agnostic. The logic shouldn't know if it was invoked from a console application, a Swing gui app, or a web (Struts!) application. The business logic is (or should be) the same. -Original Message-

RE: designing simple scheduler

2003-12-08 Thread ian_d_stewart
This probably goes without saying, but in addition to being UI agnostic, your business logic should also be datastore agnostic. To be truly abstract, it should be as easy to move your backend from RDBMS to LDAP or XML as it is to move the UI from Web to GUI to Console. Ian

[OT] Looking for a Taglib

2003-12-08 Thread Linda Coleman
Hi List, I have several pages that need to show users a list of available options in one listbox, an add remove button a list box that shows the options they've already selected. This fairly common in UI's I've seen this on a few web pages something like this... Available States

Struts User Roles

2003-12-08 Thread Tiago Henrique Costa Rodrigues Alves
Where can I find Struts Roles documentation? Tiago Henrique C. R. Alves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Pass A String From Servlet And Write Out Its Value in JSP

2003-12-08 Thread Brice Ruth
The easiest way to do this isn't with a Struts tag, per se, but with a JSTL tag, I think - just use the JSTL 1.0 (or 1.1) tag library like so: % taglib uri=http://java.sun.com/jstl/core; prefix=c % c:out value=${c}/ That *should* work for either a session-scoped variable or a request-scoped

Select options tag

2003-12-08 Thread vasudevrao gupta
I have 20-25 combo-boxes in a single page.Each combo-box contains number of values and corresponding description. If I use a collection to populate all the options in all the combo-box,I have to define 20 javabeans and then keep them in scope. Is there any other easier way to do it using Struts

Re: Using A DynaActionForm To Populate A Collection In The Object It Represents

2003-12-08 Thread Jame Lathren
Okay, given that this should work, please let me provide an example of a situation I am having great difficulty with: I am working in a Java 1.4.2 (Tomcat 4.1.29), Struts 1.1 environment using JSTL 1.1. I am attempting to take any changes a user makes to the values on the form, and review

html:errors Tag Deprecated?

2003-12-08 Thread John Topley
I read somewhere that the html:errors tag is going to be deprecated and that html:messages should be used instead. What's the correct syntax for using it to display errors? Any code examples appreciated. Thanks, John - To

RE: .do's come back as 404 file not found

2003-12-08 Thread Dhaliwal, Pritpal (HQP)
All ritey... Time to bring up my good ol eclipse debugger.. It would be verrryyy nice if others can tell me about SUCH experiences with struts.. And what they tried to resolve.. It would help me out in debugging this.. Thanks for the responses guys.. Paul Dhaliwal -Original Message-

RE: [OT] IE problem. stumped

2003-12-08 Thread Dhaliwal, Pritpal (HQP)
How much javascript is there?? Funny things happen when there is lots of javscript involved.. Esp when you are messing around with spans, their visibility being changed with js and all.. I generally stay away from javascript, unless really needed.. Paul Dhaliwal -Original Message-

Re: downloading of files

2003-12-08 Thread Christian Bollmeyer
I have a compression servlet demo available from my site (www.christianbollmeyer.de) which should basically do everything you're asking for. Used this to track down someone's problem with gzip and different browser clients, so it's a hack more or less. The code from the doGet() method goes to the

Re: ActionForm and password fields.

2003-12-08 Thread Jerome Curlier
You could use the redisplay attribute: html:password property=password redisplay=false / Jerome Antony Paul [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, How to tell struts that I dont want to display the password if validation fails ? What about other form elements ?

RES: [OT] Looking for a Taglib

2003-12-08 Thread Tiago Henrique Costa Rodrigues Alves
You will need just JavaScript for this kind of job... You should take a look at: JavaScript DOM It is quite simple to do this... You will see Tiago Henrique C. R. Alves Analista de Sistemas Politec - CSS Tel: 3038-6952 -Mensagem original- De: Linda Coleman [mailto:[EMAIL

Re: How to detect that session has expired ?

2003-12-08 Thread Kirk Wylie
Ashish Kulkarni wrote: HI if u are using servelt 2.3 , then u can use servelt filter, in this filter u can have logic to check session before each request so u dont need to add any code in jsp or action class If he's using Servlet 2.3, then he can also use the ServletContextListener in

RE: Antwort: RE: Tiles, Definition inheritence

2003-12-08 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Form with a Form

2003-12-08 Thread Ramadoss Chinnakuzhandai
Hi, Can we define a form within a form...if so can you guide me . Actually in my jsp I wanted to perform two different action with respect to button pressed.so If I define global form I can only submit the global action defined in that form but I wanted to submit different action

RE: [OT] Looking for a Taglib

2003-12-08 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using A DynaActionForm To Populate A Collection In The Object It Represents

2003-12-08 Thread Kris Schneider
Not sure if it's a typo, but JSTL 1.1 is for JSP 2.0 (e.g. Tomcat 5). For Tomcat 4, you'll want JSTL 1.0. Ignoring JSTL, what happens with the nested taglib: %@ taglib prefix=nested uri=http://jakarta.apache.org/struts/tags-nested; % ... html:form ... nested:iterate property=tank

Re: Using A DynaActionForm To Populate A Collection In The Object It Represents

2003-12-08 Thread Jame Lathren
JSTL 1.1 was a typo - I am using JSTL 1.0. Thanks.

Re: RES: [OT] Looking for a Taglib

2003-12-08 Thread Daniel H. F. e Silva
Hi Tiago and Linda, JavaScript is really the best option to this task in my opinion. I suggest taking a look at http://javascript.internet.com in section Form. Lots of nice scripts! Including one script that does what Linda wants. Hope my tip was useful. Regards, Daniel Silva. --- Tiago

RE: Form with a Form

2003-12-08 Thread Ajay Kalidindi
I have a suggestion. You can add a HIDDEN field, write a java script on click of multiple buttons Like ADD, DELETE, EDIT, RENAME buttons. What the java script will do is update HIDDEN variable and submit. I have not come across form within a form in HTML. Regards Ajay Kalidindi -Original

RE: [OT] Looking for a Taglib

2003-12-08 Thread Linda Coleman
It's pretty early in the game for me so I'm open to any suggestion. :) On some pages I have more than one of these list box choosers (for lack of a better name). I suppose as long as I pass the two list boxes buttons, that would work. I was thinking is would be nice if I could just treat the

RE: Form with a Form

2003-12-08 Thread Ramadoss Chinnakuzhandai
You are right Ajay...I agree with that...but I want to do it without using Javascript and hidden variable using Struts -Original Message- From: Ajay Kalidindi [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:40 PM To: Struts Users Mailing List Subject: RE: Form with a Form I

RE: [OT] Looking for a Taglib

2003-12-08 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts User Roles

2003-12-08 Thread Vic Cekvenich
Struts users Servlets Role for it's tags, etc. This snipet is from WEB.XMl (and not Struts.xml): security-constraint web-resource-collection web-resource-nameSecure/web-resource-name url-pattern/do/loginPg/*/url-pattern

iterate over a list of tiles

2003-12-08 Thread Paul-J Woodward
Dear all, I would like to have a tile which contains a sequence of other tiles, the definition of which comes from a putList. Put into context, the right hand bar of all pages is a sequence of 'snippets' which are different for each page. I'd like to create a putlist for each page and place it

RE: Tiles, Definition inheritence

2003-12-08 Thread List Mailbox
The issue that keeps coming up is the ability for jsps other than the page= (template) jsp to have access to the attributes. John provided a good technique using a second definition. As to the definitions and the template's ability to access attributes - you can add attributes to extended

RES: [OT] Looking for a Taglib

2003-12-08 Thread Tiago Henrique Costa Rodrigues Alves
the java script function that you are looking for is something like this... function addItemToListBox(itemIndex, srcListBox, destListBox){ //srcListBox and destListBox are objects // You will use JavaScript DOM HERE //Its something like this:

RES: Struts User Roles

2003-12-08 Thread Tiago Henrique Costa Rodrigues Alves
Thanks, I will take a better look... Tiago Henrique C. R. Alves Analista de Sistemas Politec - CSS Tel: 3038-6952 -Mensagem original- De: Vic Cekvenich [mailto:[EMAIL PROTECTED] Enviada em: segunda-feira, 8 de dezembro de 2003 15:57 Para: [EMAIL PROTECTED] Assunto: Re: Struts User Roles

RE: [OT] Looking for a Taglib

2003-12-08 Thread Linda Coleman
You're right, the existing taglib doesn't address the javascript issue. Maybe configuration was the wrong word. I'm really talking about defining all the components that are part of composite chooser. Even with taglibs in the jsp, you need a label for each list box, each list box, a collection

RE: Tiles, Definition inheritence

2003-12-08 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: RES: [OT] Looking for a Taglib

2003-12-08 Thread Linda Coleman
Yes thanks for the help! There are actually a few that help! L:) Daniel H. F. e Silva wrote: Hi Tiago and Linda, JavaScript is really the best option to this task in my opinion. I suggest taking a look at http://javascript.internet.com in section Form. Lots of nice scripts! Including one script

RE: Form with a Form

2003-12-08 Thread Ramadoss Chinnakuzhandai
Hi, If at all I can use JavaScript in Struts...pls guide me how can I implement the same Tnx in Advace, -Ramadoss -Original Message- From: Ajay Kalidindi [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 1:40 PM To: Struts Users Mailing List Subject: RE: Form with a

RE: Tomcat 4.1.29 Struts

2003-12-08 Thread Mukund Ramadoss
Hi David, Thanks for your mail. Actually I don't still know what is causing the problem. Now based on your mail, I've tried with both the following DTDs: http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd;struts-conf ig_1_1.dtd

RES: Form with a Form

2003-12-08 Thread Tiago Henrique Costa Rodrigues Alves
You can use javascript with struts like any other static HTML page... just add your java script body: script language=JavaScript src=file.js/script and you can call your insite your HTML STRUTS TAGS like this: html:button property= name= value= onclick=js_fuction_here / replace onclick for

RE: [OT] Looking for a Taglib

2003-12-08 Thread John . Pitchko
BDY.RTF Description: RTF file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] Looking for a Taglib

2003-12-08 Thread Linda Coleman
I really like the tiles idea. I'll give that a try. I wasn't really excited about the idea of rolling my own tag lib--which was why I was asking for input! ;} Thanks for your ideas suggestions. It's always good to get a variety of viewpoints. One of the joys of the list!! Thanks!!! L:)

RE: Form with a Form

2003-12-08 Thread Khalid K.
This sounds like a DispatchAction problem. If you use DispatchAction, (look the API for more info) then in your jsp: html:hidden property=method value=display/ html:button property=edit_button onclick=form.method.value='edit' Edit /html:button html:button property=update_button

RE: Form with a Form

2003-12-08 Thread Richard Yee
Ramadoss, The HTML spec prevents you from nesting forms. You can have multiple forms on a page but not one within another. You should be able to accomplish your goal with hidden fields and JavaScript as Ajay has prescribed. You can then handle it with a DispatchAction Regards, Richard ---

RE: Form with a Form

2003-12-08 Thread Ramadoss Chinnakuzhandai
-Original Message- From: Khalid K. [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 3:08 PM To: Struts Users Mailing List Subject: RE: Form with a Form This sounds like a DispatchAction problem. If you use DispatchAction, (look the API for more info) then in your jsp:

RE: Tiles, Definition inheritence

2003-12-08 Thread List Mailbox
Gotcha - actually no jsp has access but the template at any level - so even the jsps defined at the highest level in my case header.jsp do not have access. Tiles uses the Tiles Context - not the page (which would not work either), request, session, or application - so only the template has access

RE: Tomcat 4.1.29 Struts

2003-12-08 Thread Yee, Richard K,,DMDCWEST
Mukund, Is this really your struts-config.xml? ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd; struts-config /struts-config Where are your form-bean and action mapping definitions? The cause of your

RE: iterate over a list of tiles

2003-12-08 Thread List Mailbox
This is possible - on my site I have an option - the user can select a simple template or one with a portal look and feel. Down the right side of the page on the portal view are a series of tiles each of which stands on its own, in other words they are independent of the page being displayed.

  1   2   >