RE: jsp pages cahces on struts

2007-11-05 Thread Odelya Glick
Well - I have found a way - I deleted the files under: TOMCAT_HOME\work\Cataline\localhost\myProjectName But is there a better way to never cache it? Thanks -Original Message- From: Odelya Glick [mailto:[EMAIL PROTECTED] Sent: Monday, November 05, 2007 8:28 PM To: user@struts.apache.

jsp pages cahces on struts

2007-11-05 Thread Odelya Glick
Hi, I using tomcat 6 and developing an web application with struts. But it seems that the *.jsp page are being cached somewhere in the server. Because when I change something in the page, it doesn't change. The browser setting are not to cache any page, and more weird is that even after deploymen

Storing XML file which keeps updating

2007-11-05 Thread Arunkumar Balasubramanian
Hi I was trying to store xml file which updates frequently. Here is what I was looking for. sample.xml is a file which keeps updating. I would like to store file upon changing. For example, at 12.00 p.m, one sample.xml file will be updated. At 12.01 p.m another set of data will be upd

Re: Login checking before processing any action/class

2007-11-05 Thread Gary Affonso
Tom Schneider wrote: With Acegi, are you using an interceptor or is there a different way to enforce security? Acegi sets up it's own Servlet Filter to monitor incoming url requests. This filter is typically the first in the filter chain, Acegi gets a shot at processing the url before anythin

Re: Login checking before processing any action/class

2007-11-05 Thread Tom Schneider
With Acegi, are you using an interceptor or is there a different way to enforce security? I wouldn't mind seeing an example of this if there's one that you can point to. IMO, this would fit into Struts 2 authentication best practices and a little page describing the general setup wouldn't be a b

Re: Login checking before processing any action/class

2007-11-05 Thread Gary Affonso
Dave Newton wrote: Interceptor or Acegi. +1 on Acegi. We've been doing auth "by hand" for years, I think we've used just about every technique over time (writing servlet filters, writing WebWork interceptors, doing checks in the Action's exec method, using container-security, etc). But ha

Re: Extending the FreemarkerManager

2007-11-05 Thread MassimoH
I'm doing this in struts.properties: struts.freemarker.manager.classname=org.me.MyFreemarkerManager And Struts 2.0.x is definitely using my custom class. Could you try configuring that in struts.properties file rather than in struts.xml? ARakesh wrote: > > I am extending the FreemarkerManager

Re: Login checking before processing any action/class

2007-11-05 Thread Dave Newton
Interceptor or Acegi. d. --- Emi Lu <[EMAIL PROTECTED]> wrote: > Hello , > > For struts1, we use "doFilter" > > public void doFilter( > ServletRequest req, > ServletResponse res, > FilterChain chain) > throws IOException, ServletException > { > >

Login checking before processing any action/class

2007-11-05 Thread Emi Lu
Hello , For struts1, we use "doFilter" public void doFilter( ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response =

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Leon Rosenberg
On 11/5/07, Christopher Schultz <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Antonio, > > Antonio Petrelli wrote: > > Though I think that Quartz is a great product, it is discouraged by the Java > > EE specifications to create threads in a webapp. > > Hey, every

Re: url length

2007-11-05 Thread Nils-Helge Garli Hegvik
Hm It could be a problem with escaped or unescaped ampersands (&) in the URL. It's hard do tell what might be wrong without seeing some code and example URLs. I would consider attaching a remote debugger to the JSR168Dispatcher and see what's going on inside it. What if you try it in a differe

Re: Jasper plugin. Passing additional parameter

2007-11-05 Thread Tom Schneider
Serg, I'm not an expert at jasper reports, but I think parameters are pulled from the datasource. In that case, the jasper report result wraps the datasources in a ValueStackDataSource. (a class located in the jasper reports plugin) I would set a few breakpoints in there to see why the jasper pl

Re: Jasper plugin. Passing additional parameter

2007-11-05 Thread Manjesh Reddy
have you tried using and passing the parameters to JasperReport manually using a HashMap something like this... HashMap parameters = new HashMap(); parameters.put("test", test); JasperReport jasperReport = JasperCompileManager.compileReport(jasperD

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Antonio, Antonio Petrelli wrote: > Though I think that Quartz is a great product, it is discouraged by the Java > EE specifications to create threads in a webapp. Hey, every time someone asks on the Tomcat list about how to do this, I tell 'em to use

Jasper plugin. Passing additional parameter

2007-11-05 Thread Serg Mazurok
Could someone provide the example how to pass parameters from Struts2 action to Jasper report? I have created simple Jasper report based on Struts tutorial. Then I had modified this example in order to use parameter within Jasper report. Jasper report JRXML file: / /Action: /publ

Re: Annotation Validation, per method?

2007-11-05 Thread Fátima Silveira
i dont know to use anotation but with xml is ClassName-actionAlias_method- validation.xml On 11/5/07, Martin Gilday <[EMAIL PROTECTED]> wrote: > > Can you have annotation validation per method? I have put @Validations > on both my display and update methods (display shows the record from > input)

Re: url length

2007-11-05 Thread Brian Relph
I placed the portlet on a new page by itself, but the same problems exist. Is there anything that i might be doing that would make the urls unnecessarily long? Or maybe the problem is something else? I will consider any idea, even if it seems far-fetched :) On 11/5/07, Nils-Helge Garli Hegvik <[

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Frank W. Zammetti
On Mon, November 5, 2007 11:17 am, Ashish Kulkarni wrote: > Hi > I dont need more then one thread, or a timer job i would say, this timer > should sleep and then activate like after 10 minutes, check the database, > if > there is nothing to do go back to sleep. > I will look into quartz, is it ok

RE: EL expressions and string concatenation

2007-11-05 Thread Karr, David
Would this work? href="${pc:url('/category/edit.html?category.id=')}${category.id}" > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Sunday, November 04, 2007 8:07 AM > To: Struts Users Mailing List > Subject: EL expressions and string concatenation > > This is

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Ashish Kulkarni
Hi I dont need more then one thread, or a timer job i would say, this timer should sleep and then activate like after 10 minutes, check the database, if there is nothing to do go back to sleep. I will look into quartz, is it ok to use Java Timer and TimerTask to do it. For example this will be my t

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Gary Affonso
Ashish Kulkarni wrote: Hi I have to write a thread in web application which will check some values in database, and then perform some function depending on the values. There wont be any user input and this thread should be called after like 10 minutes, also i want to have a jsp page from where i

Annotation Validation, per method?

2007-11-05 Thread Martin Gilday
Can you have annotation validation per method? I have put @Validations on both my display and update methods (display shows the record from input), but all of the validation seems to be run at once. Can you achieve this with xml or annotation validation, or am I back to validateInput methods? Th

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Leon Rosenberg
<2 cents> servlet context sounds good. Start from ServletContextListener upon server start. regards Leon On 11/5/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > Hi > I have to write a thread in web application which will check some values in > database, and then perform some function depending

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Frank W. Zammetti
On Mon, November 5, 2007 10:40 am, Ashish Kulkarni wrote: > Hi > I have to write a thread in web application which will check some values > in > database, and then perform some function depending on the values. > > There wont be any user input and this thread should be called after like > 10 > minu

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Antonio Petrelli
2007/11/5, Christopher Schultz <[EMAIL PROTECTED]>: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Ashish, > > Ashish Kulkarni wrote: > > There wont be any user input and this thread should be called after like > 10 > > minutes, also i want to have a jsp page from where i can maintain this

Re: [OT] Write a thread to check database in web application

2007-11-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ashish, Ashish Kulkarni wrote: > There wont be any user input and this thread should be called after like 10 > minutes, also i want to have a jsp page from where i can maintain this > thread, like stop, change the time it should run etc. > > Are ther

[OT] Write a thread to check database in web application

2007-11-05 Thread Ashish Kulkarni
Hi I have to write a thread in web application which will check some values in database, and then perform some function depending on the values. There wont be any user input and this thread should be called after like 10 minutes, also i want to have a jsp page from where i can maintain this thread

Re: Validating array in S1

2007-11-05 Thread Pavel Sapozhnikov
Ok honestly I think we're missing the point here. I need to somehow reference the count of CHECKED CHECKBOXES and yes I have looked at struts 1 validator guide and I didn't exactly see an example of that unless I am blind or something or other or maybe I don't see what you see in which case if you

Re: [S2] getText() and #attr

2007-11-05 Thread Vinicius Medeiros Peretti
Hi Marco I use: value="%{getText( #Variable+'.string.constant.label.'+OtherVariable)}" try: regards, Vinicius Marco Machmer wrote: hi folks, can i use #attr inside the getText()-methode? here my problem: the key will not be found. whats wrong regards marco machmer -

Re: Validating array in S1

2007-11-05 Thread Pavel Sapozhnikov
But isn't this [] index notation for arrays only? I am using a List. On 11/5/07, Paul Benedict <[EMAIL PROTECTED]> wrote: > > Look at the Struts user guide. It does support the index [] notation. > > Paul > > On 11/3/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > > > > Hi guys so I have a ques

[OT] Re: Configuration problems...

2007-11-05 Thread Dave Newton
My first assumption would still be a deployment problem; obviously your container doesn't think the class is where it's supposed to be. d. --- Serge Mathieu <[EMAIL PROTECTED]> wrote: > Hi every one, > I have installed Struts 1.3.8 used the > struts-blank-1.3.8.war to create a > first project, i

[S2] getText() and #attr

2007-11-05 Thread Marco Machmer
hi folks, can i use #attr inside the getText()-methode? here my problem: the key will not be found. whats wrong regards marco machmer -- View this message in context: http://www.nabble.com/-S2--getText%28%29-and--attr-tf4751113.html#a13585395 Sent from the Struts - User mailing list archive

RE: structs user tutorial

2007-11-05 Thread chamath
Hi, I'm looking for structs 1 tutorials. thanks, chamath http://chamathg.blogspot.com chamath wrote: > > Hi Deepak-Kumar, > > I went through this. I learned about structs from that. > but I could not do it in practically. > > > > Deepak Kumar wrote: >> >> Hi, >> >> Please visit http:/

RE: structs user tutorial

2007-11-05 Thread Deepak Kumar
Hi, Are you looking for Strus 1 or Struts 2 tutorials? Thanks -Original Message- From: chamath [mailto:[EMAIL PROTECTED] Sent: Monday, November 05, 2007 4:35 PM To: user@struts.apache.org Subject: RE: structs user tutorial Hi Deepak-Kumar, I went through this. I learned about struct

RE: structs user tutorial

2007-11-05 Thread chamath
Hi Deepak-Kumar, I went through this. I learned about structs from that. but I could not do it in practically. Deepak Kumar wrote: > > Hi, > > Please visit http://www.roseindia.net/struts Its one of the best tutorial. > > Thanks > > > -Original Message- > From: chamath [mailto:[E

RE: structs user tutorial

2007-11-05 Thread Deepak Kumar
Hi, Please visit http://www.roseindia.net/struts Its one of the best tutorial. Thanks -Original Message- From: chamath [mailto:[EMAIL PROTECTED] Sent: Monday, November 05, 2007 4:11 PM To: user@struts.apache.org Subject: structs user tutorial Hi all, I'm new user to struct framework

structs user tutorial

2007-11-05 Thread chamath
Hi all, I'm new user to struct framework. I want good tutorial to familiar with structs. I did some tutorials. But those not good. can you give good tutorial for me. thanks.. -- View this message in context: http://www.nabble.com/structs-user-tutorial-tf4750752.html#a13584532 Sent from the

Re: In place of *.do in web.xml struts we can put any name

2007-11-05 Thread Antonio Petrelli
2007/11/5, visweswarasarma <[EMAIL PROTECTED]>: > > > > > hi , > > can u help me any body. You can put "*.html" for example :-) Antonio

In place of *.do in web.xml struts we can put any name

2007-11-05 Thread visweswarasarma
hi , can u help me any body. -- View this message in context: http://www.nabble.com/In-place-of-*.do-in-web.xml--struts-we-can-put-any-name-tf4750685.html#a13584324 Sent from the Struts - User mailing list archive at Nabble.com. -

URL and path validation

2007-11-05 Thread Hiroyuki Suzuki
Hello. I need to validate URL format at the same time path format URL Format: http://yahoo.com path Format: /pages/entry.jsp /pages/entry.do ../pages/entry.do I already made URL validation using the following nofragments true schemes http,https,ft

Re: Validating array in S1

2007-11-05 Thread Paul Benedict
Look at the Struts user guide. It does support the index [] notation. Paul On 11/3/07, Pavel Sapozhnikov <[EMAIL PROTECTED]> wrote: > > Hi guys so I have a question I have a List in a form each entry in the > List > contains a text box and two check boxes and that is indexed in the form > like >

Re: Struts 1.2.7 custom validator problem

2007-11-05 Thread Paul Benedict
I wonder what the purpose is of returning false. On 10/30/07, John Doe <[EMAIL PROTECTED]> wrote: > > I've solved the problem. The only way to validate properly is to add an > error to the errors variable. Without this validator will think that > everything is OK even if you returned false in vali

Re: picture display in struts 1.3.8

2007-11-05 Thread Paul Benedict
You need to execute a Struts action which returns the byte stream of the image. http://wiki.apache.org/struts/StrutsFileDownload Paul

Configuration problems...

2007-11-05 Thread Serge Mathieu
Hi every one, I have installed Struts 1.3.8 used the struts-blank-1.3.8.war to create a first project, it run on an Apache Tomcat 5.0 with a JDK1.4.2_08. When I first try the app with the /Welcom.do url from the struts-blank app, no problem (this Welcom.do is just an url that forward directly to js

Re: [OT] EL expressions and string concatenation

2007-11-05 Thread Antonio Petrelli
2007/11/4, Adam Hardy <[EMAIL PROTECTED]>: > > Antonio Petrelli on 04/11/07 16:17, wrote: > > 2007/11/4, Adam Hardy <[EMAIL PROTECTED]>: > >> I want to concatenate 2 vars into a string in EL but since one is a > Long, EL > >> can't do it, and throws a NumberFormatException because it wants them > b