RE: Bug in WAS 3.5.4 or tomcat or..?

2001-09-19 Thread devon . bowen
> I was wondering if anyone has run into this problem and if > they know what server this bug relates to. I find myself in the same position. In my case, I have found a work-around but I can imagine that I may not be able to do that in the future. So if you do find a solution, I'd like to hear ab

error message with frames

2001-08-31 Thread devon . bowen
Not sure this is a struts problem but it is related to the struts style of working. I have a page with three frames and I ask that one frame be reloaded from struts. My Action may decide that it needs to send back an error message rather than the requested data. If so, I want to send back a full p

RE: Configuration problem

2001-08-30 Thread devon . bowen
> View source shows href="http://www.foo.com";> foo.com I assume you mean http://www.foo.com";> foo.com Without the close bracket on "". If this is what View Source is showing, then your browser is receiving the correct HTML. In other words, it isn't a problem with your server/jsp/stru

RE: Configuration problem

2001-08-29 Thread devon . bowen
> I have a link on a jsp page to an external site : href="http://www.foo.com";> foo.com When you have this page in your browser and do a "View Source" is that really what you see? Devon

RE: xml is html in fourletter word format

2001-08-27 Thread devon . bowen
> Sorry, had to to vent, been parsing/generating a lot of xml lately. > The fact that xml has only three letters doesn't change my opinion! > Have a good weekend folks. Have you looked into JAXB? Given a DTD, it automatically generates a collection of Java classes with getter/setter methods for e

RE: Re: Security, authentication and authorisation with Struts

2001-08-24 Thread devon . bowen
> i would prefer not to put the authentication code in > the action because it opens the possibility of having > authentication logic in each and every action In my case, each action needs a different authentication. For example, some users have read-only access and some have modify access. Devo

RE: Re: Security, authentication and authorisation with Struts

2001-08-24 Thread devon . bowen
> wouldn't it be better to put this code directly into the action > servlet and rebuild struts? That goes against my code-reusability instincts. I strive to use the default struts build and default tag libraries. The other possibility would be to put this in the Action class. Before it checks th

RE: Security, authentication and authorisation with Struts

2001-08-24 Thread devon . bowen
> I wondered what approach you guys took when implementing security, > authentication and authorisation. I have the common scenario > where the application I am creating allocates roles to certain > types of users, allows them to login, then restricts access to > certain pages and within the pag

RE: Re: Re: template tags

2001-08-24 Thread devon . bowen
> You mean something like this? > > > > > > I am not sure, whether this is possible in the > soon-to-be-deprecated template > tags or in the tiles tags, but the idea is good. No, I mean a caller like: Then in the template itself: So the would recognize that name

RE: Re: template tags

2001-08-24 Thread devon . bowen
> > I put a special header and footer on all my pages. I'd like > > to do this with the template tags. Template tags allow > > you to pass named parameters to the template. However, I need > > to pass a list of things (navigation URLs) into my header > > so it can print a list of hyperlinks. It do

template tags

2001-08-24 Thread devon . bowen
I put a special header and footer on all my pages. I'd like to do this with the template tags. Template tags allow you to pass named parameters to the template. However, I need to pass a list of things (navigation URLs) into my header so it can print a list of hyperlinks. It doesn't seem possible

RE: the data flow

2001-08-14 Thread devon . bowen
> 3. Controller Creates a new instance of ActionForm, invokes it's > reset method. The instance of the ActionForm either already exists (created by a previous Action) or is created when the HTML for the form is generated (as the form is being given to the user for modification). Reset is not call

RE: Re: Construct context-relative URL in Javascript?

2001-08-10 Thread devon . bowen
> I don't want the result in an a href. I want to do a POST and > I want to be able to set the > TARGET attribute for the FORM before posting as well. I want > to set the form's ACTION > attribute to that value. But I have multiple values that the > form's ACTION attribute might get > set to

RE: Scalability

2001-08-09 Thread devon . bowen
> but I'm getting feedback from other developers that don't > feel that Struts is a very scaleable framework. What exactly are they saying? I don't have any personal experience in this area but it seems to me that Struts is a rather thin layer on top of normal Java Servlets. All it really changes

RE: Re: struts training

2001-08-06 Thread devon . bowen
> If you wanted to slim this down, and your goal is just to > bring them up to speed on Struts, I'd hazard to say that > there's much that a Struts developer doesn't ~really~ need > to know about Web application development. Not sure I agree with this. My experience with Struts indicates that it

RE: struts training

2001-08-06 Thread devon . bowen
> Sign me up for the course! Where might I read about these > points: ?? > > > - preloading form > > > - reset() method gotcha > > > - special issues > > > - cleaning up context variables > > > - "Back" button sorrow > > > - indexed properties a

RE: How to pre-populate an actionForm in the perform method?

2001-08-02 Thread devon . bowen
> when a URL (myUrl.do) is invoced, the ActionServlet instantiates a > myForm (according to the struts-config.xml), forwards control to a > myAction object; the perform() method of myAction calls the reset() > method of the myForm object and then forwards to a JSP page. It is the JSP page itself

RE: some comparision between JSP/struts and velocity

2001-07-31 Thread devon . bowen
> There isnt currently javascript in any struts tags (just > attributes for most javascript events) Actually, generates javascript. Devon

RE: Re: Embedded bean/param values

2001-07-31 Thread devon . bowen
> JSPTL allows you to do the following by using the Simplest > Possible Expression Language (SPEL) provided with the > reference implementation: > > > The above examples make things prettier but don't really add much functionality over JSP expressions. The original author in this thread was

multi-param rewrite

2001-07-26 Thread devon . bowen
I need to use to generate a URI for JavaScript but I need to have two parameters. This doesn't seem to be possible. Specifically does not work because it always uses the last param rather than both of them. At the moment, I'm doing &level=0 which I can get away with because "level" happens t

RE: Re: localization ugliness

2001-07-25 Thread devon . bowen
> You can try this: > > At the moment, I'm restricted to v1.0 but the above is still much cleaner than what I had. Thanks! Devon

localization ugliness

2001-07-25 Thread devon . bowen
I have a bean that is filled in by a database in the Action and then displayed via JSP. One of the attributes of this bean is a code that can be 001, 002, 003, or 004. In the output, this code needs to be mapped to a word and this word needs to be localized. Sounds like an easy problem but I can'

RE: Running the example application that comes along with struts

2001-07-24 Thread devon . bowen
> I have got a problem in running the example struts > application. When I run my application , I get the > first jsp page , i.e. index.jsp containing MailReader > Demonstration Application Options, but when I click > on any of the other links, I get this exception , > org.xml.sax.SAXParseExcepti

RE: Mulitpage form support.

2001-07-24 Thread devon . bowen
> When I remove the reset method, I see the behavior that I am looking > for. This makes it pretty easy to do mulitpage forms. Thanks for your > help. This has also tripped me up and, from the looks of the mailing list archives, many other people. It seems like a good "fix" would be to have an

RE: Debugging

2001-07-24 Thread devon . bowen
> Is there anyway to output simple debugging info to a console or > something? I need something that is consistant between my struts > components and the beans and stuff that contain all of my business > logic. I'll probably get yelled at for this, but I just use System.err.println() and it work

RE: Basic ant's q regarding unexpected element "copy"

2001-07-19 Thread devon . bowen
Isn't there an ant mailing list for questions like this? Devon -Original Message- From: chuck.amadi [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 19, 2001 1:27 PM To: struts-user Subject: Basic ant's q regarding unexpected element "copy"   Hi  there folks, I have taken the second pl

RE: Using Frames within STRUTS

2001-07-18 Thread devon . bowen
> I would like to make use of frames within my STRUTS application but am > unsure how the framework handles frames. For example, if I > have a form > within a JSP page (form.jsp) and that page is presented to > the user within a > frame (frame.jsp), how should I associate the ActionForm to > t

RE: Auto html edit box population with HTML:Text

2001-07-17 Thread devon . bowen
> Yes. That's right. Only class names (aka bean names) should be > capitalized. Usually true. The exception is when the second letter of the property is capitalized. Then the case of the first letter is left as is. So the properties/methods map as follows: xxX -> setXxX()

RE: Struts Deployment

2001-07-17 Thread devon . bowen
> I have just started using struts and I was wondering what is > the best way to > deploy struts for development, so I can avoid using a war > file until it is > ready to deploy in test or production? The documentation seems mostly > geared toward deployment as a war file and the ActionServlet

RE: Suggestion on grid implementation

2001-07-16 Thread devon . bowen
> I am relatively new to Struts. Hence I would like to > invite your suggestions on the following > implementation: > > In our application, for which we are using Struts, we > need to implement a table of multiple columns, where > 1. the number of rows will be dynamic and fetched from > the data

bean messages

2001-07-12 Thread devon . bowen
I need to give a text input field a default value and I want to get this default from the message properties file. Something like: Of course, this doesn't work and I assume I'll have to replace the with a scriptlet. I'm not sure what should be in that scriptlet, though. Looking at the

RE: [newbie question] population of input form

2001-07-06 Thread devon . bowen
> I want to give a default value to > a couple of radiobutton but setting the property in reset seems not > to have any effect. When a form is first created, it does not call reset(). So you also need to set the default values for the attributes to the same thing as they would be set to in rese

variable number of inputs

2001-07-03 Thread devon . bowen
Newbie question... I need to have a table where each row will have multiple input fields and these fields make up a single record of information. I do not know before I generate the table how many rows it will have. When the user modifies this table and sends it back, struts will want to make an