Re: how to access tiles defs in inserted jsp ?

2003-07-09 Thread Michael Muller
After another evening of flailing, I managed to make this work in a rather inelegant way: In myPageTemplate.jsp, I added this tag: tiles:importAttribute name=foo scope=request/ and I changed myBodyImpl.jsp to say: foo = %= request.getAttribute(foo) % This works, but I'mnot very happy with

Refreshing screens

2003-07-09 Thread Mohan Radhakrishnan
Hi This is a question about the best practice followed when refreshing screens to reflect new data in the database. 1. View 1 has a 'search' button. 2. The searched records are displayed with a hyperlink for editing them. 3. The edit page opens a new JSP. After

Validation of user input depending upon the user locale.

2003-07-09 Thread Sagar A. Phanse
Hi! I need some help. I have a textfield in my JSP where user can enter the text. Now I wanted to validate the user entered text into the textfield such that when jsp-form is submitted it will let only those characters to be entered in the textfield which are belonging to the language/locale of

Re: Workflow engine status

2003-07-09 Thread Matthias Bauer
Seems like we are about to start a flame war on this ;-) It didn't say that this is a workflow engine. I just tried to point Kevin to a this extension because it might cover what he is looking for. --- Matthias JavaXML Developer wrote: Its a workflow extension NOT engine. */Sandeep

Re: Refreshing screens

2003-07-09 Thread Nagendra Kumar O V S
hi, 1. first thing u need to do is turn off the client caching by setting nocache=true in the controller element of the struts-config file 2. if this does't solve ur problem, pl check if ur updating the records in the scope after updating to the datasource.

RE: Validation of user input depending upon the user locale.

2003-07-09 Thread Andrew Hill
Yep. Your Japanese users are sure gonna love that feature when they try to enter the names of their German clients into the application (or whatever). -Original Message- From: Sagar A. Phanse [mailto:[EMAIL PROTECTED] Sent: Wednesday, 9 July 2003 14:32 To: [EMAIL PROTECTED] Subject:

Tiles - Support for conditional composite?

2003-07-09 Thread Richard Tomlinson
I'm evaluating a possible Struts-Tiles solution but require clarification to the Tiles approach to page composition. My requirement is that a potential web user could be categorised as an individual, a small business, a corporate, etc. All categories of users have access to the same pages

Passing parameter to another Action class using POST

2003-07-09 Thread Rajesh Khater
Hi, I need to pass some parameters to another action class from my action class. I can do it using query String. But how can I send the parameters using HTTP POST programmatically ?? Query strings also have some maximum length and my parameter values can get pretty lengthy. Thanks, Rajesh.

No stream could be found

2003-07-09 Thread sriram
Did anyone face the following problem while loading validation-rules.xml? The following message is displayed during deployment and so I'm unable to use validator framework: 13:08:42,913 INFO [Engine] validator: Loading validation rules file from '/WEB- INF/validation-rules.xml' 13:08:42,923

RE: Passing parameter to another Action class using POST

2003-07-09 Thread Navjot Singh
1 simple way + map = request.getParameterMap() + request.getSession().setAttribute(past_req_data,map); + redirect to next action + request.getSession().getAttribute(past_req_data); + request.getSession().removeAttribute(past_req_data); HTH -navjot |-Original Message- |From: Rajesh

Re: Passing parameter to another Action class using POST

2003-07-09 Thread Kwok Peng Tuck
You can set the attribute in the request as well. String string1 = Stuff ; request.setAttribute(Info, string1) ; Then later in the other action class, just do : String output = (String) request.getAttribute(Info) ; Rajesh Khater wrote: Hi, I need to pass some parameters to another action

RE: Tiles - Support for conditional composite?

2003-07-09 Thread Navjot Singh
hi richard, Well, tiles are great as they allow to create and define your template definitions in xml files that can be changed easily. One may follow the simple jsp includes way but usually i prefer tiles. Your problem goes into conditional tiling. In terms of typical web applications, these

Reusable Components

2003-07-09 Thread Frédéric Dreier
Hi, I really need your help and hints... I was not able to found something related on internet. how can i make reusable 'high-level' components? taglib seems to be useless for such components (that already use JSP's and actions). Tiles is exactly what i need but it does not seems to work if

RE: Passing parameter to another Action class using POST

2003-07-09 Thread Rajesh Khater
Hi, Setting attributes in the request is fine .. But the other action class can also directly be called by a JSP, in which case it will have to do request.getParameter() , not request.getAttribute(). Of course, it can check if request.getParameter() returns null, then try for

html:img doesn't get rendered

2003-07-09 Thread TopBid987654321
Hi All, Maybe someone has done this before : I am trying to use bean:message to deliver a html:img in my JSP, however, the html:img tag doesn't get rendered when it is delivered. Instead, the raw tag, html:img page=/logos/PublishersEnglish.jpg alt=Publishers border=0 width=135 height=26/, is

Re: html:img doesn't get rendered

2003-07-09 Thread Jason Lea
Hi Bob, Use this in the JSP: html:img srcKey=books.publisher.heading alt=Publishers border=0 width=135 height=26/ and ApplicationResources.properties: books.publisher.heading=/logos/PublishersEnglish.jpg --jason [EMAIL PROTECTED] wrote: Hi All, Maybe someone has done this before : I am

RE: Passing parameter to another Action class using POST

2003-07-09 Thread Andrew Hill
snip But isn't there a way to send POST data programmatically ?? /snip Servlet API 2.3 supports the HttpServletRequestWrapper class so you could subclass and create one of these that returns the parameters you want. The tricky bit will be in having it used for the forwarding. You will probably

Re: Passing parameter to another Action class using POST

2003-07-09 Thread Kwok Peng Tuck
If this is the case then I guess setting the attribute in the session is the easiest way to go. Rajesh Khater wrote: Hi, Setting attributes in the request is fine .. But the other action class can also directly be called by a JSP, in which case it will have to do request.getParameter() , not

Re: bean:write problem with struts 1.1

2003-07-09 Thread Linus Nikander
I'm running Weblogic 6.1 and have experienced exactly the same problem. It goes away if you change the returntype of the getter to a String instead of whatever you are using. Not a solution to the problem though. I sent in a post eariler to this group, but didn't get any replies that solved the

RE: Converting an ActionError to a string programmatically

2003-07-09 Thread Viacheslav Novgorodtsev, E-Commerce SO
Example: ConfigHelper helper = new ConfigHelper(); helper.setApplication(servlet.getServletContext()); MessageResources messageResources = helper.getMessageResources(); ActionErrors errors = searchProductMasksForm.validate(actionMapping,request); if (errors

Re: ClassCastException using the DynaValidatorForm

2003-07-09 Thread Adam Hardy
Don't you just love caching? The number of errors I have made like that which drove me insane until whatever it was - the browser, the server, the memory - stopped caching. Torture. Michael Muller wrote: That would explain it. The struts-config got re-loaded telling it that myForm was a dyna

RE: Login Form

2003-07-09 Thread Sean Radford
On Tue, 2003-07-08 at 20:34, Erez Efrati wrote: Thanks Sean, I looked at it and it does avoid the BIG limitation posed by the standard spec in fact. Still I cannot use it since it disables the passing of the principal identity through calls to EJB methods. That's what it says in the

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
I have an Action base class which all my other Action classes inherit. In the execute() of this base class I check whether the user clicked cancel, before I call the child class execute(). I presume it would be easy enough to store the originating URL in the session, and if cancel is clicked,

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Shashank Dixit
Hello Adam I have one doubt. You have base action class for all your subaction classes. What is the responsibility of this base action class. Do your base action class checks which button is clicked? If there are say 10 buttons in one form (say, GO, ADD, SAVE, NEXT, etc) are there 10 if

RE: Tiles - Support for conditional composite

2003-07-09 Thread Navjot Singh
hi richard, I thought there is only part of the area that would differ based on roles -- user/corp/xyz It seems your entire page will be different. In that case it does make sense to + avoid tiles OR + keep separate tiles for diff conditions. My example works good only if 1/2 of N sections of

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
my base action class sorts out all the general objects and variables that the child actions need - this is the child action's execute() signature: public String executeList(ActionMapping mapping, ActionForm form, HttpServletRequest

Vacancy

2003-07-09 Thread Indra Gunawan
PACIFIC COMMUNICATION NETWORK - VACANCY Pacomnet (Pacific Communication Networks) is an application service provider (ASP). We deliver virtual financial services to the empowered customer. We offer e-Banking and online settlement solutions. Due to the regional expansion of our business, we are

[SCAFFOLD] StorageBeanBase feature request

2003-07-09 Thread Umberto Nicoletti
I am in the middle of the process of defining the data access layer to be used for a new Struts-based application, for which we already use Scaffold's ProcessBeans. We decided not to go with Hibernate as a persistence layer (to my disappointment) and to choose Scaffold Access/StorageBean

how to upload files to the server

2003-07-09 Thread Jagannayakam
hi all , Is it possible to upload file from the client to the server using struts. Regards, Jagan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tiles: Unable to convert a String to java.lang.Object

2003-07-09 Thread Kern P., DP ITS, SCP, M
Hello, I'm trying to read some tiles documentation from the webapp tiles-documentation but I get the following error on page /tiles-documentation/test/quickOverview.jsp : --- 2003-07-09 12:44:31 - Ctx(/tiles-documentation) :

RE: NestedIterateTag won't let go of collection

2003-07-09 Thread Edgar Dollin
There is a known bug if the collection is passed in directly (i.e. %=myCollection%). If the collection is passed in as a bean in the session, at least certain tags handle it correctly. The other thing to try is to disable tag pooling ($TOMCAT_HOME/conf/web.xml -- enablePooling=false). Edgar

RE: Multibox over a collection

2003-07-09 Thread Alex Shneyderman
My problem is that I have a table in which every row is a object of a formbean and has checkbox on the left which is a column of the table. So Then each row is identified somehow (indexed?). Each row will need to have that checkbox named (property) exactly the same way on each row, but you can

RE: Bread crumb trail

2003-07-09 Thread Holman, Cal
I have created breadcrumbs two ways one using a TilesAction to read the tiles definitions and a simpler tag that access the tiles definitions. I can send you the code if you are interested. I have not created a tutorial. Cal http://www.calandva.com/ -Original Message-

RE: how to upload files to the server

2003-07-09 Thread Alex Shneyderman
There is an example on struts site called struts-upload. It is well commented, so try it out. If you can't find it let me know and I will email it to you directly. The file size is ~1.4M. -Original Message- From: Jagannayakam [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003

tiles and tabs; post instead of link

2003-07-09 Thread Natalie D Rassmann
Can anyone help? I am trying to change the tab links in the tabLayout to submits I am having so much trouble. I can't get it to work. Has anyone tried to do this? Can anyone give me an example or point me in the right direction?? Any help would be much appreicated? Natalie

Re: Tag inside a tag

2003-07-09 Thread Kris Schneider
Kishan, That's the expected behavior of the tag. If you use disabled=true, it will output disabled=disabled. If you use disabled=false it won't output anything. Quoting [EMAIL PROTECTED]: My apologies, It works (the text is disabled) although it prints disabled=disabled Thanks guys

RE: Bread crumb trail

2003-07-09 Thread Navjot Singh
no better documentation than code itself ;-) can you post it? |-Original Message- |From: Holman, Cal [mailto:[EMAIL PROTECTED] |Sent: Wednesday, July 09, 2003 4:44 PM |To: Struts Users Mailing List |Subject: RE: Bread crumb trail | | |I have created breadcrumbs two ways one using a

Struts upload problem

2003-07-09 Thread J.Broeking
Hi there, i have a problem with the struts upload. We need to upload files larger than 1 MB. We currently use Struts 1.1.b2. I have recompiled the struts classes - this works fine. In the upload example und web-inf i modified the struts-config.xml file as follows: !-- This is where you set the

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Shashank Dixit
Hi again Are you using EJBs?? If you are using EJB, where is the connection pool? At webserver side or app server side. Or where datasource is defined. at web server or app server? How you are taking data(Value Objects) from webserver to appserver Shashank - Original Message - From:

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
I am trying this on Struts 1.1 final. Will this make any difference.. [EMAIL PROTECTED] 07/08/03 05:11PM Odd, I can't reproduce that in 1.1-rc1. Unless you're extending something which might override the isCancelled(HttpServletRequest) method, or the html:cancel tag is not contained within an

Re: Cancel button not working?

2003-07-09 Thread Nagendra Kumar O V S
i am using struts1.1 final and i don't find any probs with the cancel button --nagi ---Original Message--- From: Struts Users Mailing List Date: Wednesday, July 09, 2003 05:46:35 PM To: [EMAIL PROTECTED]

Use of ActionForms with ActionForwards - seems to be a non starter...

2003-07-09 Thread Brook, Andy
Hi all, I cant seem o get a form to be passed through an ActionForward to a target Action. Previously I had multiple Actions, and forms were submitted fine. I've migrated the multiple action types I had into a single Action class to be more maintainable, and replaced existing action class

Re: [SCAFFOLD] StorageBeanBase feature request

2003-07-09 Thread Umberto Nicoletti
I have submitted a patch to Bugzilla (http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21433) for this issue. Is there anyone interested in it? Thanks, Umberto Umberto Nicoletti wrote: I am in the middle of the process of defining the data access layer to be used for a new Struts-based

Re: tiles and tabs; post instead of link

2003-07-09 Thread Affan Qureshi
You need to change the code that generates links in tabLayout.jsp and call javascript methods to submit the form on those links using onclick. Affan Natalie D Rassmann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Can anyone help? I am trying to change the tab links in the

RE: [SCAFFOLD] StorageBeanBase feature request

2003-07-09 Thread James Childers
Umberto, You may be better served by directing your queries to the struts-dev mailing list. [EMAIL PROTECTED] -= J -Original Message- From: Umberto Nicoletti [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 8:04 AM To: [EMAIL PROTECTED] Subject: Re: [SCAFFOLD]

Re: Design question: Confirm action after validation ?

2003-07-09 Thread Adam Hardy
I plan on using EJB but haven't got that far yet. At the moment I am using a bunch of 'factory' classes as my model, and would like to isolate this layer from the request, response objects etc in the actions. So the fact that I get the connection in the base action is a legacy thing - I

RE: Validation of user input depending upon the user locale.

2003-07-09 Thread Kamholz, Keith (corp-staff) USX
I agree. What you wants sounds like it would cause more harm than good. Just my humble opinion though. -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 2:41 AM To: Struts Users Mailing List Subject: RE: Validation of user input depending upon

No stream could be opened

2003-07-09 Thread sriram
I'm facing this problem for the past 2 days - unable to fix this...Any help is very much appreciated... Did anyone face the following problem while loading validation-rules.xml? The following message is displayed during deployment and so I'm unable to use validator framework: 13:08:42,913

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
Sashi, what HTML does the tag produce? Adam Sashi Ravipati wrote: I am trying this on Struts 1.1 final. Will this make any difference.. [EMAIL PROTECTED] 07/08/03 05:11PM Odd, I can't reproduce that in 1.1-rc1. Unless you're extending something which might override the

Re: No stream could be opened

2003-07-09 Thread Jamie M. Guillemette
First i would recomend double checking that the file exists at /WEB-INF/ remember to be careful about capitalization. The error message would lead to the conclusion the file is either not there is is not readable. - Original Message - From: sriram [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
HTML is as shown below input type=submit name=org.apache.struts.taglib.html.CANCEL value=Cancel onclick=bCancel=true; [EMAIL PROTECTED] 07/09/03 09:21AM Sashi, what HTML does the tag produce? Adam Sashi Ravipati wrote: I am trying this on Struts 1.1 final. Will this make any difference..

RE: No stream could be opened

2003-07-09 Thread sriram
The file is present. In fact I have two files 1. validation-rules.xml 2. validations.xml The error is occurring only for the first one. The second file is being read without any problem. I even removed all the code in validation-rules.xml and left only the following code: form-validation

RE: Login Form

2003-07-09 Thread Erez Efrati
Sean, many thanks for keeping up with my questions - appreciate it. And yes you are correct. I am using JBoss 3.0.7 / Tomcat 4.1.24. By the way have you got any idea if this issue is about to be resolved at the Servlet Container Spec ? Thanks, Erez -Original Message- From: Sean

When the Struts webapp is not at the root of the server

2003-07-09 Thread Doyle, Michael J
Hi, I have been working on a Struts based web application. Things have been going fine developing on http://localhost:7001/myStrutsApp http://localhost:7001/myStrutsApp . I've discovered a problem when I deploy to http://www.somehost.com/somepath/myStrutsApp

[OT] JSTL

2003-07-09 Thread Kamholz, Keith (corp-staff) USX
I apologize if this is a bit off topic, and if it is a bit of a newbie question. I've never used JSTL before, and I'm not sure exactly what it is. Is it built into standard JSP technology (thus usable without any add-ons), or is it a tag lib that you have to download and put in your project? -

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
Try logging what is in this cancel parameter (org.apache.struts.taglib.html.CANCEL) in the same place where you are calling isCancelled() Actually I've just realised I'm suffering the same problem. I'll try it myself. Let me know what you find as well! Adam Sashi Ravipati wrote: HTML is as

Re: When the Struts webapp is not at the root of the server

2003-07-09 Thread Jamie M. Guillemette
Hi Mike, Your webapp would be built as if it was running from root/weapp/yourlinks how is it that when deployed it is now got an extra piece to the addressing ? JMG - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [OT] JSTL

2003-07-09 Thread David Graham
--- Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] wrote: I apologize if this is a bit off topic, and if it is a bit of a newbie question. I've never used JSTL before, and I'm not sure exactly what it is. Is it built into standard JSP technology (thus usable without any add-ons), or is

RE: When the Struts webapp is not at the root of the server

2003-07-09 Thread Doyle, Michael J
The web server fronts the app server. Locally, during development, I call directly against the app server. For deployment, I must go through a web server. It sends requests to root/somepath to the root path of my app server. Thus, the actual path to my resources is

RE: PAC pattern (Presentation-Abstraction-Controller)

2003-07-09 Thread Dos Santos
I think you're right Navjot. That's exactly the way that I see it. The thing is that I wanted to know how well Struts can adapt to this architecture. Any ideas? Can it adapt? Thanks for your input. --- Navjot Singh [EMAIL PROTECTED] wrote: correct me if i am wrong but here are my $ 0.02 --

Re: [SCAFFOLD] StorageBeanBase feature request

2003-07-09 Thread Ted Husted
I'm not using the SQL parts of Scaffold in new development. For new development, I'm now using Hiberate. I'm away next week, but later this month, I'll apply some outstanding patches to Scaffold, and look at providing a direct alternative to the SQL package using either Commons SQL/Dynabeans,

problem with dbcp and database restart

2003-07-09 Thread meissa . Sakho
hi all, I have a problem with my configured datasource using dbcp. I have posted this question to tomcat user list in vain... Maybe some struts user could help. I've configured my dbcp connection pool in Tomcat 4.1.18 server.xml file. here is an extract of it ResourceParams

Include response in the JSP page

2003-07-09 Thread Affan Qureshi
Hi, I have a JSP page which needs to dynamically include response from actions (or servlets) which are actually images streamed over the response. I tried to use jsp:include href=/someAction.do / but I guess it has some problem for extensions other than jsp and html. (I saw a similar bug for

RE: problem with dbcp and database restart

2003-07-09 Thread Ed Yu
Try the validationQuery tag so that the pool validates the connection before returning it to your code. ^^ Ed Yu, Senior Solutions Architect (IBM Certified AIX Administrator), Advanced Solutions Group, Physics Dept., University

RE: NestedIterateTag won't let go of collection

2003-07-09 Thread Sri Sankaran
Disabled pooling. No cigar :( Sri -Original Message- From: Edgar Dollin [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 7:06 AM To: Sri Sankaran; '[EMAIL PROTECTED]' Subject: RE: NestedIterateTag won't let go of collection There is a known bug if the collection is passed in

Re: [SCAFFOLD] StorageBeanBase feature request

2003-07-09 Thread Umberto Nicoletti
Thanks Ted, I already generated an in-house version of Scaffold with my patch, but got into another trouble. I got my StorageBeanBase working, but get ResourceExcptions when executing findCollection(), which in turns call getCollection. What I see is that the prepared statement is closed before

Re: Bread crumb trail

2003-07-09 Thread Curtney Jacobs
Thank you Cal, sending the code would be great. I am interested in looking at the two different ways of implementing the breadcrumbs. _CJ On Wednesday 09 July 2003 7:57 am, Navjot Singh wrote: no better documentation than code itself ;-) can you post it? |-Original Message- |From:

Struts and inter-application messaging

2003-07-09 Thread douglas reames
Good morning, BACKGROUND: I have a struts application that needs to: [a] Process a request within its own context. Output:- string to add parameters to URI path: SQL=SELECT no, product, vendor_no FROM table WHERE no=103, [b] Append parameters string from [a] to URI - that forwards control

RE: [OT] JSTL

2003-07-09 Thread Davidson, Glenn
I too am a bit of a newbie and have the same question plus where can we find good documentation on JSTL? Thanks Glenn -Original Message- From: Kamholz, Keith (corp-staff) USX [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 9:48 AM To: Struts (E-mail) Subject: [OT] JSTL I

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
it says - Cancel I don't know what I am missing which is making this tag not work.. Thanks [EMAIL PROTECTED] 07/09/03 09:50AM Try logging what is in this cancel parameter (org.apache.struts.taglib.html.CANCEL) in the same place where you are calling isCancelled() Actually I've just

RE: [OT] JSTL

2003-07-09 Thread Alex Shneyderman
Did you try www.javasoft.com ? -Original Message- From: Davidson, Glenn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 11:08 AM To: 'Struts Users Mailing List' Subject: RE: [OT] JSTL I too am a bit of a newbie and have the same question plus where can we find good

RE: Struts and inter-application messaging

2003-07-09 Thread Navjot Singh
think simple. + Struts does the job with in 1 context so when you forward for same application, it works. + to forward to external app, use response.sendRedirect(externalURI). encode the url before redirecting HTH -navjot PS - it's almost 9pm here. |-Original Message- |From: douglas

remmeber the URL design question

2003-07-09 Thread Ashish Kulkarni
Hi, I have to work on web application where i need for the user to logon with userid and password for some functions. So it will be some thing like the user clicks submit after entering the data on a screen, but then i want to show a page for the user to login, and if the login is successfull then

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
I've solved my problem. Now you've checked the parameter, check to see if the request.attribute is set with request.getAttribute(Globals.CANCEL_KEY); For some reason in the RequestProcessor it sets this attribute to true when the request.parameter is present. Check it out. This is the one that

[OT] Use of Static Methods

2003-07-09 Thread Jerry Jalenak
One of my programmers asked me whether or not it is OK to define helper methods as 'static' - and I realized that I didn't know the answer. So I guess the question is, in a web application, can common code be factored out to a helper class and marked as 'static'? Are there any major problems

Re: Cancel button not working?

2003-07-09 Thread Sashi Ravipati
request.getAttribute(Globals.CANCEL_KEY) is returning null, so can I set it to not null and where Should I do this.. Can u explain how u solved ur problem.. Thanks [EMAIL PROTECTED] 07/09/03 11:22AM I've solved my problem. Now you've checked the parameter, check to see if the

Re: problem with dbcp and database restart

2003-07-09 Thread Dan Tran
Meissa, When your database restarts, all your dbcp connections (in the pool) become staled connection. In order to resolve this problem, dbcp needs to do a ping to database server to make the connection is still up before giving to your app. Looking into dbcp configuration doc, it should have a

html:options

2003-07-09 Thread sjones
Good Morning Everyone. I have a List object and i need my JSP page to build a drop down list box using the List as the source for the options. I can do it with a scriplet but i need to one of the struts tags html:options html:optionsCollection can anyone help me with use one of these tags. I

RE: [OT] JSTL

2003-07-09 Thread Hohlen, John C
I found Shawn Bayern's book to be an excellent resource: http://www.amazon.com/exec/obidos/tg/detail/-/1930110529/qid=1057764862/sr=8-1/ref=sr_8_1/002-6967439-7181617?v=glances=booksn=507846 JOHN -Original Message- From: Davidson, Glenn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July

Re: [SCAFFOLD] StorageBeanBase feature request

2003-07-09 Thread Ted Husted
Umberto Nicoletti wrote: So when ResultSetUtils call getMetaData() the resultSet throws SQLException: connection closed. Yes, that's one of the patches I need to apply. The JDBC driver I was using is buggy and allowed it to be closed early than the specification permits. -Ted.

RE: [OT] Use of Static Methods

2003-07-09 Thread Navjot Singh
There is nothing taboo about writing static methods. They are good in solving purpose. But there is an option -- Singleton. That will keep you safe. As there is only 1 object of the class for which you wish to invoke methods. so it's same as calling static methods. (well, syntax is diff ;-) You

RE: [OT] Use of Static Methods

2003-07-09 Thread Jerry Jalenak
I think so - I'm just concerned about the use of instance variables and having multiple users stepping on each other... Jerry Jalenak Team Lead, Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] -Original Message- From: Navjot Singh

RE: [OT] Use of Static Methods

2003-07-09 Thread Yansheng Lin
Depends on what you want to do. 'static' classes are loaded, not instantiated. And you are saying you want to factor out common code and marked as 'static'. I cannot think of any reason not to. Just make sure it's thread-safe. Note there is a difference between Singleton and static. Struts

Re: Cancel button not working?

2003-07-09 Thread Adam Hardy
Via logging is basically how I solved it - by figuring out where in struts I was going wrong. What it means now is that RequestProcessor is not setting that attribute - you don't need to set it by hand, struts should. It's just one little if clause. According to your logging,

Re: Include response in the JSP page

2003-07-09 Thread Affan Qureshi
I can include the image response using simple img src=myAction.do?param=myparams which is the action that returns the image response. But this causes a new request to be made on the server after the html page is downloaded. This way I cannot access request variables etc. Affan Affan Qureshi

RE: [OT] JSTL

2003-07-09 Thread Micael
There are, of course, books (or at least a book) on the topic. At 11:12 AM 7/9/03 -0400, you wrote: Did you try www.javasoft.com ? -Original Message- From: Davidson, Glenn [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 11:08 AM To: 'Struts Users Mailing List' Subject: RE:

Performance Question about Tiles Plugin

2003-07-09 Thread Axel Sachmann
Hi, i am new in Tiles and i have some Questions! After i use the tiles-plugin with a external tile-defs file - the start of my frontpage (standard and colum layout) is very slow. It's about 3-4 times slower than with static - html. How can i improve performance with the tiles plugin? Thanks for

Re: Performance Question about Tiles Plugin

2003-07-09 Thread Adam Hardy
Do you mean just the first time when the servlet container is compiling the JSP, or do you mean every time you call the page? Adam Axel Sachmann wrote: Hi, i am new in Tiles and i have some Questions! After i use the tiles-plugin with a external tile-defs file - the start of my frontpage

RE: remmeber the URL design question

2003-07-09 Thread Yansheng Lin
Use struts:). -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: July 9, 2003 9:22 AM To: [EMAIL PROTECTED] Subject: remmeber the URL design question Hi, I have to work on web application where i need for the user to logon with userid and password for some

bean:write and c:out only takes proper javabeans?

2003-07-09 Thread henrik . bentel
Does the bean write tag and the c:out tag (JSTL) only accept object that adhere to the Javabean specification? I have objects with public fields(no getter or setter) and objects inside objects all public(again no getter or setter). But if I try to do somthing like(in JSTL) C:out value=

Re: Performance Question about Tiles Plugin

2003-07-09 Thread Axel Sachmann
not only the first time! You mean just the compile time at the first request. No it slow all the time. Perhaps a memory problem? Axel Adam Hardy wrote: Do you mean just the first time when the servlet container is compiling the JSP, or do you mean every time you call the page? Adam Axel

RE: [OT] JSTL

2003-07-09 Thread Stephen Brown
There is the odvious spec doc, which is pretty good... ftp://ftp.java.sun.com/pub/spec/jstl/enov1818/jstl-1_0-fr-spec.pdf steve -Original Message- From: Micael [mailto:[EMAIL PROTECTED] Sent: July 9, 2003 12:01 PM To: Struts Users Mailing List Subject: RE: [OT] JSTL There are,

RE: [OT] Use of Static Methods

2003-07-09 Thread David Graham
One of my programmers asked me whether or not it is OK to define helper methods as 'static' - and I realized that I didn't know the answer. So I guess the question is, in a web application, can common code be factored out to a helper class and marked as 'static'? Static methods are

Re: tiles and tabs; post instead of link

2003-07-09 Thread Dudley Irish
I have just finished converting the example from the tiles examples from links to submits. It is a little more complex than just changing the code that generates the links to generate submits, though you have to do that too. First let me describe what I was trying to do. I have a form which has

RE: html:options

2003-07-09 Thread Mathew, Manoj
div id=xxx html:select property=property styleClass=%=myStyle% tabindex=100 html:options collection=collection of possible values property=key labelProperty=value/ /html:select

Re: [OT] Use of Static Methods

2003-07-09 Thread Erik Price
David Graham wrote: Static methods are evil for many reasons including philosophical (they're not OO) and practical (you can't override their behavior). You should use a Singleton class with non-static methods. And the generally accepted way to get a reference to the singleton is with a

validator validwhen not working?

2003-07-09 Thread Poon, Johnny
Hi, I'm trying to use validwhen, so that it's only valid when either all three related fields are empty or are filled, it's valid; otherwise not. ssn_1, ssn_2, and ssn_3 are the field names. For some reason, when I put this in, none of the validation takes place, not even required, minlength,

RE: [OT] Use of Static Methods

2003-07-09 Thread Yansheng Lin
I gave this a bit of thought before. I felt in some situations, static methods and instances are preferred. For example, if you want to synchronize a query method. Or in some situations where overriding is rare, i.e., java.util.Calendar. -Original Message- From: David Graham

Re: Reusable Components

2003-07-09 Thread Craig R. McClanahan
On Wed, 9 Jul 2003, Frédéric Dreier wrote: Date: Wed, 9 Jul 2003 10:13:02 +0200 From: Frédéric Dreier [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] To: struts user [EMAIL PROTECTED] Subject: Reusable Components Hi, I really need your

RE: [OT] Use of Static Methods

2003-07-09 Thread David Graham
--- Yansheng Lin [EMAIL PROTECTED] wrote: I gave this a bit of thought before. I felt in some situations, static methods and instances are preferred. For example, if you want to synchronize a query method. Or in some situations where overriding is rare, i.e., java.util.Calendar. How do

  1   2   3   >