Re: c:out not finding values that are in a pojo, inside an actionForm.

2005-06-28 Thread Kjersti Berg
On 6/28/05, Dave Newton <[EMAIL PROTECTED]> wrote: > Mick Knutson wrote: > > >Here is my stack: > >As you can see, the values are there, but it just is not picking them > >up. > >Also, here is what I have in the jsp: > > > > >property="activity.lastPinChangeDate"/> > > > >  >key="l

Re: Setting value at runtime in logic:equal

2005-06-28 Thread Kjersti Berg
On 6/28/05, Brad Rhoads <[EMAIL PROTECTED]> wrote: > Nitesh wrote: > > > You are probably looking for... > > > > Unfortunately, that gives: > > cannot find symbol > symbol : method getOrderStatus() > location: class java.lang.Object > _jspx_th_logic_equal_0.setValue( orderObj.get

Re: quick simple question

2005-06-28 Thread Laurie Harper
ori wrote: currently i map all *.do requests to the action servlet. i have an action at myHost/action.do. i also want myHost/action to map to that same struts action. how can i do this? thanks a lot. You only have two options for URL mapping: prefix or extension. In other words, you can sa

Action path matching

2005-06-28 Thread Laurie Harper
Given the following action mappings, I can reach every JSP bar one: The problem mapping is "/pathtest/one/*/two/" (or "/pathtest/one/*/two/**", depending on how you look at it...) Basically, the former is never matched. Reque

Struts modules and prefix matching

2005-06-28 Thread Laurie Harper
Argh, I just wasted an hour trying to figure out how to access the new module I just defined in my Struts application before finally finding a note in the docs [1] that only extension mapping is supported with modules :-( Has anybody ever looked at lifting that restriction? I have everything se

Error deploying struts webapp to sunone 6.1

2005-06-28 Thread Richard Reyes
Hi All, I have a working struts webapp ( working in tomcat 5 ), now i need to deploy this app to a sunone web server 6.1. Upon copying the whole webapp folder to the new instance I have encountered this filenot found exception... Any help will be appreciated. Anybody know on a doc that properly d

Re: c:out not finding values that are in a pojo, inside an actionForm.

2005-06-28 Thread Dave Newton
Mick Knutson wrote: Here is my stack: As you can see, the values are there, but it just is not picking them up. Also, here is what I have in the jsp:   <%%> [] What would be the I'm tired and crabby so probably thinking poorly, but if you do a isn't the ob

c:out not finding values that are in a pojo, inside an actionForm.

2005-06-28 Thread Mick Knutson
Here is my stack: As you can see, the values are there, but it just is not picking them up. Also, here is what I have in the jsp:   <%%> [] What would be the ,declineCode=-,activity=com.blackhawk.ff [EMAIL PROTECTED],lastPinChangeDate=,lastPersonalC

Re: isUserInRole - how it works

2005-06-28 Thread Frank W. Zammetti
That's going to be a container-specific thing... there is, as far as I know, no provision for doing that within the spec. Various containers may allow you to do it though. Also note that you could be making changes in web.xml or in your container's group config data... the context can be dyna

Re: Render an html button tag

2005-06-28 Thread Michael Jouravlev
On 6/28/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I'm curious though... I'm looking at the 4.01 spec now and I don't see > anyplace that says the non-clicked button shouldn't be submitted... I > would actually expect it to work like any other form element in that they > all get submitted r

Re: Struts indexed property problem

2005-06-28 Thread Michael Jouravlev
You want bean utils to convert your proprietary value object into generic List? Umm, don't see how this is possible. Michael. On 6/28/05, Siena, Christina (.) <[EMAIL PROTECTED]> wrote: > As you can see, the forms implement programList differently which is the > cause of the problem. In order fo

quick simple question

2005-06-28 Thread ori
currently i map all *.do requests to the action servlet. i have an action at myHost/action.do. i also want myHost/action to map to that same struts action. how can i do this? thanks a lot. - To unsubscribe, e-mail: [EMAIL P

RE: NoClassDefFoundError: org/apache/struts/action/ActionForm

2005-06-28 Thread Karr, David
It's hard to say for certain, but this could be a classloader problem. It might help if you set the "prefer-web-inf-classes" element in your weblogic.xml file (to true, of course). If that isn't there, it will use the struts.jar that is used inside WebLogic, instead of the struts.jar in your WEB

Re: isUserInRole - how it works

2005-06-28 Thread Grzegorz Stasica
Frank W. Zammetti wrote: What do you mean by "reload roles"? Do you mean put changes to your roles in effect in real-time, or do you mean assign a user to a given role? I mean the first one. I want to put changes in roles in real-time

Re: Render an html button tag

2005-06-28 Thread Gary Cauthon
From: Wendy Smoak <[EMAIL PROTECTED]> From: "Gary Cauthon" <[EMAIL PROTECTED]> > Using HTML, I can create a button using this syntax: > remove > remove > > So how do I > do this with the struts html:button tag? As far as I can tell, it just > renders an tag of type "input" that does nothing wh

Re: isUserInRole - how it works

2005-06-28 Thread Frank W. Zammetti
What do you mean by "reload roles"? Do you mean put changes to your roles in effect in real-time, or do you mean assign a user to a given role? -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com On Tue, June 28, 2005 2:59 pm, Grzegorz Stasica s

Struts indexed property problem

2005-06-28 Thread Siena, Christina \(.\)
Hi, I've encountered an indexed property problem (common in Struts) when navigating from one page to another if checkboxes are checked in the page that I'm navigating from: [6/28/05 12:51:01:354 EDT] 44bb6cd5 WebGroup E SRVE0026E: [Servlet Error]-[BeanUtils.populate]: java.lang.NullPointerEx

Re: unable to print nested values with bean:write, or c:out

2005-06-28 Thread Mick Knutson
If ConsumerValidatorForm: public IConsumerActivity getConsumerActivity() { return consumerActivity; } from ConsumerActivity (not an Action Form though): public String getLastPinChangeDate() { return lastPinChangeDate; } Could it be that consumer activity is just a p

Re: isUserInRole - how it works

2005-06-28 Thread Grzegorz Stasica
ok but is it possible to reload roles manually from action. Function getPrinciple() seems to solve some of my problems but still I need to have an possibility to reload roles. I can not find setPrinciple function - To unsubscr

Unable to read DynaForm array values

2005-06-28 Thread Ciaran Hanley
I have the following DynaActionForm bean (where EditPaymentForm extends DynaActionForm so I can use custom validations) and corresponding action mapping I pre-populate this form in my Action class for display on a JSP for editing. The values show up fine in the JSP text b

Re: Render an html button tag

2005-06-28 Thread Frank W. Zammetti
Interestingly, I have never even thought of using a within a form :) I suppose it is subconscious, but I always use within forms and outside them. I'm curious though... I'm looking at the 4.01 spec now and I don't see anyplace that says the non-clicked button shouldn't be submitted... I would

RE: tag usage?

2005-06-28 Thread Abdullah Jibaly
Same result... I'm aware of the options tag but in case the user wants more flexibility they have this option :) After all he didn't ask about LabelValueBean either. -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 1:38 PM To: Struts Users Maili

RE: [OT] RE: javascript html:fprm and getElementById

2005-06-28 Thread Durham David R Jr Ctr 805 CSPTS/SCE
oops > if (isIE && startNode.nodeName == "FORM" && criteria == "name"){ > if (startNode.attributes['name'].nodeValue == value) { > return startNode; > } > } else { The code above is not needed. It has something to do with an IE problem with Form Nodes an

Re: Render an html button tag

2005-06-28 Thread Jeff Beal
Oddly, the element doesn't work well in Internet Explorer. (I just checked.) I have this form in an HTML page: Click Click 2 Now, if you click on one of the buttons, only that button and its value are supposed to be submitted. However, both are. Not only that, but the bu

Re: tag usage?

2005-06-28 Thread Wendy Smoak
Abdullah Jibaly wrote: > Using Servlet/JSP 2.4/2.0 and JSTL something like this should work: > > > > ${row.value} > > But... he asked about (plural, not .) The whole point is that if you have a Collection, you don't have to do the iteration, the tag will do it for you. Dave and

Re: NoClassDefFoundError: org/apache/struts/action/ActionForm

2005-06-28 Thread Wendy Smoak
From: "Sher, Allen - BLS CTR" <[EMAIL PROTECTED]> > I got a "java.lang.NoClassDefFoundError: > org/apache/struts/action/ActionForm" while initiating my ActionServlet. > > It's Struts 1.2.7 in WebLogic 8.1.3, if that matters. Where have you placed struts.jar? -- Wendy Smoak ---

[OT] RE: javascript html:fprm and getElementById

2005-06-28 Thread Durham David R Jr Ctr 805 CSPTS/SCE
Hopefully this e-mail's format doesn't get butchered too badly, but here's a function that walks down a DOM tree looking for a Node with specific attribute value: /** * startNode is the node to start searching from * criteria is the attribute name * value is the attribute value * ** isIE is a

NoClassDefFoundError: org/apache/struts/action/ActionForm

2005-06-28 Thread Sher, Allen - BLS CTR
I got a "java.lang.NoClassDefFoundError: org/apache/struts/action/ActionForm" while initiating my ActionServlet. I think it happened when parsing struts-config.xml, trying to load a subclass of ActionForm. The problem goes away if I comment out all my FormBeans in struts-config.xml. Any clue as to

RE: tag usage?

2005-06-28 Thread Abdullah Jibaly
quick correction: items="${myUtilBean.c}" -Original Message- From: Abdullah Jibaly Sent: Tuesday, June 28, 2005 1:25 PM To: Struts Users Mailing List Subject: RE: tag usage? Using Servlet/JSP 2.4/2.0 and JSTL something like this should work: ${row.value}

RE: tag usage?

2005-06-28 Thread Abdullah Jibaly
Using Servlet/JSP 2.4/2.0 and JSTL something like this should work: ${row.value} -Original Message- From: Thai Dang Vu [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 1:08 PM To: user@struts.apache.org Subject: tag usage? Hello everybody, T

Re: tag usage?

2005-06-28 Thread Brad Balmer
Try adding the org.apache.strtuts.util.LabelValueBean into your Collection instead of DataBean and use the html:optionsCollection tag to render them. --Notice the name/value pairs switched parameters. class MyUtilBean { private Collection c; public Collection getC() { c = new Arra

Re: tag usage?

2005-06-28 Thread Dave Newton
Anybody else notice the state.md.us email address? Is this Mark using Struts but to embarassed to admit it? *rotflmao* Thai Dang Vu wrote: class MyUtilBean { private Collection c; public Collection getC() { c = new ArrayList(); c.add(new DataBean("value", "name"));

Re: Validation for select box

2005-06-28 Thread Laurie Harper
Goswami, Raj wrote: I have a Select box which has all the states. The first option is 'Select One.' I need to display an error message if none of the state is selected. I am using DynaActionForm and the xml config file for validation. I put the value of 'Select One' as '-1' and it display

tag usage?

2005-06-28 Thread Thai Dang Vu
Hello everybody, This is a part of my input.jsp file: ... class MyUtilBean { private Collection c; public Collection getC() { c = new ArrayList(); c.add(new DataBean("value", "name")); c.add(new DataBean("value1", "name1")); c.add(new DataBean("v

Re: [OT] Populating Form objects without Struts?

2005-06-28 Thread Laurie Harper
Since Greg isn't using Struts, its health is not at issue ;-) Mark Galbreath wrote: Yes - use .NET or JSF; Struts is dead. ~mark -Original Message- From: Greg Pelly [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 9:24 PM Is there a way to harvest the advantages of ActionForms w

Re: [OT] Populating Form objects without Struts?

2005-06-28 Thread Laurie Harper
Take another look at BeanUtils -- that's what Struts uses to auto-populate ActionForms from the request. You should be able to do the same thing in your app pretty easily using, e.g. BeanUtils.populate(form, request.getParameters()) or something similar. L. Greg Pelly wrote: In previous pro

Re: isUserInRole - how it works

2005-06-28 Thread Wendy Smoak
From: "Grzegorz Stasica" <[EMAIL PROTECTED]> > Is it possible to access container from action. I'm using securityfilter > which extends BaseRealm. In this way I can put additional parameter to > user being authorized but the problem is that I'm not able to access it > from the action. There is only

Re: isUserInRole - how it works

2005-06-28 Thread erikweber
I think you will find information on container-based security in: 1) The J2EE tutorial from Sun 2) The Servlet Specification (should explain the method you cite as well as web.xml) 3) Articles/tutorials on JAAS Since "container-based" security necessarily involves the container, you are going t

AW: isUserInRole - how it works

2005-06-28 Thread Martin Kindler
Hi , with isUserInRole you can check whether the the current remote User has the role you specified. There is also an method //check authentication assuming that user needs the role "editor" for the action if (!request.isUserInRole("editor")) { throw new Exception("user not authenticated fo

Re: isUserInRole - how it works

2005-06-28 Thread Frank W. Zammetti
When you specify a constraint on a resource within a webapp via web.xml settings, you specify what group the constraint references. Within your container you specify which groups are a part of what groups (the former is a standard part of the servlet spec, the later is specific to whichever contai

isUserInRole - how it works

2005-06-28 Thread Grzegorz Stasica
hi, Actinally my question is how to access container from struts action but if I know how isUserInRole is working I'll be able to solve my main problem which is: Is it possible to access container from action. I'm using securityfilter which extends BaseRealm. In this way I can put additional p

Re: [ANN] Create robust wizards with enhanced Struts Dialogs

2005-06-28 Thread erikweber
Michael, nice work on all your stuff. I hope I don't end up doing Web apps anymore (no offense to you!), but if I do, I will definitely consider using some of your techniques and components. In my opinion, documentation is the key to success. Put an equal amount or more of work and polish on yo

Re: Help me with my problem in Automatic Validation please

2005-06-28 Thread Michael Jouravlev
I think that the easiest way is not to use automatic validation. Call validate() manually from action class. If errors found, stick your datalist into request object and forward to dataform.jsp. If you want to redirect, append datalist to URL. You would need to create new ActionForward instance.

Re: Setting value at runtime in logic:equal

2005-06-28 Thread Brad Rhoads
Nitesh wrote: You are probably looking for... Unfortunately, that gives: cannot find symbol symbol : method getOrderStatus() location: class java.lang.Object _jspx_th_logic_equal_0.setValue( orderObj.getOrderStatus() ); I can see a good value for orderObj.orderStatus in the de

RE: Help me with my problem in Automatic Validation please

2005-06-28 Thread Marsh-Bourdon, Christopher
Option 2 assumes that the action1 does not clear down or reset the data form that is used. This could lead to the datalist being present, but not the originally submitted form data. Christopher Marsh-Bourdon www.marsh-bourdon.com _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sen

Re: Help me with my problem in Automatic Validation please

2005-06-28 Thread BHansard
There are two approaches to correcting this. 1. If you are using Sessions, Place the datalist into the session instead of the request. This will insure the datalist is available, but can does add overhead to the application. Additionally, if you do not clean up the data, this can use up memory

Re: Render an html button tag

2005-06-28 Thread Frank W. Zammetti
On Tue, June 28, 2005 11:20 am, Wendy Smoak said: > I can't say why we don't have something that renders . It's in > the > HTML 4.01 specification so I don't think there would be any objection to > adding it if someone wanted to. (Though what would we call it?) What, isn't to your liking Wendy?

RE: Help me with my problem in Automatic Validation please

2005-06-28 Thread Marsh-Bourdon, Christopher
The datalist should probably sit in the session scope rather than request. Until there is an "intermediary" scope, this is probably the most cost-effective method. Just ensure that Action2 performs some cleanup that removes it from the scope when you are done with it. Christopher Marsh-Bourdon ww

Help me with my problem in Automatic Validation please

2005-06-28 Thread Thai Dang Vu
Hi everybody, This is the situation: welcome.jsp > action1 ---(forward)---> dataform.jsp ---(submit)---> action2 > view.jsp I use a drop-down list in dataform.jsp. The data for the list in dataform.jsp are got from an attribute attached to the request. I use automatic validation for d

RE: Render an html button tag

2005-06-28 Thread Folashade Adeyosoye
You can use a button shardayyy -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 11:20 AM To: Struts Users Mailing List Subject: Re: Render an html button tag From: "Gary Cauthon" <[EMAIL PROTECTED]> > Using HTML, I can create a button usin

Re: Render an html button tag

2005-06-28 Thread Lucas Bern
Hello Gary, You can do: SearchYour Feelings SearchYour Feelings your form: public class SomeForm extends ActionForm{ public String darkSideButton = null; public String jedisSideButton = null; ... getters ... setters } So when de user clicks some button, the property asociated with

RE: Re: Problems with validator and IE 5.0

2005-06-28 Thread Mark Galbreath
Aside from the fact that Validator is a kluge, why ru developing for an obsolete browser? ~mark -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Lionel Sent: Tuesday, June 28, 2005 10:34 AM Nitesh wrote: > Guess you would need to modify the JavaScript in your validator-

RE: [OT] web templates, struts templates?

2005-06-28 Thread Abdullah Jibaly
Look at AppFuse, it's exactly what you are looking for: http://appfuse.dev.java.net -Original Message- From: Aleksandar Matijaca [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 28, 2005 9:55 AM To: user@struts.apache.org Subject: [OT] web templates, struts templates? I spent some time loo

Re: Render an html button tag

2005-06-28 Thread Wendy Smoak
From: "Gary Cauthon" <[EMAIL PROTECTED]> > Using HTML, I can create a button using this syntax: > remove > remove > > So how do I > do this with the struts html:button tag? As far as I can tell, it just > renders an tag of type "input" that does nothing when you click it. > Do I need to write it

[OT] web templates, struts templates?

2005-06-28 Thread Aleksandar Matijaca
I spent some time looking for some web templates for a struts/j2ee project that I am currently working on, because it seems that I am not good at making things pretty. After looking at them, I asked myself, if there is such a thing as pre-built STRUTS based templates out there, for doing the bas

Render an html button tag

2005-06-28 Thread Gary Cauthon
Using HTML, I can create a button using this syntax: remove * * * misc html * * * remove So if a user clicks on one of the buttons then I know which one they clicked because a value of 1 or 2 is sent. Notice how the 1 or 2 do not appear on the face of the button because that would look od

Re: Problems with validator and IE 5.0

2005-06-28 Thread Lionel
Nitesh wrote: > Guess you would need to modify the JavaScript in your validator-rules > suitably!!! It is what I did, it works fine but this is not an good solution. I'll have to patch the javascript code each time I get a new commons-validator revision. Why did they use getAttributeNode ? :(

Re: How to create form rows dynamically

2005-06-28 Thread Ciaran Hanley
Hi, I followed the example you attached and it seemed to have worked except when I submit the form I cannot get at the form values. For example when I submit the form if the newAmnt text box gets a new value of say 10.00, the value on the server side is still returned as 0.00 (the original value)

RE: [OT] Populating Form objects without Struts?

2005-06-28 Thread Mark Galbreath
Yes - use .NET or JSF; Struts is dead. ~mark -Original Message- From: Greg Pelly [mailto:[EMAIL PROTECTED] Sent: Monday, June 27, 2005 9:24 PM Is there a way to harvest the advantages of ActionForms without Struts?

Validation for select box

2005-06-28 Thread Goswami, Raj
I have a Select box which has all the states. The first option is 'Select One.' I need to display an error message if none of the state is selected. I am using DynaActionForm and the xml config file for validation. I put the value of 'Select One' as '-1' and it displayed the error message f

Re: Blank lines at the start in jsp output

2005-06-28 Thread Jana Parvanova
For Tomcat we use the following in the default web.xml: jsp org.apache.jasper.servlet.JspServlet .. .. trimSpaces true 3 http://www.mail-archive.com/user%40struts.apache.org

Re: Blank lines at the start in jsp output

2005-06-28 Thread Leon Rosenberg
The simpliest way: or <%-- --%><%-- --%><%-- --%> On Tue, 2005-06-28 at 13:12 +0200, Jose María wrote: > Hi, I have a problem with the taglibs declaration, when the jsp is > processed generates n blank lines in the output but this is a problem if > I want to obtain only xml, for instance rd

Blank lines at the start in jsp output

2005-06-28 Thread Jose María
Hi, I have a problem with the taglibs declaration, when the jsp is processed generates n blank lines in the output but this is a problem if I want to obtain only xml, for instance rdf. Anyone knows how to remove this blank lines in the jsp output? The output is the next one: blank line blank

Re: Problems with validator and IE 5.0

2005-06-28 Thread Nitesh
Guess you would need to modify the JavaScript in your validator-rules suitably!!! HTH Nitesh - Original Message - From: "Lionel" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 28, 2005 4:08 PM Subject: Problems with validator and IE 5.0 Hi all! How can I use struts validator with IE

Problems with validator and IE 5.0

2005-06-28 Thread Lionel
Hi all! How can I use struts validator with IE 5.0 ? The "getAttributeNode" javascript function which is called to get the form name is not supported by IE 5.0. (using form.name would work...) Thanks. - To unsubscribe, e-mail:

Re: [OT] Populating Form objects without Struts?

2005-06-28 Thread Adam Hardy
Greg Pelly on 28/06/05 02:23, wrote: Is there a tool for doing this or any suggested workaround without Struts? Sorry if I'm missing something completely obvious: a quick scan of previous posts and the LazyList and BeanUtils APIs didn't make any lights go on. You should read up on simple java

Re: TagHandlerPool

2005-06-28 Thread javendo
Hello everbody. Please, my problem haven´t been resolved yet. Thanks for any help. Alessandro. - Original Message - From: "javendo" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" ; "Martin Gainty" <[EMAIL PROTECTED]> Sent: Tuesday, June 21, 2005 10:40 PM Subject: Re: TagHandlerPoo

Re: iterate on properties of a DynaActionForm

2005-06-28 Thread Dewitte Rémi
Indeed, I need help. I wrote it : - /> Which gives me an error telling there is no getter for property map while in the struts javadoc for org.apache.struts.action.DynaActionForm : java.util.Map getMap() Returns the Map containing the property values. Thanks for your help, wha