Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vishal Gaurav
I guess that would work if you have validations corresponding to a form i.eyou are extending DynaValidatorForm. If you need to extend DynaValidatorActionForm, i.e give validations corresponding to a action (as single form can be reused in different actions and not all fields need to be validated i

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
No mr.vishal i tried thats y im telling. u try without using validate method in local form. we have to mention the validation for each field in validation.xml file itself. no need of calling validate() in local form. definitely it will work. > You are right that there is no need to create a for

Re: Space in jsp

2006-01-11 Thread Torgeir Veimo
On Wed, 2006-01-11 at 23:06 -0800, Vasumathi wrote: > >after running the web application, when i see the source of that > page, > there are lots and lots of space between each line. > what is the reason for that, anyone can help me plz. > i not used any &nbsb in that jsp page... It's per js

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vishal Gaurav
You are right that there is no need to create a form bean if you are using dyna form. However if you want to link your form with the validation framework then you do need to create a local form bean. This form bean would not have any attributes and their getter and setter methods as they all are d

Space in jsp

2006-01-11 Thread Vasumathi
Hi after running the web application, when i see the source of that page, there are lots and lots of space between each line. what is the reason for that, anyone can help me plz. i not used any &nbsb in that jsp page... Regards vasu -

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
no need to create a Form class in local. if we are using DynaActionForm, then no need of create form class in local. i tried in struts_config.xml only, it is working well. Quoting Vishal Gaurav <[EMAIL PROTECTED]>: > Hi, > > Simply having your dyna form bean of the type Dyna Validator form

Re: Help about displaytag data

2006-01-11 Thread 吴耀华
JEEVANATHAM P. /BPCRP/INFOTECH/VASHI,您好! Maybe I didn't catch you. just change your query string. === 2006-01-12 14:46:39 您在来信中写道:=== >Hi all, > > > >I am using display tag in my application for LOV. For that I set values from >database at runtime that is dynamically. >

Help about displaytag data

2006-01-11 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
Hi all, I am using display tag in my application for LOV. For that I set values from database at runtime that is dynamically. Using org.apache.commons.beanutils.RowSetDynaClass. it is setting data fine way. But not in correct order which is in my query, which is passed at runtime. Here i

Re: Enabling links according to user's authorization

2006-01-11 Thread Vishal Gaurav
Hi, To check the users access the best approach is to check the access on the action by giving the roles attributes in the Struts Config and overriding the processRoles() method of action class. In addition to this if you want to limit weather a link is dispalyed to the user or not you can take h

user@struts.apache.org

2006-01-11 Thread Josh McDonald
Quick question, is it possible to make generate an id="" ? Or to generate a name="" that's not based on the name of the form bean? The whole setup of the taglib doesn't make a lot of sense from where I sit really :( Cheers, -Josh -- "His comrades fought beside him, Van Owen and the rest.

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vishal Gaurav
Hi, Simply having your dyna form bean of the type Dyna Validator form will not work. You have to declare your form bean in the Struts Config as type any local form bean you have. ( ) Then your ABCForm will extend DynaValidatorForm or DynaValidatorActionForm depending on yor requirement. It would

Need help about data repeater in JSF

2006-01-11 Thread JEEVANATHAM P. /BPCRP/INFOTECH/VASHI
Hi all, In my screen I used data repeater tag from jsf. It's working fine me. Now I need to call a popup called as LOV from that textbox. When we click an image it will open a popup window. From that popup we need to set values to the main window. Here is my problem for setting values I need

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
sorry u try this one. not previous one. > > > > > > > > > Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>: > > > Hi, > > > > I am having some problems in getting struts to > > validate my input form. It seems to completely ignore > > the validation and starts exe

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Vasumathi
Try like this in struts-config.xml file. i hope it will work. Quoting Mahadevan Venkataraman <[EMAIL PROTECTED]>: > Hi, > > I am having some problems in getting struts to > validate my input form. It seems to completely ignore > the validation and starts executing the acti

Re: Enabling links according to user's authorization

2006-01-11 Thread shyam kishore alapati
While login itself you can have the permissions in the session and based on the permissions you can hide the links. Just for one variable i think there is no need to call the database.use can use or for this. -Original message- From: "Rivka Shisman" [EMAIL PROTECTED] Date: Wed, 11 Jan

Re: Shale-Clay: Error finding Converter for component

2006-01-11 Thread Sergey
Gary, Thank you a lot! Your solution works well. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

very ot/friday: Swing (Vic)

2006-01-11 Thread netsql
So you know how I like to spin RiA, nothing to do w/ Struts? here is some Swing thread: http://www.theserverside.com/news/thread.tss?thread_id=38473 ;-P .V ps otoh: Anyone building a portal should consider Drupal, it can now run on Resin. ---

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Alexandre Poitras
I agree with you Michael since our designer is a big fan of Zen Garden and I must say I don't miss working with tables :) I would like a strict XHTML rendererkit but I must say that at least the JSF standard components don't produce garbage . What I am doing right now is developping new renderers f

Re: How to iterate using

2006-01-11 Thread Laurie Harper
Not sure, but you may need to reference that property as L1082CODE instead of l1082CODE (i.e. use a capital 'L' instead of lower-case). L. Ashish Kulkarni wrote: Hi Thanx now it works, but i have another issue, what i am trying is this viewName.nameDescis workig fine, and

Re: Get Struts Internal Logs From Tomcat

2006-01-11 Thread Laurie Harper
Did you put a copy of log4j.jar in WEB-INF/lib? L. Jim Reynolds wrote: Hello, I am creating a Struts webapp, and I would like to get some of the internal messages that struts throws out ... eg. Bean Creation, scope, etc. I created a log4j.properties and laid it into my /WEB-INF/classes directo

Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Craig McClanahan
Thanks for your comments ... I'll try to give you answers based on that below. On 1/11/06, Angel Navarro <[EMAIL PROTECTED]> wrote: > > Hi Craig, > > thanks for you reply. > > > For the purposes of this reply, I'm going to assume by your use of the > term > > "Struts" that you mean the existing

Re: formatting messages in different colours from Message Resources

2006-01-11 Thread Laurie Harper
Raghuveer wrote: Dear AGary and Alexandre I changed my Message KEY " msg.insert.failed" as below msg.insert.failed = Insert failed. In my JSP PAGE message is displayed with FONT tags. HTML tags are not being executed with message . Insert failed. so from above when HTML font tag could not b

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Frank W. Zammetti
That may be true, but my point is that I hear a lot of developers asking "why is JSF better?", and my contention is that very few, if any, examples that exists today really provides that answer. Craig mentioned MailReader as the cannonical application around these parts, and I just said that M

Re: [ANNOUNCEMENT] JSP Controls Tag Library 0.3 is released

2006-01-11 Thread Michael Jouravlev
On 1/11/06, Torgeir Veimo <[EMAIL PROTECTED]> wrote: > On Wed, 2006-01-11 at 15:07 -0800, Michael Jouravlev wrote: > > > > Form, Link and Submit tags > > What about a component that works with commons-upload to give visual > progress feedback for uploading large files? The primary goal for my libr

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Michael Jouravlev
Mailreader is for developers, not for people from marketing department. It is not supposed to be beautiful, it is supposed to show how common tasks are done with Struts: data in, processing, data out. How it is presented is not that important. I mean it is important that a framework can generate li

Re: [ANNOUNCEMENT] JSP Controls Tag Library 0.3 is released

2006-01-11 Thread Wendy Smoak
On 1/11/06, Torgeir Veimo <[EMAIL PROTECTED]> wrote: > What about a component that works with commons-upload to give visual > progress feedback for uploading large files? Someone posted about one on commons-user recently: http://marc.theaimsgroup.com/?l=jakarta-commons-user&m=113656376413509&w=2

Re: [ANNOUNCEMENT] JSP Controls Tag Library 0.3 is released

2006-01-11 Thread Torgeir Veimo
On Wed, 2006-01-11 at 15:07 -0800, Michael Jouravlev wrote: > > Form, Link and Submit tags What about a component that works with commons-upload to give visual progress feedback for uploading large files? -- Torgeir Veimo <[EMAIL PROTECTED]> -

Re: [OT] Getting started is confusing [was] Re: Need advice bet ween Shale or Struts-Faces

2006-01-11 Thread Frank W. Zammetti
Craig McClanahan wrote: Someone earlier on this thead mentioned that they would deal with this using managed beans and the dependency injection mechanism it supports to inject request parameters (not associated with a component) into the backing bean. Great idea! By far the simplest thing to do.

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Frank W. Zammetti
I would agree, except for the fact that MailReader is not by any measure an impressive application (sufficient yes, but not impressive)... in the context of JSF (and Shale), where at least part of the point is to enable easily building more advanced types of applications (that *IS* part of the

[ANNOUNCEMENT] JSP Controls Tag Library 0.3 is released

2006-01-11 Thread Michael Jouravlev
General Info The JSP Controls Tag Library allows to build page-embeddable components that work in both Ajax and non-Ajax mode using nothing more than JSP 1.2 (JSTL is optional). If browser has Javascript turned on and supports XMLHTTPRequest object, the component is updated in-place,

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Craig McClanahan
On 1/11/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > > My major complaint is that every single example and tutorial I've found is > so simplistic and frankly ugly as hell that it can't help but cast JSF in > a bad light Sure sounds a lot like a canonical example program that's been around

Re: [OT] Getting started is confusing [was] Re: Need advice bet ween Shale or Struts-Faces

2006-01-11 Thread Craig McClanahan
On 1/11/06, Garner, Shawn <[EMAIL PROTECTED]> wrote: > > First thing I did was to create a helper base class with methods like the > following > > public Object getRequestParameter(String key) > { > return > FacesContext.getCurrentInstance > ().getExternalContext().getRequestParameterMa > p

RE: [OT] Getting started is confusing [was] Re: Need advice bet ween Shale or Struts-Faces

2006-01-11 Thread Gary VanMatre
>From: "Garner, Shawn" <[EMAIL PROTECTED]> > > First thing I did was to create a helper base class with methods like the > following > > public Object getRequestParameter(String key) > { > return > FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(key); >

Re: How to iterate using

2006-01-11 Thread Ashish Kulkarni
Hello I did a typing mistake here, i did have in my code, corcoresponding to getL082CODE method in my bean Ashish --- Rahul Akolkar <[EMAIL PROTECTED]> wrote: > On 1/11/06, Ashish Kulkarni > <[EMAIL PROTECTED]> wrote: > > Hi > > Thanx now it works, > > but i have another issue, > > what i am tr

Re: How to iterate using

2006-01-11 Thread Rahul Akolkar
On 1/11/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > Thanx now it works, > but i have another issue, > what i am trying is this > > items="${viewlinephase.map.viewNames}"> > > > > > > > viewName.nameDescis workig fine, and value is getting > substituated, but viewName.l1082CO

Re: Shale-Clay: Error finding Converter for component

2006-01-11 Thread Gary VanMatre
>Hi, > >I am new to Shale and Clay and am getting the following error during page >rendering even the generated page looks ok: > >org.apache.myfaces.renderkit.html.HtmlRendererUtils >findUIOutputConverterFailSafe >SEVERE: Error finding Converter for component with id >clayView:_id0:formListenerSig

Re: How to iterate using

2006-01-11 Thread Ashish Kulkarni
Hi Thanx now it works, but i have another issue, what i am trying is this viewName.nameDescis workig fine, and value is getting substituated, but viewName.l1082CODE is not getting substituted my bean is as follows public class PL1082Bean { private String l082CODE;

Re: Session Attribute strange behaviour

2006-01-11 Thread Marcelo Morales
Hello On Jan 11, 2006, at 12:32 PM, Gaet wrote: Hi the list, I know this is not a struts question (unless there is a simpler solution with struts :o)) My goal : Add a back button on each of my pages with the url from where the user comes (or another url if it comes from a page at a deepe

Re: How to iterate using

2006-01-11 Thread Rahul Akolkar
On 1/11/06, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > I have defined a DynaValidatorForm in > struts-config.xml file like this > type="org.apache.struts.action.DynaActionForm"> > type="java.util.Collection" /> > > > In My jsp i have defined a Action class which uses > this bean > I want

Re: Advice for Struts expert wanting to try Shale?

2006-01-11 Thread Werner Punz
Dakota Jack wrote: The view "controller" is not a controller in the Web-MVC sense and is completely misleading, in my opinion, Mark. So part of this just may be who's dog is in the hunt? The point of the tool-based and VB analogy is that JSF tries to hide from you, to do it for you, what other

How to iterate using

2006-01-11 Thread Ashish Kulkarni
Hi I have defined a DynaValidatorForm in struts-config.xml file like this In My jsp i have defined a Action class which uses this bean I want to iterate through all viewNames in my jsp using tag How do i go it I tried But i get Unable to find a value for "viewNames" in object o

RE: [OT] Getting started is confusing [was] Re: Need advice bet ween Shale or Struts-Faces

2006-01-11 Thread Frank W. Zammetti
On Wed, January 11, 2006 2:36 pm, Garner, Shawn said: > Better than a framework where it's done for you and you have to edit > source > code to customize it. Fair enough :) > Shawn Frank > -Original Message- > From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January

RE: [OT] Getting started is confusing [was] Re: Need advice bet ween Shale or Struts-Faces

2006-01-11 Thread Garner, Shawn
Better than a framework where it's done for you and you have to edit source code to customize it. Shawn -Original Message- From: Frank W. Zammetti [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 1:32 PM To: Struts Users Mailing List Cc: 'Struts Users Mailing List' Subject: RE

Re: [OT] Getting started is confusing [was] Re: Need advice bet ween Shale or Struts-Faces

2006-01-11 Thread Alexandre Poitras
Anyway *usually* you don't need to use this method unless you are developping a new component. It is supposed to be the responsability of the components to retrieve the request parameters, so the application developper doesn't have to deal with the Http protocol details. On 1/11/06, Garner, Shawn

RE: [OT] Getting started is confusing [was] Re: Need advice bet ween Shale or Struts-Faces

2006-01-11 Thread Frank W. Zammetti
On Wed, January 11, 2006 2:18 pm, Garner, Shawn said: > First thing I did was to create a helper base class with methods like the > following > > public Object getRequestParameter(String key) > { > return > FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMa > p().get

Re: [OT] Re: Advice for Struts expert wanting to try Shale?

2006-01-11 Thread Albany Rose
On 1/11/06, Brantley Hobbs <[EMAIL PROTECTED]> wrote: > You're not Dave are you? :-) Dave's not here. Al. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [OT] Getting started is confusing [was] Re: Need advice bet ween Shale or Struts-Faces

2006-01-11 Thread Garner, Shawn
First thing I did was to create a helper base class with methods like the following public Object getRequestParameter(String key) { return FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMa p().get(key); } Doesn't seem very hard to me. Shawn -Original Message

RE: Session Attribute strange behaviour

2006-01-11 Thread Garner, Shawn
Looks like you think it should be doing it conditionally. The order of operations is. Request Page A --> Always sets "backUrl" to "/initA.do" in session --> Render JSP Page to User --> User clicks link --> Requests Page B --> Same session so "backUrl" is still "/initA.do" --> Render Page B --> U

Re: [OT] Re: Advice for Struts expert wanting to try Shale?

2006-01-11 Thread Alexandre Poitras
LOL ok last post in this thread, but this is pathetic. He hijacks the majority of threads about Shale to say how JSF sucks compare to Struts. He even says JSF is visual basic and Struts is C++, wich I can't believe he's doesn't see as a provocative post. He's not polite and he's unrespectful to a l

RE: [OT] Re: Advice for Struts expert wanting to try Shale?

2006-01-11 Thread David G. Friedman
> There's a reason why executioners wore a mask. Because they couldn't stand the smell of Dakota Jack? *snicker* Well, I've said my two snide comments as the moon nears full so I'll return you to your regularly scheduled code discussions. Regards, David P.S. Struts-Shale, that means you! ;) <

RE: [OT] Re: Advice for Struts expert wanting to try Shale?

2006-01-11 Thread Brantley Hobbs
Wait. You're not Dave are you? :-) B. > -Original Message- > From: Albany Rose [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 11, 2006 1:54 PM > To: user@struts.apache.org > Subject: Re: [OT] Re: Advice for Struts expert wanting to try Shale? > > On 1/11/06, Dave Newton <[EMAIL P

RE: [OT] Re: Advice for Struts expert wanting to try Shale?

2006-01-11 Thread David G. Friedman
>Let me get this right, he _told on you_ ... as in tattletale??? Opinion... If I were his employer, I would like to know what how he was behaving if: 1) He was doing/posting things from a corporate email address that might reflect badly on my company. 2) Spreading inflammatory comments while

Re: [OT] Re: Advice for Struts expert wanting to try Shale?

2006-01-11 Thread Albany Rose
On 1/11/06, Dave Newton <[EMAIL PROTECTED]> wrote: > If you'd rather I posted only from one of my non-work email accounts Better yet, take out a gmail account under a pseudonym, and then refer to Dave Newton in the third person. :) There's a reason why executioners wore a mask. Al.

RE: user Digest 11 Jan 2006 18:47:07 -0000 Issue 6372

2006-01-11 Thread Kristen Henry
Problem is, I think the iSeries is different, and also, I am passing in variable to tell the iSeries to use the ones I load. I want to add the missing Sun entry... K > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 11, 2006 11:47 AM

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Alexandre Poitras
On 1/11/06, Rick Reumann <[EMAIL PROTECTED]> wrote: > > Unfortunately I have to run out to do some things this afternoon, and > can't reply in as much detail as I'd like to the below, but I'll quickly > comment... > > Werner Punz wrote the following on 1/11/2006 10:51 AM: > > Hi Rick the confusion

Re: Validation with DynaValidatorForm not working - help

2006-01-11 Thread Raghu Kanchustambham
Assuming you want to do "form-based" validation, can you check if your forms.ObjectTypeForm extends from one of the valid validationform objects? If it extends a simple "ActionForm", validation will not work. HTH, Raghu On 1/11/06, Mahadevan Venkataraman <[EMAIL PROTECTED]> wrote: > > Hi, > > I

Get Struts Internal Logs From Tomcat

2006-01-11 Thread Jim Reynolds
Hello, I am creating a Struts webapp, and I would like to get some of the internal messages that struts throws out ... eg. Bean Creation, scope, etc. I created a log4j.properties and laid it into my /WEB-INF/classes directory ... log4j.rootCategory=DEBUG, R log4j.appender.R=org.apache.log4j.Rollin

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Rick Reumann
Unfortunately I have to run out to do some things this afternoon, and can't reply in as much detail as I'd like to the below, but I'll quickly comment... Werner Punz wrote the following on 1/11/2006 10:51 AM: Hi Rick the confusion you are talking about, is basically the same you have by jumpin

Re: Workflow Implementation

2006-01-11 Thread Raghu Kanchustambham
Thats too broad a question - :-) So you will get "broad" answers for that! :-) You can take a look at jBPM project - I think jboss has taken up the "ownership" for the project. While I have not used it, I believe there is some activity and interest in the project. If you are looking at providing

Validation with DynaValidatorForm not working - help

2006-01-11 Thread Mahadevan Venkataraman
Hi, I am having some problems in getting struts to validate my input form. It seems to completely ignore the validation and starts executing the action. Here are the relevant files. Any help regarding this is highly appreciated. TIA Maha struts-config.xml --

[shale] UnsupportedOperationException w/ Mock Objects

2006-01-11 Thread Dennis Byrne
MockServletContext.log throws a UnsupportedOperationException, making it hard to test many core parts of MyFaces. Was the intention here for the tester to override MockServletContext.log, or does MockServletContext assume the tested code simply would/should not call ExternalContext.log() ?

Re: [OT] Getting started is confusing [was] Re: Need advice

2006-01-11 Thread gramani
news <[EMAIL PROTECTED]> wrote on 01/11/2006 11:34:12 AM: > Frank W. Zammetti wrote: > > > > String var = > > (String)FacesContext.getCurrentInstance().getExternalContext(). > getRequestParameterMap().get("variableName"); > > > A yes the lovely Request Factory->context...-> cascade > > I per

Re: Session Attribute strange behaviour

2006-01-11 Thread Michael Jouravlev
On 1/11/06, Gaet <[EMAIL PROTECTED]> wrote: > Hi the list, > > I know this is not a struts question (unless there is a simpler solution > with struts :o)) > > My goal : Add a back button on each of my pages with the url from where the > user comes (or another url if it comes from a page at a deeper

Shale-Clay: Error finding Converter for component

2006-01-11 Thread Sergey
Hi, I am new to Shale and Clay and am getting the following error during page rendering even the generated page looks ok: org.apache.myfaces.renderkit.html.HtmlRendererUtils findUIOutputConverterFailSafe SEVERE: Error finding Converter for component with id clayView:_id0:formListenerSignup:addre

Re: [OT] Re: Advice for Struts expert wanting to try Shale?

2006-01-11 Thread Dave Newton
[EMAIL PROTECTED] wrote: Let me get this right, he _told on you_ ... as in tattletale??? Yeah :D Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Calendar Project

2006-01-11 Thread Werner Punz
Rafael Taboada wrote: > Please. Do u know a calendar project made in struts??? I mean, when u make > an appointemnt, an event > thanks > > -- > Rafael Taboada > Software Engineer > > Cell : +511-97753290 > > "No creo en el destino pues no me gusta tener la idea de controlar mi vida" > Ther

Re: [OT] Re: Advice for Struts expert wanting to try Shale?

2006-01-11 Thread DGraham
Let me get this right, he _told on you_ ... as in tattletale??? That's just repugnant and pitiful. Did we not learn anything last year when Mark lost his job? -Dennis Dave Newton <[EMAIL PROTECTED]> 01/11/2006 11:27 AM Please respond to "Struts Users Mailing List" To Struts Users Mailin

Help!! - Dynamic validator form not working.

2006-01-11 Thread Maha Venkataraman
Hi, I am having some problems in getting struts to validate my input form. It seems to completely ignore the validation and starts executing the action. Here are the relevant files. Any help regarding this is highly appreciated. Thanks in advance Maha struts-config.xml --

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Werner Punz
Frank W. Zammetti wrote: > > String var = > (String)FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("variableName"); > A yes the lovely Request Factory->context...-> cascade I personally always use either ioc for managed beans or some utils classes (there i

Session Attribute strange behaviour

2006-01-11 Thread Gaet
Hi the list, I know this is not a struts question (unless there is a simpler solution with struts :o)) My goal : Add a back button on each of my pages with the url from where the user comes (or another url if it comes from a page at a deeper level) So i code the following simple code : Page A.j

Re: [OT] Re: Advice for Struts expert wanting to try Shale?

2006-01-11 Thread Dave Newton
I'm thinking you _still_ don't know what "libel" is, but feel free to sue me. Leave my employer out of it. As we're fond of saying, "no jumping in." If you'd rather I posted only from one of my non-work email accounts I'm happy to do that as well if it makes you feel better. If you'd like to

Re: tag question

2006-01-11 Thread Rick Reumann
Ashish Kulkarni wrote the following on 1/11/2006 11:08 AM: Hi I am a bit confused about using and tag I hate that optionsCollection tag:) I think the naming of the attributes is confusing. I prefer using html:select and using html:option withing a JSTL forEach loop. Slightly more verbose t

Re: Form has Inner Object..

2006-01-11 Thread Srinivas Jadcharla
You are welcome. On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Thanks for the reply, I also noticed , I had a typo in my method name... > now the below code works.. > > -Original Message- > From: Srinivas Jadcharla [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 11, 200

RE: Form has Inner Object..

2006-01-11 Thread Shilpa . Nalgonda
Thanks for the reply, I also noticed , I had a typo in my method name... now the below code works.. -Original Message- From: Srinivas Jadcharla [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 11:08 AM To: Struts Users Mailing List Subject: Re: Form has Inner Object.. *NoSu

tag question

2006-01-11 Thread Ashish Kulkarni
Hi I am a bit confused about using and tag Suppose i have defined following in struts-config.xml file I have a bean where in i have get and set method for name and desctiption, suppose the bean is called MyBean and viewNames vector is populated by MyBean class How do i define it in jsp page

Re: Form has Inner Object..

2006-01-11 Thread Srinivas Jadcharla
*NoSuchMethodException *Thrown when a particular method cannot be found. Your Object (dmaClient) may not be having the methods required..that is getters and setters On 1/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi All, > > My struts form (newClientForm) have an Object(dmaClient) a

Form has Inner Object..

2006-01-11 Thread Shilpa . Nalgonda
Hi All, My struts form (newClientForm) have an Object(dmaClient) and I want to set the Objects methods.. Like this ... But it cannot recognize the Object...java.lang.NoSuchMethodException: Unknown property 'dmaClient' Any suggestions.

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Werner Punz
Hi Rick the confusion you are talking about, is basically the same you have by jumping onto any framework. Mind you that I had to move from JSF to Struts for a project a while ago, and I had the same feeling backwards ;-) A very good entry point into jsf is: www.jsftutorials.net/ But as is I can

Re: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Frank W. Zammetti
On Wed, January 11, 2006 10:06 am, Rick Reumann said: > Anyway, I'm totally babbling now, but am I the only one that feels this > confusion? It's more confusing when you try to think of how you can use > these different technologies together (ie Shale and MyFaces). You are most definitely NOT alon

Re: Refactoring JSP to JSF (and then possibly to Shale)

2006-01-11 Thread Werner Punz
Chan, Jim wrote: > I am refactoring my company's JSP website because the code uses only JSP to > control navigation. You can imagine its pretty ugly. Anyway, I decided to > use JSF and possibly move to Shale once I've gained a handle on the > framework. I successfully deployed some of the pages

RE: [OT] Eclipse and JSTL & web-app

2006-01-11 Thread Garner, Shawn
Depends on which web sever you're using. JRun doesn't support some of the newer specifications yet and then I wonder if they really fully support some of them. Shawn -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 9:31 AM To: Struts Users

Re: Refactoring JSP to JSF (and then possibly to Shale)

2006-01-11 Thread Werner Punz
Rick Reumann wrote: > > Actually you bring up one of the reasons I'm not in love JSF at the > moment. I know most people like the idea of using pre-built or custom > renderers and get all googly eyed over the nice things you can get > out-of-the-box from MyFaces or Oracle ADF, but I guess I'm sti

Re: [OT] Eclipse and JSTL & web-app

2006-01-11 Thread Wendy Smoak
On 1/11/06, Garner, Shawn <[EMAIL PROTECTED]> wrote: > I got eclipse to recognize my custom tag but in the process I noticed that > the xml web-app definition version 2.4 doesn't support the taglib element > anymore. Why did this go away and what version of the Servlet/JSP servlet > spec did it g

RE: [OT] Eclipse and JSTL & web-app

2006-01-11 Thread Garner, Shawn
I got eclipse to recognize my custom tag but in the process I noticed that the xml web-app definition version 2.4 doesn't support the taglib element anymore. Why did this go away and what version of the Servlet/JSP servlet spec did it go away? Shawn -Original Message- From: Garner, Shawn

RE: [OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Brantley Hobbs
--snip-- > Try to pretend you just know a little about the buzz words.. JSF and > Shale. Now start googling to try to understand JSF. The Sun site I think > is pretty poorly organized. This article --snip-- > > I guess what I'm getting at is there really should be a simple page that > dumbs dow

Re: Enabling links according to user's authorization

2006-01-11 Thread Wendy Smoak
On 1/11/06, Rivka Shisman <[EMAIL PROTECTED]> wrote: > From what i know, i can hold a DB table that indicates for each user and > table - which operations are allowed. > But, my question is - what is the right way to do that on the JSP page? > Do i call this security table on each page load and hi

[OT] Getting started is confusing [was] Re: Need advice between Shale or Struts-Faces

2006-01-11 Thread Rick Reumann
Craig McClanahan wrote the following on 1/10/2006 7:37 PM: Not really. Shale is a completely separate framework that leverages the fact that JSF already provides a controller servlet, plus support for navigation and other simiklar things. It shares no code with the Struts 1.xcontroller framewo

Re: how to retrieve the selected value of jsp in action class

2006-01-11 Thread pc leung
my case goes like this inside SetupAssignUserSystemAction class, it associates with another form, UserSystemForm userSystemForm = (UserSystemForm)form; userSystemForm.setMethod("create"); Can it be casted to "UserForm userForm = (UserForm )form;" to get the value of previous page

Re: Workflow Implementation

2006-01-11 Thread gramani
"Thomas Joseph" <[EMAIL PROTECTED]> wrote on 01/11/2006 05:16:16 AM: > Hi All, > > What is the best way to implement workflow for an interactive application. > Any good architecture, best practices, patterns etc. > > Please indicate if I should address this to a different mailing list. Hi Th

Re: Enabling links according to user's authorization

2006-01-11 Thread Gareth Evans
Hi Rivka, You could do something like this for the custom tag. You'll need to setup how you store the current user in the session and the implementation of you security session. import javax.servlet.jsp.JspException; import javax.servlet.jsp.tagext.TagSupport; public class CheckPermissionTag

RE: Re: Enabling links according to user's authorization

2006-01-11 Thread Rivka Shisman
Hi Danny When the user logs in, he can work with say 10 JSP pages in the application, each page works on different table in the DB (so each page can give a user a maximum of 4 links to the DB table) - do you mean that the PERMISSIONS property will hold 40 permission flags (10*4)? I'm not sure I u

RE: Enabling links according to user's authorization

2006-01-11 Thread Rivka Shisman
Hi Gareth Can you please send me an example of the tag? And also an example of how to change the request processor? Thanks a lot Rivka -Original Message- From: Gareth Evans [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 11, 2006 3:25 PM To: Struts Users Mailing List Subject: Re:

Re: Enabling links according to user's authorization

2006-01-11 Thread Letícia Álvares Barbalho
Let me tell you how I do it. It may not be the best way, but works fine for our system. I show or hide the links using JSTL, like this: That's all it is for the JSP. On each (yes, each) of my actions, I have: if (up.getLogged()==false){ return mapping.findForward("notLogged");

Re: Enabling links according to user's authorization

2006-01-11 Thread Danny Lee
Do it simple, put a User bean into session scope just after user loged-in. Every user have a User.PERMISSIONS property. Then in JSP you do surround the links with JSTL the link, otherwise not. In all Actions you check the User too, and if there a problem (which means he put the forbiden actio

Re: Enabling links according to user's authorization

2006-01-11 Thread Gareth Evans
Hi Rivka, You could hide the links by creating a custom tag that only evaluates its body content if the current user has the required permission. e.g. But in addition to this you could stop the request from taking place at the requestprocessor level. i.e. i

RE: Enabling links according to user's authorization

2006-01-11 Thread Rivka Shisman
Hi again, Letícia - Does hiding the links mean that I should put a heavy security checking code on each such JSP page? Or is there a nicer way? Gareth - I'm not sure I understand - by "If permission is denied you could forward to a different page." - do you mean that if I can have 4 links on my

Re: building Struts w/ maven

2006-01-11 Thread Alexandre Poitras
You are trying to use maven 2. Struts is built with maven 1 :) mvn = Maven 2, maven = Maven 1. On 1/11/06, Dennis Byrne <[EMAIL PROTECTED]> wrote: > > The web site says to use 'mvn build-all' . > > http://struts.apache.org/acquiring.html#Source_Code > > Using build-all gives me the following error

Re: Enabling links according to user's authorization

2006-01-11 Thread Gareth Evans
In addition to hiding the links, extend the requestprocessor to check against the current user and your security table. If permission is denied you could forward to a different page. the best place to do this is in the processPreprocess(HttpServletRequest, HttpServletResponse ) method. Just

Re: Enabling links according to user's authorization

2006-01-11 Thread Letícia Álvares Barbalho
Well, of course each action should have its control of the access. I meant: hide the links and control through the actions, so no one will access them with a direct link. On 1/11/06, Thomas Joseph <[EMAIL PROTECTED]> wrote: > > > Hide the links.This way, you won't let him lose time trying to acces

Re: building Struts w/ maven

2006-01-11 Thread Wendy Smoak
On 1/10/06, Dennis Byrne <[EMAIL PROTECTED]> wrote: > The web site says to use 'mvn build-all' . > > http://struts.apache.org/acquiring.html#Source_Code The page needs to be clearer about what version of Maven is required, but it does actually say 'maven build-all' (not 'mvn'). We are still usin

  1   2   >