I have a LoginForm form extends ValidatorForm and I want to decide
a validaton runs only on the server or client side, (or both )
is there any way to do this_?
form name=LoginForm
field property=userno depends=required
arg0 key=caption.wusernono/
/field
/form
.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
We want to use commons-pool package for instance pooling,
where can I find a running complete example
,also we would be happy if somebody share their experinces with us ,,
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
try this :)
public class SessionRequestProcessor extends TilesRequestProcessor{
protected String processPath(HttpServletRequest request,
HttpServletResponse response) throws IOException
{
I think best way to check session is to extend requestProcessor Class and override
processPath method,
-Original Message-
From: Jose Ramon Diaz [mailto:[EMAIL PROTECTED]
Sent: Monday, November 03, 2003 12:06 PM
To: 'Struts Users Mailing List'
Subject: RE: Session Times Out
Hi,
But be
The Vector container was adapted so that it could fit as a Collection and a List.
Keep in mind though, that the Vector container WAS NOT improved
in the new Java 2 container libraries, but rather included only to support pre-Java
2 code.
you should not use vector class, vector is a legacy
try this,
Action Class
HashMap map = new HashMap();
map.put(myKey1,myValue1);
map.put(myKey2,myValue2);
request.setAttribute(map,map);
--- JSP page
logic:iterate id=myIterate name=map
bean:write name=myIterate property=key/
bean:write name=myIterate property=value/
Is it possible to move action and form bean mapping definitions to database ,
and loading them using struts plugin extensions,
(actullly actionServlet init method calls several another init method,,
I think inside one of those init methods mapping info is loaded to the applicaiton
context,
is
hi,
we are using jdeveloper as ide , and struts as framework ,,
I dont know when it is started but in debug mode it calls each method twice (calls
action class execute method twice ) and struts gives followig message after calling my
first action class (loginAction) ,,
it seccessfull execute
(Internet Yazilimlari Yetkilisi)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, 18 September 2003 14:26
To: Struts Users Mailing List
Subject: calls each method twice , logging everthing twice?
hi,
we are using jdeveloper as ide , and struts as framework ,,
I dont know when it is started but in debug mode
each method twice , logging everthing twice?
It looks as though the browser is sending two requests for the page.
Not familiar with tiles so am not sure about the exception your getting
though.
-Original Message-
From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
[mailto
-
From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
Sent: Thursday, September 18, 2003 2:17 PM
To: Struts Users Mailing List
Subject: RE: calls each method twice , logging everthing twice?
thanks but it solved just logging part of problem ,,
struts logs correctly like this
[INFO
I think the best place to do such kind of task is to extend RequestProcessor class,
this approach takes session control from developers,
extend TilesRequestProcessor , change the controller class to your new class (
SessionRequestProcessor) inside struts-config.xml.
here is the code
public
if you are getting an error related with FileAccess error,, you can try another HTTP
Client Api ,
if you are using SUN Http Client api ,
when you want to access some sites such as www.google, www.mdb you would get
FileAccess error,,
-Original Message-
From: Henry Voyer
I have to many programs in my applicaiton ,
to call each program, url syntax is /program.do?page=default
also most of my programs has more than one page ,
most of programs store some part of data in session for security reasons,
what I need is I must clear user stored session data when the
for the input parameter of Action form Mapping enter something like this
myaction.do?validateControl=0
add validateControl attribute to your actionForm
if struts redirects (redirect if validations fails) the page to the to resource
specified in input parameter of action form mapping
When the actionForm validate method returns errors,
struts direct the control to the jsp page specified in the input parameter of form
mapping.
is it possible to direct control to the action class in case of error inside the
actionForm validate method without making extra coding effort,
or
They were eligible for GC if its ClassLoader is GCd and they are not
referenced by any object... or something like that. Please check for
accuracy.
for some versions type of class loader affects is it eligible for GC,
to prevent singelatons eligible for GC you can use struts plugin feature,
inside reset and validate
request.getSession().getAttribure();
-Original Message-
From: Bård Arve Evjen [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 9:55 AM
To: [EMAIL PROTECTED]
Subject: How to access a session object from a form class
I need to be able to get a session
Struts tags reads property values from ActionForm related with called action,
/* html:text property=amount / */ inside jsp , calls getAmount method on
actionForm object, and then set as value
we want to add this behaviour into our tags,
is there any generic way to do this, it accesses the
Struts tags reads property values from ActionForm related with called action,
/* html:text property=amount / */ inside jsp , calls getAmount method on
actionForm object, and then set as value
we want to add this behaviour into our tags,
is there any generic way to do this, it accesses the
(); // - this clears the HashMap from super
// the rest of your data access code
}
I know, it's a hack, but hey, it works for me.
--
James Mitchell
Software Engineer / Struts Evangelist
http://www.struts-atlanta.org
678.910.8017
AIM:jmitchtx
-Original Message-
From: Seyhan BASMACI (Internet
We are using DB based Messages,
to do this we extended MessageResources class such as
/*public class MyMessageResources extends MessageResources implements
Serializable {
public String getMessage(Locale locale, String key) {
DAO class
if you are using oracle database ,
you can try such kind of query
to get pages ordered based on some fields
select t.*
from (select ordered_e.*,rownum as rowno
from ( select e.*
from employee e
order by name )
how can I change following code to if/else structure using tags ,
logic:notEqual name=Fund property=marketStatus value=Kapal
html:radio property=fundNo idName=Fund value=fundNo /
/logic:notEqual
logic:equal name=Fund property=marketStatus value=Kapal
nbsp;
/logic:equal
Normally we are creating DAO objects inside action clases, then binding them to
request or sesssion
to access from JSPs,Tags .
it is also possible to create DAO objects inside Tag classes then access them inside
tag class.
for the DAO objects accessed from TAG classes where is the correct
AIM:jmitchtx
-Original Message-
From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, August 07, 2003 10:18 AM
To: James Mitchell
Cc: Struts Users Mailing List
Subject: RE: is there any way to load Message Resources from
back-end
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 2:12 PM
To: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
Cc: Struts Users Mailing List
Subject: RE: is there any way to load Message Resources from back-end
database instead of properties files?
we have own tables that holds locations
29 matches
Mail list logo