Your class have to extend ValidatorForm and not ActionForm.
BR
/Amleto
-Messaggio originale-
Da: AngeloChen [mailto:[EMAIL PROTECTED]
Inviato: venerdì 17 agosto 2007 11.53
A: user@struts.apache.org
Oggetto: validate never got called
Hi,
I have an ActionForm like following, the sett
Hi,
the token is associated to user session and it is stored in the session.
So you can "save" the token before to execute the business logic and
"reset" the token if an exception occured.
I have solved the problem in the following way:
BR
/Amleto
public abstract class TokenFormBaseAction extends
Try to use
${pageContext.request.requestURI}
BR
/Amleto
> -Messaggio originale-
> Da: news [mailto:[EMAIL PROTECTED] Per conto di Dave
> Inviato: venerdì 4 novembre 2005 18.19
> A: user@struts.apache.org
> Oggetto: Easy question, please help a rookie
>
>
> I'm trying to get the URL of
Hi,
Which version of JSP+JSTL (and Tomcat) are you using?
I am not sure but I think that the problem is due to fact that "1" is
considered as an Integer class.
This is possible, i suppose, in two cases:
- you are using JSP1.2+JSTL1.0
- or in the taglib directive you are using
"http://java.sun.com
Hi,
You can use the "fn:substring" function (see some documentation, for
example JSTL1.1 specification, for the attributes).
In order to use it, you have to declare the directive taglib i.e.
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
at the begin of jsp.
BR
/Amleto
TECTED] [mailto:[EMAIL PROTECTED]
> Inviato: lunedì 21 febbraio 2005 14.40
> A: user
> Oggetto: Re:R: struts-config dtd header problems
>
>
> I need the absolute path ...cause the machine has not a IP
> connection. any idea please?
> - Initial Header ------
Hi,
Try
http://struts.apache.org/dtds/struts-config_1_2.dtd
In this case, i am not sure, you will use the dtd file contained inside
the "struts.jar" (in particular inside the org/apache/struts/resources
directory).
BR
/Amleto
> -Messaggio originale-
> Da: [EMAIL PROTECTED] [mailto:[EMA
Hi,
I solved the problem implementing a tiles controller and using the
"extend" definition attribute in tiles-defs.xml.
This solution requires two tiles definition but the jsp body is the
same. I used two tiles in order to set the correct action, formName and
some other parameter. Maybe this solut
Hi,
You can clone the Category object implementanting the
java.lang.Cloneable interface (see the java api documentation) and
correct the code in the following way:
> 12. for (Iterator iterator = lALCategories.iterator();
iterator.hasNext(); )
> 13. {
> 14.lCCategory = ((Category)
riginale-
> Da: Dakota Jack [mailto:[EMAIL PROTECTED]
> Inviato: giovedì 20 gennaio 2005 18.03
> A: Amleto Di Salle
> Cc: Struts Users Mailing List
> Oggetto: Re: R: Session Strategy (here's a filter)
>
>
> Hello, Amleto,
>
> I am not looking to create a t
You can do this using request.getSession( false ) (false doesn't create
the session) and use the following in the tag in the web.xml.
30
30 are minutes
You can set the session-timeout also in the web container (see tomcat
documentation).
BR
/Amleto
> -Messaggio originale-
> Da: Dako
Hi,
I created the following Filter and it seems to work.
Note
1) I used a custom security model, i.e. a login page inside my
application. And this solution implies the extension of
TilesRequestProcessor if you have a menu roles-based.
2) The object "userID" contains information regarding the use
Furthermore if you are using JSP1.1 &JSTL1.0 the correct uri is
for example http://java.sun.com/jstl/core prefix: c
But I am not sure.
BR
/Amleto
> -Messaggio originale-
> Da: Amleto Di Salle [mailto:[EMAIL PROTECTED]
> Inviato: mercoledì 19 gennaio 2005 15.29
>
Hi,
If you are using JSP2.0 & and JSTL1.1 in your jsp you can use JSTL in
the following way:
core http://java.sun.com/jsp/jstl/core c
XML processing http://java.sun.com/jsp/jstl/xml x
I18N capable formatting http://java.sun.com/jsp/jstl/fmt fmt
relational db access (SQL) http://java.sun.com/js
Hi,
In order to use JNDI you can do the following steps:
1) create a context.xml file inside the meta-inf directory inside your
war file:
maxWait
5000
maxActive
100
password
manager
url
jdbc:oracle:thin:@127.
Hi,
Maybe, in your diagram you are mixing structural aspects with the
behavioural ones.
In fact you have numbered your association, in order to explain what do
you mean.
In your example, you can use one class diagram in order to explain the
"collaboration" between classes (without the actor and the
Hi,
May be you have to use the conallen UML extension in order to model a
web application.
This is a link: http://www.conallen.org/technologyCorner/webextension/
This is the first version of webextension.
A good book is: Building Web Applications with UML (2nd Edition) by Jim
Conallen for the seco
Hi,
You can use the tag "exception" inside the tag action for local
exception, or global-exceptions for global ones.
For example:
or
The attribute "path" can be a JSP page or a tiles which contains the
html:errors tag.
The attribute key c
Hi,
Try to extends reset method in DynaActionForm
package custom;
public class CustomDynaActionForm extends DynaActionForm {
public void reset(ActionMapping mapping, HttpServletRequest
request) {
initialize(mapping);
}
}
And in your "struts-config.xml" configure th
Hi,
This is an example.
Note the SQL statements.
Furthermore, if you have a table with data and after you want to add a
NULL BLOB column you have a problem in order to update the old rows.
You have to delete these rows and re-insert "using" the empty_blob
function. You cannot update the old rows,
Hi,
As i wrote before may be the solution is to use DispatchAction.
BR
/Amleto
-Messaggio originale-
Da: Shabada, Gnaneshwer [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 29 settembre 2004 18.00
A: '[EMAIL PROTECTED]'
Oggetto: RE: Detecting the previous JSP
Frank,
Thanks for your inpu
Hi,
you can use org.apache.struts.actions.DispatchAction instead of Action.
See Struts documentation.
I never used it, but if i remember correctly there was a bug ("recursive
call") related to it.
BR
/Amleto Di Salle
-Messaggio originale-
Da: Shabada, Gnaneshwer [mai
For POJO see http://c2.com/cgi/wiki?PlainOldJavaObject
Anyway POJO stands for "Plain Old Java Object". :-)
BR
/Amleto
-Messaggio originale-
Da: Onur Tokan [mailto:[EMAIL PROTECTED]
Inviato: martedì 21 settembre 2004 16.24
A: Struts Users Mailing List; [EMAIL PROTECTED]
Oggetto: Re: Whe
Hi,
I don't think that there is a web container with no admin tools.
Anyway this is not the point and so, good work!
:-)
Ciao
/Amleto
-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Inviato: martedì 21 settembre 2004 13.23
A: [EMAIL PROTECTED]
Oggetto: Re: Smar
Hi,
if you are using Tomcat, you can use the Tomcat Web Server
Administration Tool as HTML front-end. With this tool you can set the
dataSource (without configuring context.xml). In this case the
application is automatically reloaded from Tomcat.
The only things to do is to put inside the common/l
JNDI is not tied to Tomcat, but you have to set the datasource inside
the container (for example Tomcat).
In Tomcat, in order to set a datasource inside the application you have
to deploy with your application the following "context.xml" file inside
the "meta-inf" directory:
maxW
Hi,
you can use JNDI to get a DataSource (if you use tomcat see tomcat
documentation in order to set the datasource).
Here an example code to use inside the singleton object:
//Get DB from JNDI
try {
Context initCtx = new InitialContext();
Context envCtx = (Context) initCtx.lookup("
Hi,
M$ had done a good job with .Net because they copied ideas form
Java/J2EE!
:-)
BR
/Amleto
-Messaggio originale-
Da: Nail, Evan Burke [mailto:[EMAIL PROTECTED]
Inviato: martedì 14 settembre 2004 14.55
A: Struts Users Mailing List
Oggetto: RE: Advantages of J2EE w. Struts vs .NET ASP
Hi,
the ActionForm are used for the input form of your application.
If you use the ActionForm in your Action you don't have to use the
HttpServletRequest.getParameter("ID") method in order to obtain the
value of the parameter "ID", for example.
Furthermore, using ActionForm with package Validator y
Hi,
Is "bean.define" correct?
Anyway you have to use and .
Furthermore, in order to use the Struts tag without the el-extension
(you can find them in the "contrib" directory inside the Struts 1.1
binary release) you have to use a 2.4 servlet (and jsp 2.0)
Web-container compliant (for example Tomc
Hi all,
you can use the action in order to obtain the VO.
But a question: Are you using the html tags inside your jsp?
If yes, you can put the VO in the request and use the "value" (for
example value="${requestScope.anObject.aProperty}") attribute in the
html tags (for example "html:text).
I would
Hi,
you can use the following mirror
ftp://sunsite.cnlab-switch.ch/mirror/apache/dist/jakarta/taglibs/standar
d-1.0/source/
BR
/Amleto
-Messaggio originale-
Da: Derek Richardson [mailto:[EMAIL PROTECTED]
Inviato: lunedì 28 giugno 2004 17.13
A: Struts Users Mailing List
Oggetto: OT: Sou
After Logout and Reload so
that continue working
thank u mark
but i need some code please
like Amleto Di Salle Wrote.
-- Forwarded Message ---
From: "Mark R. Diggory" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Sent: Thu, 24 J
f the webapplication which allows us to block any restricted request
and forward it to the login form. I highly recommend using it over a
custom solution. Especially if you are trying to maintain a secure
application in production.
-Mark
Amleto Di Salle wrote:
> Hi,
> I have the following cla
tion's
"requiredlogin=yes" if it is then check for the value
session.getAttribute("loggedin"); If it is
false, you redirect the page to a login.do else you would send it to
correct
action class.
Folks, please let me know if this a convoluted way of achieving this.
>From: "
anac.com/egs/javax.servlet.jsp/nosession.html?l=new
Dennis
"Amleto Di Salle" <[EMAIL PROTECTED]>
06/24/2004 10:53 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"'Struts Users Mailing List'" <[EMAIL PROT
Hi,
one possible solution is to invalidate the session inside the
"LogoffAction".
HttpSession session = httpServletRequest.getSession( false );
if ( session != null ) {
session.invalidate();
}
If you have already done and the problem remains, maybe you are usin
Hi,
yes you can use the EL but depends on the Web Container you are using.
If you have a Web container JSP2.0 (and 2.4 servlet) compliant (for
example Tomcat5.0.x), you can use JSTL 1.1 (if you want to use them you
have to set your application)and html Struts standard.
In order to use, this versi
Hi,
you can use the JSTL1.1 (or 1.0 as you want) in the following way:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
you can use "pageScope", "requestScope", "sessionScope" or
"applicationScope" depending on the "pageRecords" is stored.
Hi,
you can use the JSTL1.1 (or 1.0 as you want) in the following way:
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
you can use "pageScope", "requestScope", "sessionScope" or
"applicationScope" depending on the "pageRecords" is stored.
Hi,
Which Tomcat version are you using?
The problem seems to be a Tomcat problem with the body content and the
Pooling of the Tag.
Anyway in the Tomcat 5.0.25 this bug is solved.
Try to do the following:
In the tags, don't use the empty element tag (i.e. with / at
the end of the tag) but use (
-1 for the site... On my machine (IE on windows XP ) is not usable! The
problem is with the blue background.
+1 for Roby Baggio!! :-)
BR
Amleto
-Messaggio originale-
Da: Marco Mistroni [mailto:[EMAIL PROTECTED]
Inviato: giovedì 17 giugno 2004 16.09
A: 'Struts Users Mailing List
Hi,
you can return null inside the Action as ActionForward.
In this case Struts doesn't dispatch the request to view.
BR
Amleto
-Messaggio originale-
Da: Ricardo Andres Quintero [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 16 giugno 2004 18.28
A: [EMAIL PROTECTED]
Oggetto: Using a serv
Hi,
you can use the Value List Handler design pattern.
See http://www.corej2eepatterns.com/Patterns2ndEd/ValueListHandler.htm
for an overview.
See http://www.theserverside.com/patterns/thread.tss?thread_id=26139 for
an implementation. I never used it but it is seems very good.
If you will use it
Hi,
Front Controller design pattern contains several collaborations and
strategies in order to "implements" the pattern. See the link that i
sent you before in order to understand what i mean.
Anyway, the FrontController class inside Struts is the ActionServlet
class and the ApplicationController
Hi,
Struts contains a Front Controller implementation!
Anyway, if you want to see the Front Controller design pattern and
others please visit http://www.corej2eepatterns.com/index.htm
BR
Amleto
-Messaggio originale-
Da: Chaikin, Yaakov Y (US SSA) [mailto:[EMAIL PROTECTED]
Inviato: l
Hi,
I think that MVC and Front Controller are slightly different because MVC
(or Model 2) is an "architectural" pattern and Front Controller is a
design pattern.
Front Controller design pattern is a possible solution for the
Controller "element" inside the MVC pattern.
BR
Amleto
-Messaggio
Hi,
may be, you have selected an "empty" value for the attribute
inside the related tag in the tld file, but you return
"EVAL_BODY_INCLUDE" inside the doStartTag() method.
BR
/Amleto
-Messaggio originale-
Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Inviato: lunedì 24 maggio 2004 9
Hi,
you are using scriplets and EL together. If you want to use JSTL, the
following code is:
For JSTL1.1
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>
For JSTl1.0
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c"%>
//write my text here using "productelement"
se, I'd still like to know if there
is a
way I can get the benefit of Struts handling the creation of the
ActionForm
and the passing it to the view for me WITHOUT having it auto-populate it
on
the way in. That's still i think the ideal situation for me, if it's
possible, so the que
Hi,
but have you used in the action tag inside the "struts-config.xml" the
"name" attribute?
Anyway, if I understood correctly, you can always extend the
RequestProcessor class and override the processPopulate(...) method.
Furthermore, you have to configure struts to use the extended
RequestProc
Hi Daniel,
the Struts modules can be used to separate the web-tier and only for
"development" purpose (i.e. you use the stuts module only for design
purpose).
So you will continue to create the war file for the web-tier and the jar
file for the business-tier.
BR
/Amleto
-Messaggio original
You don't have to declare the .tlds inside the "web.xml"
Try elminate it!
BR
/Amleto
-Messaggio originale-
Da: Daniel Perry [mailto:[EMAIL PROTECTED]
Inviato: lunedì 17 maggio 2004 15.50
A: Struts User List
Oggetto: JSTL 1.1 EL not working :(
I've tried to use JSTL with my web app, an
Yes, you can remove the related ActionForm inside the session using the
following code inside the "last" Action of the wizard
HttpSession session = httpServletRequest.getSession( false );
if ( session != null ) {
session.removeAttribute( actionMapping.getName() );
}
But this solution is un
you can solve the problem in two ways:
1)
2)
BR
/Amleto
-Messaggio originale-
Da: Frank Maritato [mailto:[EMAIL PROTECTED]
Inviato: martedì 4 maggio 2004 19.55
A: [EMAIL PROTECTED]
Oggetto: looping question
Is there a way to loop over a counter (not over a collection) i
55 matches
Mail list logo