Re: Execute Action on the server

2007-09-21 Thread Oguz Kologlu
Not really suitable for what I'm after since I need the result of the  
rendered output on the server,
not on the client. As i mentioned I've seen it done with Velocity,  
using something like

Velocity Template Processor/Engine (can't remember the exact name).

Doing the same on a JSP I'd probably have to use something similar  
though I've not seen

anything that does.

anyway mostly just wishful thinking..

Oz

On 21/09/2007, at 11:55 AM, Paul Benedict wrote:


Oguz,

You can perform a JSP include and get the rendered page.

Paul

On 9/19/07, Oguz Kologlu [EMAIL PROTECTED] wrote:


Hi,

Does anyone know how to execute an action on the server and get the
result on the server (without having to use something like commons
http client).

What I want is the resulting html from an action so I send it as an
email. I vaguely remember a way to do it with a velocity template I'd
prefer to keep it in jsp.

Thanks,
Oz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Execute Action on the server

2007-09-19 Thread Oguz Kologlu

Hi,

Does anyone know how to execute an action on the server and get the  
result on the server (without having to use something like commons  
http client).


What I want is the resulting html from an action so I send it as an  
email. I vaguely remember a way to do it with a velocity template I'd  
prefer to keep it in jsp.


Thanks,
Oz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Design Advice Needed

2007-08-02 Thread Oguz Kologlu
When I used XSLFO (maybe 3-4 years ago) it was really a pain. I can't  
see how it could have gotten any better - without a visual designer  
anyway.


Have a look at http://www.eclipse.org/birt (Birt) - It can generate  
PDF's, export data, has a good designer etc.


(also if you are thinking about using XML - XSL - PDF, Birt also  
supports XML Data sources as well as regular DB datasource, Scripted  
datasources etc.


HTH,
Oz

On 02/08/2007, at 10:35 PM, Wesley Wannemacher wrote:


Having used FOP briefly, I would add only one thing. It is generally
considered a good practice to generate traditional XML first, then
transform your data to XSLFO using a transform (pardon me if I am
getting the terms wrong). Basically, create your XML data, then  
have an

XSL file that transforms your data to FO, then use FOP to transform it
into a PDF.

I saw a few responses that seem to indicate you may choose Jasper,  
which

is likely a better idea anyways.

-Wes

-Original Message-
From: Hoying, Ken [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 02, 2007 7:40 AM
To: user@struts.apache.org
Subject: [S2] Design Advice Needed

I could use some advice from some folks with more experience and
knowledge of Struts2 than I to assist me in determining the correct  
way
(or lay out some viable options) to design a solution for the  
following

senario:

We need to generate a PDF report real time based on data in a database
that is available for download.  What we believe that we would like to
do is utilize FOP (http://xmlgraphics.apache.org/fop/) and use a JSP
page to actually generate the formatting objects and then run the
formatting objects through the FOP processor to generate and stream  
the

PDF back to the user.

However, we are not real sure how to implement this in Struts2.   
How do

we invoke the JSP page and then get access to the results?  Do we just
use the stream result type and then use a http call to the JSP as the
input source?  This would seem like it would not be optimal from a
performance standpoint, as we are making another http call to get the
formatting objects from the jsp.  It also adds the complexity of  
passing

security credentials in the call.  Or do we need to somehow create or
own result type and if so how do we get those JSP results?  I have not
really found any good documentation or example on writing your own
result types.

Thanks in advance!



-
***Note:The information contained in this message may be privileged  
and

confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify the Sender immediately by  
replying

to the message and deleting it from your computer. Thank you. Premier
Inc.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[S2] dojo 0.9 and ***-conversion.properties

2007-08-01 Thread Oguz Kologlu

Hi all,

It seems when doing a dojo.xhrPost any collection object eg: contacts 
[0].firstName gets encoded to  contacts %5B0%5D.firstName.


The ***-conversion.properties don't seem to recognise the element as  
person so the person collection remains null and with lots of  
intercepter errors:


Unexpected Exception caught setting 'contacts%5B0%5D.firstName' on  
'class easybed.web.struts2.ContactsAction: Error setting expression  
'contacts%5B0%5D.firstName' with value '[Ljava.lang.String;@284bf3'


Dojo 0.4.3 used to work ok (probably it didn't encode `[`  
characters). I realise this is a borderline S2 issue since it ships  
with 0.4.3 but it will eventually have to support 0.9 and will have  
to solve the issue.


Has anyone come across this and have a workaround/solution for the  
time being?


Thanks,
Oz

[SOLVED] Re: [S2] Disable fileupload interceptor

2007-07-17 Thread Oguz Kologlu

I think the simplest way is to copy

org.apache.struts2.dispatcher.multipart.MultiPartRequestWrapper

to your classpath and change the

MultiPartRequestWrapper(..)

method to ignore the content.

I've put in a enhancement request in jira for a configuration item to  
disable Multipart request parsing - we'll see what happens.


HTH anyone in the same boat
Oz


On 16/07/2007, at 2:06 PM, Oguz Kologlu wrote:


Hi all,

I've a S1/S2 mixed application that uses a S1 action to upload  
files, however S2 keeps getting in the way and ripping out the  
uploaded data even though it is a S1 action being called.


Is there a way to disable the file upload interceptor so the S1  
action can handle the upload? Or at least access the value stack  
from S1 to retrieve the file?


Thanks
Oz



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





[S2] Disable fileupload interceptor

2007-07-15 Thread Oguz Kologlu

Hi all,

I've a S1/S2 mixed application that uses a S1 action to upload files,  
however S2 keeps getting in the way and ripping out the uploaded data  
even though it is a S1 action being called.


Is there a way to disable the file upload interceptor so the S1  
action can handle the upload? Or at least access the value stack from  
S1 to retrieve the file?


Thanks
Oz



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: email within action

2007-06-25 Thread Oguz Kologlu
yes, The main issue will response times if you a send emails  
synchronously ( if you can you send async). Async will definitely  
scale better since the client isn't blocking a thread for nothing.  
Simultaneous clients should be no problem as long as you follow the  
same threading rules as everything else shared vars etc.


For high loads you should use messaging. There's a ton of stuff on  
the net about async programming but it really depends on your  
environment. For a full JEE setup I'd probably use a Message Driven  
Bean. What sort of volume are you looking at and what's the environment?


Oz


On 25/06/2007, at 9:35 PM, Chris Pat wrote:


Hello
Is it possible to send an email within an action?  How/What are the  
issues?  Is this scalable?  How does it play with the framework and  
multiple simultaneous clients?  Any insight would be appreciated.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: email within action

2007-06-25 Thread Oguz Kologlu


On 25/06/2007, at 10:33 PM, Chris Pat wrote:


Hello
How can I send the email asynchronously? My timeframe is the  
lifecycle of the action and my browser session.
Well you will probably not be doing the emailing async but rather  
firing off an async request to send an email ( eg send hello world  
to this list of 1000 recipients) and response to the client (ie  
browser) that the emails are going out. You really don't have to wait  
for an email to be sent since email is a store and forward mechanism  
anyway with no guaranteed delivery.


You probably need to read up a little on messaging. As Guru also said  
a JMS server would meet your needs.


There's generally a JMS server built into most app servers or you can  
plug one in if it doesn't have one. A good list at:


http://mule.codehaus.org/display/MULE/Configuring+Jms

I've used ActiveMQ before and it's quite stable/reliable. It's run  
for a few months without problems (though not under heavy load), YMMV.


HTH
Oz


  Can I really get a mail session and send from within an action?   
Doesnt that assume I am threading the process?  When would this  
breakdown?  At 100/hr or 1000/hr?  Thank you.


Oguz Kologlu [EMAIL PROTECTED] wrote: yes, The main issue  
will response times if you a send emails

synchronously ( if you can you send async). Async will definitely
scale better since the client isn't blocking a thread for nothing.
Simultaneous clients should be no problem as long as you follow the
same threading rules as everything else shared vars etc.

For high loads you should use messaging. There's a ton of stuff on
the net about async programming but it really depends on your
environment. For a full JEE setup I'd probably use a Message Driven
Bean. What sort of volume are you looking at and what's the  
environment?


Oz


On 25/06/2007, at 9:35 PM, Chris Pat wrote:


Hello
Is it possible to send an email within an action?  How/What are the
issues?  Is this scalable?  How does it play with the framework and
multiple simultaneous clients?  Any insight would be appreciated.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: email within action

2007-06-25 Thread Oguz Kologlu
Depends on what you want to do really. As Guru points out you can use  
Web Services though that can grow unwieldy. For something light and  
pretty straightforward you may just want to use JSON (javascript  
object notation) or Xml HttpRequests. Have a look at the showcase  
project in S2 on how to use the Dojo toolkit.


Oz


On 25/06/2007, at 11:29 PM, Chris Pat wrote:


Hi
Thank you.  This was quite enlightening and gets me in the correct  
direction.  Being a newbie, I am unabashed to ask another  
associated question.  Can one use JMS as a replacement for RMI?  I  
am looking for a very lightweight api to just allow a client to  
call an objects method on the server deployed on tomcat5x.


Oguz Kologlu [EMAIL PROTECTED] wrote:
On 25/06/2007, at 10:33 PM, Chris Pat wrote:


Hello
How can I send the email asynchronously? My timeframe is the
lifecycle of the action and my browser session.

Well you will probably not be doing the emailing async but rather
firing off an async request to send an email ( eg send hello world
to this list of 1000 recipients) and response to the client (ie
browser) that the emails are going out. You really don't have to wait
for an email to be sent since email is a store and forward mechanism
anyway with no guaranteed delivery.

You probably need to read up a little on messaging. As Guru also said
a JMS server would meet your needs.

There's generally a JMS server built into most app servers or you can
plug one in if it doesn't have one. A good list at:

http://mule.codehaus.org/display/MULE/Configuring+Jms

I've used ActiveMQ before and it's quite stable/reliable. It's run
for a few months without problems (though not under heavy load), YMMV.

HTH
Oz



  Can I really get a mail session and send from within an action?
Doesnt that assume I am threading the process?  When would this
breakdown?  At 100/hr or 1000/hr?  Thank you.

Oguz Kologlu  wrote: yes, The main issue
will response times if you a send emails
synchronously ( if you can you send async). Async will definitely
scale better since the client isn't blocking a thread for nothing.
Simultaneous clients should be no problem as long as you follow the
same threading rules as everything else shared vars etc.

For high loads you should use messaging. There's a ton of stuff on
the net about async programming but it really depends on your
environment. For a full JEE setup I'd probably use a Message Driven
Bean. What sort of volume are you looking at and what's the
environment?

Oz


On 25/06/2007, at 9:35 PM, Chris Pat wrote:


Hello
Is it possible to send an email within an action?  How/What are the
issues?  Is this scalable?  How does it play with the framework and
multiple simultaneous clients?  Any insight would be appreciated.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] App generate lot (2GB) of garbage!

2007-06-19 Thread Oguz Kologlu
You may want to have a look at using a bit better profiler that can  
tell you what is instantiating the freemarker classes.


I've noticed Code Gear (ex Borland) have released a free version of  
JBuilder with OptimizeIt built in:


Have a look at http://www.codegear.com/eclipse_supercharged/index.html

Let us know if you get any results

HTH
Oz

 http://www.codegear.com/eclipse_supercharged/index.html
On 20/06/2007, at 4:00 AM, Matt Filion wrote:


Without knowing much more about your application I dont know if we are
going to be of much more help. Especially since most people here  
already
have struts 2 apps running and dont have this issue. I have a  
couple of

resources that might help you though while you dig through this issue.

You can see some of the source on the objects referanced in your  
memory

trace. Seeing the source of other objects is some times helpful.
http://www.koders.com/?s=freemarker.ext.util.ModelFactoryla=Java

It looks like you already have this one cause you mention addressing a
couple of the items. The last one mentions using velocity tags over  
struts
tags not sure if this would be your issue, but might be worth  
looking at.

http://struts.apache.org/2.x/docs/performance-tuning.html

Matt Filion
CSC - GTS -- Raytheon - ISF
[EMAIL PROTECTED]


-- 
-- 

This is a PRIVATE message. If you are not the intended recipient,  
please
delete without copying and kindly advise us by e-mail of the  
mistake in
delivery. NOTE: Regardless of content, this e-mail shall not  
operate to

bind CSC to any order or other contract unless pursuant to explicit
written agreement or government initiative expressly permitting the  
use of

e-mail for such purpose.
-- 
-- 






Ing. Andrea Vettori [EMAIL PROTECTED]
06/19/2007 02:19 AM
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
Re: [S2] App generate lot (2GB) of garbage!






Anyone ?

Anyone knows who's calling freemarker.ext.beans methods ?


Il giorno 17/giu/07, alle ore 19:08, Ing. Andrea Vettori ha scritto:


Hi,
I've a struts 2.0.8 app that runs on Linux and JBoss 4.0.5. I'ts an
e-commerce site.

I have the following problem.
The app seems to generate lot of garbage in RAM (young gen) that
the gc correctly collects.
But when there is more than a few users on the site, that amount of
garbage is generated about every 10 seconds or less depending on
the number of users. This cause a lot of cpu usage...

Tracking the memory usage with the hprof agent I found that a lot
of memory is used by freemarker.* classes on HashMaps.

I have devMode turned off, have the template dir on the root of
the war file and I have the freemarker.properties file into the
classes dir inside WEB-INF with template_update_delay=6.

Any hint on WHY the application is generating such big amount of
garbage ?

Thank you

Here is top memory usage and relative traces :


bytes 192,090,608
obj number: 1,263,754
class: java.util.HashMap$Entry[]

TRACE 352396:
   java.util.HashMap.init(HashMap.java:203)
   freemarker.ext.beans.BeanModel.init 
(BeanModel.java:117)

freemarker.ext.beans.StringModel.init(StringModel.java:90)
freemarker.ext.beans.StringModel$1.create(StringModel.java:75)


bytes: 143,560,048
obj number: 944,474
class: java.util.HashMap$Entry[]

TRACE 352387:
   java.util.HashMap.init(HashMap.java:203)
   freemarker.ext.beans.BeanModel.init 
(BeanModel.java:117)

freemarker.ext.beans.StringModel.init(StringModel.java:90)
   freemarker.ext.beans.MapModel.init(MapModel.java: 
105)



bytes: 141,327,104
obj number: 2,208,236
class: java.util.HashMap

TRACE 352386:
   java.util.AbstractMap.init(AbstractMap.java:53)
   java.util.HashMap.init(HashMap.java:200)
   freemarker.ext.beans.BeanModel.init 
(BeanModel.java:117)

freemarker.ext.beans.StringModel.init(StringModel.java:90)



--
Ing. Andrea Vettori
Consulente per l'Information Technology



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
Ing. Andrea Vettori
Consulente per l'Information Technology



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Reload Tiles configuration

2007-06-18 Thread Oguz Kologlu

Struts 2.0.8, Struts Tiles plugin 2.0.8, Tiles 2.0.3
Oz

On 18/06/2007, at 4:57 PM, Antonio Petrelli wrote:


2007/6/18, Oguz Kologlu [EMAIL PROTECTED]:

Hi All,

Does anyone know how to get tiles to monitor it's configuration file
(tiles.xml) for changes or how to reload it manually without have to
restart the webapp or server?


What version of Tiles are you using?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reload Tiles configuration

2007-06-17 Thread Oguz Kologlu

Hi All,

Does anyone know how to get tiles to monitor it's configuration file  
(tiles.xml) for changes or how to reload it manually without have to  
restart the webapp or server?


Thanks,
Oz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Is anybody else getting these? Fwd: Returned mail: see transcript for details

2007-06-06 Thread Oguz Kologlu

Yep, but only when I post/reply to a message.
Oz

On 06/06/2007, at 9:21 PM, Antonio Petrelli wrote:


Me too, but Gmail puts it into spam... What's that?

2007/6/6, Paolo Beccari [EMAIL PROTECTED]:


Me too.

P.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Re: using jstl sql tags for displaying date from database

2007-06-05 Thread Oguz Kologlu

Ambaris,

I think it's quite the opposite here, but anyway... the fact is it's  
database dependent.


Depending on the DB you may be able use select now() as  a query  
and if it doesn't work consult you DB manual. The question has  
nothing to do with struts


Oz

On 05/06/2007, at 9:46 PM, Ambaris Mohanty wrote:


Do u have the solution or just wasting my time???

-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 05, 2007 5:09 PM
To: 'Struts Users Mailing List'
Subject: RE: using jstl sql tags for displaying date from database

And the reason these aren't synchronized using NTP or a similar  
protocol

would be...?

-Original Message-
From: Ambaris Mohanty [mailto:[EMAIL PROTECTED]
Sent: 05 June 2007 12:33
To: 'Struts Users Mailing List'
Subject: RE: using jstl sql tags for displaying date from database

Because the application is all about generating reports from the  
data in the
database. So I want to display the database server time and not the  
web

server time. It makes more sense to the users.
AM

-Original Message-
From: Al Sutton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 05, 2007 4:54 PM
To: 'Struts Users Mailing List'
Subject: RE: using jstl sql tags for displaying date from database

And the reason for not using the server time would be..?

-Original Message-
From: Ambaris Mohanty [mailto:[EMAIL PROTECTED]
Sent: 05 June 2007 12:21
To: 'Struts Users Mailing List'
Subject: RE: using jstl sql tags for displaying date from database

I want to display the same time in all the client machines  
irrespective of

their location.

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 05, 2007 4:34 PM
To: Struts Users Mailing List
Subject: Re: using jstl sql tags for displaying date from database

--- Ambaris Mohanty wrote:

And I want that the date should come from the

database.

Why would you want the current date to come from the database?

d.




__ 
__


Got a little couch potato?
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mailp=summer+activities 
+for+kidsc

s=bz

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ending session

2007-06-05 Thread Oguz Kologlu
I think the way it is mostly done is by using push events from the  
server. Have a look at Mortbay Jetty servlet container if you are  
really interested, It's supposed to handle continuations/push events  
quite well. If you can no longer push server events out you could  
make the assumption the client has disconnected.


Greg Wilkins had a video on it not too long ago that was interesting  
- you should be able to find it on google easily. He's been working  
on the whole connection scalability issue for quite some time ( I  
think he had some experimental java.nio stuff back in v5.0).


Overall though, I agree you can't reliably trust the browser to  
notify you of the end of session.


Oz

On 06/06/2007, at 12:42 AM, Roger Varley wrote:



Roger Varley wrote:
 I'm sure that I've read that it's possible, using Javascript, to
 detect if a client closes the browser  if that's true, then you  
could

 use an AJAX call to invalidate the session.

This is possible, but you can't bet on it actually working. The user
might have javascript disabled, or the browser may not fire  
javascript

events as it's closing itself entirely (instead of just closing one
window, for instance).

Basically, the only reliable way to destroy a session is to wait  
for it

to time out (unless the user explicitly logs out, of course).



I would not disagree with this. However, you have to suspect that the
majority of clients don't have Javascript turned off, otherwise Ajax
wouldn't be the current favourite technology. :-)

Regards
Roger

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: setAttribute

2007-06-04 Thread Oguz Kologlu
That's an implementation detail for each servlet container/ 
configuration. It is really very specific to each implementation as  
to what happens when you save something to session so you'd have to  
look at the doco's of the servlet container you're using


Oz


On 05/06/2007, at 10:41 AM, Chris Pat wrote:


Hello
When an object is saved to the session is it persisted anywhere or  
only in memory?  Even transiently, is it never persisted.  Now I  
understand how the OS may page the entire memory space, however  
that is beyond the level that the programmer of tool can control  
and is monolithic.  I assume it is only persisted in the session.   
tia.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exception while using validator framework

2007-06-01 Thread Oguz Kologlu

also make sure you delete the old one.
Oz

On 01/06/2007, at 6:27 PM, [EMAIL PROTECTED] wrote:



HI Fei

Thanks for your kind response
As said by u I have replaced existing commons-validator with new one
commons-validator-1.3.1.jar
But the problems still persists

Regards
Bhanu

-Original Message-
From: Fei Fei [mailto:[EMAIL PROTECTED]
Sent: Friday, June 01, 2007 12:34 PM
To: Struts Users Mailing List
Subject: RE: Exception while using validator framework


update your commons-validator.jar file,it is an old version,

- A Fei - Subject: Exception while using validator framework Date:
Fri, 1 Jun 2007 12:22:45 +0530 From: [EMAIL PROTECTED]  
To:

user@struts.apache.org   Hi all,I have created a sample
struts application  Im trying to make use of the validator  
framework

The steps which i have carried out are1 .I have included

validation.xml and validation-rules.xml in WEB-INF2 .then in
struts-config.xml i have includedthe required plug-in
className=org.apache.struts.validator.ValidatorPlugIn 
set-property   property=pathnames  
value=/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml/ 
/plug-inbut when i deploy the war file i get exception   
 

like19:57:00,515 ERROR [ActionServlet] Unable to
initialize Struts ActionServlet due to an unexpected exception or  
error
thrown, so marking the servlet as unavailable. Most likely, this  
is due

to an incorrect or missing library dependency.

java.lang.NoSuchMethodError:
org.apache.commons.validator.ValidatorResources.init([Ljava/io/ 
InputSt

ream;)V  at
org.apache.struts.validator.ValidatorPlugIn.initResources 
(ValidatorPlugI

n.java:237)  at
org.apache.struts.validator.ValidatorPlugIn.init 
(ValidatorPlugIn.java:16

2)  at
org.apache.struts.action.ActionServlet.initModulePlugIns 
(ActionServlet.j

ava:869)  at

org.apache.struts.action.ActionServlet.init(ActionServlet.java:336) 
at javax.servlet.GenericServlet.init(GenericServlet.java:211)  at
org.apache.catalina.core.StandardWrapper.loadServlet 
(StandardWrapper.jav

a:1091)  at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java: 
925)

at
org.apache.catalina.core.StandardContext.loadOnStartup 
(StandardContext.j

ava:3857)  at org.apach  and i dont know how to proceed

with this  please help me in resolving this issue 
Thanks and Regards  Bhanuprakash The information  
contained in

this ele
 ctronic message and any attachments to this message are intended for
the exclusive use of the addressee(s) and may contain proprietary,
confidential or privileged information. If you are not the intended
recipient, you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately and destroy all copies of this
message and any attachments.   WARNING: Computer viruses can be
transmitted via email. The recipient should check this email and any
attachments for the presence of viruses. The company accepts no
liability for any damage caused by any virus transmitted by this  
email.

www.wipro.com

_
News, entertainment and everything you care about at Live.com. Get it
now!
http://www.live.com/getstarted.aspx


The information contained in this electronic message and any  
attachments to this message are intended for the exclusive use of  
the addressee(s) and may contain proprietary, confidential or  
privileged information. If you are not the intended recipient, you  
should not disseminate, distribute or copy this e-mail. Please  
notify the sender immediately and destroy all copies of this  
message and any attachments.


WARNING: Computer viruses can be transmitted via email. The  
recipient should check this email and any attachments for the  
presence of viruses. The company accepts no liability for any  
damage caused by any virus transmitted by this email.


www.wipro.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: refresh problem

2007-05-31 Thread Oguz Kologlu

Hi Volkan,

I had a similar issue which turned out to be a a bug in the result  
page. It seems when you have an error in an ajax result page nothing  
gets reported (probably for good reason), but it makes things  
difficult to debug.


The simplest way I find to resolve it is to make the ajax call  
directly (ie it's own page) so you can see the resultant page  
directly, and perhaps put in breakpoints/debug statements as well.


HTH,
Oz


On 01/06/2007, at 12:14 AM, Volkan OZYILMAZ wrote:


I tryed this problem with FireFox, IE6, IE7. Same results.

On 5/31/07, Mark Shifman [EMAIL PROTECTED] wrote:


I had a similar problem that I never really worked out and I will be
interested in
hearing if anyone has solved this.

I was wondering if this was a caching issue with your browser.  I had
the problem with
firefox.
any suggestions appreciated.
mas
Volkan OZYILMAZ wrote:
 Hello All,

 I use sturts 2. My web program work well but when i add a  
refresh link

 in my
 page, starting a problem.

 First i had use javascript:reload() function. When use this  
link, page

 sometimes not get data. But sometimes get. I change my reload()
function.

 script name=javascript
 function refresh()
 {
var sURL = unescape(window.location.pathname);
window.location.href = sURL;
 }
 /script
 a href=javascript:refresh();Yenile/a

 This is old style and working.

 After, i prepared a small report page. It has JFreeChart's  
charts. It is

 working but when i add a refresh link it has a problem. I research
 ajax. I
 change my refresh link

 s:url id=ajaxTest  
value=CampaignManagerCallDurationSlice.action

s:param name=id value=${id} /
 /s:url
 brbrbr
 s:a theme=ajax href=%{ajaxTest} targets=Div1
 notifyTopics=/request
 Yenile/s:a

 But result not change. I watched this process. Page not waiting  
action

 class
 work done. Page has waiting and show result but action class  
still

 working.

 It can be possible a settings in action mapped xml file? Or any
 suggestion?

 Regards,



--
Mark Shifman MD. Ph.D.
Yale Center for Medical Informatics
Phone (203)737-5219
[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
--
Volkan OZYILMAZ
Volko
http://www.volko.biz
--



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: hi

2007-05-28 Thread Oguz Kologlu

Try
html: radio name=groupList property=selected_groupid  
value=group_id /


Oz

On 28/05/2007, at 9:43 PM, Mansoor K.S. Ali wrote:


Dear all,

   I have problem is radio button.

I have to put the value in the radio button using bean: write.

 It s not working I am trying in this way.



html: radio name=groupList property=selected_groupid  
value=bean:

write name=groupList value=group_id / /



Simply it s replacing the tag itself. How to rectify.



Plz help me in this regard.



Regards,

Mansoor






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: action redirection

2007-05-28 Thread Oguz Kologlu

try

forward name=success path=/WebPatientManagenet/addPatient.do  
redirect=true /


add the context path as required ( eg: /Management/ 
WebPatientManagenet/addPatient.do )


Oz


On 29/05/2007, at 9:38 AM, Ashuin Sharma Chamorro wrote:


Im in struts 1.2.9 .

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Monday, May 28, 2007 5:33 PM
To: Struts Users Mailing List
Subject: Re: action redirection

http://struts.apache.org/2.x/docs/redirect-result.html

--- Ashuin Sharma Chamorro [EMAIL PROTECTED]
wrote:


Is it possible to redirect the application to
another context from the
struts-config.xml





I have tried this and it doesent work, it says path
need to start with
/.



action path=/addPatient


type=com.dsi.evaccine.web.claims.struts.AddPatientAction


forward name=success
path=../WebPatientManagement/addPatient.do/

/action





How can I do this? Is there a workaround?





Please help.







Ashuin Sharma
Software Developer
Isthmus Inc.
The Costa Rica IT Outsourcing Company
www.isthmusit.com
blocked::http://www.isthmusit.com/
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Office +1 (506) 560-1600
Mobile +1 (506) 817-4059
Fax  +1 (506) 560-1610
San Jose, Costa Rica

The information contained in this e-mail is
privileged and confidential,
this information is intended only for the use of the
individual or
entity to which it is addressed. If you are not the
intended recipient,
you are hereby notified that any use, dissemination,
distribution, copy
or taking action in reliance upon this email is
strictly prohibited. If
you have received this e-mail in error, please
immediately notify the
sender and then delete this e-mail in its entirety.










__ 
__


It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]