is it possible to define a validation that runs only server side or client side (validation.xml )

2004-03-25 Thread Seyhan BASMACI \(Internet Yazilimlari Yetkilisi\)
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

how can I access form validations defined in validation.xml file using ModuleConfig or something else.....

2004-03-25 Thread Seyhan BASMACI \(Internet Yazilimlari Yetkilisi\)
. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

using commons-pool

2003-11-18 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: Handling Session Timeout

2003-11-05 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
try this :) public class SessionRequestProcessor extends TilesRequestProcessor{ protected String processPath(HttpServletRequest request, HttpServletResponse response) throws IOException {

RE: Session Times Out

2003-11-03 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: iterate over a collection

2003-11-02 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: iterating through hashmap using logic tags

2003-09-25 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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/

moving some part of struts-config.xml to Database (vs Multiple modules)

2003-09-19 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

calls each method twice , logging everthing twice?

2003-09-18 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: calls each method twice , logging everthing twice?

2003-09-18 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
(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

RE: calls each method twice , logging everthing twice?

2003-09-18 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RESOLVED -- :RE: calls each method twice , logging everthing twice?

2003-09-18 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
- 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

RE: Prevent URL requested directly from browser

2003-09-16 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: Q : Calling an action via a java URL ?

2003-09-15 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

releasing session variables using a generic way without giving control to the developer

2003-09-05 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: Struts form validation: DAO and multipages

2003-09-01 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

best practices for ActionForm flow control

2003-08-31 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: Is singleton DAO acceptable? -- Best Practices

2003-08-27 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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,

RE: How to access a session object from a form class

2003-08-27 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

getting actionForm values inside our tags,

2003-08-20 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

getting actionForm values inside our tags,

2003-08-20 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: bean:message , reads only once the message from MessageResource, is it caching messages for later use?

2003-08-19 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
(); // - 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

bean:message , reads only once the message from MessageResource, is it caching messages for later use?

2003-08-18 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: [OT] Rendering Large ResultSet - Value List Handler Design Pattern

2003-08-14 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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 )

very simple if/else question

2003-08-14 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

where is the correct place to create DAO ?

2003-08-14 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: is there any way to load Message Resources from back-end database instead of properties files?

2003-08-14 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
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

RE: is there any way to load Message Resources from back-end database instead of properties files?

2003-08-14 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
[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

is there any way to load Message Resources from back-end database instead of properties files?

2003-08-05 Thread Seyhan BASMACI (Internet Yazilimlari Yetkilisi)