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
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
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
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
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
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
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
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.
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 -
:[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
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
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
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.,
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
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:
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
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
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=%=
-
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
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
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).
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:
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()) {
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
24 matches
Mail list logo