RE: Tokens

2003-11-21 Thread Richard J. Duncan
Is there a complete end-to-end example of proper saveToken() isTokenValid() usage anywhere? (there should be) Regards,   Rich -Original Message- From: Jason Lea [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 10:16 PM To: Struts Users Mailing List Subject: Re: Tokens The

RE: Commons Bean Utils

2003-11-20 Thread Richard J. Duncan
The most common use of is to copy all matching properties as in BeanUtils.copyProperties(DTO, form); This way you can add new items on the form simply be adding the corresponding properties to the form and the data transfer object without trying to hunt down all the places you are

RE: validation occuring before form is loaded, why?

2003-11-18 Thread Richard J. Duncan
Hi. 1.What version of struts are you working with ? 2.If the action map's validate attribute is set to true, the form.validate() method is called *before* the action is executed. If there are errors it will forward back to the input page (value of the input attribute). 3.To avoid

RE: Declarative Security and Struts

2003-11-18 Thread Richard J. Duncan
A few good things to know when using struts and jsp/servlet security: 1.the logic:present and logic:notPresent tags let you conditionalize your jsps based on the users role. 2.Your code can use javax.servlet.http.HttpServletRequest.isUserInRole 3.Since you are using tomcat

RE: Store object in application scope

2003-10-31 Thread Richard J. Duncan
getServletContext.setAttribute(...) Regards,   Rich -Original Message- From: Ruth, Brice [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2003 2:20 PM To: Struts Users Mailing List Subject: Store object in application scope I'm writing a servlet that will do some init jobs and I'd

RE: Can I get parameter using bean tag?

2003-10-03 Thread Richard J. Duncan
Try bean:parameter .../ Regards,   Rich -Original Message- From: Barry Volpe [mailto:[EMAIL PROTECTED] Sent: Friday, October 03, 2003 2:11 PM To: Struts Users Mailing List Subject: Can I get parameter using bean tag? I have the following fowarding jsp's myjsp.jsp?type=type1

RE: Forwarded page is empty

2003-10-03 Thread Richard J. Duncan
Most of the time (for me), these errors are caused by a mis-spelling of the forward name in the mapping.findFoward(...) call. For example you do: return mapping.findForward(succes); // missing the last 's' and the forward is 'success'. The findFoward call returns null, which tells

RE: No Error Message But A Blank Page Is Displayed.

2003-09-30 Thread Richard J. Duncan
In my experience, this is because your execute/perform is returning null as the result of findForward(forwardname) not finding anything. Usually, this is because I misspelled the forward name. Returning null from execute/perform tells struts that your method wrote the response itself.

RE: [Poll] action mappings

2003-09-25 Thread Richard J. Duncan
What about: #5: A DispatchAction (struts 1.1) with a single action map entry: /maintainUser.do?action=create - MaintainUserAction.java /maintainUser.do?action=read- MaintainUserAction.java /maintainuser.do?action=update -

RE: [Poll] action mappings

2003-09-25 Thread Richard J. Duncan
:[EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:31 AM To: Struts Users Mailing List Subject: Re: [Poll] action mappings How is #3 different from #5? Matt - Original Message - From: Richard J. Duncan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 10:29

RE: ?open new browser window after struts action

2003-09-22 Thread Richard J. Duncan
No problem. You can have the URL that you pass to the window.open be a struts action that does the search, if you can arrange for the search criteria to be in session or passed as parameters to the URL. If you are on the search criteria page and you must submit that to get the search

RE: Problem in Struts with Tomcat

2003-08-14 Thread Richard J. Duncan
It sounds like there may be something wrong with your struts-config.xml. You might try deploying the struts-example.war that comes with the distro to make sure that you're not having any other problems. Regards,   Rich -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

RE: Is this a bug with struts config file?

2003-08-10 Thread Richard J. Duncan
My experience is the same as yours. That while the .do can be omitted in the action definition, it may not be omitted in the forward. FWIW, I think this is proper behavior. Certainly if you html:link to the forward your html pages will be do-less. Also, you can change to another scheme (e.g.,

RE: Help needed in Struts deployment on Weblogic 8.1

2003-07-30 Thread Richard J. Duncan
This looks like a class loading issue. In particular it sounds like your action classes are being put into the ejb.jar as well as or instead of in the .war. Make sure that: - War contains web assets + action classes and libs used by the front end (e.g., struts.jar and friends) - EJB jar

RE: [OT] Re: Poolman?

2003-06-26 Thread Richard J. Duncan
I have a Tomcat project that uses jakarta commons DBCP which is based on commons pooling. You configure it thru the tomcat config and access the pool via JNDI lookup of a datasource (just like a in WebLogic app). It appears to work well. Regards,   Rich -Original Message- From:

RE: java.util.ConcurrentModificationException at org.apache.struts.action.ActionMessages.add(ActionMessages.java:185)

2003-06-20 Thread Richard J. Duncan
Do you have the ActionErrors instance bound to an instance variable in the class: public class MyAction extends Action { .. private ActionMessages messages; } Struts treats each Action class as a singleton - there is only one instance ever created. As such an instance variable is

RE: ActionForm 'reset' method being called when JSP is rendered

2003-06-19 Thread Richard J. Duncan
If what your saying is true, it would break a *lot* of applications that create/reuse an ActionForm in a particular scope and then forward to a page. I wonder if something else is happening in your app. Just a thought... Regards,   Rich -Original Message- From: Paul Harrison

RE: hidden fields and extension tag errors with weblogic

2003-06-18 Thread Richard J. Duncan
Hi. WebLogic uses a different page complier than Tomcat. That may be part of the reason why you're picking up the error. My guess is that the problem is that you have a scriptlet inside the struts tag. Try re-writing it like this: html:select property=week value=%=

RE: hidden fields and extension tag errors with weblogic

2003-06-18 Thread Richard J. Duncan
- From: Richard J. Duncan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 11:08 AM To: [EMAIL PROTECTED] Subject: RE: hidden fields and extension tag errors with weblogic Hi. WebLogic uses a different page complier than Tomcat. That may be part of the reason why you're picking up

RE: Form bean properties not getting set

2003-06-18 Thread Richard J. Duncan
Rick: You can handle String data with simple String properties. For non String data you can use something like the following: private int age; public int getAge() { return age; } public void setAge(int age) { this.age = age; } public String getAgeDisplay() { return

RE: ActionForm.validate() always forward()s to input page?

2003-06-13 Thread Richard J. Duncan
Troy: That's because the last path your browser *saw* was /do/. It doesn't see the forward (that happens in the server) so it's trying to load all the page relative URI's from the last URL it knows about. You should be able to fix this with a html:base your page (in the head section).

RE: NewBie Q: logic:iterator/logic:iterator can't find bean

2003-06-12 Thread Richard J. Duncan
Try: bean:define id=Books name=Books scope=your-scope/ to define the bean before you iterate over it. Regards,   Rich -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 12, 2003 9:49 AM To: [EMAIL PROTECTED] Subject: NewBie Q:

RE: can't find bean using logic:iterator

2003-06-12 Thread Richard J. Duncan
H. Let's see: 1. You code is re-creating the ArrayList each time thru the loop, but not the book. It should be the other way around. ArrayList bookList = new ArrayList(); ResultSet res = this.getResultSet(); // okay if you say so while (res.next()) {

RE: can't find bean using logic:iterator

2003-06-12 Thread Richard J. Duncan
The bean:define will fail because its looking for something named newArrayList in request scope, but your code is putting the array list in request scope with the name Book. More over, I'd try to use a consistent naming stragegy between your Action.execute (or perform) where you're using