Re: how do i get the reference of ServletContext in Action Class

2004-06-23 Thread Christopher . Marsh-Bourdon
servlet.getServletContext(). The 'servlet' is part of the super class 'Action' that contains an object 'servlet' of the type 'ActionServlet'. It's from this object the method 'getServletContext()' comes from. Cheers Christopher Marsh-Bourdon Pyplia Limited Asim Ghosh <[EMAIL PROTECTED]>

RE: how do i get the reference of ServletContext in Action Class

2004-06-23 Thread Asim Ghosh
Thanx but i already solved it. thanks again. asim Alex Epelde <[EMAIL PROTECTED]> wrote: Sorry, you should get a reference to the servlet calling your action's getServlet() method. And then use the getServletConfig() or getServletContext() methods. There is no getServletContext() method in the

RE: how do i get the reference of ServletContext in Action Class

2004-06-23 Thread Asim Ghosh
Action class is derived from Object class. Action class doesn't have any getServletConfing or getServletContext(). ActionServlet has those methods. But i need the ref. of ServletConfig or ServletContext in Action class. Alex Epelde <[EMAIL PROTECTED]> wrote:Action class has a getServletConfig me

RE: how do i get the reference of ServletContext in Action Class

2004-06-23 Thread Alex Epelde
Sorry, you should get a reference to the servlet calling your action's getServlet() method. And then use the getServletConfig() or getServletContext() methods. There is no getServletContext() method in the Action class. -Mensaje original- De: Asim Ghosh [mailto:[EMAIL PROTECTED] Enviado e

Re: Struts - How to recover collection element

2004-06-23 Thread jthompson
Superb answer Bill. I've coded the following which correctly gets the OptionsCollection, but I'm stumped as to what to substitute in place of 'MyForm.key': Type: There are a couple of ways o

RE: how do i get the reference of ServletContext in Action Class

2004-06-23 Thread Alex Epelde
Action class has a getServletConfig method which returns a ServletConfig object. You can get a reference to the ServletContext object throught this object's getServletContext() method. I also think you can directly call Action's getServletContext() (which is inherited from GenericServlet) dependin

how do i get the reference of ServletContext in Action Class

2004-06-23 Thread Asim Ghosh
hello guys, can any one tell me that how do i get the reference of ServletContext in Action Class. asim - ALL-NEW Yahoo! Messenger - so many all-new ways to express yourself

Contextual Validation

2004-06-23 Thread William Ferguson
I would like to be able to specify for an Action the validation that should be performed on it. I can't use a ValidatorActionForm as this is an existing application with much baggage and I won't be able to change the inheritance hierarchy of the existing Forms. And in any case I will want to be ab

How to implements Role Based Access Control in Struts ?

2004-06-23 Thread javen fang
Hi , all: I have queried this mailing list, and I get some discusses about RBAC ( Role Based Access Control ) in struts. I understand that in JSP page and "role" attribute in ActionMapping are all prepared with Container Management Access Control, etc, JDBCRealm. But it seems that what I need is

generators for struts

2004-06-23 Thread Sebastian Ho
hi i am starting a new project which involves struts and i am completely new to it. The IDE i am familar with is Netbeans. What tool does fellow developers used for struts? I downloaded struts console but looks like it allow me to edit/manage struts configuration file in netbeans only. Is there

How to execute an initialization by using another servlet entry in web.xml

2004-06-23 Thread manoj JC
Can somebody provide some sample code to do this. Please look at this link http://nagoya.apache.org/wiki/apachewiki.cgi?StrutsInitialization. I want to use #3 approach mentioned in this link. My questions are : (A stupid question) Does this initialization class that I would specify in web.xml, s

Re: Struts - How to recover collection element

2004-06-23 Thread Bill Siggelkow
There are a couple of ways of doing this. I think the best approach is to wrap your collection in a JavaBean that is stored in the session. Something like the following: public class OptionsHolder { Map options = new HashMap(); public OptionsHolder() { options.put("key1", new LabelValueB

Struts - How to recover collection element

2004-06-23 Thread jthompson
I've loaded a collection of valid options and their descriptions as a ServletContext attribute, for use in an tag. It works as intended in a generated html tag. Once a user selects an option, the option value (rather than the description) is recorded in a form bean, and the form bean is for

Re: Tools for JSP

2004-06-23 Thread hutuworm
WSAD or JBuilder On Wed, 23 Jun 2004 22:52:20 -0400, leonnewsgroup <[EMAIL PROTECTED]> wrote: > > Hi there, > > I was wonder if there is a tool for devloping of JSP pages or is there a way > to quickly produce JSP pages? > Thanks. > > James > >

Tools for JSP

2004-06-23 Thread leonnewsgroup
Hi there, I was wonder if there is a tool for devloping of JSP pages or is there a way to quickly produce JSP pages? Thanks. James - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Struts and PL/SQL

2004-06-23 Thread Vic Cekvenich
You can/should do both: use PL SQL and make it light and make it seperate DAO. Look at the DAO implementation and sample PetStore on iBatis.com. .V Lucas Gonzalez wrote: Joe, calling PL/SQL stored procedures is certainly a way to do it, but as you said.. the db layer should abstracted as much as

Re: How to pass parameters to forward in bean:include?

2004-06-23 Thread Bill Siggelkow
Did you try using the 'page' attribute and just adding the values manually to the query string? Robert Bowen wrote: I would like to do a ... but looking at the Struts API, something I cannot do is pass the forward parameters. If it were an struts html link tag I could do: ... thus calling

Validator maxlength, minlength

2004-06-23 Thread Jim Barrows
In essence, maxlength and minlength are working backwords from what I would expect. I fully expect this to pebcak error, but I can't seem to find it. I'm getting : Address 1 can not be greater than 30 characters. Address 2 can not be greater than 30 characters. City can not be greater than 30 cha

Re: LabelValueBeans

2004-06-23 Thread Joe Germuska
At 1:31 PM -0400 6/23/04, CRANFORD, CHRIS wrote: Is there anyway to have a property in my ActionForm class be defined as follows: private LabelValueBean[] myItems; And be able to have struts automatically populate this collection when the form is submitted? If so, how do I go about storing those v

How to pass parameters to forward in bean:include?

2004-06-23 Thread Robert Bowen
I would like to do a ... but looking at the Struts API, something I cannot do is pass the forward parameters. If it were an struts html link tag I could do: ... thus calling the forward with parameters. Can I not do this with the forward used in my bean:include? How the heck can I pass pa

RE: Tree view - Frameless Layout in struts

2004-06-23 Thread Yadav, Ganesh
Thanks Amar,Matthias & Bill Amar your finding were really very helpful to me. Looks like nanotree is a perfect feet for my requirements as I don't have any dynamic nodes and it is fast using JavaScript implementation. Last but not least Great Work Martin ([EMAIL PROTECTED]) "The King Of NanoTree

Re: [OT] Jobs

2004-06-23 Thread e-denton Java Programmer
Oops! Please disregard my previous post. It was sent in error and ignorance. It was intended for a private party. Sorry for the inconvenience. Will - Original Message - To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, June 23, 2004 5:07 PM Subject: Re: [OT] Jobs >

Re: [OT] Jobs

2004-06-23 Thread e-denton Java Programmer
Hello James, Please consider my qualifications for a Java position. My resume in Word format is attached. Thank you for your consideration. Sincerely, Will Wagers - Original Message - From: "James Mitchell" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent:

RE: Getting index value of iteration

2004-06-23 Thread Wendy Smoak
> From: Tom McCobb [mailto:[EMAIL PROTECTED] > In another section of the page I display an iterated list of > items in a collection. > I am stuck on how to get the value of "i", the index of the row wherein the button was clicked. Are you willing to use JSTL? The tag has 'varStatus' which wil

Re: Getting index value of iteration

2004-06-23 Thread miguel angel rojas aquino
well, didn't know if this is what you're looking for, but recently i've discovered how to use indexed properties: first, the jsp (sorry for the spanish comments): <%@ taglib prefix="logic" uri="/WEB-INF/struts-logic.tld" %> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> <%@ taglib u

Getting index value of iteration

2004-06-23 Thread Tom McCobb
I have been pouring over all the posts and how-tos I can find on indexed properties and indexed values in general, and I am just not getting it. Here is what I am trying to do: I have a search page in a section of my main jsp. It returns results into a SELECT, and the chosen item in the SELECT po

Re: LabelValueBeans

2004-06-23 Thread Michael McGrady
You can rewrite or extend the class to suit yourself, of course. At 10:52 AM 6/23/2004, James Mitchell wrote: No, look at the source for the class and you'll see why. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message -

RE: Setting html:hidden property using JSTL

2004-06-23 Thread Robert Taylor
I believe the reason it's not populated in the action form is because its in the request as an attribute and not a parameter. I just started experimenting with jstl and i'd like to set a hidden field on MyActionForm using a value (contentId) available as an attribute on the request. robert >

Re: Setting html:hidden property using JSTL

2004-06-23 Thread Rick Reumann
klute wrote: Yes, the struts-el.jar is in WEB-INF/lib --- Rick Reumann <[EMAIL PROTECTED]> wrote: klute wrote: This are the tagligs i am importing on this page: <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/W

Re: Struts and PL/SQL

2004-06-23 Thread Lucas Gonzalez
Joe, calling PL/SQL stored procedures is certainly a way to do it, but as you said.. the db layer should abstracted as much as possible... I have some ideas of how to do it, but was looking around to see if somebody knew something about that... or had other ideas... Regards, Lucas - Original

RE: How to read a large XML file in the ActionServlet

2004-06-23 Thread manoj JC
Thank you very much for your suggestions, Frank. That was really helpful. From: "Frank Zammetti" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: RE: How to read a large XML file in the ActionServlet Date: Wed, 23 Jun 2004 14:30:27 -0400

RE: Struts and PL/SQL

2004-06-23 Thread Robert Taylor
If your trying to avoid the overhead of EJB, then you may want to look into the Spring framework. I've been wanting to find a flexible architecture/framework which allows me to start with a non-EJB type of approach and easily scale to using an EJB container while minimizing the impact on the applic

Re: Setting html:hidden property using JSTL

2004-06-23 Thread klute
Yes, the struts-el.jar is in WEB-INF/lib --- Rick Reumann <[EMAIL PROTECTED]> wrote: > klute wrote: > > > > value="${contentId}"> > > > > This are the tagligs i am importing on this page: > > <%@ taglib uri="/WEB-INF/struts-bean.tld" > > prefix="bean" %> > > <%@ taglib uri="/WEB-INF/struts-html

RE: Message Resource lookup curiosity..

2004-06-23 Thread Joe Hertz
Yeah, this was one of the options I considered. I really hate hate hate the idea of storing "form.gender.male" in the database. I'm imagining all the SQL that would have to be executed on the production system if it ever changes. > -Original Message- > From: Eddie Yan [mailto:[EMAIL PROT

RE: LabelValueBeans

2004-06-23 Thread CRANFORD, CHRIS
Found my problem. I didn't have a getter method: public LabelValueBean getManufacturers(int index) { } Thanks Chris -Original Message- From: CRANFORD, CHRIS [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 2:05 PM To: 'Struts Users Mailing List' Subject: RE: LabelValueBeans

Re: Struts and PL/SQL

2004-06-23 Thread Joe Germuska
At 3:06 PM -0300 6/23/04, Lucas Gonzalez wrote: Hi all! I´ve been using Struts a lot with EJB and Hibernate with no problems. But I always wondered if it´s possible to use an architecture that uses STRUTS and goes directly to PL/SQL for the database layer. I know it is possible in many way, but I w

Re: Setting html:hidden property using JSTL

2004-06-23 Thread Rick Reumann
klute wrote: This are the tagligs i am importing on this page: <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %> <%@ taglib uri="http://java.sun.com/jstl/core"; pref

RE: How to read a large XML file in the ActionServlet

2004-06-23 Thread Frank Zammetti
I don't care how good of an XML parser you are using, parsing virtually any XML file on a per-request basis is a Bad Idea (tm). You definitely want to find a way to (a) store the parsed information in memory, or (b) maybe read it from a database, which may or may not actually wind up being any

How to read a large XML file in the ActionServlet

2004-06-23 Thread manoj JC
Hi I want to read a a large XML file for each request that comes to the ActionServlet. This is for a reporting application. What I did was I created seperate XML file where I have specified the action elements and its related subelements. So when I get the request I get the corresponding XML nod

RE: Setting html:hidden property using JSTL

2004-06-23 Thread Slattery, Tim - BLS
> I just started experimenting with jstl and i'd like to > set a hidden field on MyActionForm using a value > (contentId) available as an attribute on the request. > Basically, i'd like to do something like this: > > "/> > > Which does not work. No, it won't. You're trying to nest tags, and

Re: Setting html:hidden property using JSTL

2004-06-23 Thread klute
Thanks a lot to all who responded! So i tried using html-el using the syntax Rick suggested: The resulting html contains: This are the tagligs i am importing on this page: <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%

RE: LabelValueBeans

2004-06-23 Thread CRANFORD, CHRIS
I think 1.2. When I look at the properties in my editor on this object, I do see: setLabel(java.lang.String) setValue(java.lang.String) So how would one create a form element in their JSP to populate an array of LabelValueBeans? I'm getting the following error: javax.servlet.ServletExceptio

Re: LabelValueBeans

2004-06-23 Thread James Mitchell
Hmm...sorry for the misinformation, seems it has had them for a whilenot sure what I was thinking (need more coffee) So, ignore me. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "James Mitchell" <[E

Re: LabelValueBeans

2004-06-23 Thread James Mitchell
Last time I looked there were getters but no setters. What version are you running? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "CRANFORD, CHRIS" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'"

Struts and PL/SQL

2004-06-23 Thread Lucas Gonzalez
Hi all! I´ve been using Struts a lot with EJB and Hibernate with no problems. But I always wondered if it´s possible to use an architecture that uses STRUTS and goes directly to PL/SQL for the database layer. I know it is possible in many way, but I would like to know if there is any special prod

RE: LabelValueBeans

2004-06-23 Thread CRANFORD, CHRIS
I saw an example somewhere using indexed properties like: labelvalue[index].label labelvalue[index].value If I can get at the data this way, there is no way to set it? Chris -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 23, 2004 1:52 PM To

Re: Setting html:hidden property using JSTL

2004-06-23 Thread Rick Reumann
klute wrote: Hi All, I just started experimenting with jstl and i'd like to set a hidden field on MyActionForm using a value (contentId) available as an attribute on the request. Basically, i'd like to do something like this: "/> Which does not work. Should i be using EL syntax instead? And wh

Re: LabelValueBeans

2004-06-23 Thread James Mitchell
No, look at the source for the class and you'll see why. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "CRANFORD, CHRIS" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 23, 2004 1:31 PM

R: Setting html:hidden property using JSTL

2004-06-23 Thread Amleto Di Salle
Hi, yes you can use the EL but depends on the Web Container you are using. If you have a Web container JSP2.0 (and 2.4 servlet) compliant (for example Tomcat5.0.x), you can use JSTL 1.1 (if you want to use them you have to set your application)and html Struts standard. In order to use, this versi

Re: Setting html:hidden property using JSTL

2004-06-23 Thread Christopher . Marsh-Bourdon
James Do you include the HTML tag library within the jsp page? It needs to go at the top and look like this: <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> Cheers Christopher Marsh-Bourdon Pyplia Limited klute <[EMAIL PROTECTED]> 23/06/2004 18:25 Please respond to "Struts Use

Re: Setting html:hidden property using JSTL

2004-06-23 Thread Christopher . Marsh-Bourdon
I've also noticed you are doubling up on double quotes, try this: or Cheers Christopher Marsh-Bourdon Pyplia Limited klute <[EMAIL PROTECTED]> 23/06/2004 18:25 Please respond to "Struts Users Mailing List" To: Struts Users Mailing List <[EMAIL PROTECTED]> cc:

LabelValueBeans

2004-06-23 Thread CRANFORD, CHRIS
Is there anyway to have a property in my ActionForm class be defined as follows: private LabelValueBean[] myItems; And be able to have struts automatically populate this collection when the form is submitted? If so, how do I go about storing those values in the form so they're seen and populated

Setting html:hidden property using JSTL

2004-06-23 Thread klute
Hi All, I just started experimenting with jstl and i'd like to set a hidden field on MyActionForm using a value (contentId) available as an attribute on the request. Basically, i'd like to do something like this: "/> Which does not work. Should i be using EL syntax instead? And what would the

RE: delete a record

2004-06-23 Thread Michael McGrady
This is not a struts issue. You have a few choices. JavaScript is a poor one, in my opinion. Use two response objects: one to give them the option and the second to give them the option the second time. Another way to do this is to archive the record instead of deleting it and only delete it

RE: Treeview - Frameless Layout in struts

2004-06-23 Thread Jirole, Amar
There are quite a few tree controls there using diff. techs. Here are some of the controls I investigated during my project. Here is an article which explains how to build a simple tree control on your own. http://www.devx.com/webdev/Article/9843/0/page/2 Jpowered has some decent tree controls

RE: How to use dynamically generated CSS style with Struts tags

2004-06-23 Thread Kris Schneider
For resources that make good candidates for caching, like images and CSS files, it's worth looking at using a servlet that overrides getLastModified. Obligatory JSTL plug: <%@ page contentType="text/css" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> .cssMainBody { background-

Re: Treeview - Frameless Layout in struts

2004-06-23 Thread Bill Siggelkow
I think struts-menu (http://struts-menu.sourceforge.net) might suit your needs. Yadav, Ganesh wrote: Folks, I am developing a J2EE based data oriented application using Struts. I want to develop a UI using Frameless Layout For Tree view, something like left side of the page will have a Tree View

Re: Treeview - Frameless Layout in struts

2004-06-23 Thread James Mitchell
Why are you sending this to everyone? All you need to to is send it to the struts user list and we will all get it. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Yadav, Ganesh" <[EMAIL PROTECTED]> To:

RE: Treeview - Frameless Layout in struts

2004-06-23 Thread Matthias Wessendorf
perhaps you might look at this http://www.guydavis.ca/projects/oss/tags/ cheers, > -Original Message- > From: Yadav, Ganesh [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 23, 2004 6:22 PM > To: Charles Cordingley ; Christopher Marsh-Bourdon ; > [EMAIL PROTECTED]; David Friedman ; >

Treeview - Frameless Layout in struts

2004-06-23 Thread Yadav, Ganesh
Folks, I am developing a J2EE based data oriented application using Struts. I want to develop a UI using Frameless Layout For Tree view, something like left side of the page will have a Tree View and depending on selected node right side of the page will be filled up with different forms for inp

[ot]Help with classpath issues in my ant script.

2004-06-23 Thread Mick . Knutson
I have been looking through the archives all week, and still can't figure this one out. I have added the commons logging into my build LIB directory and referenced it, and I also added it to my ant_home/lib directory. As per the directions on the Cactus website: http://jakarta.apache.org/cactus/in

R: Logic:Iterate Problem

2004-06-23 Thread Amleto Di Salle
Hi, you can use the JSTL1.1 (or 1.0 as you want) in the following way: <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> you can use "pageScope", "requestScope", "sessionScope" or "applicationScope" depending on the "pageRecords" is stored.

RE: Logic:Iterate Problem

2004-06-23 Thread Robert Taylor
Assuming you have a scoped Collection named "pageRecords": Struts tags: JSTL: robert > -Original Message- > From: Eddie Yan [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 23, 2004 12:06 PM > To: [EMAIL PROTECTED] > Subject: Logic:Iterate Problem > > > Hi guys, > > Say I

R: Logic:Iterate Problem

2004-06-23 Thread Amleto Di Salle
Hi, you can use the JSTL1.1 (or 1.0 as you want) in the following way: <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %> you can use "pageScope", "requestScope", "sessionScope" or "applicationScope" depending on the "pageRecords" is stored.

Logic:Iterate Problem

2004-06-23 Thread Eddie Yan
Hi guys, Say I have a JSP as follows: <% Iterator iter = pageRecords.iterator(); while(iter.hasNext()) { UserDetail detail = (UserDetail)iter.next(); %> <%= detail.getId() %> <% } %> pageRecords is a Collection of UserDetail object. UserDetail is my data tr

RE: delete a record

2004-06-23 Thread Julia Weaver
Thanks for everyone' suggestion... __ Do you Yahoo!? Read only the mail you want - Yahoo! Mail SpamGuard. http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PR

RE: How to use dynamically generated CSS style with Struts tags

2004-06-23 Thread Voinea, Marina
Thank you Frank, I understand how you use it, the strings you've generated can then be used inside the Struts tags (inline generation). by giving values to the style and styleClass attributes inside the tag)... Thanks again, Marina -Original Message- From: Frank Zammetti [mailto:[EM

RE: delete a record

2004-06-23 Thread Geeta Ramani
oh ok. Just use Javascript:confirm(..) Geeta > -Original Message- > From: Julia Weaver [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 23, 2004 11:42 AM > To: Struts Users Mailing List > Subject: RE: delete a record > > > Thank you Geeta, > > What I want to do is when user click DELET

RE: delete a record

2004-06-23 Thread DGraham
http://www.google.com/search?sourceid=navclient&ie=UTF-8&oe=UTF-8&q=_javascript_+confirm Dennis Julia Weaver <[EMAIL PROTECTED]> 06/23/2004 11:41 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To Struts Users Mailing List <[EMAIL PROTECTED]> cc Subject RE

RE: delete a record

2004-06-23 Thread Jarnot Voytek Contr AU/SC
http://www.google.com/search?q=javascript+confirm -- Voytek Jarnot "Racing makes heroin addiction look like a vague longing for something salty." - Peter Egan > -Original Message- > From: Julia Weaver [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 23, 2004 10:42 AM > To: Struts Users

RE: delete a record

2004-06-23 Thread Julia Weaver
Thank you Geeta, What I want to do is when user click DELETE button, will show a pop-window with information "Are you sure you want to delete the record?", and with YES and NO buttons. --- Geeta Ramani <[EMAIL PROTECTED]> wrote: > Julia: > > I think your question may not be too clear. Firs

RE: when delete a record

2004-06-23 Thread Barnett, Brian W.
There are numerous ways it could be done. It's really up to you on the workflow you would like. One simple way is to just use the edit page as your delete page as well. We use one jsp page for add/edit/delete and have a flag on our form bean indicating whether we are adding/editing/deleting. We se

RE: delete a record

2004-06-23 Thread Geeta Ramani
Julia: I think your question may not be too clear. First what do you mean by "delete a record in struts"? Strictly speaking, I believe Struts does not (should not) have code which properly belongs the business/database layer. So assuming that you want to show a confirmation page when your appli

RE: How to use dynamically generated CSS style with Struts tags

2004-06-23 Thread Guillermo Meyer
You could also use Xkins (http://xkins.sourceforge.net/) to generate something similar in your css: .cssMainBody { background-color : ; color : ; } Or: .cssMainBody { ; } And let Xkins manage the styles in a skin fashion. Xkins 0.9.8 lets you to comose Skins so the functionality could be a

Re: New Validating system instructions?

2004-06-23 Thread David Erickson
Joe, There have been some subtle changes especially within the Validator, for example the xml you no longer specify arg0-arg3, you specify an arg then give it a position attribute to change message key info for display. A couple things I've had to do that seem pretty tedious and could likely be a

delete a record

2004-06-23 Thread Julia Weaver
Hi, Can anyone please tell me: How to do a confirmation when delete a record in struts? Thank you, __ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail ---

RE: How to use dynamically generated CSS style with Struts tags

2004-06-23 Thread Frank Zammetti
I don't at present use any taglibs whatsoever in the app I'm doing this in, so I don't know if there is any added complexity involved there. But as far as what I AM doing goes, I'm not sure what will really be helpful, so let me get as detailed as I can and you can ignore the superfolous parts.

Re: [OT] Issues while developing and deploying enterprise application

2004-06-23 Thread Navjot Singh
thx a lot, robert. i thought nobody will reply to my trivial question. i will follow up on that list. navjot singh Robert Taylor wrote: Navjot, although I don't have an answer for you, I posted (forwarded) your question to the [EMAIL PROTECTED] mailing list which may be a more appropriate list fo

when delete a record

2004-06-23 Thread Julia Weaver
Hi, Can anyone please tell me: How to do a confirmation when delete a record in struts? Thank you, __ Do you Yahoo!? Yahoo! Mail - Helps protect you from nasty viruses. http://promotions.yahoo.com/new_mail --

Forwarding with different parameter

2004-06-23 Thread Irfandhy Franciscus
Hi this post refers to an article in Struts Wiki page : http://wiki.apache.org/struts/ForwardingWithDifferentParameter Mark Diggory raises an interesting issue on how to forward parameters from an Action class. I personally feel that his wrapper class is a very good abstraction to can solve pr

basic questions about the request cycle

2004-06-23 Thread Xavier Noria
Hello, I am just doing a landing in Struts, reading documentation and online articles, and trying to get the big picture. I have some background in web development and I know the MVC paradigm in web programming. I see actions related normally to forms in what I read. Do actions serve requests

RE: logic:redirect not working (problem with dynamic jsp:include?)

2004-06-23 Thread Kris Schneider
Any attempts by an included resource to change headers or response status codes should be ignored, that's just part of the spec. An include *directive* might work, but this sort of functionality really doesn't belong in a JSP. If you're using at least a Servlet 2.3 container, try a Filter. Otherwis

RE: logic:redirect not working (problem with dynamic jsp:include?)

2004-06-23 Thread Adam Lipscombe
Folks, I have discovered that if I use the mechanism then the code below does not work. It does work if I use the <%@ include file="..." %> construct. So, there appears to be a problem with using logic:redirect in a dynamically included JSP? Any ideas? TIA - Adam -Original Message

RE: How to use dynamically generated CSS style with Struts tags

2004-06-23 Thread Voinea, Marina
Thank you very much for your answer, Frank,This is the second time you come to my help! I don't want to seem lazy, but could you please give an example from the code... (the style sheet jsp and an example of a tag , for ex: html:text or anything else which is using the info from the syle sheet :

Re: [OT] load testing

2004-06-23 Thread Nicolas De Loof
Thanks for replies, We are using Loadrunner to create load. As dennis suggested, I'm going to analyze wating time for a 'real' user to get an avarage request/second/user. Nico. > I don't know the answer to your specific question, as I think it involves some > industrial strength statistical

Re: New Validating system instructions?

2004-06-23 Thread Joe Germuska
At 9:18 PM -0600 6/22/04, David Erickson wrote: Just wondering if there are any docs up on how the validator works in the new nightly builds of struts... trying to transition everything to using ActionMessages and storing the errors/messages under different keys within that object, just wondering h

Re: no struts classes (jar files) found by application

2004-06-23 Thread Michael Kastner
Hello, I just wanted to thank all those, who replied to my question. Thanks for all the useful hints. I must have been blind. The link, mentioned by Bill, really explains it: http://jakarta.apache.org/struts/userGuide/configuration.html#config_add Thanks for your patience Michael Kastner

RE: [OT] load testing

2004-06-23 Thread Chappell, Simon P
I don't know the answer to your specific question, as I think it involves some industrial strength statistical math. But ... I'll tell you what we did. Our application needed to be load tested to ensure performance within certain times at up to 50 users. (We actually tested to 100 users, just fo

Re: [OT] load testing

2004-06-23 Thread DGraham
This is application/context dependent.  Ebay users may have a wait time of 2-20 seconds, where the low end results from scanning a page and dismissing it out of hand and the high end is the result of an auction with a REALLY long/detailed/funny description.  Other web applications may have incredi

RE: [OT] Issues while developing and deploying enterprise application

2004-06-23 Thread Robert Taylor
Navjot, although I don't have an answer for you, I posted (forwarded) your question to the [EMAIL PROTECTED] mailing list which may be a more appropriate list for this type of question. robert > -Original Message- > From: Navjot Singh [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 23,

Re: tiles sidebar,header,footer

2004-06-23 Thread Christopher . Marsh-Bourdon
Jignesh Apologies if you think I'm fobbing you off, but the Struts example explains what you need to know. I fail to see the point of someone having to force feed you the information because you don't want read some documentation. Cheers Christopher Marsh-Bourdon Pyplia Limited <[EMAIL

[OT] load testing

2004-06-23 Thread Nicolas De Loof
Hi all, I've to make some load tests on my app. Our customer wants the appli to handle "300 simultaneous users". To translate this requirement into request per second, how many time do you consider an 'active web user' to wait between 2 request ? Nico. Our name has changed. Please update y

Re: tiles sidebar,header,footer

2004-06-23 Thread jpatel
James, Thanks, that is what I would like to know. Christopher may also have clear idea on the basis of this answer. -Jignesh On Wed, 23 Jun 2004 08:22 , 'James Mitchell' <[EMAIL PROTECTED]> sent: >With Tiles your pages are rendered on the server-side. So, here's your >fish, YES, you can use a

logic:redirect not working

2004-06-23 Thread Adam Lipscombe
Folks, I am trying to implement a simple login gate to ensure a user is logged in. My code is below. When a user is logged in successfully a session attribute named "userContext" is present, and this has a property named "user". There is a global forward called "login" LoginGate.jsp: <%@ t

Problem with Apache and Tomcat integration

2004-06-23 Thread Diego
Hi! I'm having problems with Apache+Tomcat integration. I've configured Apache to listen on port 7001 and Tomcat on 8080. The struts-example application works fine, but whenever I call an Action in my own application , the URL is changed to port 8080 when that Action finishes (using return(mappi

Re: tiles sidebar,header,footer

2004-06-23 Thread James Mitchell
With Tiles your pages are rendered on the server-side. So, here's your fish, YES, you can use a static html page as the header/footer, but NO, it won't be cached, it will be retrieved via requestDispatcher.include() with every call for that tile definition. -- James Mitchell Software Engineer /

RE: preventing user from validating twice

2004-06-23 Thread Olivier Citeau
Colin, Satish, Jacob, thank you very much for your help. Since i received an "Undeliverable" mail, i thought that my question did not reached the list, and i posted it twice. Créez gratuitement votre Yahoo! Mail avec 100 Mo de stockage ! Créez votre Yahoo!

Re: tiles sidebar,header,footer

2004-06-23 Thread jpatel
No I am talking for tiles only. But rather then getting precise answer, I am getting reply to read tutorial. -Jignesh On Wed, 23 Jun 2004 04:59 , Michael McGrady <[EMAIL PROTECTED]> sent: >Are you talking about frames? > >At 02:15 AM 6/23/2004, [EMAIL PROTECTED] wrote: >>Jignesh >> >>What do you

Problem with Apache and Tomcat integration

2004-06-23 Thread Diego
Hi! I'm having problems with Apache+Tomcat integration. I've configured Apache to listen on port 7001 and Tomcat on 8080. The struts-example application works fine, but whenever I call an Action in my own application , the URL is changed to port 8080 when that Action finishes (using return(mappi

Re: tiles sidebar,header,footer

2004-06-23 Thread Michael McGrady
Are you talking about frames? At 02:15 AM 6/23/2004, [EMAIL PROTECTED] wrote: Jignesh What do you mean by static and called back? If by this you mean the tiles for these areas do not change, then yes, this is possible. The "called back" has me puzzling though. Cheers Christopher Marsh-Bourdon Pypl

  1   2   >