Re: Question about buttons

2003-06-04 Thread Nagendra Kumar O V S
hi, u can obviously give any no of submit buttons with the property name in the action form. and u can get the value and go accordingly another intersting feature in struts is that , if u extend ur action class with DispatchAction (instead of

JavaScript and text field

2003-06-04 Thread Juraj . Lenharcik
Hi, I have some problems to access a text field. I have this JSP code: html:form action=criteria.do method=post onsubmit=javascript:check() html:text property=item size=40 / And want to access the value of the item field: function check(){ var inputvalue =

Re: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Jeff Kyser
No, it should be more like 40 + 1 per re-usable tile component I set up a 'master page' with the basic layout, and perhaps a 'menu' include containing my menu buttons / links, and then the tiles definition just inserts the content into a definition derived from the master page layout. And that is

RE: JavaScript and text field

2003-06-04 Thread Mike Jasnowski
I would check the HTML source and see what the Name attribute for the textfield you are trying to access is set to. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 8:53 AM To: [EMAIL PROTECTED] Subject: JavaScript and text field Hi, I

Posted Again: Build Navigation based on action mapping

2003-06-04 Thread Haytham Samad
Sorry for reposting but wanted to get some feedback on this as I am sure everyone here had to deal with this at some point. I am trying to find a way to have navigation built based on the struts-config.xml's action mappings. Since all my use cases are enabled through action listed under action

html:select : update bean field only if values are selected

2003-06-04 Thread Ionel Gardais
Hi, I have two select lists that I use a swaping selections (transfert one item from a list to another and remove it from the first) the problem is that Struts doesn't update a bean field when a list is not empty but when there are selected values inside. how to tell Struts that I need an

AW: JavaScript and text field

2003-06-04 Thread Juraj . Lenharcik
It is: item html:text property=item size=40 / is: input type=text name=item size=40 value= -Ursprüngliche Nachricht- Von: Mike Jasnowski [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 3. Juni 2003 14:56 An: Struts Users Mailing List Betreff: RE: JavaScript and text field I would

Re: JavaScript and text field

2003-06-04 Thread Jeff Kyser
well, your check() function ought to return a boolean for starters. function check() { if (tests fail) return false; else return true; } then, onsubmit = return check() -jeff On Tuesday, June 3, 2003, at

RE: Storing the Output of a Servlet to Database

2003-06-04 Thread Rajesh P
Hi, The option 2 is what i am looking at. The API for generating the PDF writes to the servlet outputstream directly. So for the time being forget PDF, say, I need to capture the output of any servlet, say a html content, and store that to a db or file, how do I do that? Thanks for the

Re: JavaScript and text field

2003-06-04 Thread Sergey Smirnov
Try the folowing: html:form action=criteria.do method=post onsubmit=return check(this) html:text property=item size=40 / function check(formId){ var inputvalue = formId.item.value; alert(inputvalue); return true; } Regards, Sergey Smirnov

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai
And you need to have 40 JSP's to insert those 40 Definintions ... Isnt it ?? Fine You have one JSp for the Body content .. Then you extend from the master page to make a new definition in the XML file . But then I require another JSP which actually inserts that definition ... -Original

RE: Storing the Output of a Servlet to Database

2003-06-04 Thread J, Sadhasivam (Cognizant)
As per my guess. PDF generator accepts a Stream or writer of nature Servletoutputstream.. so u can create Impl of that and send it to PDF generator and get the stream . serilzie to the DB and then use the same stream to write it to servlet if u required.. -Original Message- From:

newbie : Initial value to a property in dynaacttion form

2003-06-04 Thread graghupathy
Hi, Firt to let you know that i am quite new to this struts Can you let me know of how to give an initial value to a property in struts-config.xml The initial value is a arraylist from a bean.. Thanks Guru

[OT - Design] Business Logic and JavaBeans

2003-06-04 Thread Jerry Jalenak
I'm considering placing specific business logic methods in the JavaBean that has the business elements used by these methods. In other words, something like this - public class User { private String userID; . public User() {}

changing tiles-config.xml from within an app?

2003-06-04 Thread Witbeck, Shane
Does anyone have any experience with changing a tiles-config.xml file from within an app? I have an app that has different themes based on resource bundles and a variable which changes bundles (and therefore themes). Currently, I have this variable defined in the tiles-config.xml and I change this

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread shirishchandra.sakhare
Hi Nilesh, Better approach is use tiles definitions.. So u have those 40 jsps for 40 page contents..And one tiles definition xml file which assembles those.. HTH. regards, Shirish -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Bailey, Shane C.
Content of tiles-defs.xml: !-- === -- !-- View page Templates -- !-- === -- definition name=doc.Layout1 path=/view/main/plain_layout.jsp put

Re: bean-write

2003-06-04 Thread sjones
there is no default value for loginID I am trying to re-display the LoginID the user entered after a failed login attempt. return mapping.findForward(failed) - maps back to login.jsp as far as naming conventions. i am aware of it. i was just trying anything and every thing to get the

Re: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Jeff Kyser
I don't think so, but here's an example from my tiles-config file: Master Page - the layout inserts a 'header' containing a logo/image has 'empty' slots for menu, body definition name=order_entry.masterPage path=/WEB-INF/pages/layout/torchHeaderLayout.jsp

RE: bean-write

2003-06-04 Thread Bailey, Shane C.
Then you have other problems because that should be a freebie with struts. -Original Message- From: sjones [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 9:47 AM To: [EMAIL PROTECTED] Subject: Re: bean-write there is no default value for loginID I am trying to re-display the

TR : Disable

2003-06-04 Thread Legoff, Yoann
Title: Message Hi,I wan't to parameter my html:text tag with a properties' file.Switching between true and false, but with my properties.The problem was i don't know how to write a messageRessource into a Bean:tag ...The same probleme than Vangelis Konstantinis this morning.I don't know if

Re: ArrayList as an element of DynaActionForm

2003-06-04 Thread Dan Tran
Mark, my ArrayList is a list of another value object beans which has few string properties. In my JSP I use c:foreach and display all fields in the array, of course I make them editable. When I submit the button, I would think struts is smart enought to move the form in HttpServletRequest back

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai
Hi I agree with you .. But see ..below you have created a definition doc.login .. So your content (body) JSP is login.jsp . Count this as one . Now You need a JSP to insert this definition . .. Say index.jsp .. My index.jsp will look something like this .. %@ page language=java % %@ taglib

RE: changing tiles-config.xml from within an app?

2003-06-04 Thread Chen, Gin
I think this question was asked before and (one of) the answer was to add a listener to your config so that the application can reload it. But if its something that might change often then having it in a class with getter/setters makes more sense. -Tim -Original Message- From: Witbeck,

using struts tag libraries outside of struts

2003-06-04 Thread Remco Gerlich
Hello. I have to evaluate what we're going to use, Struts, OpenCMS, some other system... I don't have much experience with JSP etc yet. The Struts tag libraries look cool. Is it possible to use them outside of Struts, say by dropping them into a OpenCMS project? Or do they depend on having the

Struts 1.1 on z/OS with WebSphere Application Server 4.0

2003-06-04 Thread Markus Holzem
Does anyone have experiences with Struts running on an IBM mainframe? I'm particularly interested in WebSphere 4.0 (z/OS, *not* z/Linux). I've tried to find anything in the archive, but I only found references on WebSphere running on Wintel, Linux or Solaris. Since WebSphere on z/OS is only 99.9%

Re: List sorting with struts tags

2003-06-04 Thread Chris Hatton
Check Arron's NeXt tutorials at KeyboardMonkey. -- http://www.keyboardmonkey.com/pilotlight/index.jsp?content=yesplease Chris Hatton On Mon, 2 Jun 2003 17:08:48 -0400, Franck Lefebure [EMAIL PROTECTED] wrote: Hi, I've a sorted ArrayList of beans eg : Foo {key, country, town} 1 - USA - NewYork

RE: Building a site navigation using Struts mappings

2003-06-04 Thread Chen, Gin
Don't use Strut-Config for this. Look at Tiles instead. As for dynamically update you can combine Tiles with Logic to show and display what you want. -Tim -Original Message- From: Haytham Samad [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 5:01 PM To: Struts Users Mailing List

[OT] data layer, try-catch-finally, connections

2003-06-04 Thread Mike Whittaker
I guess you've all been here, so can you answer this? you have do a 'finally' to ensure you close the connection/release it back to the pool. In the controller tier this is easy, get the connection in the Filter/RequestProcessor/Action when whatever returns you can finally close it. However

[OT] What layer does an XSL transform belong to

2003-06-04 Thread Jeff Kyser
Hey all, A bit philisophical I suppose, but we've integrated some legacy apps into a Struts application, and they return their data as an XML document. In a previous version of the app, the JSP made the legacy call (gakk!), and then performed an XSL transform to display the info to the user. (I

out-of-memory exp

2003-06-04 Thread Nagendra Kumar O V S
hi, i am using struts 1.1 with ejb on weblogic7.1 i frequently get this error while working with the web application Jun 3, 2003 7:42:03 PM IST Error HTTP 101017 [ServletContext(id=4550717,name=cwbweb,context-path=/cwbweb)] Root

RE: out-of-memory exp

2003-06-04 Thread Josh Rayls
You could raise the memory size of your VM via the -Xms128m -Xmx128m arguments. It's just Weblogic, the memory hog, telling you that it has run out of memory. It seems to me that there's some sort of memory leak when hot deploying. -Josh -Original Message- From: Nagendra Kumar O V S

RE: Storing the Output of a Servlet to Database

2003-06-04 Thread Navjot Singh
Ideally, you should store the document on file system, the better place for PDF BUT you may some weird requirement Anyway, if you are adamant on doing this. --first way-- 0. create a field in your database with blob data type. (I have MySQL) but oracle/ mssql7 all have this data type. 1.

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Keel, Christine C
Please send email to [EMAIL PROTECTED] Thanks, Christine Keel Marine Life Cycle and Solutions Intergraph Corporation 170 Graphics Drive Madison, AL Phone: 256-730-7194 Email: [EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03,

RE: Intelligent Refresh/Reloading

2003-06-04 Thread Navjot Singh
hi jason, try using pushlets. they may look odd in their use but they can solve your purpose. -navjot singh |-Original Message- |From: Jason Meredith [mailto:[EMAIL PROTECTED] |Sent: Tuesday, June 03, 2003 5:19 PM |To: Struts Users Mailing List |Subject: Intelligent Refresh/Reloading |

RE: out-of-memory exp

2003-06-04 Thread Varun Garg
This comes when weblogic runs out of memory. If this happens often, then I would look at the code and check for any bad looping thats going on. -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 9:15 AM To: [EMAIL PROTECTED] Subject:

Re: [OT] data layer, try-catch-finally, connections

2003-06-04 Thread Ian Hunter
I have two routines in my data layer that close connections; one takes an exception as a parameter and the other doesn't. My data layer objects open their own connections and close them when they're done. (Actually, routines that populate/read DTOs from/to the data layer make the calls)

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Bailey, Shane C.
Right, your index.jsp is my plain_layout.jsp. You only see it once right? And every page is built from that template. So, like I said, at first you have a few extra pages. Oh, looking closely I see... You don't need to insert a definition in a page. You use the definition in the mappings.

Re: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Jeff Kyser
politelyI think you're still missing something./politely Now you have the tiles named in the tiles-config file, you can name them as the input or forward in the struts-config file. You don't have to have a page that does nothing but include other pages. There may be some page generated on your

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai
For ??? -Original Message- From: Keel, Christine C [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 7:45 PM To: Struts Users Mailing List Subject: RE: Tiles Two JSP's for Displaying One Form . Please send email to [EMAIL PROTECTED] Thanks, Christine Keel Marine Life Cycle and

RE: [OT] What layer does an XSL transform belong to

2003-06-04 Thread Navjot Singh
honestly, it depends upon your approach. if you see transformation from callback perspectives, they should be part of presentation later (may be as part of the taglibs) but if you have servlets that does generates the XML as well as XSL then runs the XMLTransformer.transform() (could be filtered)

Re: using struts tag libraries outside of struts

2003-06-04 Thread David Graham
You should be using the JSTL for many of your custom tags anyways. I think the Struts html taglib is only useful with Struts but I've never tried using it outside of Struts. David Hello. I have to evaluate what we're going to use, Struts, OpenCMS, some other system... I don't have much

RE: isCancelled and LookupDispatchAction

2003-06-04 Thread Chen, Gin
I don't see that one the API anywhere. As a matter of fact, it's been recommended several times on this list to overwrite execute for just this reason. :-/ -Tim -Original Message- From: sjones [mailto:[EMAIL PROTECTED] Sent: Monday, June 02, 2003 5:39 PM To: [EMAIL PROTECTED] Subject: Re:

Re: [OT] data layer, try-catch-finally, connections

2003-06-04 Thread David Graham
Setting the conn, rs, and s pointers to null in this method is pointless and confuses Java newbies. David public static void closeconn (java.sql.Connection conn, java.sql.Statement s, java.sql.ResultSet rs) throws java.sql.SQLException { try { if (rs != null) {

RE: out-of-memory exp

2003-06-04 Thread Nail, Evan Burke
nagi, Besides the previously mentioned errors, I sometimes get this error when I'm working in my development environment and I have changed a class and not restarted my server. I have not used 7.1 much so I don't know if this could be your error , we're on 6.1 and see it occasionally

RE: JavaScript and text field

2003-06-04 Thread Chen, Gin
function check() { var inputvalue = document.getElementById(item).value; alert( inputvalue ); } dont worry that it says get element by id. it actually checks both name and id. another way to do it is: function check() { var inputvalue =

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Bailey, Shane C.
OK, Im missing something. Doesn't matter. Every time I want new page I only create one JSP now that my template is set up. That's all I care about. And it works great. Usually people who are missing something don't have their stuff working. As far as I am concerned my stuff works. Thanks for

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Keel, Christine C
Sorry, sent to the wrong place. Thanks, Christine Keel Marine Life Cycle and Solutions Intergraph Corporation 170 Graphics Drive Madison, AL Phone: 256-730-7194 Email: [EMAIL PROTECTED] -Original Message- From: Nimish Chourey , Tidel Park - Chennai [mailto:[EMAIL PROTECTED] Sent:

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai
Yes .. now you exacly understand my problem .. See these form pages are direct links from the Menu and not result of some action .. I mean there is no form Submission and no action .. Just a link is clicked .. Can you give an example for that .. if possible ..I mean how I can avoid writing

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Nimish Chourey , Tidel Park - Chennai
Nope .. my index.jsp is not your plain_layout.jsp .. have a close look at it again .. -Original Message- From: Bailey, Shane C. [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 7:39 PM To: 'Struts Users Mailing List' Subject: RE: Tiles Two JSP's for Displaying One Form . Right,

Re: [OT] data layer, try-catch-finally, connections

2003-06-04 Thread Ian Hunter
OK, so Java isn't my first language, busted... - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:25 AM Subject: Re: [OT] data layer, try-catch-finally, connections Setting the conn, rs, and s pointers to null in this method

Re: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Jeff Kyser
No, Shane, not you! You're doing fine, or at least if not, then we're both missing the same thing! Sorry, I guess I replied to your e-mail rather than Nishish's -jeff On Tuesday, June 3, 2003, at 09:20 AM, Bailey, Shane C. wrote: OK, Im missing something. Doesn't matter. Every time I want new

validator with password fields

2003-06-04 Thread Brian McSweeney
Hi all, when trying to make a password field required using the validator, the javascript doesn't seem to work. The server side validation does work. Strangely, the javascript validation works in the same form for text fields. Anyone ever encountered this before? Am I just doing something

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread shirishchandra.sakhare
Hi, If you go by the tiles Definition approach, you just write one jsp per page and U dont need to write another jsp which will assemble all jsps together(in most of the cases). And the task of assembling the various portions for the page(In case of a classic layout, the header,footer,menu and

Re: [OT] data layer, try-catch-finally, connections

2003-06-04 Thread David Graham
Everything is pass by value, even pointers :-). David OK, so Java isn't my first language, busted... - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 10:25 AM Subject: Re: [OT] data layer, try-catch-finally, connections

Re: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Jeff Kyser
So if it is just a link, can't you create a forward action that points to a definition in your tiles-config.xml? for example: action path=/catalog/ChooseCategory parameter=order_entry.catalog.ChooseCategory type=org.apache.struts.actions.ForwardAction

RE: Build Navigation based on action mapping

2003-06-04 Thread Hibbs, David
I'm guessing that what you really want is to be able to do either a) some reverse engineering/documentation or b) a site map type function because navigation in a Struts app is absolutely based on action mapping and tiles config. That said (and without a clearer question), I will give some very

RE: validator with password fields

2003-06-04 Thread Raible, Matt
You're probably doing something wrong - it works fine for me. Matt -Original Message- From: Brian McSweeney [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 8:42 AM To: Struts Users Mailing List Subject: validator with password fields Hi all, when trying to make a password field

Re: validator with password fields

2003-06-04 Thread David Graham
Javascript for password fields is intentionally limited for security reasons. The only javascript validation that runs on password fields is the required check. What version are you using? David Hi all, when trying to make a password field required using the validator, the javascript

Re: Question about buttons

2003-06-04 Thread sjones
there is also a class called HTMLButton that was suggested. I haven't quite figured it out yet. maybe you will have better luck. goto: http://j2ee.lagnada.com/struts/html-buttons.htm Nadja Senoucci [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello everyone, if I want to have

RE: out-of-memory exp

2003-06-04 Thread Doug Bryant
it's weblogic, not struts. it appears that hot-deploy does not free up resources upon redeploying an application. we are working with a fairly large application. Most of the developers here have resorted to restarting the server between redeploys because it is almost guaranteed to hose up

Validation : Can't validate integer fields...

2003-06-04 Thread Eirik Kjølsrud
Hi, I'm new to this group. I'm a java developer working currently on projects for the Norwegian National Lottery. In an input form, I'm trying to validate user input on the client, making sure that the values are integers. My problem is that no message is presented for errors.integer, only for

Html Buttons and Struts

2003-06-04 Thread sjones
has any body used this class, can you please give you please explain it more in depth than the author. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread shirishchandra.sakhare
U can do that.. Create a globel forward(Because if you are using forwards with links, they have to be global forwards.) forward name=myLinkl path=/MyDefinitionAction.do/ Then create a action mapping for the path. action path=/MyDefinitionAction

Re: Html Buttons and Struts

2003-06-04 Thread James Mitchell
What class? -- James Mitchell Software Developer/Struts Evangelist http://www.struts-atlanta.org - Original Message - From: sjones [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:05 AM Subject: Html Buttons and Struts has any body used this class, can you

Very simple and URGENT Tag question - Please Help

2003-06-04 Thread Renato Romano
I have a bean with an indexed property, that is myBean.getItem(int i). I can't find a way to access that property, using struts, struts-el nor jstl. I tried the following: c:out value=${mybean.item[ind]}/ Where ind is the indexId attribute of an ordinary logic:iterate struts tag. (and c is the

Re: How to prevent access to pdf files

2003-06-04 Thread John Brayton
I am on a page. There are a list of pdf files on the page. If a user clicks on a pdf file, I want him to be redirected to a login page if he is not logged in. However this doesnt seem to be happening even with filters. Does the click on a pdf file not recognized as a request? Verify that the PDF

Redirect and request attributes

2003-06-04 Thread Michael Ruppin
I'm setting redirect=true on an ActionForward to remove the request parameters which do not correspond to the form named in the mapping for the path. This works nicely, but it appears as if anything I need to get into the new form needs to be a request parameter, as a result. Is this true? If I

Possible Bug in FieldChecks.validateRequiredIf(...)

2003-06-04 Thread Bradley M. Handy
I sent this once before, but with the wrong email account. If this gets posted twice, I'm sorry. I have a validation that should be failing (under certain conditions), but is not. I've double checked and triple checked to make sure the setup is correct, and it's still not working correctly.

RE: Tiles Two JSP's for Displaying One Form .

2003-06-04 Thread Bailey, Shane C.
Jeff, I see we are in agreement. :) Anyway, if the guy thinks of a def as a JSP (which it is completed) then he shouldn't go to it directly from another JSP. It is Model 1 to do such things. So I just thought about how Tiles almost forces Model 2!! -Original Message- From: Jeff

RE: Very simple and URGENT Tag question - Please Help

2003-06-04 Thread Chen, Gin
since the collection in your case is not accessible except via a method that requires a parameter you can not do this using just jstl or even struts. the best way to do it is to expose your collection with a getXXX method. That way the syntax you used will work. JSP 2.0 *should* solve your problem

Re: validator with password fields

2003-06-04 Thread Brian McSweeney
yep, that's it. I see that the required field is the only one that works. Can you tell me why this is? - Original Message - From: David Graham [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 4:02 PM Subject: Re: validator with password fields Javascript for

Re: Html Buttons and Struts

2003-06-04 Thread sjones
this class /** * Copyright 2001-2003 Antonio W. Lagnada. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above

RE: Very simple and URGENT Tag question - Please Help

2003-06-04 Thread Kazda Juraj
Hi Renato, hard to say when you don't write what kind of error you got. Exception? Or nothing shown? Dont't you forget to add bean to context (session, request,...)? And, maybe it's typo, but... don't you forget quotes in value attribute? c:out value=${mybean.item[ind]}/ -juraj.

Re: Possible Bug in FieldChecks.validateRequiredIf(...)

2003-06-04 Thread David Graham
Thanks for catching this! Please file a bug report so we don't forget to fix it. Thanks, David I have a validation that should be failing (under certain conditions), but is not. I've double checked and triple checked to make sure the setup is correct, and it's still not working correctly. So,

RE: changing tiles-config.xml from within an app?

2003-06-04 Thread Joris Docx
there's some ReloadDefinitions class in the API -Oorspronkelijk bericht- Van: Witbeck, Shane [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 3 juni 2003 15:38 Aan: [EMAIL PROTECTED] Onderwerp: changing tiles-config.xml from within an app? Does anyone have any experience with changing a

RE: How to prevent access to pdf files

2003-06-04 Thread Varun Garg
The way I have handled the problem in the past is to create a servlet streaming out the pdf and then I have complete control over authorizations. I would set the mime types to the pdf and then browser will treat it properly. -Original Message- From: John Brayton [mailto:[EMAIL

RE: Very simple and URGENT Tag question - Please Help

2003-06-04 Thread Chen, Gin
btw this question was answered on the JSTL (Taglibs) list. I just gave a recap of the answer. If you want a more thorough explanation you can find it in the archives. -Tim -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:35 AM To: 'Struts Users

Application resources and java

2003-06-04 Thread Gregory F. March
I have an application where a user logs in and what is presented to them depends on what organization they belong to. Things like the web page title, labels, images, etc. are different for different organizations. I'm thinking that I'd like to create application resources from the login action

Re: Html Buttons and Struts

2003-06-04 Thread sjones
here is a link: http://j2ee.lagnada.com/struts/html-buttons.htm sjones [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] has any body used this class, can you please give you please explain it more in depth than the author.

RE: validator with password fields

2003-06-04 Thread Chen, Gin
javascript is clientside. Therefore, any password you validate in javascript can easily be seen by a person using view source. Having: function validatePassword() { return password == 'open sesame'; } is not very good security. -Tim -Original Message- From: Brian McSweeney

Re: Very simple and URGENT Tag question - Please Help

2003-06-04 Thread Denis Avdic
If you are using jstl don't use logic-iterate; rather use c:forEach items=${yourCollection} var=beanInCollection then you can have c:out value=${beanInCollection.property}/ or if it is straight string you can have c:out value=${beanInCollection}/ Renato Romano wrote: I have a bean with an

taglibs - nonstatic javascript value

2003-06-04 Thread Alawadhi, Mona
yes, it worked. I have one problem, though: passing dynamic value to the function I call in javascript. This is what I have: logic:iterate name=addressListFormBean id=choice property=letterOptions html:link href=javascript:setHiddenLetter('D'); document.forms[0].submit();

RE: Html Buttons and Struts

2003-06-04 Thread Chen, Gin
This is not a standard struts class. Shouldn't you email the author directly? -Tim -Original Message- From: sjones [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:36 AM To: [EMAIL PROTECTED] Subject: Re: Html Buttons and Struts this class /** * Copyright 2001-2003 Antonio W.

RE: Very simple and URGENT Tag question - Please Help

2003-06-04 Thread Renato Romano
OK, you're right!! Here are the first lines from stackTrace from tomcat log: javax.servlet.ServletException: An error occurred while evaluating custom action attribute value with value ${bd.actionDescription[ind]}: Unable to find a value for actionDescription in object of class

RE: converting localized user input to typed value

2003-06-04 Thread David Tobey
Florian: Is there a nice way? Well, that's a stretch. But you can create an instance of java.text.NumberFormat for the user's specific locale (which should be available in the session scope as session.getAttribute(Action.LOCALE_KEY)). Then use the parse() method of NumberFormat to convert Strings

RE: taglibs - nonstatic javascript value

2003-06-04 Thread Gandle, Panchasheel
This should work html:link href=javascript:setHiddenLetter('%=choice.toString()%'); logic:iterate name=addressListFormBean id=choice property=letterOptions html:link href=javascript:setHiddenLetter('%=choice.toString()%'); document.forms[0].submit(); bean:write

RE: Very simple and URGENT Tag question - Please Help

2003-06-04 Thread James Norman
If you placed a Map in the context you can reference items in the Map by the key. Example would be to place a Map with a key of ID and some value into context. You can reference the value by calling c:out value=${reference.ID} /. This is useful when you can't write a bean. On Tue, 2003-06-03

RE: taglibs - nonstatic javascript value

2003-06-04 Thread Varun Garg
I would just put a bean:write instead on the D. logic:iterate name=addressListFormBean id=choice property=letterOptions html:link href=javascript:setHiddenLetter('bean:write name=choice property=labelStr/'); document.forms[0].submit(); bean:write name=choice

Re: validator with password fields

2003-06-04 Thread Brian McSweeney
Ah... I see. thanks! - Original Message - From: Chen, Gin [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 4:44 PM Subject: RE: validator with password fields javascript is clientside. Therefore, any password you validate in javascript

RE: Very simple and URGENT Tag question - Please Help

2003-06-04 Thread Chen, Gin
sorry my previous answer was based on method calling. since this is an index called though it can be done via: http://jakarta.apache.org/struts/faqs/indexedprops.html -Tim -Original Message- From: Chen, Gin [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 03, 2003 11:42 AM To: 'Struts

RE: taglibs - nonstatic javascript value

2003-06-04 Thread Alawadhi, Mona
Panchasheel, I've tried it. It doesn't work. It takes '%=choice.toString()%' as a whole string, it does not replace it by the letter I want. Actually, if you write this, and try to hover over the link, you will see: 'javascript:setHiddenletter('%choice.toString()%')' INSTEAD OF

Re: ValidatorUtil deprecated?

2003-06-04 Thread Rob Leland
Raible, Matt wrote: I just downloaded and installed Struts from last night (6/02/2003). Now I'm getting deprecation errors for ValidationUtil, yet the API docs say nothing about what it's been replaced with (http://tinyurl.com/dac9). Any ideas? Also, ValidatorResources has a couple deprecated

RE: Possible Bug in FieldChecks.validateRequiredIf(...)

2003-06-04 Thread Kruse, Matt
Am I correct in assuming that the following condition ((value != null) (value.length() 0)) should be (!GenericValidator.isBlankOrNull(value)). The reason my check is failing is due to the fact the value I'm checking is all white space (at certain times), and is selected from a select

Re: [SOLUTION] RE: Default ActionError message...

2003-06-04 Thread John Nikolai
FYI for anyone interested: - MessageResources resources = getResources(request); String message = resources.getMessage(error.verisign. + resultCode); if (message == null) { // Use the default error text message = resources.getMessage(error.verisign.default); }

Re: Struts 1.1 on z/OS with WebSphere Application Server 4.0

2003-06-04 Thread Rob Leland
Markus Holzem wrote: Does anyone have experiences with Struts running on an IBM mainframe? I'm particularly interested in WebSphere 4.0 (z/OS, *not* z/Linux). I've tried to find anything in the archive, but I only found references on WebSphere running on Wintel, Linux or Solaris. Since WebSphere

RE: taglibs - nonstatic javascript value

2003-06-04 Thread Alawadhi, Mona
Varun, I've tried to put that in, but it still doesn't work: it cuts it when it comes to those double quotes, so, my href would be = javascript:setHiddenLetter('. So, it doesn't like those quotes. I've tried removing them and putting them in single quotes, I'm back to that same problem. It

RE: taglibs - nonstatic javascript value

2003-06-04 Thread Varun Garg
Try this, this should work. logic:iterate name=addressListFormBean id=choice property=letterOptions a href=javascript:setHiddenLetter('bean:write name=choice /'); document.forms[0].submit(); bean:write name=choice property=labelStr/ /a

Map-backed action form and multibox problem (only 1st checked item detected)

2003-06-04 Thread C
I'm using a Map-backed action form to render dynamic pages. I'm having a problem with checkboxes, using the html:multibox tag. If I display 3 choices and check two, only the first one is detected and sent to the back-end. After pressing Submit, it appears that the ActionForm setter stores the

IE 6 timeout session

2003-06-04 Thread Billy Ng
Hi folks; I have a customer complains the IE 6 sp1 times out the session after he is logged in the app. I tried to reproduce it but I can't. Have anybody experienced this? Billy Ng

  1   2   3   >