Re: Fw: [HELP] How to restrict access to certain mapping action ???

2005-05-18 Thread Pham Anh Tuan
Thank Aladin, I'm Alibaba :D, So, the first thing I want to say here I don't know exactly how to use , maybe syntax. the second is I mean that, I don't want User do my action by typing my action path directly on address bar, such as http://www.myweb/user/useraction.do, but I allow User do my ac

Re: Fw: [HELP] How to restrict access to certain mapping action ???

2005-05-18 Thread Aladin Alaily
Hi Pham, I think this was mentioned earlier. There are two things you can do: 1) Use a filter with a url-map to your action 2) Use security constraints Aladin Pham Anh Tuan wrote: Hi all, This is the second time I post this message for help :(. I don't know how to restrict access to certain mappi

Fw: [HELP] How to restrict access to certain mapping action ???

2005-05-18 Thread Pham Anh Tuan
Hi all, This is the second time I post this message for help :(. I don't know how to restrict access to certain mapping action? Ex: I have action: /user/myaction.do and I don't want user directly access to above action. Could I use web.xml to solve this problem. something like: Restrict access t

Re: Help with struts/tiles: html:text, html:submit not rendered

2005-05-18 Thread James Mitchell
You'll need to make sure you declare the taglib directive at the top of every JSP unless you are using static includes. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx Yah

Re: bean:include doesn't work but jsp:include does[Scanned]

2005-05-18 Thread Raj Tilak
yes I do have, it works fine on localhost only on public domain it doesn't connect even normal HttpConnection doesn't connect in jsp file directly thanks Panchasheel From: Dakota Jack <[EMAIL PROTECTED]> Reply-To: Dakota Jack <[EMAIL PROTECTED]> To: Struts Users Mailing List Subject: Re: bean:incl

Re: logic:iterate and LazyValidatorForm

2005-05-18 Thread Wendy Smoak
From: "Durham David R Jr Ctr 805 CSPTS/SCE" <[EMAIL PROTECTED]> > The problem was actually later on when I > attempted to access the DynaBean via JSTL, which doesn't work for > obvious reasons. LazyValidatorForm has a 'getMap' method, so you _can_ use it with JSTL. I use LazyDynaBean, which has t

Re: bean:include doesn't work but jsp:include does[Scanned]

2005-05-18 Thread James Mitchell
What would you like me to email to you? The answer? If yes, I need more information. Let's back up for just a minute. What are you doing that requires you to bean:include a url from your own application? I wrote most (thousands) of the cactus tests that cover most of the Struts Taglibs, and I

Re: multiple params in

2005-05-18 Thread James Mitchell
No need for a scriptlet if you can use JSTL. Do this: ...then use it in your link tag... Go to foo> ...renders like this... Go to foo -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM:

Re: Subclassing ActionForward

2005-05-18 Thread James Mitchell
LOL...about 3 minutes with Textpad and it's wonderful block select (Alt + mouse drag). -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: jmitchtx Yahoo: jmitchtx MSN: [EMAIL PROTEC

Problems with e-mail validation

2005-05-18 Thread Norris Shelton
I have a field that has multiple emailAddresses fields. I have my validation set-up as: The validation always fires, even when it is not specified. Does this have something to do with having the multiple fields (e.g. String[])? Norris Shelton Softwar

Re: DynaActionForm and the 'pull' model

2005-05-18 Thread Adam Hardy
Laurie, my chosen option would be to use your view objects as form objects, where you modify the view object by adding string-typed getters and setters for every property. I don't really get what you mean in your (2). I think the parameter handling issue is hugely debatable. I've lost count of

Re: Dynamic links with nested:link

2005-05-18 Thread Adam Hardy
On 17/05/05 16:06 [EMAIL PROTECTED] wrote: Hi, I display a databse structure in a tree and try to open a context by clicking a link. But I don't know how to add the id of the selected context to a bean. I use the nested tld to display the structure. Anybody can give me some suggestions on this

Help with struts/tiles: html:text, html:submit not rendered

2005-05-18 Thread Philip Bepo
Hi, I am using Struts/Tiles to render a simple page with text, submit and cancel fields in the body. If I use: for example, nothing is rendered with no error messages.(The same problem with html:password, html:submit, html:reset) If I use: the text field is rendered. Everything is enclosed by

multiple params in

2005-05-18 Thread Grzegorz Stasica
hi, Is there a easy way to have more than one param attached to strut's I know that there is a soultion with HashMap, but in case I just need to attache additional param to already exsisting in some bean I'm bound to use scriplet to create a hashmap. Rgs --

RE: logic:iterate and LazyValidatorForm

2005-05-18 Thread Durham David R Jr Ctr 805 CSPTS/SCE
> So, does the logic:iterate tag work with DynaBeans? From the source > code, it uses BeanUtils.getProperty(), which works with DynaBeans. > Any ideas? Thanks. Please disregard this post. The problem was actually later on when I attempted to access the DynaBean via JSTL, which doesn't work fo

logic:iterate and LazyValidatorForm

2005-05-18 Thread Durham David R Jr Ctr 805 CSPTS/SCE
I'm trying to iterate over a String[] in a LazyValidatorForm using: ... But I get the following error: Unable to find a value for "first" in object of class "org.apache.struts.validator.LazyValidatorForm" using operator "." So, does the logic:iterate tag work with DynaBeans? From

RE: Subclassing ActionForward

2005-05-18 Thread Benedict, Paul C
How long did it take to do your nice UML graph in ASCII? :) -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 3:02 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Subclassing ActionForward In your BaseDispatchAction override

Re: bean:include doesn't work but jsp:include does[Scanned]

2005-05-18 Thread Raj Tilak
I did not get the response, would you please email me. Thanks Panchasheel From: "James Mitchell" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Re: bean:include doesn't work but jsp:include does[Scanned] Date: Wed, 18 May 2005 13:56:12 -0400 You

DynaActionForm and the 'pull' model

2005-05-18 Thread Laurie Harper
[Appologies for the long post; hopefully it'll spark some interesting discussion though.] Does anybody develop with Struts using a 'pull' model (where JSPs 'pull' in the data they need, rather than having it 'pushed' to them by a calling action)? I've been doing this successfully for some time with

Re: bean:include doesn't work but jsp:include does[Scanned]

2005-05-18 Thread Dakota Jack
Do you have the taglib uri and prefix specified on your jsp page? On 5/18/05, James Mitchell <[EMAIL PROTECTED]> wrote: > You sent the below to taglibs-user@jakarta.apache.org, which is not a Struts > mailing list, it is for the Taglibs project under Jakarta. However, I see > where you did send

Re: Subclassing ActionForward

2005-05-18 Thread James Mitchell
In your BaseDispatchAction override the execute() method, and in that, if everything checks out (session expiration, authentication, authorization, etc, etc) then simply super.execute(). DispatchActionMyBaseDispAct CustomerAction | | | --- ex

Re: Subclassing ActionForward

2005-05-18 Thread Dakota Jack
The rule of thumb is to use composition instead of inheritance generally. (Joshua Bloch, Effective Java, pp. 71 ff.) Otherwise you end up with fragile software. More specifically, if the superclass and the subclasses are in the same package and under your control, that is more likely to be where

Re: Subclassing ActionForward

2005-05-18 Thread Aladin Alaily
> I do not recommend using a filter. You are much better off using what > you've already invested your time in (Struts). I disagree. I think that a filter is best suited for what you are trying to accomplish. Whenever a request is submitted to your application, you should verify that the user i

Re: bean:include doesn't work but jsp:include does[Scanned]

2005-05-18 Thread James Mitchell
You sent the below to taglibs-user@jakarta.apache.org, which is not a Struts mailing list, it is for the Taglibs project under Jakarta. However, I see where you did send something similar to this list a few days ago. Did you not get a response on it? -- James Mitchell Software Engineer / Open

Re: Subclassing ActionForward

2005-05-18 Thread Lee Harrington
I'm all for doing things "the struts way". What I don't see in your example is WHERE to either throw the exception or call the global forward. I'm trying to avoid putting this in all my actions (btw, I use dispatch actions). I did have the foresight to subclass the dispatchAction class: publi

Re: Struts and XML/XSL

2005-05-18 Thread Robin Ericsson
Gaet wrote: In fact, initially I was looking for an alternative to tag that are not part of XHTML specifications anymore. I think that tags were great as I was able to reload only a part of my web page (the body)could I retrieve this functionlity with xsl (is there a caching implementation...i

Re: Subclassing ActionForward

2005-05-18 Thread James Mitchell
I do not recommend using a filter. You are much better off using what you've already invested your time in (Struts). By using a base action as a single point of entry into your Actions, you can do this check in one place, and reuse any resources already handed to you in your base action. You

Re: Subclassing ActionForward

2005-05-18 Thread Dave Newton
Lee Harrington wrote: I'm stuck on how to forward to the login page. UserDTO user = (UserDTO) request.getSession().getAttribute("user"); if (user==null) { // User is not logged in, redirect to login page // How do I do that? response.sendRedirect("/path/to/loginAction")? Dave

Re: Subclassing ActionForward

2005-05-18 Thread Frank W. Zammetti
Pretty much the same way you do any other place... ((HttpServletResponse)response).sendRedirect("-the_url-"); -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Wed, May 18, 2005 12:07 pm, Lee Harrington said: > Okhave a filter...it runs

Re: How do I extend loopupdispatch action?

2005-05-18 Thread Dakota Jack
LookupDispatchAction is a regular elephant as it is so extending that elephant would be to make a real dinosaur. You might want to look at www.michaelmcgrady.com/button for some more reasonable approaches. On 5/18/05, marc <[EMAIL PROTECTED]> wrote: > Ok I have made a class call BaseAction in whi

Re: Struts 1.2.7

2005-05-18 Thread Aladin Alaily
Hello, For those of you who want to try out 1.2.7 and are having trouble finding a link to it (or are just lazy ;)) here is where I found it: http://cvs.apache.org/dist/struts/v1.2.7/ Feel free to make corrections to the link above. Aladin > At 10:54 AM -0400 5/18/05, Aladin Alaily wrote: >

Re: need struts source code.

2005-05-18 Thread Aladin Alaily
I will assume you are looking for the struts source code for the current release. In any case, I think what you are looking for is here: http://struts.apache.org/download.cgi Aladin ps. A google search of "struts download" (without the quotes) will yield the link above. > Can any body pleas

Re: Struts 1.2.7

2005-05-18 Thread Joe Germuska
At 10:54 AM -0400 5/18/05, Aladin Alaily wrote: Hi Everyone, I was just curious if anyone has been using struts v. 1.2.7? This is valuable discussion; there will probably be a vote called on the dev list in the next few days about the quality of the release (alpha/beta/general availability) so re

XHTML compliance and 'name' vs. 'id'

2005-05-18 Thread Laurie Harper
Hi, I just want to check I'm not overlooking anything here. I use to have Struts render XHTML 1.0 which mostly does the right thing. However, XHTML deprecates the 'name' attribute for elements. It would be simple to change to emit an 'id' attribute using the same value as 'name', retaining t

RE: Struts 1.2.7

2005-05-18 Thread Aladin Alaily
Maybe I should have... although the solution provided in 1.2.7 is much more extensive. They seem to have modified Action, ActionMessages, and RequestProcessor. My solution solved the problem with an external class (with a method called saveErrors(HttpSession session, ActionMessages messages)) and

Re: Subclassing ActionForward

2005-05-18 Thread Lee Harrington
Okhave a filter...it runs (use logging to determine this). I'm stuck on how to forward to the login page. Here's my filter code: public void doFilter(ServletRequest request, ServletResponse response, FilterChai

Re: Struts 1.2.7

2005-05-18 Thread Niall Pemberton
At some point soon there will be a vote on the "quality" of 1.2.7 - the more feedback from people that have tried it out and have not found any issues, then the more likely it will get a "ga" quality tag and become the "current production release". So far there have been no issues raised against 1

SlickEdit Macros

2005-05-18 Thread Harry Hartley
I am kind of addicted to my editor/ide slickedit. I love many of the features that it provides and that it is language independent and platform ubiquitous. However I have begun to grow envious of some of the tools I have seen other developers use which allow drag and drop skeleton creation.

Re: bean:include doesn't work but jsp:include does

2005-05-18 Thread Raj Tilak
I did ask this question on struts user list, the to address says [EMAIL PROTECTED] Could you please let me know, it looks like a configuration of the server or network, even in jsp if I write a simple HttpConnection to a test page, the connection.connect() method fails to connect after opening t

RE: Struts 1.2.7

2005-05-18 Thread Benedict, Paul C
Aladin, perhaps your hack could have been contributed sooner!! :-) 1.2.7 has been held up along time .. It's about time it's coming out. -Original Message- From: Aladin Alaily [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 18, 2005 10:54 AM To: Struts Users Mailing List Subject: Struts 1.

Re: Struts 1.2.7

2005-05-18 Thread Nicolas De Loof
I'm using it for the same reason. I expected this enhancement, also with EL tag support for errorStyle attributes. It works fine for me. Nico. Aladin Alaily a écrit : Hi Everyone, I was just curious if anyone has been using struts v. 1.2.7? If so, what do you think of the new features? Personall

need struts source code.

2005-05-18 Thread Nitin Mandolkar
Can any body please tell the struts repository path for Specification-Title: Struts Framework Specification-Version: 1.0 Implementation-Title: Struts Framework Extension-Name: Struts Framework Created-By: Ant 1.4.1 Implementation-Vendor-Id: org.apache Implementation-Vendor: Apache Sof

Struts 1.2.7

2005-05-18 Thread Aladin Alaily
Hi Everyone, I was just curious if anyone has been using struts v. 1.2.7? If so, what do you think of the new features? Personally, I think that being able to save the errors in the session is a great addition (I wrote a hack for v. 1.2.4 to do exactly that). Thanks, Aladin -

RE: tree structure with struts

2005-05-18 Thread Charles . Gouin-Vallerand
Hi Ank, It is hard to find it, I'm apologize. You can find the files and documentations at this address : http://dev2dev.bea.com/pub/a/2004/08/patadia.html Charles -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: May 17, 2005 7:57 PM To: Stru

Re: Struts and XML/XSL

2005-05-18 Thread Gaet
In fact, initially I was looking for an alternative to tag that are not part of XHTML specifications anymore. I think that tags were great as I was able to reload only a part of my web page (the body)could I retrieve this functionlity with xsl (is there a caching implementation...i don't know

How do I extend loopupdispatch action?

2005-05-18 Thread marc
Ok I have made a class call BaseAction in which I have some customed code. That extends the Action class. It looks like this: *** public abstract class BaseAction extends Action{ public ActionForward execute(ActionMapping map

RE: Reports

2005-05-18 Thread Dick Starr
Crystal XI has the ability to use a Crystal custom tag to run a report. I tried it, but it doesn't work. I bought a support incident in early March regarding this and Business Objects admits it's a bug and promises a fix, hopefully with the first patch to Crystal XI, but I have not heard anything.

RE: Struts and XML/XSL

2005-05-18 Thread Marco Mistroni
hello, yes I am using also struts html tags.. regards marco -Original Message- From: Gaet [mailto:[EMAIL PROTECTED] Sent: 18 May 2005 13:37 To: Struts Users Mailing List Subject: Re: Struts and XML/XSL Thanks for your reply, Just one more question, are you able to use JS

Re: Struts and XML/XSL

2005-05-18 Thread Gaet
Thanks for your reply, Just one more question, are you able to use JSP taglibs (like the ones from struts or JSTL libraries) in your JSP/XML or XSL files? Thanks again - Original Message - From: "Marco Mistroni" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Wednesday, May

Dealing with many forms

2005-05-18 Thread Jan Ziniewicz
Hi, I am writing my first Struts application, and have some problems with it. Some part of my app, gets data from database, fills appropriate form, displays it and, if user changed the form, writes data back to database. Another functionality is: get whole webpage (including form)from database, fil

[HELP] How to restrict access to certain mapping action ???

2005-05-18 Thread Pham Anh Tuan
Hi all, I don't know how to restrict access to certain mapping action? Ex: I have action: /user/myaction.do and I don't want user directly access to above action. Could I use web.xml to solve this problem. something like: Restrict access to JSP pages *.jsp With no roles defined

RE: Struts and XML/XSL

2005-05-18 Thread Marco Mistroni
Hello, Unfortunately, I cannot send our app.. What we are doing is just write your JSP in xml and place Following declaration in the page the browser would do the rest.. we have an additional filter that is going to be used in case the user agent does not support XSLT Anyway, as other

Slightly OT: Complex data output

2005-05-18 Thread andy wix
Hi, I am trying to output a many-to-many mapping using JSTL or Struts tags. My app will manage a user authorization database and so has a table of Applications, Roles, Users and a link table. For each Application there can be many Roles, and for each Role there can be many Users. The data model

Re: Struts and XML/XSL

2005-05-18 Thread Gaet
Hello, Thanks for replying! yes, struts-layout is a special taglib that offer display facilities and support "paging"... Do you have a simple sample to send me Marco please, it would be really great... Thanks again! - Original Message - From: "Marco Mistroni" <[EMAIL PROTECTED]> To: "

Re: Saving context in web application with exception-driven authentication

2005-05-18 Thread Yaroslav Novytskyy
Hi! Thank you. I think that would be the solution. And I think I will also need to save "ActionForward to jsp page in state (1)" in session scope before I make an API call, which can throw an Exception, that will forward me to login page. And in the end of the login process I will look up this

Re: JSTL EL replacement of logic:present tag

2005-05-18 Thread Nicolas De Loof
This may work : But you have to know the scope where is stored the ActionMessages bean. Struts-logic-el has some value-added over JSTL, as it can be used for struts-related logic (like errors/messages), so why not using them ? Logic tags having an equivalent JSTL tag are not declared in struts-e

JSTL EL replacement of logic:present tag

2005-05-18 Thread Yaroslav Novytskyy
Hi! Does anybody know how to write this in JSTL Expression Language? ( does not work) I'd like to get rid of old "struts-logic" in my project and leave only jstl's tags and "html-el". Yaroslav Novytskyy - To unsubscribe, e-mail:

RE: Struts and XML/XSL

2005-05-18 Thread Marco Mistroni
Hello, >Have you already implemented this solution? @ my workplace we are using together tiles & XML/XSL >Do you know if it will be supported by WAS? Yes it is, in fact we are using WAS 5.1 >Have you a complete but simple sample with struts and XML/XSL? >So, that's mean that I won't have jsp anymor

Re: Struts and XML/XSL

2005-05-18 Thread Nicolas De Loof
You may take a look at stXX http://stxx.sourceforge.net/ , that is a commonly used XSLT extension to Struts. I've used it for a prototype, but we have finally built our app on standard JSP, as it was easier to learn for developers. According to prototype, XSLT (Stxx) was aprox. 2 time slower than

Re: Struts and XML/XSL

2005-05-18 Thread Gaet
Thanks Leon! Have you already implemented this solution? Do you know if it will be supported by WAS? Have you a complete but simple sample with struts and XML/XSL? So, that's mean that I won't have jsp anymore? Could i still use struts-layout? Do you think it will be simple to rewrite a basic JSP-

Dealing with many forms

2005-05-18 Thread Jan Ziniewicz
Hi, I am writing my first Struts application, and have some problems with it. Some part of my app, gets data from database, fills appropriate form, displays it and, if user changed the form, writes data back to database. Another functionality is: get whole webpage (including form)from databas

Re: Struts and XML/XSL

2005-05-18 Thread Leon Rosenberg
First) yes it's possible and quite easy, just render xml in your jsp or write out the dom out of the action Second) You premises are false. It's far less powerful, and it's significantly slower then jsps. regards Leon On Wed, 2005-05-18 at 10:45 +0200, Gaet wrote: > hi, > > Actually we have

Struts and XML/XSL

2005-05-18 Thread Gaet
hi, Actually we have a website developped with struts and tiles...but as XML/XSL seems to be more powerful than tiles for presentation (support different browser, easier to change presentation, better performance...) My question is : is it possible to develop an application using struts and XM