RE: version 1.2

2004-03-20 Thread Zsolt Koppany
Hi,

do you mean struts-1.2 final? I cannot find that at:
http://jakarta.apache.org/site/binindex.cgi

Zsolt

 -Original Message-
 From: Joe Germuska [mailto:[EMAIL PROTECTED]
 Sent: Saturday, March 20, 2004 3:20 PM
 To: Struts Users Mailing List
 Subject: Re: version 1.2


 At 1:14 PM +0200 3/20/04, Erez Efrati wrote:
 Hi, I am currently working with the 1.1, is there a good reason to move
 to 1.2? Is it going to be released sometime soon?

 Struts 1.2.0 was released a few weeks ago using the new Tomcat-style
 version numbering.  That means that a numbered release may or may not
 be considered a production quality release.  There has not been a
 formal vote on the status of 1.2.0, but I think we'd cut another
 release rather than vote 1.2.0 as production-quality.

 If you're satisfied with Struts 1.1, you may as well stick with it.
 If you like to keep up with Struts while its evolving, you might be
 just as well off building from CVS Head as using Struts 1.2.0.  That
 way you'd roll in recent bug fixes and be in a position to fix other
 bugs yourself if you find them (or just update from CVS and apply
 fixes and changes as they come in.)

 There aren't anywhere near the number of structural changes between
 1.1 and 1.2 that there were between 1.0 and 1.1.  Many deprecated
 members from 1.1 have been removed, so if you were ignoring the
 deprecation warnings all this time, you'll finally have to catch up.
 Also, if I recall correctly, there are some changes in the JSP tag
 libraries that may be hard to find until you compile the JSPs.

 Hope that helps,
   Joe

 --
 Joe Germuska
 [EMAIL PROTECTED]
 http://blog.germuska.com
Imagine if every Thursday your shoes exploded if you tied them
 the usual way.  This happens to us all the time with computers, and
 nobody thinks of complaining.
  -- Jef Raskin

 -
 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]



UTF-8 characters in the name of the uploaded document

2004-03-19 Thread Zsolt Koppany
Hi,

I use struts-1.1 with tomcat-4.1.30 and cannot get the name of the uploaded
document correctly if that contains UTF-8 (Asian) characters. The
application itself does work fine with UTF-8 characters in forms etc. the
only exception is upload. Is there a fix to solve this problem or will it be
fixed in the next release?

Zsolt



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



RE: UTF-8 characters in the name of the uploaded document

2004-03-19 Thread Zsolt Koppany
Hi Colm,

I know that article, and as I wrote the application does work fine with
UTF-8 characters except upload.

Zsolt

 -Original Message-
 From: Colm Garvey [mailto:[EMAIL PROTECTED]
 Sent: Friday, March 19, 2004 4:20 PM
 To: Struts Users Mailing List
 Subject: RE: UTF-8 characters in the name of the uploaded document


 In this article:

 http://www.anassina.com/struts/i18n/i18n.html

 The author mentions that a filter is required for UTF-8 encoded forms.
 Worth a go?

 Colm

 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
 Sent: 19 March 2004 14:22
 To: Struts Users Mailing List
 Subject: UTF-8 characters in the name of the uploaded document


 Hi,

 I use struts-1.1 with tomcat-4.1.30 and cannot get the name of
 the uploaded
 document correctly if that contains UTF-8 (Asian) characters. The
 application itself does work fine with UTF-8 characters in forms etc. the
 only exception is upload. Is there a fix to solve this problem or
 will it be
 fixed in the next release?

 Zsolt



 -
 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: Role based access?

2004-03-09 Thread Zsolt Koppany
Hi Pedro,

I'm interested in your software, can you send it to me?

Zsolt

 -Original Message-
 From: Pedro Salgado [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 01, 1970 1:09 AM
 To: Struts Users List
 Subject: Re: Role based access?
 
 
 
   If you need this kind of behaviour (Container Managed Security) 
 I already
 implemented a very simple, free and open framework that allows to manage
 security over your application.
 
   I haven't made any documentation besides javadoc but, if you need any
 help, just send me an email.
 
 
 Pedro Salgado
 
 
 On 19/02/2004 06:04, Navjot Singh [EMAIL PROTECTED] wrote:
 
  in this case, Form is decalratively saying that it can be 
 accessed only by
  userRole.
  Now when you use CMA, every user will be bound to to a role.
  
  RequestController compare the two roles one from 
 user-in-request and other
  from
  ActionMapping/ActionConfig and continue..
  
  However, you can also override the default behaviour of 
 processRoles and go
  your own way.
  
  HTH
  Navjot Singh
  
  -Original Message-
  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, February 18, 2004 8:49 PM
  To: Struts Users Mailing List
  Subject: Role based access?
  
  
  
  Hi Guys,
  
  Struts-config.xml
action attribute=Form   roles=userRole
  
  How do i use this 'roles' attribute to implement role-based access.
  
  Thanks and Regards
  
  Subramaniam Olaganthan
  Tata Consultancy Services
  Mailto: [EMAIL PROTECTED]
  Website: http://www.tcs.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]
 
 
 


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



validation.xml with German Characters (sauch as uuml;)

2004-03-01 Thread Zsolt Koppany
Hi,

I want to use German Characters in validation.xml but when I use the
expression below I get an error message attached to the end of this email:

constant
constant-nameusername/constant-name
constant-value[EMAIL PROTECTED]uuml;]+$/constant-value
/constant

Error message:
Reference to undefined entity uuml;.
org.xml.sax.SAXParseException: Reference to undefined entity uuml;.

How can I use German Characters?

Zsolt




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



RE: validation.xml with German Characters (sauch as uuml;)

2004-03-01 Thread Zsolt Koppany
I tried that but it didn't help either.

it is strange because I can use the following expression does work:

constant
constant-namefilename/constant-name
constant-value^[^\\/:*?quot;lt;gt;|]+$/constant-value
/constant

Zsolt

 -Original Message-
 From: Theodosios Paschalidis [mailto:[EMAIL PROTECTED]
 Sent: Monday, March 01, 2004 3:09 PM
 To: Struts Users Mailing List
 Subject: Re: validation.xml with German Characters (sauch as uuml;)


 Hi guys,

 I had similar issues with Greek. Certain regular expressions that were
 supposed to work with Unicode characters, actually didn't.
 A Struts fellow suggested changing the xml's encoding to UTF-8 as follows
 ?xml version=1.0 encoding=UTF-8 ?

 I was then able to insert Greek characters directly, so it should
 work with
 German also.

 Hope that helps,
 Theo

 - Original Message -
 From: Axel Gross [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, March 01, 2004 1:47 PM
 Subject: Re: validation.xml with German Characters (sauch as uuml;)


  Moin zsolt!
 
  hi didn't do this before, so i'm not to sure about it.
  looks like your current problem is a xml related one
 
  import the namespace of html, or define the entity by yourself
  (should be something on selfhtml.teamone.de about it...)
 
  if it works with the validator, i don't know
 
  besides...
  if anybody knows, if struts uses internationalisation on the
 validition.xml,
  i'd be glad to know :)))
 
  lg,
  Axel
 
  On 2004-03-01 at 14:29:52 +0100, Zsolt Koppany wrote:
   Hi,
  
   I want to use German Characters in validation.xml but when I use the
   expression below I get an error message attached to the end of this
 email:
  
   constant
   constant-nameusername/constant-name
  
 constant-value[EMAIL PROTECTED]uuml;]+$/constant-value
   /constant
  
   Error message:
   Reference to undefined entity uuml;.
   org.xml.sax.SAXParseException: Reference to undefined entity uuml;.
  
   How can I use German Characters?
  
   Zsolt
  
  
  
  
   -
   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]



How to use html:link... with JSTL?

2004-02-25 Thread Zsolt Koppany
Hi,

how can (should) I use html:link... with JSTL?

Zsolt



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



Experienced Hungarian Struts developer wanted

2004-02-03 Thread Zsolt Koppany
Hi,

we search for experienced Hungarian Struts developers. If you are interested
in a job please contact me.

Struts experiences are important and SQL know how is also interesting.


Zsolt Koppany
--
Intland Software GmbH, Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart, Germany
Phone: +49-711-722 1873
Fax: +49-711-722 1835





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



RE: stop user from clicking the submit button twice

2004-01-30 Thread Zsolt Koppany
Hi Steve,

it sound very interesting. Can you provide some info how to use these
struts token functions?

Zsolt

 -Original Message-
 From: Hunt, Steve [mailto:[EMAIL PROTECTED]
 Sent: Friday, January 30, 2004 11:59 AM
 To: 'Struts Users Mailing List'
 Subject: RE: stop user from clicking the submit button twice


 U can also use the struts token functions to detect when a page has been
 submitted twice in the actionclass and not start the processing twice.

 -Original Message-
 From: Simon McCaughey [mailto:[EMAIL PROTECTED]
 Sent: 30 January 2004 10:26
 To: Struts Users Mailing List
 Subject: Re: stop user from clicking the submit button twice


 From: Ashish Kulkarni [EMAIL PROTECTED]
 Sent: Thursday, January 29, 2004 10:30 PM
 Subject: stop user from clicking the submit button twice
  Hi
  I have a process which takes about 30 seconds, i want
  to show some kind of image or disable the submit
  button untill the process is complete and tell user
  that the process is running
  How can i do it, i m using struts1.1
  any code example or article will greatly help
 

 You could use some simple JavaScript to disable the button once its been
 clicked, or a simple JavaScript function to count the number of clicks and
 increment, if count!=1  then pop up an OK dialog saying page processing -
 please wait.

 If you want to stay away from JS, you could set up your form submit to
 redirect to a processing please wait type page, and then do the actual
 processing as a submission of that page. Should be fairly simple.

 HTH

 S.



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


 ===
 This message contains information that may be privileged or
 confidential and is the property of the Cap Gemini Ernst  Young
 Group. It is intended only for the person to whom it is
 addressed. If you are not the intended recipient, you are not
 authorised to read, print, retain, copy, disseminate, distribute,
 or use this message or any part thereof. If you receive this
 message in error, please notify the sender immediately and delete
 all copies of this message.
 ===


 -
 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]



Page is not Valid Any More error with IE with the Back button

2004-01-29 Thread Zsolt Koppany
Hi,

I have a problem with a form and with Internet Explorer. Because the FROM
method is POST IE cannot go back to the previous page when I hit the
Back button, I get the error message (I translated it from German to
English):
Warning: Page is not valid any more.

I don't get this error when the form method is GET but in this form we
might have a lot of data (especially checkboxes) and as far as I know with
the form method GET it is limited how much data can be sent to the server.

Any ideas how to solve this problem?

Zsolt



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



How to replace pageContext.setAttribute(...) with a JSTL?

2004-01-12 Thread Zsolt Koppany
Hi,

I understand that I can copy a Java variable into a JSP variable using
pageContext.setAttribute(...). But can I also do it using JSTL?

How can I make the code below better?

(BrowseTasks.priorityTooltip is a java.lang.String[] variable)

%@ page import=cv.servlet.bugs.BrowseTasks%

%
pageContext.setAttribute(priorityArray, BrowseTasks.priorityTooltip);
%

Zsolt



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



What is wrong with this upload filename (UTF-8) decoding?

2003-12-26 Thread Zsolt Koppany
Hi,

my application has to support UTF-8 including when files are uploaded with
UTF-8 characters in the filename (for example: ??.txt).

I use a servlet filter that always call
request.setCharacterEncoding(UTF-8) and my jsp pages contain
response.setContentType(text/html; charset=UTF-8);

Everything works fine except that I have problems with decoding of the name
of uploaded filenames.

I use the code below to get the name of the uploaded filename:

String nm = formFile.getFileName();
String filename = new String(nm.getBytes(), UTF-8);

The code above converts only the first couple of characters correctly
(result: ??.txt).

Any ideas how to fix the problem?

I use TC-4.1.29, Struts-1.1, jdk1.4.2_02 Windows-XP.

Zsolt



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



RE: What is wrong with this upload filename (UTF-8) decoding?

2003-12-26 Thread Zsolt Koppany
After posting now I see that the posted email contains ? characters
instead of the original chinese characters I used in my example.

Zsolt

 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
 Sent: Friday, December 26, 2003 11:45 AM
 To: Struts Users Mailing List
 Subject: What is wrong with this upload filename (UTF-8) decoding?


 Hi,

 my application has to support UTF-8 including when files are uploaded with
 UTF-8 characters in the filename (for example: ??.txt).

 I use a servlet filter that always call
 request.setCharacterEncoding(UTF-8) and my jsp pages contain
 response.setContentType(text/html; charset=UTF-8);

 Everything works fine except that I have problems with decoding
 of the name
 of uploaded filenames.

 I use the code below to get the name of the uploaded filename:

 String nm = formFile.getFileName();
 String filename = new String(nm.getBytes(), UTF-8);

 The code above converts only the first couple of characters correctly
 (result: ??.txt).

 Any ideas how to fix the problem?

 I use TC-4.1.29, Struts-1.1, jdk1.4.2_02 Windows-XP.

 Zsolt



 -
 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: Can large upload cause tomcat hanging?

2003-12-12 Thread Zsolt Koppany
Hi,

I make rarely cross posts and my case was (is) exactly was Gus described.

Zsolt

 -Original Message-
 From: Gus Heck [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 11, 2003 4:38 PM
 To: Struts Users Mailing List
 Subject: Re: Can large upload cause tomcat hanging?


 Lukas,

 The reasons cross posts get annoying to me (and I presume others) are
 these: 1.) I can't know what responses are posted on the other list
 without joining it. 2.)if I am on both lists it messes with my message
 filtering rules on my mail reader and usually both copies wind up in the
 same folder and it gets hard to tell which list I am replying to unless
 I reply all and cross post as well. 3.) When searching Archives for
 answers to questions before posting, it is most unhelpful if half the
 conversation is archived under another list. 4.) cross posting to N
 lists creates N times the mail load for the servers, the archives, and
 any other systems involved, and for people subscribed to M out of N
 lists invovled in the cross post it creates M times the list mail to
 deal with.

 The only time it seems reasonable to cross post, is when in discussing a
 feature/bug in one product it seems like it may be traced back to a
 problem in a dependant library, and you want the folks on the dev list
 of the library to look into it... (as happened to me recently in the
 case of a problem implementing a solution to a problem discussed on this
 list that exposed a bug in commons-betwixt) Even then, it might still be
 better to craft a separate mail with a link to the archive of the
 discussion, though cross posting in this case does have the advantage of
 supplying the preceeding discussion (assuming it hasn't been deleted
 from the replies) without the day delay for the archive to pick it up.

 -Gus

 Lukas Bradley wrote:

 Understood, but this is a Jakarta rule, not a standard Internet rule.
 
 
 You cross-posted to at least two Jakarta mailing lists. The
 rule applies.
 
 
 
 I cross posted nothing.  Zsolt did.   I was just wondering why people are
 extremely sensitive about what I consider to be valid cross posts.
 
 Lukas
 
 
 
 
 -
 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: Can large upload cause tomcat hanging?

2003-12-11 Thread Zsolt Koppany
Sorry, if my cross-post disturbed anybody, but file upload is part of
commons but that worked fine. I had problems with tomcat (and not with the
upload) and it was (is) just an idea that this pretty large upload could be
the reason why tomcat hangs.

Martin, you wrote that uploaded files much larger than 70MB without any
problems. What was your JVM settings? In my case tomcat-4.1.24 was running
with -Xmx100M. Do you think that is too low?

Zsolt

 -Original Message-
 From: news [mailto:[EMAIL PROTECTED] Behalf Of Martin Cooper
 Sent: Wednesday, December 10, 2003 10:51 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Can large upload cause tomcat hanging?


 First of all, do *not* cross-post your questions to multiple lists. I'm
 going to reply here and ignore your cross-post to commons-user.

 I have uploaded files much, much larger than 70MB without any
 problems. Try
 using the struts-upload example, and see if you still have
 problems. If you
 do, you have a system issue; otherwise you must be doing something
 differently from the example that's causing the problem. Also, are you
 really using a version 1.2 JRE? Can you try something a bit more, um,
 modern?

 --
 Martin Cooper


 Zsolt Koppany [EMAIL PROTECTED] wrote in message
 news:LDEEJFLCAPOPNCKDHFNACEBMDDAA.zkoppanylist__12514.1559089117$1
 [EMAIL PROTECTED]
  Hi,
 
  I uploaded a 70Mb file using struts-1.1. The JVM process (jre-1.2.4_02,
  Linux, SuSe-8.1) got much larger and a couple of hours later
 tomcat didn't
  react to the most of the events. What can be the reason?
  Additionally I found strange the tomcat didn't create the
 localhost_log...
  files since the last startup.
 
  Here I are the data provided by top:
 
  SIZE: 175M RSS: 165M SHARE: 38980 STAT: S N %CPU: 0.0% %MEM: 33.3 TIME
 0:05
 
  The machine has 512Mb.
 
  Zsolt




 -
 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]



Can large upload cause tomcat hanging?

2003-12-10 Thread Zsolt Koppany
Hi,

I uploaded a 70Mb file using struts-1.1. The JVM process (jre-1.2.4_02,
Linux, SuSe-8.1) got much larger and a couple of hours later tomcat didn't
react to the most of the events. What can be the reason?
Additionally I found strange the tomcat didn't create the localhost_log...
files since the last startup.

Here I are the data provided by top:

SIZE: 175M RSS: 165M SHARE: 38980 STAT: S N %CPU: 0.0% %MEM: 33.3 TIME 0:05

The machine has 512Mb.

Zsolt



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



RE: Working with UTF-8 and problems with German Umlauts

2003-11-05 Thread Zsolt Koppany
My problem was really, that my code was too late. After using a servlet
filter and calling request.setCharacterEncoding(UTF8) from the filter, my
problem was fixed.

Thank you everybody for the help.

Zsolt

 -Original Message-
 From: Jim Theodoridis [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 04, 2003 5:18 PM
 To: Struts Users Mailing List
 Subject: Re: Working with UTF-8 and problems with German Umlauts


 I had the same problem in Greeks
 The first steep is to follow the instructions below

 http://www.anassina.com/struts/i18n

 ( If the page dos not displays tell me to send u via email )

 The second step, if u use a database, to retrieve data to work on UTF-8
 so database driver must support it.

 for mySQL below 4.x use

 String dbURL =
 jdbc:mysql://localhost/YellowPages?useUnicode=truecharacterEncod
 ing=UTF-8
 ;

 i hope to help u

 - Original Message -
 From: Adam Hardy [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Tuesday, November 04, 2003 12:31 AM
 Subject: Re: Working with UTF-8 and problems with German Umlauts


  On 11/03/2003 09:43 PM Zsolt Koppany wrote:
   I have problems with German Umlauts when I enter the code below to my
 jsp
   pages. The problem is when I for example I forget to fill a required
 field
   and the previous values are restored after validation.
  
   How can I fix that?
  
   I use tomcat-4.1.24 with struts-1.1.
  
  
   %@ page contentType=text/html; charset=UTF-8 %
  
   %request.setCharacterEncoding(UTF8);%
 
  Hi Zsolt,
  you are setting your character encoding way too late in the game. By the
  point you set it in the JSP as you show above, Struts has already read
  the request parameters into your form.
 
  A common method of setting the character encoding for struts is using a
  filter, so the request is character-encoded before struts gets
 to see it.
 
  Adam
 
 
  --
  struts 1.1 + tomcat 5.0.12 + java 1.4.2
  Linux 2.4.20 RH9
 
  -
  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]



Working with UTF-8 and problems with German Umlauts

2003-11-03 Thread Zsolt Koppany
Hi,

I have problems with German Umlauts when I enter the code below to my jsp
pages. The problem is when I for example I forget to fill a required field
and the previous values are restored after validation.

How can I fix that?

I use tomcat-4.1.24 with struts-1.1.


%@ page contentType=text/html; charset=UTF-8 %

%request.setCharacterEncoding(UTF8);%


Zsolt



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



Wanted API to handle user roles

2003-11-03 Thread Zsolt Koppany
Hi,

I'm searching for a Java library to implement Role based access in a Web
application. This API must support some kind of hierarchy. For example a
user might have all roles in a project (project administrator) but only
limited (or no) roles in an other project.

As far as I know, tomcat supports only user based roles, thus a user has a
role assigned to him everywhere.

Any suggestion?

Zsolt



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



Out of memory with multipart/form-data and lot of checkboxes

2003-10-27 Thread Zsolt Koppany
Hi,

in a form where the user can upload a file and set some attributes with
checkbox (couple oh hundreds) I get an out of memory exception even when the
file is very small (300 bytes). After some testing I figured out that it is
caused by enctype=multipart/form-data. If I removed that I cannot upload
(this is clear) but JVM doesn't increase.

Any ideas?

Zsolt



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



How to use ActionError with two keys?

2003-08-06 Thread Zsolt Koppany
Hi,

how can I use ActionError with two keys. The example below show what I
would like to do:


new ActionError(errors.required, host.name)



Zsolt


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



Re: How to use ActionError with two keys?

2003-08-06 Thread Zsolt Koppany
And how can I do that?

How can I get the string assigned to for example errors.required?

Zsolt




On Wed, 2003-08-06 at 15:36, Prashanth.S wrote:
 Hi
 i think u need to use positional parameter substitution instead of using another key
 like {0},{1} etc in actionerror and replace them with actual values in properties 
 file..
 HTH
 prashanth
 
 Zsolt Koppany [EMAIL PROTECTED] wrote:
 Hi,
 
 how can I use ActionError with two keys. The example below show what I
 would like to do:
 
 
 new ActionError(errors.required, host.name)
 
 
 
 Zsolt
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



RE: Struts 1.1

2003-06-03 Thread Zsolt Koppany
Hi,

two or three weeks ago I reported a bug that the upload.jar library is very
buggy. I know that this library is just used by struts, however when
struts doesn't include a running upload.jar struts is not usable (at least
for us). Will the upcoming struts release contain a reliable upload.jar?

Zsolt

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Behalf Of David Graham
 Sent: Montag, 2. Juni 2003 01:39
 To: [EMAIL PROTECTED]
 Subject: Re: Struts 1.1


 Struts RC 2 should be coming out this week.  After that, people
 will have a
 chance to test their apps with it and we'll incorporate any show stopping
 bug fixes.  Struts 1.1 final is not far off after that :-).

 David


 I'm not going to ask when Struts 1.1 will be released because I know the
 stock answer.  I'm going to ask what we need to do to get it released as
 soon as possible?
 
 Our company has a policy of not using software that hasn't had a final
 release, therefore we've been stuck with Struts 1.0.  We can't switch to
 1.1 in development, because we don't know how many months (or years) it
 will be before it's done.  We can't hold up our production dates because
 of Struts 1.1.
 
 So, my question is, what exactly are we waiting for for the Struts 1.1
 release?  What can we do to get it there as soon as possible?  We'd be
 willing to put some time into it to get it released.  Using it in our
 production applications is out of the question though.
 
 I know this is a little harsh, but I have lost count of how long we've
 been waiting.  At least 7 Struts books have been released since
 Struts 1.1
 beta was released. (it's funny that all of them say that 1.1 will be out
 once the book is in print. :)  Other web frameworks have gone
 from nothing
 to having released software during the beta of 1.1.  I want quality
 software as much as the next guy, but was Struts 1.0 so poorly designed
 that it takes so long to come out with the next MINOR version?
 
 OK, flame away, but I hope we can get someone tell us exactly
 what we need
 to do to stop the hold up and get 1.1 released.  Please let us know.
 
 Thanks
 Jay
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

 _
 The new MSN 8: advanced junk mail protection and 2 months FREE*
 http://join.msn.com/?page=features/junkmail


 -
 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]



Html checker from a browser wanted?

2003-04-04 Thread Zsolt Koppany
Hi,

I used to use the tool quanta-plus under Linux KDE to check my pages from
a browser without the need first to save the page and start a utility. A
plug-in would be the best that is integrated into Mozilla or Internet
Explorer. Can somebody propose me a similar tool under Windows?

Zsolt



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



Strange DynaValidatorForm behaviour during FIRST submit

2003-03-10 Thread Zsolt Koppany
Hi,

I have inherited (extended) a DynaValidatorForm. I don't know whether this
is the reason but the FIRST time when I submit such a form from IE
(Windows-XP a couple of days old, IE gives feedback in the progress bar but
the form will never be submitted until I click on the submit button again.
The strange thing is that this happens only the first time.

I use XP with jdk-1.4.1_02.

Any Ideas what the reason is?

Zsolt



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



How to reset checkboxes in session ActionForms?

2003-03-03 Thread Zsolt Koppany
If I'm right, reset is not called by ActionForms with scope session.
How can I then reset my checkboxes?
-- 
Zsolt


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



RE: one more prepopulate question

2003-02-28 Thread Zsolt Koppany
Where do I have to insert this code?

Zsolt

 Actually, unless you are going (back) to a page that contains a form with action of 
 setupMultipleForms you can't use this strategy.
 
 What you actually need to know is the name attribute of the action mapping 
 corresponding to the page to which the user is being directed *next*.  However, this 
 isn't the end of the world; you can programmatically figure the name of the 
 form-bean etc as follows:
 
   ApplicationConfig appConfig = (ApplicationConfig)
 request.getAttribute(Globals.APPLICATION_KEY);
   ActionConfig actionConfig = appConfig.findActionConfig(/foo);
   String name = actionConfig.getName(); // Form bean name
   String attribute = actionConfig.getAttribute(); // Attribute to store under
   String scope = actionConfig.getScope(); // Scope to store in
   FormBeanConfig fbConfig = appConfig.findFormBeanConfig(name);
 
 Now you've got all the metadata you need to dynamically instantiate the
 appropriate form bean, and store it under the appropriate attribute in the
 appropriate scope, without hard coding any of this stuff.
 
 This is a snippet that Craig wrote up in response to an earlier post. 
 
 
 Sri
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Zsolt


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



Re: Validator: How to define that a field is mandatory whenan otheris not empty?

2003-02-24 Thread Zsolt Koppany
Hi Jeff,

thank you but my problem is that I just don't understand the examples.
I'm sure they are excellent but they do much more (as far I understand
them) than I need.

Could you please write me which example is the best for me? When I look
to the example below I don't understand what field[0], field-indexed[0],
field-test[0] and indexedListProperty mean and it is for me difficult to
adopt something I don't understand.


form name=dependentlistForm

field
property=firstName indexedListProperty=dependents
depends=requiredif
  arg0 key=dependentlistForm.firstName.label/
  var
var-namefield[0]/var-name
var-valuelastName/var-value
  /var
  var
var-namefield-indexed[0]/var-name
var-valuetrue/var-value
  /var
  var
var-namefield-test[0]/var-name
var-valueNOTNULL/var-value
  /var
/field

...

/form



On Mon, 2003-02-24 at 13:55, Jeff Kyser wrote:
 Zsolt,
 
   There is a nice description of exactly what you want to do
   on the Struts web pages. Here's the link, see the bottom
   part of the page:
 
   http://jakarta.apache.org/struts/userGuide/dev_validator.html
 
   It even has the exact fields you want to check. (represents #2
   below);
 
   You will need to:
   1. locate the struts-supplied validator-rules.xml
   2. create your own validation.xml file containing the mapping
   of the rules (in your case, the requiredif rule) to the form
   elements (firstname, lastname)
   3. reference these two files in your validator PlugIn which
   gets included in your struts-config.xml
   4. provide an appropriate error message in your
   application resources bundle
   5. add the appropriate html:errors / tag in the jsp that
   displays the form elements
 
 HTH,
 
 -jeff
 
 On Monday, February 24, 2003, at 01:45  AM, Zsolt Koppany wrote:
 
  Thank you James,
 
  I have read the documentation, and I'm sorry but I still don't
  understand how to define the rule that a field for example firstname
  is required if for example lastname is not empty.
 
  Can somebody provide me an example please? I just don't understand the
  examples in the documentation, they are just too complex.
 
  Zsolt
 
  On Sun, 2003-02-23 at 22:35, James Turner wrote:
  See the requiredif validation in Struts 1.1
 
 
  James
 
  -Original Message-
  From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
  Sent: Sunday, February 23, 2003 3:01 PM
  To: struts mail list
  Subject: Validator: How to define that a field is mandatory
  when an otheris not empty?
 
 
  Hi,
 
  how can I define that a field is mandatory when an other is
  not empty but only in that case?
 
  -- 
  Zsolt
 
 
  -
  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]
  -- 
  Zsolt
 
 
  -
  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]
-- 
Zsolt


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



Re: Validator: How to define that a field is mandatorywhen an otheris not empty?

2003-02-24 Thread Zsolt Koppany
Jeff,

thank you very much, now it works.

Zsolt

On Mon, 2003-02-24 at 16:19, Jeff Kyser wrote:
 See, even though you just want firstname dependent on lastname,
 you could tie the requirement to more than one other field,
 hence the array notation:
   field[0], field-test[0], ... for the first conditional dependency.
   field[1], field-test[1], ... for the first conditional dependency, etc.
 
 You only need firstname to be required if lastname is not null,
 but you still have to use the array notation.
 
 You can ignore the indexedListProperty and field-indexed[n]
 for simple text fields.
 
 So it would look something like:
 
 field property=firstName depends=requiredif
arg0 key=myForm.firstName.errorname/
var
  var-namefield[0]/var-name
  var-valuelastName/var-value
/var
var
  var-namefield-test[0]/var-name
  var-valueNOTNULL/var-value
/var
 /field
 
 HTH,
 
 -jeff
 
 On Monday, February 24, 2003, at 08:44  AM, Zsolt Koppany wrote:
 
  Hi Jeff,
 
  thank you but my problem is that I just don't understand the examples.
  I'm sure they are excellent but they do much more (as far I understand
  them) than I need.
 
  Could you please write me which example is the best for me? When I look
  to the example below I don't understand what field[0],  
  field-indexed[0],
  field-test[0] and indexedListProperty mean and it is for me difficult  
  to
  adopt something I don't understand.
 
 
  form name=dependentlistForm
 
  field
  property=firstName indexedListProperty=dependents
  depends=requiredif
arg0 key=dependentlistForm.firstName.label/
var
  var-namefield[0]/var-name
  var-valuelastName/var-value
/var
var
  var-namefield-indexed[0]/var-name
  var-valuetrue/var-value
/var
var
  var-namefield-test[0]/var-name
  var-valueNOTNULL/var-value
/var
  /field
 
  ...
 
  /form
 
 
 
  On Mon, 2003-02-24 at 13:55, Jeff Kyser wrote:
  Zsolt,
 
 There is a nice description of exactly what you want to do
 on the Struts web pages. Here's the link, see the bottom
 part of the page:
 
 http://jakarta.apache.org/struts/userGuide/dev_validator.html
 
 It even has the exact fields you want to check. (represents #2
 below);
 
 You will need to:
 1. locate the struts-supplied validator-rules.xml
 2. create your own validation.xml file containing the mapping
 of the rules (in your case, the requiredif rule) to the form
 elements (firstname, lastname)
 3. reference these two files in your validator PlugIn which
 gets included in your struts-config.xml
 4. provide an appropriate error message in your
 application resources bundle
 5. add the appropriate html:errors / tag in the jsp that
 displays the form elements
 
  HTH,
 
  -jeff
 
  On Monday, February 24, 2003, at 01:45  AM, Zsolt Koppany wrote:
 
  Thank you James,
 
  I have read the documentation, and I'm sorry but I still don't
  understand how to define the rule that a field for example  
  firstname
  is required if for example lastname is not empty.
 
  Can somebody provide me an example please? I just don't understand  
  the
  examples in the documentation, they are just too complex.
 
  Zsolt
 
  On Sun, 2003-02-23 at 22:35, James Turner wrote:
  See the requiredif validation in Struts 1.1
 
 
  James
 
  -Original Message-
  From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
  Sent: Sunday, February 23, 2003 3:01 PM
  To: struts mail list
  Subject: Validator: How to define that a field is mandatory
  when an otheris not empty?
 
 
  Hi,
 
  how can I define that a field is mandatory when an other is
  not empty but only in that case?
 
  --  
  Zsolt
 
 
  --- 
  --
  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]
  -- 
  Zsolt
 
 
  -
  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]
  -- 
  Zsolt
 
 
  -
  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]
-- 
Zsolt

Validator: How to define that a field is mandatory when an otheris not empty?

2003-02-23 Thread Zsolt Koppany
Hi,

how can I define that a field is mandatory when an other is not empty
but only in that case?

-- 
Zsolt


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



RE: Validator: How to define that a field is mandatory when anotheris not empty?

2003-02-23 Thread Zsolt Koppany
Thank you James,

I have read the documentation, and I'm sorry but I still don't
understand how to define the rule that a field for example firstname
is required if for example lastname is not empty.

Can somebody provide me an example please? I just don't understand the
examples in the documentation, they are just too complex.

Zsolt

On Sun, 2003-02-23 at 22:35, James Turner wrote:
 See the requiredif validation in Struts 1.1
 
 
 James
 
  -Original Message-
  From: Zsolt Koppany [mailto:[EMAIL PROTECTED] 
  Sent: Sunday, February 23, 2003 3:01 PM
  To: struts mail list
  Subject: Validator: How to define that a field is mandatory 
  when an otheris not empty?
  
  
  Hi,
  
  how can I define that a field is mandatory when an other is 
  not empty but only in that case?
  
  -- 
  Zsolt
  
  
  -
  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]
-- 
Zsolt


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



What is the best method to set default values of a form?

2003-02-22 Thread Zsolt Koppany
Hi,

I understand that the reset method should not be used to set the default
values of the fields of a form. What is the preferred way?

-- 
Zsolt


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



RE: What is the best method to set default values of a form?

2003-02-22 Thread Zsolt Koppany
Sorry, but I have to read the data from the database.

Zsolt


On Sat, 2003-02-22 at 16:45, James Childers wrote:
  -Original Message-
  From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
  Sent: Saturday, February 22, 2003 4:39 AM
  To: struts mail list
  Subject: What is the best method to set default values of a form?
  
  I understand that the reset method should not be used to set 
  the default
  values of the fields of a form. What is the preferred way?
  
  -- 
  Zsolt
  
 
 I don't know about best way, but I usually set the default values in the field's 
 declaration:
 
 public final class MakeACallForm extends ActionForm {
 
   private String name = George 'I Like War!' Bush;
   private String telephoneNumber = 1-800-DA-WHITE-HOUSE;
   ... etc ...
 
   ... getters and setters for above ...
 
 }
 
 -= J
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Zsolt


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



Why reset is called when a form is submitted?

2003-02-21 Thread Zsolt Koppany
Hi,

I see in my code that the reset method is called when the form is
submitted. I use this method to prepare the default values when the form
is activated (for example I read data from the database) and I cannot
understand why it is necessary to call this method also when the form is
submitted.

I use struts-1.b3.

-- 
Zsolt


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




How to write to a page from a long running Action class?

2003-02-21 Thread Zsolt Koppany
Hi,

one of my action classes can run for a long time. How can I give the
user some feedback? I have tried to write via the Writer returned by
response.getGetWriter() but when the forwarder with redirect was called,
I got the exception below.


Zsolt


StandardWrapperValve[action]: Servlet.service() for servlet action threw
exception
java.lang.IllegalStateException
at
org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFacade.java:340)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:433)
at
org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:312)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:401)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:523)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

-- 
Zsolt


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




Validator question

2003-01-09 Thread Zsolt Koppany
Hi,

how can I define a validator that for example the e-mail must NOT match
a regular expression?

-- 
Zsolt


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




RE: Why flush is not supported in a body of logic:iterate... ?

2003-01-07 Thread Zsolt Koppany
James, you are right, but the strange thing is that I didn't have this
problem until I updated from a nightly build (end of November) to b3.

Zsolt

On Tue, 2003-01-07 at 02:08, James Mitchell wrote:
 I was guessing he wanted to display an html table as it is being written
 instead of waiting till the page is loaded.  (which is a common
 misconception)
 
 
 
 --
 James Mitchell
 Software Engineer/Open Source Evangelist
 http://www.open-tools.org
 
 C makes it easy to shoot yourself in the foot; C++ makes it harder, but
 when you do, it blows away your whole leg. 
 - Bjarne Stroustrup
 
 
  -Original Message-
  From: Joe Barefoot [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, January 06, 2003 6:44 PM
  To: Struts Users Mailing List
  Subject: RE: Why flush is not supported in a body of 
  logic:iterate... ?
  
  
  Pardon if this is a silly question, but why would you need to 
  explicitly call flush() anyways?
  
  --joe
  
   -Original Message-
   From: Zsolt Koppany [mailto:[EMAIL PROTECTED]]
   Sent: Monday, January 06, 2003 1:59 PM
   To: struts mail list
   Subject: Why flush is not supported in a body of 
  logic:iterate... ?
   
   
   Hi,
   
   in a logic:iterate ... block I get always an exception saying:
   Illegal to flush within a custom tag...
   
   This is a problem for me because I want to execute either
tiles:insert name=cb.bullet flush=true
   or out.flush();
   
   What can I do?
   -- 
   Zsolt
   
   
   --
   To unsubscribe, e-mail:   
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail: 
   mailto:[EMAIL PROTECTED]
   
   
  
  --
  To unsubscribe, e-mail:   
  mailto:struts-user- [EMAIL PROTECTED]
  For 
  additional commands, 
  e-mail: mailto:[EMAIL PROTECTED]
  
  
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Zsolt


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




Re: Odd Tiles Behavior with 2003-01-01 Nightly Build

2003-01-07 Thread Zsolt Koppany
Setting flush=true inside of iterate throws an Exception.

Zsolt

On Tue, 2003-01-07 at 17:28, Cedric Dumoulin wrote:
   Hi,
 
   The PageContext.include(uri) documentation says:
 The current JspWriter out for this JSP is flushed as a side-effect of 
 this call, prior to processing the include.
   So, the old implementation was doing a flush regardless of the 
 insert's flush value.
   The new implementation now use RequestDispatcher.include(), which 
 doesn't perform any flush ...
  
   The implementation has changed in order to centralize all include 
 calls in one customizable place. The behavior change is not intentional. 
 Have you try to set flush=true in the insert tag ?
 
   Cedric
 
 Malte Gaudig wrote:
 
 Hi there !
 
 I've encountered a similar problem while upgrading from struts 1.1 b2 to
 b3.
 In my case the tiles:insert was nested inside a logic:iterate tag. Since
 the tiles:insert tag is used inside the logic tag the attribute flush must
 be set to true:
 
 table
   tr
 td
   logic:iterate
 tiles:insert definition=a.X flush=false/
   /logic:iterate
 /td
   /tr
 /table
 
 All inserted tiles appear on top of the page and not inside the table. On
 beta 2 this all worked out fine. I've tested it with tomcat 4.0.6 and
 4.1.18 get the same results.
 
 Now I've tracked down the problem and it seems that the last change in the
 classorg.apache.struts.taglib.tiles.InsertTagis responsible for this
 behaviour.
 In the method doInclude the call
 
 pageContext.include(page);
 
 was replaced by
 
 TilesUtil.doInclude(page,(HttpServletRequest)pageContext.getRequest(),
  (HttpServletResponse)pageContext.getResponse(),
  pageContext.getServletContext());
 
 which is just an internal call to
 
 request.getRequestDispatcher( uri ).include(request, response);
 
 But why they behave differently I cannot tell, since I'm not the best
 servlet expert.
 
 Maybe someone can enlighten me, what the difference in the implementation is
 and
 why it was done. Or is there a workaround ?
 
 Thanks,
Malte
 
   
 
 -Original Message-
 From: James Mitchell [EMAIL PROTECTED]
 Subject: Odd Tiles Behavior with 2003-01-01 Nightly Build
 Date: Thu, 2 Jan 2003 21:11:34 -0500
 Content-Type: text/plain;
 charset=US-ASCII
 
 That certainly does sound strange.  I don't recall hearing anything like
 this in the past.
 
 Can you describe your settings with a bit more detail?
 Have you made any configuration changes recently? (or using another
 container)
 
 
 
 --
 James Mitchell
 Software Engineer/Open Source Evangelist
 http://www.open-tools.org
 
 C makes it easy to shoot yourself in the foot; C++ makes it harder, but
 when you do, it blows away your whole leg.
 - Bjarne Stroustrup
 
 
 
 
 -Original Message-
 From: Paul Hodgetts, Agile Logic [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 02, 2003 9:07 PM
 To: [EMAIL PROTECTED]
 Subject: Odd Tiles Behavior with 2003-01-01 Nightly Build
 
 
 I have a tiles application that was running fine on a
 nightly build from 2002-12-03.  I just installed the
 nightly build from 2003-01-01.  My tiles:insert sections
 are now being inserted at the top of the HTML document
 instead of at the point of the insert.  E.g., instead of:
 
 head
 body
table
  tr
td inserted tile 1 /td
td inserted tile 2 /td
 /tr
/table
 /body
 
 I get:
 
 inserted tile 1
 inserted tile 2
 head
 body
   table
 tr
   td /td
   td /td
 /tr
   /table
 /body
 
 Weirdness.  I've scanned the mailing list and release notes
 for something related to this, but I couldn't find anything.
 Any ideas?
 
 Thanks,
 Paul
 
 
   
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
   
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
-- 
Zsolt


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




Why flush is not supported in a body of logic:iterate... ?

2003-01-06 Thread Zsolt Koppany
Hi,

in a logic:iterate ... block I get always an exception saying:
Illegal to flush within a custom tag...

This is a problem for me because I want to execute either
 tiles:insert name=cb.bullet flush=true
or out.flush();

What can I do?
-- 
Zsolt


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




Why flush is not supported in a body of logic:iterate... ?

2003-01-06 Thread Zsolt Koppany
Hi,

in a logic:iterate ... block I get always an exception saying:
Illegal to flush within a custom tag...

This is a problem for me because I want to execute either
 tiles:insert name=cb.bullet flush=true
or out.flush();

What can I do?
-- 
Zsolt


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




What are the new feautures of struts-b3?

2003-01-05 Thread Zsolt Koppany
Hi,

what are the new features in b3 since b2? I cannot find them in the
release notes!
-- 
Zsolt


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




RE: What are the new feautures of struts-b3?

2003-01-05 Thread Zsolt Koppany
As far as I understand, the url below contains the changes since 1.0 and
not since 1-1-b2. Am I right?

Zsolt

On Sun, 2003-01-05 at 16:57, Arik Levin ( Tikal ) wrote:
 Details of the changes in this release are available in the Release Notes,
 which can be found here:
 
   http://jakarta.apache.org/struts/userGuide/release-notes-1.1-b3.html
 
 
 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, January 05, 2003 5:50 PM
 To: [EMAIL PROTECTED]
 Subject: What are the new feautures of struts-b3?
 
 Hi,
 
 what are the new features in b3 since b2? I cannot find them in the
 release notes!
-- 
Zsolt


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




RE: What are the new feautures of struts-b3?

2003-01-05 Thread Zsolt Koppany
Arik,

I did find that section but that contains only three items under Beta
Fixes and I thought more has been done since b2, because b2 was
released a couple of months ago.

Zsolt

On Sun, 2003-01-05 at 17:18, Arik Levin ( Tikal ) wrote:
 .. and there's more:
 
 ...The remainder of this document contains the release notes for nightly
 build of the Struts Framework, and covers changes that have taken place
 since Version 1.0.2 was released. The following sections cover New Features
 and Changes to Struts. Do you want me to stop? 
 
 -Original Message-
 From: Arik Levin ( Tikal ) [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, January 05, 2003 6:16 PM
 To: 'Struts Users Mailing List'
 Subject: RE: What are the new feautures of struts-b3?
 
 Read it instead of all these questions...
 
 It says and I quotes: 
 This section contains the release notes for nightly build of the Struts
 Framework, for changes that have taken place since Version 1.1 beta 2 was
 released...
 
 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, January 05, 2003 6:08 PM
 To: Struts Users Mailing List
 Subject: RE: What are the new feautures of struts-b3?
 
 As far as I understand, the url below contains the changes since 1.0 and
 not since 1-1-b2. Am I right?
 
 Zsolt
 
 On Sun, 2003-01-05 at 16:57, Arik Levin ( Tikal ) wrote:
  Details of the changes in this release are available in the Release Notes,
  which can be found here:
  
http://jakarta.apache.org/struts/userGuide/release-notes-1.1-b3.html
  
  
  -Original Message-
  From: Zsolt Koppany [mailto:[EMAIL PROTECTED]] 
  Sent: Sunday, January 05, 2003 5:50 PM
  To: [EMAIL PROTECTED]
  Subject: What are the new feautures of struts-b3?
  
  Hi,
  
  what are the new features in b3 since b2? I cannot find them in the
  release notes!
-- 
Zsolt


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




How to switch debug off?

2002-12-09 Thread Zsolt Koppany
After I start tomcat with struts, I see a lot of log messages. How can I
switch that off?

I mean messages such as:

2002-12-09 21:41:55,536 DEBUG digester.Digester.sax -
startElement(,display-name,display-name) [main]
2002-12-09 21:41:55,537 DEBUG commons.digester.Digester -   Pushing
body text '' [main]
2002-12-09 21:41:55,538 DEBUG commons.digester.Digester -   New
match='web-app/display-name' [main]
2002-12-09 21:41:55,539 DEBUG commons.digester.Digester -   No rules
found matching 'web-app/display-name'. [main]
2002-12-09 21:41:55,539 DEBUG digester.Digester.sax -
characters(CodeBeamer) [main]
2002-12-09 21:41:55,541 DEBUG digester.Digester.sax -
endElement(,display-name,display-name) [main]
2002-12-09 21:41:55,542 DEBUG commons.digester.Digester -  
match='web-app/display-name' [main]
2002-12-09 21:41:55,543 DEBUG commons.digester.Digester -  
bodyText='CodeBeamer' [main]
2002-12-09 21:41:55,568 DEBUG commons.digester.Digester -   No rules
found matching 'web-app/display-name'. [main]


-- 
Zsolt


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




Re: How to extend tiles SimpleMenuItem?

2002-12-06 Thread Zsolt Koppany
Hi Cedric,

where should I insert parserValidate=false? Where should I use the bean 
tag? In which file and which block?

Zsolt

On Friday 06 December 2002 10:56, Cedric Dumoulin wrote:
   Hi,

   You can extends  SimpleMenuItem:

 * Write a class extending SimpleMenuItem, or implementing
   SimpleMenu. Add your new attributes
 * Declare your items in your tiles-config, and specify the classtype
   attribute: item classtype=YourClassName /
 * Also specify your new attributes: item ... myNewItem=aValue .../
 * Enable the parser to parse your new attribute.There is several
   possibilities:
   o Disable the parser validation. This can be done in the
 TilesPlugin configuration: parserValidate=false
   o Or create your own DTD declaring your new attributes:
 + copy the original DTD, localize the item
   specification, add your own attributes
 + Specify your new DTD  in the header of the
   tiles-config file

   Now the parser should be able to validate your new attributes.

   Another possibility is to use the bean .../ tag:

   o


 bean classtype=YourClassName
   set-property property=aName value=aValue /
   set-property property=anotherName value=anotherValue /
   .
 /bean

   Hope this help,

 Cedric

 Zsolt Koppany wrote:
 Hi,
 
 I have written a class that extends SimpleMenuItem but when I want to
  assign new items (see example below) I get error logs. How can I fix it?
 
 Example:
 
 item
  id=summary
  value=Summary
  selectionStyle=toolbar_summary_selected
  link=/proj/summary.do
  classtype=cv.struts.TilesMenuItem /
 
 Error messages:
 
 
 ERROR commons.digester.Digester - Parse Error at line 28 column -1:
 Attribute loggedOn is not declared for element item. [main]
 org.xml.sax.SAXParseException: Attribute loggedOn is not declared for
 element item.
 at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
 
 
 --
 To unsubscribe, e-mail:  
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]


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




How to extend tiles SimpleMenuItem?

2002-12-05 Thread Zsolt Koppany
Hi,

I have written a class that extends SimpleMenuItem but when I want to assign 
new items (see example below) I get error logs. How can I fix it?

Example:

item
id=summary
value=Summary
selectionStyle=toolbar_summary_selected
link=/proj/summary.do
classtype=cv.struts.TilesMenuItem /

Error messages:


ERROR commons.digester.Digester - Parse Error at line 28 column -1: 
Attribute loggedOn is not declared for element item. [main]
org.xml.sax.SAXParseException: Attribute loggedOn is not declared for 
element item.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)


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




Where to fill default values of a form in ActionForm ?

2002-12-01 Thread Zsolt Koppany
Hi,

right now I use the reset method to fill the form with some default values but 
I see in my logs that reset is called when I click on the cancel button. 
Because I fill default values from a database I don't want to execute this 
query when the form is being cancelled.

What is the best way to fill default values of a form?

Zsolt

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




Does the current version of struts run with tomcat-3.2.4?

2002-11-25 Thread Zsolt Koppany
Hi,

we do have to support tomcat-3.2.4 and I just would like to known whether 
struts-1.1 runs with tomcat-3.2.4.

Zsolt

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




How can I use logic:... for properties such as isKnown() ?

2002-11-25 Thread Zsolt Koppany
Hi,

is it possible to use logic:... for properties such as isKnown()? I would 
like to rewrite the code as follows:
%  is (x.isKnown()) { %

%  } %

Zsolt

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




How to prepare a bean for bean:... and define:... with dynamic fields?

2002-11-21 Thread Zsolt Koppany
Hi,

I have a database application, thus I fetch fields thay I cannot read via 
getter methods. How can I provide the data to struts that I can use for 
example bean:define id=realName name=row property=fullname / 

Zsolt

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




Re: MySQL connection pooling problems!! (please help)

2002-11-20 Thread Zsolt Koppany
Why don't you use the connection pool comming with struts?

Zsolt

On Tuesday 19 November 2002 23:42, James Ferguson wrote:
 Hi,

 You might like to look into the connection pooling software called
 PoolMan (for Pool Manager). I'm using it successfully with the MySQL
 driver. It's no longer be worked on but it is quite mature code. Just
 hunt around with your favourite search engine and you should be able to
 find a copy.

 James.

 PS. If you do use PoolMan I'd recommend you be very careful about the
 query caching, you'll most likely want to turn it off any time you're
 doing any complex insert.


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




How to use bean:write for arrays (String[]) ?

2002-11-18 Thread Zsolt Koppany
Hi,

how can I write the variable for example field[5] using bean:write.../ ? I 
would like to use bean:write because I want to use the filter option to 
convert specific html characters.

logic:iterate id=field indexId=counter name=rows 
type=java.lang.Object[]

bean:write 

Zsolt

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




Is there a better way to write this code?

2002-11-16 Thread Zsolt Koppany
Hi,

in this code I want to take the HTTP parameter targetURL if that exists, 
otherwise, from the attribute of the request. Is there a better way to write 
this code?

Zsolt


bean:parameter id=targetURL name=targetURL value= /
logic:empty name=targetURL 
%
targetURL = (String)request.getAttribute(targetURL);
%
/logic:empty

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




Hot to an html:image.. similar to html:cancel/ ?

2002-11-16 Thread Zsolt Koppany
Hi,

I would like to use a image button (html:image..) instead of html:cancel/. 
How can I do that? It also fine of I have to handle that in the Action class.

Zsolt


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




Re: Dynamic select menu in JSP - Struts-Menu1.1

2002-11-15 Thread Zsolt Koppany
Hi,

what is struts-menu? Where can I find more info about it?

Zsolt

On Thursday 14 November 2002 23:30, Karr, David wrote:
 I noticed the same problem when I tried this casually a couple of days ago.
  I haven't had the chance to get any more detailed information, or debug
 it.  I'm using Tomcat 4.1.12.
 

  -Original Message-
  From: Jeff Born [mailto:jborn;gr.com]
  
  Sounds interesting to me also.  I am using Struts 1.1b2... The readme
  included in the file is actually an almost exact version of 
  the message I
  found using google (There was a huge thread in Dynamic select 
  menu in JSP on
  when not to post) That prior post in struts-dev just 
  refered to struts
  0.5, so it was an old post.
   
  Given all that; In the StrutsMenu-1.1.zip in the 
  StrutsMenu-1.1\webapps
  directory is a file called struts-menu.war.  I hoped I would 
  be able to
  deploy this to Tomcat and have it just work.  It didn't.
   
  I also found reference to basebeans, so I went there and they 
  get the same
  error message as when I deploy it to Tomcat 4.1.
   
   
  
  -Original Message- 
  From: Eddie Bush [mailto:ekbush;swbell.net] 
  Sent: Thu 11/14/2002 5:06 PM 
  To: Struts Users Mailing List 
  Cc: 
  Subject: Re: Dynamic select menu in JSP - Struts-Menu1.1
  
  
  
  That's odd.  The README in the 1.1 version says it 
  requires Struts
  1.1.
   Perhaps you downloaded the wrong archive?
  
  http://sourceforge.net/projects/struts-menu/
  http://sourceforge.net/project/showfiles.php?group_id=48726
  
  I haven't used it - just downloaded it because it sounded
  interesting.
   The version I got said it required 1.1.
  
  Jeff Born wrote:
  
 
  snip/
  
  I found a message in struts-dev about struts-menu, but 
 
  seems rather
  old
 
  refers to Struts 0.5.  From that though I believe I 
 
  need to load the
 
  menu-config.xml via an Extended Action Servlet.  So 
 
  far I've had no
  luck
 
  doing this.
  
  snip/
  
  Thanks,
  
  jb
  
  -Original Message-
  From: V. Cekvenich [mailto:vicc;users.sourceforge.net]
  Subject: Re: Dynamic select menu in JSP
  
  
  Regarding menus, I use struts - menu from sourceforge.
  You can see struts menu runing at baseBeans.com live.
  .V
  
 
  --
  Eddie Bush
  
  
  
  
  --
  To unsubscribe, e-mail:
  mailto:struts-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
  mailto:struts-user-help;jakarta.apache.org
  
  
  
  


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




bean:page ... into a String variable

2002-11-15 Thread Zsolt Koppany
Hi,

how can I specify that bean:page... restores the value into a String 
variable?

Zsolt

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




How can I set a value into the Form class assigned to the current form?

2002-11-15 Thread Zsolt Koppany
Hi,

how can I set the values of Form class assigned to current form from JSP?

Zsolt

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




How can I access the form bean object from JSP?

2002-11-15 Thread Zsolt Koppany
Hi,

how can I access the bean associated to my form? I would like to call some 
getter and setter methods.

Zsolt

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




Why is this code (drawing a box) extremely slow with netscape-4.79?

2002-11-13 Thread Zsolt Koppany
Hi,

the code below draws a box around a table. It works fine with IE, Mozilla and 
Netscape-4.79. However the code is extremely slow with netscape-4.79. Do you 
know why and how can I fix it?

Zsolt

TABLE class=boxframe cellpadding=1 cellspacing=0 border=0
TR
TD
TABLE width=100% cellpadding=0 cellspacing=0 border=0
TR
TDTABLE width=100% bgcolor=white cellpadding=0 
cellspacing=0 
border=0
TR

TD ALIGN=left class=boxheadertiles:insert 
attribute=header//TD
/TR
TR
TD class=boxtexttiles:insert attribute=body//TD
/TR
logic:present name=box.footer
TR class=head
TDnbsp;%=request.getAttribute(box.footer)%/TD
/TR
/logic:present
/TABLE/TD
/TR
/TABLE
/TD
/TR
/TABLE


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




What is the preferred way to fill Forms with input (HTML) parameters?

2002-11-12 Thread Zsolt Koppany
Hi,

what is the preferred way to initialize form fields with parameters passed to 
the JSP URL?

Zsolt

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




How to pass a HTTP parameter to mapping.findForward() from Action.execute

2002-11-11 Thread Zsolt Koppany
Hi,

depending on run-time conditions I would like to pass HTML parameters to the 
URL that will be called via mapping.findForward() from Action.execute().

How can I do that?

Zsolt


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




How to figure out the caller of in a Tiles JSP file?

2002-11-08 Thread Zsolt Koppany
Hi,

in Tiles JSP files, request.getRequestURI() seems to return the URL of the 
includes Tiles file. How can I figure out the URL of the includor? I means 
the JSP file at the top of the include hierarchy, because I would like call 
the original URL with additional parameters from the included JSP file.

Zsolt

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




How to forward from a struts form to a login dialog ?

2002-11-07 Thread Zsolt Koppany
Hi,

in a struts form I want to check whether to user has already logged in. If 
not, instead of showing the form I want to forward the user to a login dialog 
and he must log in. After the user logged in, I want him to come back to the 
form and I have to restore the original parameters of the form.

What is the best solution?


Zsolt



--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: How to forward from a struts form to a login dialog ?

2002-11-07 Thread Zsolt Koppany
Ok, but how?

Zsolt

On Thursday 07 November 2002 11:14, Max Kutny wrote:
 Move authentication to container level


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Can logic:redirect been used in Tiles JSP files?

2002-11-07 Thread Zsolt Koppany
Hi,

I have the impression that logic:redirect ... commands are ignored when they 
are in JSP files included over Tiles. Is that true?

Zsolt

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Is it possible to configure where to forward if ActionForm.validate returns false?

2002-11-07 Thread Zsolt Koppany
Hi,

in a Tiles JSP page, when ActionForm.validate returns false, not the JSP will 
be called that creates the complete layout but the JSP that contains the 
form. How can I tell struts which JSP should be called if ActionForm.validate 
returns false?

Zsolt

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Tiles overloading problem/question

2002-11-06 Thread Zsolt Koppany
Hi Dennis,

do you know what is wrong in my code? When I use the Not working code I get 
an error (attached below) . At the end I have a working code but in two 
definitions and would like to bring them into one.

Zsolt

Error message:
[ServletException in:/templates/tabsLayout.jsp] Error - tag useAttribute : 
attribute 'selected' not found in context. Check tag syntax'


%-- Accessing attribute selected in a JSP file. --%
tiles:useAttribute name=selected classname=java.lang.String
   scope=request /

!-- Not working Code (1 definition) --
definition name=cb.project.layout.tracker
   extends=cb.master.layout
   put name=toolbar value=cb.project.toolbar /
   put name=selected value=tracker /
   put name=body value=/bugs/main.jsp /
/definition


!-- Working Code (2 definitions) --
definition name=cb.project.toolbar.tracker
  extends=cb.project.toolbar
  put name=selected value=tracker /
/definition

definition name=cb.project.layout.tracker
  extends=cb.master.layout
   put name=toolbar value=cb.project.toolbar.tracker /
   put name=body value=/bugs/main.jsp /
/definition








On Tuesday 05 November 2002 22:20, you wrote:
 Your original xml in your first post was correct.

 You can't put a put within a put.

 You can however put another definition as the content of a put tag.

 If you need to extend the other definition, you can create the extension
 definition, and then put that as the content of your final tile.

 On Tue, 2002-11-05 at 14:09, Zsolt Koppany wrote:
  when I try the example below I get the error:
 
  ERROR commons.digester.Digester - Parse Error at line 114 column -1:
  Element put does not allow put -- (#PCDATA)
  org.xml.sax.SAXParseException: Element put does not allow put --
  (#PCDATA)
 
  EXAMPLE:
 
  definition name=cb.project.layout.summary extends=cb.master.layout
 put name=toolbar value=cb.project.toolbar.summary
  type=definition extends=cb.project.toolbar
  put name=selected value=summary /
 /put
 put name=body value=/overview/proj_summary.jsp /
  /definition
 
  On Tuesday 05 November 2002 18:08, Dennis Muhlestein wrote:
   Yes, we use 1.1b2 and it works just fine.
   You may need
 put name=toolbar value=cb.project.toolbar.summary
   type=definintion
  
   note the type... but I saw someone say that it worked without it
   before. -Dennis
  
   On Tue, 2002-11-05 at 09:38, Zsolt Koppany wrote:
Hi tiles users,
   
is it possible to bring the two definitions into one? I just want to
define (overload) the variable selected that is needed by renderer
of cb.project.toolbar.
   
definition name=cb.project.toolbar.summary
extends=cb.project.toolbar put name=selected value=summary /
/definition
   
definition name=cb.project.layout.summary
extends=cb.master.layout put name=toolbar
value=cb.project.toolbar.summary / put name=body
value=/overview/proj_summary.jsp / /definition
   
   
--
To unsubscribe, e-mail:
mailto:struts-user-unsubscribe;jakarta.apache.org For additional
commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Why does the nightly build produces a huge log file during startup?

2002-11-05 Thread Zsolt Koppany
Hi,

I have copied the latest nightly build and after extraction I copied 
jakarta-struts/webapps into the tomcat -4.1.12 webapps directory. It takes a 
very long time to start tomcat (it was not the case before I installed 
struts) and a huge log file (100Mb) was created (I redirect stderr and stdout 
into a log4j file). I find a log file with the size pretty unuseful because 
this is just the initialization.

How can I decrease the amount the information? I don't know whether this is 
realistic but I would not like to get more that a couple of Kb after startup.

Zsolt

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Tiles overloading problem/question

2002-11-05 Thread Zsolt Koppany
Hi tiles users,

is it possible to bring the two definitions into one? I just want to define 
(overload) the variable selected that is needed by renderer of 
cb.project.toolbar.

definition name=cb.project.toolbar.summary extends=cb.project.toolbar
put name=selected value=summary /
/definition

definition name=cb.project.layout.summary extends=cb.master.layout
put name=toolbar value=cb.project.toolbar.summary /
 put name=body value=/overview/proj_summary.jsp /
 /definition


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Tiles overloading problem/question

2002-11-05 Thread Zsolt Koppany
What is the parameter type?

Zsolt

On Tuesday 05 November 2002 18:08, Dennis Muhlestein wrote:
 Yes, we use 1.1b2 and it works just fine.
 You may need
   put name=toolbar value=cb.project.toolbar.summary
 type=definintion

 note the type... but I saw someone say that it worked without it before.
 -Dennis

 On Tue, 2002-11-05 at 09:38, Zsolt Koppany wrote:
  Hi tiles users,
 
  is it possible to bring the two definitions into one? I just want to
  define (overload) the variable selected that is needed by renderer of
  cb.project.toolbar.
 
  definition name=cb.project.toolbar.summary
  extends=cb.project.toolbar put name=selected value=summary /
  /definition
 
  definition name=cb.project.layout.summary extends=cb.master.layout
  put name=toolbar value=cb.project.toolbar.summary /
   put name=body value=/overview/proj_summary.jsp /
   /definition
 
 
  --
  To unsubscribe, e-mail:  
  mailto:struts-user-unsubscribe;jakarta.apache.org For additional
  commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Re: Tiles overloading problem/question

2002-11-05 Thread Zsolt Koppany

when I try the example below I get the error:

ERROR commons.digester.Digester - Parse Error at line 114 column -1: 
Element put does not allow put -- (#PCDATA)
org.xml.sax.SAXParseException: Element put does not allow put -- (#PCDATA)

EXAMPLE:

definition name=cb.project.layout.summary extends=cb.master.layout
   put name=toolbar value=cb.project.toolbar.summary type=definition 
   extends=cb.project.toolbar
put name=selected value=summary /
   /put
   put name=body value=/overview/proj_summary.jsp /
/definition


On Tuesday 05 November 2002 18:08, Dennis Muhlestein wrote:
 Yes, we use 1.1b2 and it works just fine.
 You may need
   put name=toolbar value=cb.project.toolbar.summary
 type=definintion

 note the type... but I saw someone say that it worked without it before.
 -Dennis

 On Tue, 2002-11-05 at 09:38, Zsolt Koppany wrote:
  Hi tiles users,
 
  is it possible to bring the two definitions into one? I just want to
  define (overload) the variable selected that is needed by renderer of
  cb.project.toolbar.
 
  definition name=cb.project.toolbar.summary
  extends=cb.project.toolbar put name=selected value=summary /
  /definition
 
  definition name=cb.project.layout.summary extends=cb.master.layout
  put name=toolbar value=cb.project.toolbar.summary /
   put name=body value=/overview/proj_summary.jsp /
   /definition
 
 
  --
  To unsubscribe, e-mail:  
  mailto:struts-user-unsubscribe;jakarta.apache.org For additional
  commands, e-mail: mailto:struts-user-help;jakarta.apache.org


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




How to get the tiles-def.xml reloaded without starting the server again?

2002-11-04 Thread Zsolt Koppany
Hi,

how can I get tiles-def.xml reload after I changed tiles-def.xml and don't 
want to restart tomcat?

Zsolt

--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




How to use tiles item... for a new class?

2002-11-04 Thread Zsolt Koppany
Hi,

I would like to assign additional parameters to a menu item defined by tiles 
item... and I get a parsing error.

My definition looks like:

definition name=cb.project.toolbar path=/templates/tabsLayout.jsp
putList name=tabList
item
id=summary
value=Summary
link=/overview/proj_page.jsp
classtype=cv.struts.TilesMenuItem /
item
id=tracker
value=Tracker
link=/bugs/main.jsp
access=browse_tracker
classtype=cv.struts.TilesMenuItem /
...

The class cv.struts.TilesMenuItem is a subclass of 
org.apache.struts.tiles.beans.SimpleMenuItem.

The error I get is:

RROR commons.digester.Digester - Parse Error at line 32 column -1: 
Attribute access is not declared for element item.
org.xml.sax.SAXParseException: Attribute access is not declared for element 
item.
at org.apache.crimson.parser.Parser2.error(Parser2.java:3160)
at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1411)

How can I use additinal parameters?

Zsolt


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org




Strange JasperException when using the nightly build 20021031

2002-11-01 Thread Zsolt Koppany
Hi,

when I use the build 20021031 I get a strange jasper exception (attached at 
the end) with 1.1-b2 I don't get this exception. Any ideas how to fix it?

Zsolt


% taglib uri=/struts-tiles.tld prefix=tiles %
html
head
LINK href=css/CB-Style.css rel=stylesheet type=text/css
/head
BODY bgcolor=white link=#00 vlink=#00 alink=#00 
topmargin=0 leftmargin=0 marginwidth=0 marginheight=0
table width=100% border='0' cellspacing=0 cellpadding=0
   tr
  td
 tiles:insert page='/test/templates/leftColSepRightCol.jsp' 
flush=true
 /tiles:insert
  /td
   /tr
/table
/body
/html



Trace:

type Exception report


message 


description The server encountered an internal error () that prevented it from 
fulfilling this request.


exception 

org.apache.jasper.JasperException
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:536)


root cause 

javax.servlet.ServletException
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:497)
at org.apache.jsp.index_jsp._jspService(index_jsp.java:76)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 

Re: Strange JasperException when using the nightly build 20021031

2002-11-01 Thread Zsolt Koppany
Now I know what the reason is. The log4j.jar must be in the tomcat/server/lib 
directory because the common.logging package needs it. First I would say this 
is a bug and I run tomcat under 1.4.1_01 and I think the common.logging 
package should use the logging package of jdk-1.4.1_01 shouldn't it?

Zsolt

On Friday 01 November 2002 10:11, Zsolt Koppany wrote:
 Hi,

 when I use the build 20021031 I get a strange jasper exception (attached at
 the end) with 1.1-b2 I don't get this exception. Any ideas how to fix it?

 Zsolt


 % taglib uri=/struts-tiles.tld prefix=tiles %
 html
 head
 LINK href=css/CB-Style.css rel=stylesheet type=text/css
 /head
 BODY bgcolor=white link=#00 vlink=#00 alink=#00
 topmargin=0 leftmargin=0 marginwidth=0 marginheight=0
 table width=100% border='0' cellspacing=0 cellpadding=0
tr
   td
  tiles:insert page='/test/templates/leftColSepRightCol.jsp'
 flush=true
  /tiles:insert
   /td
/tr
 /table
 /body
 /html



 Trace:

 type Exception report


 message


 description The server encountered an internal error () that prevented it
 from fulfilling this request.


 exception

 org.apache.jasper.JasperException
 at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
248) at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
nFilterChain.java:247) at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
hain.java:193) at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
ava:260) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:643) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
ava:191) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:643) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
0) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:643) at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
.java:170) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:641) at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
2) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:641) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
a:174) at
 org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
keNext(StandardPipeline.java:643) at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
 at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
 at
 org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
 at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
 at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
ection(Http11Protocol.java:380) at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
 at
 org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
va:533) at java.lang.Thread.run(Thread.java:536)


 root cause

 javax.servlet.ServletException
 at
 org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextIm
pl.java:497) at org.apache.jsp.index_jsp._jspService(index_jsp.java:76) at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:
204) at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
 at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240) at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
nFilterChain.java:247

null pointer exception in tiles-documentation/examples/summariesTabs.jsp

2002-10-31 Thread Zsolt Koppany
Hi,

I get a null pointer exception in 
tiles-documentation/examples/summariesTabs.jsp I using struts-1.1-b2 with 
tomcat-4.12 when enablePooling=true in web.xml.

Do you know any fix?

Zsolt


--
To unsubscribe, e-mail:   mailto:struts-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:struts-user-help;jakarta.apache.org