Stumped on form field

2009-04-03 Thread Security Management
I cannot figure this out, days is never set, and the debug logging does not show up for setting days, but it does for name. Anyone have any idea? JSP page: <%@ taglib prefix="s" uri="/struts-tags" %>

Debugging form values being set

2009-04-06 Thread Security Management
I have an app that has a form value (rule.days) which should, if I understand the docs, call: getSearch().setDays() on the bean it's submitting to. How can I turn on debug for this, and see why rule.ruleName works, but rule.days is not being set? I see this in the log: 2009-04-06 15:14:21,345 [h

RE: configure struts 2

2009-04-07 Thread Security Management
Posting your whole file would help. From the last error, looks like it's a spring issue. Peep this: http://static.springframework.org/spring/docs/1.2.9/reference/beans.html 3.19 shows the web.xml configuration for your applicationContext.xml -Original Message- From: john lee [mailto:s

OGNL Debug?

2009-04-07 Thread Security Management
Is there a way to turn on debugging for OGNL for struts 2? I have a form field that is not getting set on my action's object, and one that works fine. If I change the form from POST to GET I can see the correct name and value in the URL. Is there a way to make the OGNL stuff spit out the travers

RE: OGNL Debug?

2009-04-07 Thread Security Management
.gard...@sun.com] Sent: Tuesday, April 07, 2009 9:28 AM To: Struts Users Mailing List Subject: Re: OGNL Debug? OGNL should catch the underlying log levels, try setting that to debug or DEBUG or whatever. On Apr 7, 2009, at 9:03 AM, Security Management wrote: > Is there a way to turn on debug

Textfield populated from java.lang.Integer

2009-04-07 Thread Security Management
I have the following form: I have the following method in the Action class that runs before this: public IRule getRule() { return this.r; } Now, IRule has the following: public String getRuleName(); public void setRuleName(String n); public Integer getRuleDays(); public void setRuleDa

Error with ActionForward

2009-04-07 Thread Security Management
Struts 2.1.6, here's my action. addExceptionForm ${rule} public class AddExceptionForm extends SMCBaseAction { private IRule rule; public IRule getRule() { return rule; } public void setRule(IRule r) {

RE: Error with ActionForward

2009-04-07 Thread Security Management
oes it actually fail, or does it just print the exception in the log? Do you have devMode on? Nils-H On Tue, Apr 7, 2009 at 6:08 PM, Security Management wrote: > Struts 2.1.6, here's my action. > > >         >                addExceptionForm >                ${rule} >    

RE: please help me

2009-04-07 Thread Security Management
>From the documentation: http://struts.apache.org/2.0.14/docs/select.html "" List: Iterable source to populate from. If the list is a Map (key, value), the Map key will become the option 'value' parameter and the Map value will become the option body. "" Now, you have list as "DataOre". This is

HTML warnings for in xhtml theme

2009-04-08 Thread Security Management
All, Using forms in the xhtml theme creates a 2 column table for *most* items. The hidden item is not one of them, and gives html warnings for being inside of instead of inside of a . It's an easy fix by putting the following hidden.ftl in the xhtml theme directory. Is there any reason not to

Help with an Expression in a JSP page.

2009-04-09 Thread Security Management
All, I have the following: The second gives me the correct number, but the first does not. I want the first to translate to: getPersonProvider().getDepartment(1) Which is a

RE: Default page for namespce in struts2 application.

2009-04-09 Thread Security Management
-Original Message- From: sharath karnati [mailto:karna...@yahoo.com] Sent: Thursday, April 09, 2009 2:20 PM To: user@struts.apache.org Subject: Default page for namespce in struts2 application. Hi All,      Say I'm having following code in my struts.xml file               /page

RE: struts2.1.6 dojo ajax tags conflict with fileupload interceptor?

2009-04-13 Thread Security Management
I think those tags are deprecated, so I'd be cautious of using them. Mike. -Original Message- From: Eric Zhao [mailto:z...@utsc.utoronto.ca] Sent: Monday, April 13, 2009 1:19 PM To: Struts Users Mailing List Subject: struts2.1.6 dojo ajax tags conflict with fileupload interceptor? repos

RE: struts2.1.6 dojo ajax tags conflict with fileupload interceptor?

2009-04-13 Thread Security Management
tool like JQuery or something. Quite confusing they still have the line "*First-class AJAX support*" on the homepage and no warning in the migration guide from 2.0.x to 2.1.6. Security Management wrote: > I think those tags are deprecated, so I'd be cautious of using them.

RE: sample CRUD application question

2009-04-14 Thread Security Management
I *think* it's the method name of the action? In other words, the equivilant of: Mike. -Original Message- From: Bhaarat Sharma [mailto:bhaara...@gmail.com] Sent: Tuesday, April 14, 2009 10:55 AM To: Struts Users Mailing List Subject: sample CRUD application question I was loo

RE: AJAX Theme - text fields side-by-side

2009-04-14 Thread Security Management
I have a blog post about extending a theme, this is for making the checkboxlist a little prettier for the xhtml theme, but the idea should be the same: http://mikeski.net/site/node/16 Mike. -Original Message- From: Andre L DINIZ-POLITEC [mailto:andre.l.diniz-poli...@hsbcglt.com.br] Sent

RE: sample CRUD application question

2009-04-14 Thread Security Management
t; damn the shorthands. we need a wiki that explains all these > > On Tue, Apr 14, 2009 at 11:01 AM, Security Management < > list-subscripti...@secmgmt.com> wrote: > > > I *think* it's the method name of the action? > > > > In other words, the equivilant of: &

RE: reference variable in struts 1 and 2

2009-04-14 Thread Security Management
http://struts.apache.org/2.1.6/docs/set.html -Original Message- From: john lee [mailto:sh_thorn_b...@yahoo.com] Sent: Tuesday, April 14, 2009 4:52 PM To: user@struts.apache.org Subject: reference variable in struts 1 and 2 in struts 1   if need to get variable from action, and do further

RE: Struts 2 Sample application look for index() method

2009-04-15 Thread Security Management
We need your struts2 xml configuration file and possibly the java code to help. That, or someone with better ESP than me will have to help. M. -Original Message- From: SanJ.SANJAY [mailto:girish...@gmail.com] Sent: Wednesday, April 15, 2009 11:25 AM To: user@struts.apache.org Subject: R

RE: Struts2 equivalent of

2009-04-15 Thread Security Management
I second the Spring Security stuff, it's great. -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Wednesday, April 15, 2009 4:09 PM To: Struts Users Mailing List Subject: Re: Struts2 equivalent of On Wednesday 15 April 2009 16:00:34 Russell Neufeld wrote: > Hi al

Storing interface instance in a user's session

2009-04-16 Thread Security Management
I want to store a list of interface instances (i.e. UserImpl which implements IUser), so I can have methods: public void setUser(List users) { This.getSession().put(SESSION_USER_LIST_KEY, users); } public List getUsers() { return (List) this.getSession().get(SESSION_USER_LIST_KEY)

RE: Storing interface instance in a user's session

2009-04-16 Thread Security Management
: Storing interface instance in a user's session If you use SessionAware in your actions, you can receive a Map that represents the session. You could pass that Map into your user manager class, and do the storage that way. On Thu, Apr 16, 2009 at 10:18 AM, Security Management < list-su

RE: Display action errors above the field

2009-04-17 Thread Security Management
Wouldn't you use field errors for that, and let the theme handle the display? -Original Message- From: Stefano Tranquillini [mailto:stefano.tranquill...@gmail.com] Sent: Friday, April 17, 2009 2:23 PM To: Struts Users Mailing List Subject: Display action errors above the field Hi all i'm

RE: Display action errors above the field

2009-04-17 Thread Security Management
eldError("fieldName","message"); > > like: > > addFieldError("email",surname + ": invalid email address"); > > The infrastructure marries this with the field named "email". > > > On Apr 17, 2009, at 2:31 PM, Stefano Tranquillini w

RE: Struts 2 and Spring Framework

2009-04-17 Thread Security Management
ls lib|grep spring spring-beans.jar spring-context.jar spring-core.jar spring.jar spring-security-acl-2.0.4.jar spring-security-core-2.0.4.jar spring-security-core-tiger-2.0.4.jar spring-security-taglibs-2.0.4.jar spring-web.jar struts2-spring-plugin-2.1.6.jar If that does not help, you need to p

Help with dynamic form id

2009-04-20 Thread Security Management
I have the following in a jsp, I'm creating hidden forms to submit with javascript when someone clicks on a table row: I get the following HTML generated: /> Is there any way to do it other than not using s:form and using

RE: Help with dynamic form id

2009-04-20 Thread Security Management
Doh! I asked too soon, here it is: Then, with JS, document.getElementById('person_').submit(); -Original Message----- From: Security Management [mailto:list-subscripti...@secmgmt.com] Sent: Monday, April 20, 2009 10:15 AM To: &#x

RE: Form doesn't clear

2009-04-21 Thread Security Management
Make sure it's not your browser filling it out and being "helpful". -Original Message- From: Mighty Tornado [mailto:mighty.torn...@gmail.com] Sent: Monday, April 20, 2009 10:05 PM To: Struts Users Mailing List Subject: Form doesn't clear Hi, Using Struts 1.3, Tomcat 6. I have the two fo

RE: Non editable jsp with struts 2 templates - whats the best approach?

2009-04-21 Thread Security Management
Yes, create a theme based on simple that sets the disabled=true for the fields, and render with that theme. Here's an example of how to do that: http://mikeski.net/site/node/16 -Original Message- From: Suneel [mailto:sunee...@gmail.com] Sent: Tuesday, April 21, 2009 11:30 AM To: Strut

Jasper Plugin cannot find file

2009-04-21 Thread Security Management
I'm using the tutorial here: http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html I have put a file here: /jasper/report.jrxml I can look in my war file and verify it. I'm trying to compile and render with it. Here is my action code: /jasper/scrounger

RE: Jasper Plugin cannot find file

2009-04-21 Thread Security Management
- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Tuesday, April 21, 2009 4:37 PM To: Struts Users Mailing List Subject: Re: Jasper Plugin cannot find file Please start new threads for new topics. Security Management wrote: > I have put a file here: >

RE: Jasper Plugin cannot find file

2009-04-22 Thread Security Management
r Plugin cannot find file I would suggest that first give the complete absolute path and check if the program is working fine, just to ensure, there is a problem with path only. Once established problem is with path only, I may help you further. Regards, Balwinder Kumar Security Manageme

Disable GET site-wide

2009-04-22 Thread Security Management
Is there any way to prevent struts 2 from processing GET parameters? I have my application to only use POST forms, so the values are not visible in the URL, is there a way to have struts not call setters for the http://host/myapp/delete_person?id=12345, and only set it for the action if it's submi

Help with JSP expression

2009-05-11 Thread Security Management
I have an expression that I want to evaluate to the following: getProvider().hasAccessRight(getRequestFor(), [0]) Where [0] is an item in a list that is being iterated over. I've tried loads of different stuff, and am looking at the struts documentation, but can't seem to find the correct syn

Documentation typo?

2009-05-13 Thread Security Management
http://struts.apache.org/2.1.6/docs/tag-reference.html Should the elseIf on this page not be elseif? I believe the tag is case sensitive, and you have to look at the examples to tell it's a typo there... - To unsubscribe, e-m

RE: Documentation typo?

2009-05-13 Thread Security Management
No problem. Mike. -Original Message- From: Dave Newton [mailto:newton.d...@yahoo.com] Sent: Wednesday, May 13, 2009 4:45 PM To: Struts Users Mailing List Subject: Re: Documentation typo? Security Management wrote: > http://struts.apache.org/2.1.6/docs/tag-reference.html > > S

RE: Performance issue with large data(such as images)

2009-06-10 Thread Security Management
I should have also mentioned that there are security issues with persisting to the hard drive. I would recommend saving to the database and loading the images as needed. Do not save them to session. I do not think you will have a performance problem. Rich I have had problems when trying to sho

Help with JSP and javascript

2009-07-10 Thread Security Management
Can someone suggest a way to do this: I have tried a bunch of ways, but always wind up with the

RE: Help with JSP and javascript

2009-07-10 Thread Security Management
nd 'door3', which is what #foo is. -Original Message- From: Wes Wannemacher [mailto:w...@wantii.com] Sent: Friday, July 10, 2009 12:09 PM To: Struts Users Mailing List Subject: Re: Help with JSP and javascript On Friday 10 July 2009 11:49:04 Security Management wrote

RE: Help with JSP and javascript

2009-07-14 Thread Security Management
... I thought I had a sample sitting around somewhere but I am not finding it. Check google. I would guess that you could just escape the single quotes you need and the rest will fall into place. -Wes On Friday 10 July 2009 14:54:30 Security Management wrote: > OK, thanks Wes, I'm ma

Help with a redirect

2009-07-17 Thread Security Management
When my index page loads, ajax requests are posted to the statusAjax page with a parameter of door.id equal to x for the doors. That works fine, and is a POST. When I click on an icon, it posts to the identical action, to either lock or unlock. When the action is done, I redirect to the status a

RE: Help with a redirect

2009-07-17 Thread Security Management
OK, tried adding the "parse" param, and still no luck... statusAjax ${door.id} true -Original Message----- From: Security

RE: Struts - Security

2009-08-10 Thread Security Management
Ditto on Spring Security, very nice for URL auth. -Original Message- From: Dale Newfield [mailto:d...@newfield.org] Sent: Saturday, August 08, 2009 12:02 PM To: Struts Users Mailing List Subject: Re: Struts - Security Kamlesh Koringa wrote: > - URL encryption (no one can modify generated

List Iterator in JSP

2009-08-18 Thread Security Management
My actions have a method, called getJavascriptIncludes() which returns a List object. I'm iterating like so, in the head: Here's what's generated: