Nathan Smith/Corporate/FSC is out of the office.

2002-02-19 Thread Nathan . Smith
I will be out of the office starting 02/19/2002 and will not return until 02/20/2002. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Struts 1.1 and Tiles

2002-02-19 Thread Cedric Dumoulin
Hi Dave, The normal way to use Tiles with Struts is to write your own action forwarding to a logical name. This logical name can be linked to a Tile definition name : action path=/test/testAction type=org.apache.struts.example.tiles.test.TestActionTileAction forward

Re: is ActionForm required for Action even if no form on page?

2002-02-19 Thread Adam Hardy
I'm getting an error on my page, because I haven't done this, from html:errors, but short of getting rid of html:errors, is there a way to tell struts I don't need a form? If you don't have form then you probably don't need the html:errors. I do need html:errors on the page, because in

exception in action

2002-02-19 Thread Ivan Siviero
hi everyone. I have an errorpage to which all the exceptions are forwarded. This errorpage emails me the exception details and display a user friendly message instead of the complete exception details. Everything works fine when the exception occurs in some custom tag, i get the exception by

RE: Null Pointer Exception with Validator MessagesTag.java:253 -- Nevermind

2002-02-19 Thread Keith
I'm surprised it doesn't give a better message. You're not the 1st to wish for this!. --- Robert D. Morse [EMAIL PROTECTED] wrote: Never mind. A typo in my ApplicationResources.properties files was preventing it from finding the 'errors.required' message. Perhaps a log message to indicate

Re: Using logic:equals tag around html:form action.... tag. Is it legal?

2002-02-19 Thread Patrick Refondini
the wrong syntax seems to come from my previous quick and dirty answer :( Problems: 1. bean:define value must not be define as body content but as value attribute. 2. forget about action='bean:write name=formAction' it compiles but the bean:write tag is not interpreted so at runtime the

RE: Can this be done at all using Form objects within struts framework

2002-02-19 Thread Ian Beaumont
Ok - I've been through the example again. What I want to achieve is something similar to the 'Edit user registration details'. This pre-populates the form with existing details. Now the way the example does this is to create the RegistrationForm in the action and then populate it. From

Re: is ActionForm required for Action even if no form on page?

2002-02-19 Thread Mark Woon
Adam Hardy wrote: How do I create a mapping that doesn't need an ActionForm? Could you give me the XML? Currently I've got the following with a dummy form and an empty dummy class, but if I get rid of the name attribute, it gives an ActionError: actionpath=/questionSetList

RE: Tiles examples in Jbuilder5 and Tomcat 4 ?

2002-02-19 Thread Robert D. Morse
John, I'm using 4.0.1 without any problems, although I had exactly what you're experiencing when using the version that was packaged with JBuilder. One other thing to check: Project...Project Properties...Servers make sure that Tomcat 4.0 is selected. also Project...Project

Re: Howto struts on OS/390??

2002-02-19 Thread Keith
Is that OS/390 as on a mainframe? I've heard you can run Linux then anything you want like Tomcat under that. Seems pretty weird running operating systems under other operating systems. Let us know if that's true. Sorry I can't help! Wouldn't IBM help you? You'd be good advertising for them.

RE: Howto struts on OS/390??

2002-02-19 Thread Chris Birch
Are you running MVS on OS/390? If so, can you ask the mainframe admin to put AIX or Linux on an MVS partition? Then, as Keith says, it should be a straight forward unix install. If you're attempting to run it on TSO then I think you'll be entering a whole world of pain... Getting IBM's help

RE: Form - Bean conversion - Not getting values

2002-02-19 Thread James Mitchell
Yes, they should be. But your embedded bean might not be there from one request to the next. I'm afraid I can't speak as knowledgeable about using ActionForms in the session scope because I don't like to do this in a production environment. (This can hamper performance) James Mitchell Software

Nathan Smith/Corporate/FSC is out of the office.

2002-02-19 Thread Nathan . Smith
I will be out of the office starting 02/19/2002 and will not return until 02/20/2002. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Nathan Smith/Corporate/FSC is out of the office.

2002-02-19 Thread Jim.W.Berg
Why do I care? Jim Berg Sr. Software Specialist PSCI [EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

logic:iterate tag

2002-02-19 Thread Henry Lu
Could someone tell me why the following code doesn't work? How to make it work? public class MyClass_1 { ... } /// public class MyClass_2 extends MyClass_1 { ...

Re: Nathan Smith/Corporate/FSC is out of the office.

2002-02-19 Thread Amitkumar_J_Malhotra
come on Jim , Nathan is perhaps out of office and is subscribed to our user group and this is the reply which is generated automatically to every mail that comes inu do not have to take things so seriously rgds, amit -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

Attn: Francisco Hernandez

2002-02-19 Thread John M. Corro
Francisco, You sent me 2 emails yesterday w/ a subject line Re: Itext - PDF from Struts, both emails were infected and quarentined by our anti-virus software. If you had a specific question, please resend w/ an uninfected email. (Sorry to post on the Struts forum, but the email

RE: Attn: Francisco Hernandez

2002-02-19 Thread Jeff Robertson
I suspect it is not Mr. Hernandez himself who is sending these emails, but the virus/worm propagating itself in his name. I got a couple of these two. -Original Message- From: John M. Corro [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 08:48 To: [EMAIL PROTECTED]

Re: logic:iterate tag

2002-02-19 Thread gb
Can you give me a little more info about the error ?? On Tue, 19 Feb 2002 08:30:40 -0500 (EST) Henry Lu [EMAIL PROTECTED] wrote: Could someone tell me why the following code doesn't work? How to make it work?

Re: logic:iterate tag

2002-02-19 Thread SUPRIYA MISRA
You will need to use the nested tag or indexed tag for the values to be changed on the form. From: Henry Lu [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: struts users [EMAIL PROTECTED] Subject: logic:iterate tag Date: Tue, 19 Feb 2002 08:30:40 -0500 (EST) Could

Re: Nathan Smith/Corporate/FSC is out of the office.

2002-02-19 Thread rob
I'm not particularly offended by this happening but I do agree that it is bad etiquitte to have automatic replys about people being in or out of their office as a result of messages received from a mail list. Perhaps Mr. Smith should invest in a second mail account from which he can sign up to

RE: no subject I have a question about putting jsp in web-inf

2002-02-19 Thread Keith
Users can't get at anything under web-inf by name. So it stops them running your jsp directly or viewing their source code. They still work because they can be referenced by a Sevlet (ie the struts ActionServlet). (not all servers are the same here). It's a 'rule' for commercial/senstive sites

Re: logic:iterate tag

2002-02-19 Thread Henry Lu
How? --- Henry Lu MCITphone: (734) 936-2063 University of Michigan Medical Center fax: (734) 763-4372 On Tue, 19 Feb 2002, SUPRIYA MISRA wrote: You will need to use

Re: logic:iterate tag

2002-02-19 Thread Henry Lu
I don't remember the error exactly but something like Servlet errors. --- Henry Lu MCITphone: (734) 936-2063 University of Michigan Medical Center fax: (734) 763-4372

Re: problems with bean:write tag

2002-02-19 Thread Keith
I always meant to find out for sure but I think it may be because you don't have a setter method. If you don't have matching get/set it's not a property. (according to the bean spec I believe) also according to struts. Please let us know if that is what was wrong. --- [EMAIL PROTECTED] wrote:

Re: Struts 1.1 and Tiles

2002-02-19 Thread Dave Weis
On Tue, 19 Feb 2002, Cedric Dumoulin wrote: The normal way to use Tiles with Struts is to write your own action forwarding to a logical name. This logical name can be linked to a Tile definition name : action path=/test/testAction

Using bean:write in a html tag value property

2002-02-19 Thread Andrew . Goodnough
This seems like it should be simple but I'm having trouble with how to use a bean:write as the value in a struts html: tag. For instance, the following code works but I'd like to use instead, something like the line that is commented out below. logic:iterate id=po name=purchaseOrders type

Re: simple text field value display

2002-02-19 Thread Keith
Take the value= clause off. I never use it. Struts will call public String getSupplierID() in your formBean to set the value on output setSupplierID(String ) on submission of the form. I think value= is to give an initial value if you aren't invoking your jsp via an action. K. --- Domen,

Re: Struts 1.1 and Tiles

2002-02-19 Thread Cedric Dumoulin
Do you use appropriate ComponentActionServlet and TilesRequestProcessor (if Struts1.1) ? If not, specify the first in web.xml and second in struts-config.xml. Check tiles-doc or struts-tiles example to know the syntax. If you write modified ForwardAction, I will make it available in the

Re: problems with bean:write tag

2002-02-19 Thread Andrew . Goodnough
Yes, I've run into this many times. The setter and getter must match types (i.e. if you are setting an Integer, you must have a getter for an Integer). In addition, I've had problems overloading these methods. For instance, many times I want an alternate setter which accepts a primitive int

Re: logic:iterate tag

2002-02-19 Thread Henry Lu
Thanks all. I figured out. --- Henry Lu MCITphone: (734) 936-2063 University of Michigan Medical Center fax: (734) 763-4372 On Tue, 19 Feb 2002, Keith wrote: Could

Re: logic:iterate tag

2002-02-19 Thread Fernando Esteban Barril Otero
Complementing, you don't need to specify the iterate tag's type attribute if you are using the bean:write tag (which uses reflection to get the properties). Fernando - Original Message - From: Keith [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday,

RE: logic:iterate tag

2002-02-19 Thread Jerome Josephraj
Henry, I do have the same problem. Could you please post the solution. TIA, Jerome. -Original Message- From: Henry Lu [mailto:[EMAIL PROTECTED]] Sent: 19 February 2002 14:37 To: Struts Users Mailing List Subject: Re: logic:iterate tag Thanks all. I figured out.

Re: Howto struts on OS/390??

2002-02-19 Thread TP
We have Tomcat 4.0.1 running on OS/390 under a linux (suse) partition through VM and it is quite stable. Also, Apache 1.3.19 is on there. So, it can be done. I have heard instances where people have got it to run under Linux under a LPAR. What I would like to know is that has anyone got Tomcat

RE: logic:iterate tag

2002-02-19 Thread Henry Lu
I just recompile all codes. I think I didn't recompile one java code. --- Henry Lu MCITphone: (734) 936-2063 University of Michigan Medical Center fax: (734) 763-4372

Re: Struts 1.1 and Tiles

2002-02-19 Thread Dave Weis
On Tue, 19 Feb 2002, Cedric Dumoulin wrote: Do you use appropriate ComponentActionServlet and TilesRequestProcessor (if Struts1.1) ? If not, specify the first in web.xml and second in struts-config.xml. Check tiles-doc or struts-tiles example to know the syntax. Sorry to be dense, but I

RE: Problem in getting request parameter

2002-02-19 Thread subhendukumar mohanty
Any help! -Original Message- From: subhendukumar mohanty Sent: Monday, February 18, 2002 8:44 PM To: [EMAIL PROTECTED] Subject: Problem in getting request parameter Hi I am using websphere test environment with visual age . One of my jsp has Struts form tag. Inside that form there

Declarative Exception Handling - where do I get more information?

2002-02-19 Thread Matt Raible
I believe this functionality is in the nightly build, so the dev list might be more appropriate, but here goes... Does anyone know where I can find an example of using Declarative Exception handling (struts-config.xml) for use in my application. Thanks, Matt

sessions

2002-02-19 Thread Bill Page
I'm having a problem with sessions using JRun. I have noticed that the address line sometimes has a url;jsessionid=n and sometimes it doesn't. When it doesn't I seem to end up with a new session id. Any thoughts? thanks bill page [EMAIL PROTECTED] Digital Garden

ActionForm Problem

2002-02-19 Thread Tom Bednarz
Hi, I am quite new to Struts and have a problem with an Action and ActionForm. I am running Struts 1.0.1 and Tomcat 4.0.1, my IDE is JBuilder 6 Enterprise. I have the problem, that all the properties of a form are empty. When running the program in the debugger I can see the following sequence

Re: Struts 1.1 and Tiles

2002-02-19 Thread Cedric Dumoulin
TilesRequestProcessor has been committed with Tiles for Struts1.1 since 18/02. It should be now in latest Struts nightly build. Also, you can download Tiles from its main site, and choose development version. It is in it (I have just check it ;-) ). Try to play with tiles-doc.war. You need

Nathan Smith/Corporate/FSC is out of the office.

2002-02-19 Thread Nathan . Smith
I will be out of the office starting 02/19/2002 and will not return until 02/20/2002. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: ActionForm Problem

2002-02-19 Thread Fernando Esteban Barril Otero
You need to follow the JavaBeans convention. If you have a setUserName() and a getUserName(), you need to set the property name to userName and so on. Fernando - Original Message - From: Tom Bednarz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 19, 2002 2:00 PM

Struts support for body background image??

2002-02-19 Thread Greg Hess
Hi All, I would like to avoid writing a scriplet in my jsp to provide a background image. body background=%=request.getContextPath()%/images/background.jpg Does anyone know an alternate solution, or if Struts plans to provide a html:body tag in the future? Thanks, Greg -- To unsubscribe,

Re: Struts 1.1 and Tiles

2002-02-19 Thread Dave Weis
On Tue, 19 Feb 2002, Cedric Dumoulin wrote: TilesRequestProcessor has been committed with Tiles for Struts1.1 since 18/02. It should be now in latest Struts nightly build. Also, you can download Tiles from its main site, and choose development version. It is in it (I have just check it ;-)

JSP size optimizations

2002-02-19 Thread Dave J Dandeneau
We are currently getting Branch too large exceptions on some of our larger JSPs. We have tried to include as much as we can from other JSPs to reduce the method size, but we are still exceeding the 64K limit. On one of the JSPs in particular we have three different date inputs which I believe

Displaying Test if html:errors is free of errors...

2002-02-19 Thread Mattos, John
Hi In a jsp, I want to display some text if there are no errors present, that is, that html:errors hasn't been populated with any errors in my perform() method. What's the best way to do this? John John Mattos Sr. Developer and Architect iNDEMAND 345 Hudson St. 16th Floor New York, New York

Re: Struts 1.1 and Tiles

2002-02-19 Thread Cedric Dumoulin
Dave Weis wrote: On Tue, 19 Feb 2002, Cedric Dumoulin wrote: TilesRequestProcessor has been committed with Tiles for Struts1.1 since 18/02. It should be now in latest Struts nightly build. Also, you can download Tiles from its main site, and choose development version. It is in it

Re: Struts 1.1 and Tiles

2002-02-19 Thread Dave Weis
On Tue, 19 Feb 2002, Cedric Dumoulin wrote: Dave Weis wrote: On Tue, 19 Feb 2002, Cedric Dumoulin wrote: TilesRequestProcessor has been committed with Tiles for Struts1.1 since 18/02. It should be now in latest Struts nightly build. Also, you can download Tiles from its main site,

RE: JSP size optimizations

2002-02-19 Thread Alex Paransky
Hopefully, you are using the dynamic include and not the static include, right? -AP_ -Original Message- From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 9:30 AM To: Struts Users Mailing List Cc: Nilesh R Gohel Subject: JSP size optimizations We are

Re: ActionForm Problem

2002-02-19 Thread Amir N. Nashat
you should be using the struts html tags if you want to use the form bean...or else you would have to create the form bean object and explicitly set the values for each input tag. i suggest using the html tags...something like this: YOUR EXAMPLE input type=text name=UserName value= size=30

RE: Struts support for body background image??

2002-02-19 Thread Low, Liang
I'll just do this body background=bean:message key=mybackground and have mybackground refers to /images/background.jpg in ApplicationResource.properties Liang -Original Message- From: Greg Hess [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 11:25 AM To: Struts Mail List

Re: Francisco Hernandez

2002-02-19 Thread Francisco Hernandez
sorry about all these emails, i opened an attachment from a co-worker and it was infected, ive ran an antivirus program on my computer and everything should be fine now.. sorry for the inconvinience - Original Message - From: John M. Corro [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: Struts support for body background image??

2002-02-19 Thread Jim Crossley
The only problem with that is that you have to account for your context path somewhere, and you probably shouldn't do that in your resources properties file. You'd have to do something like this: body background=%=request.getContextPath()%bean:message key='mybackground'/ Kinda gross, huh?

Re: is ActionForm required for Action even if no form on page?

2002-02-19 Thread Adam Hardy
On Tue, 19 February 2002, Mark Woon wrote: How do I create a mapping that doesn't need an ActionForm? Could you give me the XML? [..] it gives an ActionError: All you need is: action path=/questionSetList type=com.siemens.csw.evote.QuestionSetListAction forward

RE: JSP size optimizations

2002-02-19 Thread Dave J Dandeneau
We are using the %@ include file= % tag and not jsp:include ...param/param/jsp:include. dave -Original Message- From: Alex Paransky [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 1:17 PM To: Struts Users Mailing List Cc: Nilesh R Gohel Subject: RE: JSP size optimizations

Re: JSP size optimizations

2002-02-19 Thread Mark Woon
Dave J Dandeneau wrote: We are using the %@ include file= % tag and not jsp:include ...param/param/jsp:include. Which means you aren't using dynamic includes. As far as the limit is concerned, you might as well have it inline if youre using %@ include file %, since that's what it does (put

RE: JSP size optimizations

2002-02-19 Thread Dave J Dandeneau
Actually we have it the other way around... we are using jsp:include not @ include% dave -Original Message- From: Dave J Dandeneau Sent: Tuesday, February 19, 2002 2:56 PM To: Struts Users Mailing List Subject: RE: JSP size optimizations We are using the %@ include file= % tag and

Struts 1.1 and Validator Form

2002-02-19 Thread Matt Raible
I'm having some trouble using the Validator Form from commons in my Struts app. Does import org.apache.commons.validator.Form still extend from ActionForm? I'm getting the following error where CourseForm extends Form. java.lang.ClassCastException: com.onpoint.webapp.CourseForm at

Displaying recursively defined bean...

2002-02-19 Thread Alex Paransky
I need to display a recursively defined data structure bean. I have a bean which looks like this: public class Message implements java.io.Serializable { private String header, body, from; private Collection replies; public Collection getReplies() {return collection;} public String

RE: JSP size optimizations

2002-02-19 Thread Thinh Doan
Have you tried this? %@ page buffer=500kb autoFlush=false % Thinh -Original Message- From: Dave J Dandeneau [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 2:02 PM To: Struts Users Mailing List Subject: RE: JSP size optimizations Actually we have it the other way around...

RE: Displaying recursively defined bean...

2002-02-19 Thread Ken . Horn
I've done this recently for a calculation tree. I just defined a method in the jsp, passing in the Message (in your example) and the JSPWriter. This method then recursively calls itself while outputting nested html tables (ie each call draws a table, with the child call filling a cell of it).

FORM ELEMENTS MAPPING WITH JAVA BEAN

2002-02-19 Thread Amit Sharma
Title: FORM ELEMENTS MAPPING WITH JAVA BEAN Hi , Struts framework says that the form element names should be same as form beam attribute names. Is there a way I could define different names .Let say FORM_NAME_USERNAME in the form is supposed to be mapped to username in Java Form Bean.

Why don't tiles cascade?

2002-02-19 Thread Jim Crossley
Apparently it's not possible to access attributes of any tiles other than your immediate parent. IMHO, this restricts my ability to partition my presentation code into simple, reusable chunks. Here's a semi-practical example. Consider this snippet from a definitions file... definition

RE: Displaying recursively defined bean...

2002-02-19 Thread Alex Paransky
I guess, this is one way of doing it, I am trying to avoid too much Java code in my .JSP page. -AP_ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 12:22 PM To: [EMAIL PROTECTED] Subject: RE: Displaying recursively defined bean...

RE: Why don't tiles cascade?

2002-02-19 Thread Robert D. Morse
You're correct that it won't find title. layout.jsp needs to store it so it can be accessed by header (e.g., session.setAttribute()). -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jim Crossley Sent: Tuesday, February 19, 2002 12:39 PM To: Struts Users

Night Build stable?

2002-02-19 Thread @Basebeans.com
Subject: Night Build stable? From: Nav Sandhu [EMAIL PROTECTED] === I am thinking about updating my Struts from a November 01 nightly build. I am thinking about moving to a more recent nightly build. Is there anywhere I can find out if the nightly build is stable? Is there any tests that are

Nathan Smith/Corporate/FSC is out of the office.

2002-02-19 Thread Nathan . Smith
I will be out of the office starting 02/19/2002 and will not return until 02/20/2002. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Why don't tiles cascade?

2002-02-19 Thread Jim Crossley
I understand how to make the example work, but the point of my example was that tile attributes should be recursively accessible so that I don't have to clutter up intermediary files with code that only serves to export attributes. You only have to expand the example a little bit to make your

RE: Displaying Test if html:errors is free of errors...

2002-02-19 Thread Yu, Yanhui
Hi John, I am very new to Struts, so my answer may not be the best solution... In the Action.perform(ActionMapping, ActionForm, HttpServletRequest, HttpServletResponse) method, you could try to pass the success message (when action sucessful) to the forward jsp page with a request or a

Re: Stumped with nested iterator and nested link

2002-02-19 Thread CyberZombie
Arron Bates wrote: [ ...cut... ] The nested tags as of mid Jan (nightly build and separate jars) are able to reference the current parent directly using the this/ or ./ properties (same thing, just allowing for different tastes). Any property with / on the end will be treated as a

question on div tag

2002-02-19 Thread Yu, Yanhui
Hi there, I have a jsp page where a session bean with a Vector of Objects is passed in. I want to display selected fields for each element from this Vector in a table somewhere in the page. The list can be large/long both vertically and horizontally. The table is to be within a html:form and

RE: FOP and strus (IE problem)

2002-02-19 Thread Robert
I realize I'm jumping in this one late, so forgive me if I restate what some others have, but: a) no, you shouldn't have to do anything with your web/app server at all. b) This is a bug with IE, in that it tends to ignore content types if it thinks it 'knows' what the content is (by what the

Re: Struts support for body background image??

2002-02-19 Thread Matt Raible
why not just use a relative path images/background.gif and put images in the same directory as your JSPs? Or you could use CSS to set this. Matt --- Jim Crossley [EMAIL PROTECTED] wrote: The only problem with that is that you have to account for your context path somewhere, and you probably

File upload question

2002-02-19 Thread Ji Li
Hi, I am using struts' upload package to implement file upload feature. However I have a question about the temp dir. say I use java.io.tmpdir as the temp dir for MultipartIterator. What happend if multiple users upload the same file at the same time, will the previous file be overwrittern

help please

2002-02-19 Thread KM
Is it possible to turn off link inside a form based on value of a property. I am using the example which came with struts-1.0.1 and changed some of it to build a sample for our application, following is the code. Right now this code displays links on all the aNumber and aStatus. The aStatus can

Exception handling best-practise

2002-02-19 Thread Jonathan Fuerth
I'm refactoring an existing web application into the Struts MVC framework, and I'm moving from the implementation planning to the coding stage now. Before I act on some potentially poor choices, I'd like to run some of my ideas past the group: The Model part of my application, which handles all

[OT} Form-based-authentication and HTTPS

2002-02-19 Thread Matt Raible
I have form-based authentication in my web.xml that requires HTTPS - has transport-guaranteeCONFIDENTIAL/transport-guarantee. In my opinion, one of the beautiful things about declarative security is that users can have bookmarks and return to the same location, and be prompted. My problem is

How do I init a Form bean via business logic?

2002-02-19 Thread Chris Means
Hi, If Form beans are supposed to be distant from the model, that means I probably shouldn't use the reset method of a form bean to populate it with data (other than blanks/defaults etc..). So how do I set a form bean's properties prior to the form ever being displayed? One suggestion has been

Re: is ActionForm required for Action even if no form on page?

2002-02-19 Thread Victor Hadianto
If you don't have form then you probably don't need the html:errors. I do need html:errors on the page, because in the Action I fetch data for an iterate, and sometimes that goes wrong. The data that you fetch, IMO, should be stored in Struts' Form bean, thus for that page you might be

Re: Can this be done at all using Form objects within struts fram ework

2002-02-19 Thread Victor Hadianto
From EditRegistrationAction.java // Populate the user registration form if (form == null) { if (servlet.getDebug() = 1) servlet.log( Creating new RegistrationForm bean under key + mapping.getAttribute()); form = new RegistrationForm();

Re: is ActionForm required for Action even if no form on page?

2002-02-19 Thread Adam Hardy
On Tue, 19 February 2002, Victor Hadianto wrote: I do need html:errors on the page, because in the Action I fetch data for an iterate, and sometimes that goes wrong. The data that you fetch, IMO, should be stored in Struts' Form bean, thus for that page you might be better off using a

\No getter method\ error when using Bean:Write

2002-02-19 Thread Matt Petteys
Can someone point out what I am doing wrong here.. Or is this some kind of bug?? In my JSP, this code fragement works fine.. jsp:useBean id=testMatt class=test.WebForm scope=session / %= testMatt.getId() %br %= testMatt.getUserId() %br But when I try to use the following code fragement it

Have you seen this tag?

2002-02-19 Thread Halbrook, Dolan
Hi all, I've been looking for a tag that (IMHO) should exist, but doesn't seem to. The tag would hide/show a marked section of a page with a + or - symbol (that can be specified, of course). I imagined the syntax of my drawer tag as such: logic:iterate id=foo indexId=i name=form

RE: \No getter method\ error when using Bean:Write

2002-02-19 Thread Alex Paransky
Try property=userId -AP_ -Original Message- From: Matt Petteys [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 3:12 AM To: [EMAIL PROTECTED] Subject: \No getter method\ error when using Bean:Write Can someone point out what I am doing wrong here.. Or is this some kind of

RE: \No getter method\ error when using Bean:Write

2002-02-19 Thread Aamir Saalam
bean:write name=testMatt property=userId / should work. I just lowercased the U in UserId... Pls. check JavaBeans specifications for naming of property fields. --aamir -Original Message- From: Matt Petteys [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 19, 2002 3:12 AM To: [EMAIL

[OT] form-based authentication, SSL and IE/Tomcat

2002-02-19 Thread Matt Raible
I have transport-guaranteeCONFIDENTIAL/transport-guarantee in my web.xml to required SSL be used to login. In an ideal world, tomcat would detect that the user is using http and switch them to https for the authentication. And it looks like Tomcat is trying to do this with IE. When I navigate

RE: How do I init a Form bean via business logic?

2002-02-19 Thread Barr, Scott [IBM GSA]
Yes, calling an Action is the way to do this. The struts-example shows how this is done. Scott -Original Message- From: Chris Means [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, February 20, 2002 9:23 AM To: [EMAIL PROTECTED] Subject: How do I init a Form bean via business

Re: Displaying recursively defined bean...

2002-02-19 Thread Arron Bates
Why must you use a dynamic include?... This came up before and you still haven't told me. The only limitation of the nested tags is that it will be defined by a finite amount of levels (however many you markup). I've done this myself, it's just that you have to arbitrarily say 12 levels or

RE: How do I init a Form bean via business logic?

2002-02-19 Thread Jakkampudi, ChandraseKhar
Why should pre-populating a form be done in the preceding action? When you want to display some dynamic info. say in a table you put a value bean in the request or session and use bean:write etc to display. Why should the same not apply to form beans? Why not use the value attribute of the the

RE: How do I init a Form bean via business logic?

2002-02-19 Thread Barr, Scott [IBM GSA]
Hi JC If the data is dynamic, and we are talking about web apps here, why not populate it in the action? The form is a view component, and I don't give it any more 'smarts' than is possible. This as a neat way of separating the layers your application, one of the benefits of clean MVC design

RE: How do I init a Form bean via business logic?

2002-02-19 Thread Jakkampudi, ChandraseKhar
My reasons are as follows. I do not know if they are right or wrong, but would appreciate comments. 1. Consistency. All of the dynamic data that is presented in a jsp is via bean:write tags or scriptlets which access a value object. I think pre-populating or initializing a form should be no

Nathan Smith/Corporate/FSC is out of the office.

2002-02-19 Thread Nathan . Smith
I will be out of the office starting 02/19/2002 and will not return until 02/20/2002. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: FOP and strus (IE problem)

2002-02-19 Thread Tadashi Ishikawa
I had the same problem.(Not IE problem) FOPServlet works fine under Tomcat3.2.3 and OC4J(Orion). IE has a URL problem. but this is not the case. FO - FOP - PDF works fine under WebLogic6.1sp1 as well. XML + XSL -Xalan -FO - FOP -PDF won't work. PDF file size was 0 in NN also. I thought Xalan

RE: How do I init a Form bean via business logic?

2002-02-19 Thread Barr, Scott [IBM GSA]
1. If you are doing something other than creating a new view component and allowing it to set its own default values, I would imagine that you are doing an Action. 2. No it doesn't break MVC if the Action initialises the Form. If an action cannot deal with a form, where exactly is this supposed

RE: Displaying recursively defined bean...

2002-02-19 Thread Alex Paransky
Well, that's the problem, I don't have a finite number of levels. I am trying to display a message thread, so I do not know how deep the message thread will go. Today it's 12 levels, tomorrow, I might have a problem in my app because some thread has 24 replies one after the other making 24

Re: Using logic:equals tag around html:form action.... tag. Is it legal?

2002-02-19 Thread Antony Stace
Thank you very much for your reply Patrick. I got an error with the %=formAction% line. As test I tried bean:define id="formAction" value="/test" / %=formAction% in my jsp page, I always get an error, it is strange since %= 1+1 % and bean:write name="formAction" filter="true" / works fine.

request parameter is null

2002-02-19 Thread subhendukumar mohanty
One of my jsp has Struts form tag. Inside that form there is no form element but some static data in form of table. When submitting the form I am passing some querystring. After submitting the jsp page , inside the action class the request parameter is being null. If I am adding a dummy hidden

RE: How do I init a Form bean via business logic?

2002-02-19 Thread Jakkampudi, ChandraseKhar
Scott, I need to clarify this further. I am not suggesting you do away with an action. You use the action to get the data that is required as a value object. Since this is a value object, it can be re-used to serve another client. Instead of creating a form bean in the action, you set the

RE: Velocity-Tools / Struts

2002-02-19 Thread Matt Ho
We've been using Struts/Velocity for some time now and we find it to be an extremely well matched combination. One of the main advantages of Velocity is that the syntax is incredibly easy. I can explain it to a designer who has never seen it before and expect them to be useful within an hour.

  1   2   >