Re: problems when migrating Struts 1.0 to Struts 1.1 on WebSphere?

2006-05-17 Thread Lionel
I use struts 1.1 on a WAS 5.0.2 without any problem.
I develop with WSAD 5.0.0

  Emilia Ipate [EMAIL PROTECTED] a écrit 

  So, now, in order to upgrade to Struts 1.1, we have already upgraded to JSP 
1.2, Servlet 2.3 and  WebSphere Application Server v5 (using as IDE: WSAD 
5.1.2).



  So, if there someone who had to do the same thing? Did he/she encounter any 
problems? What should I be aware of?

  Any idea is appreciated!


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-17 Thread Dakota Jack

Here is an example.  You can make the cache values dynamic.  I assume you
know how to use class loaders to get your classpath dynamically, which is
what Classpath.WEB_INF does.  This solution involves having one folder where
you store all your resources, separating them into subfolders named tiff,
etc.


public final class ResourceCacheAction
   extends Action {

 public ActionForward execute(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
 throws IOException,
ServletException {
   String file= request.getParameter(file);
   String ext = file.substring(file.lastIndexOf('.') + 1);
   String type= null;
   String path= null;

   if (gif.equals(ext)) {
 type = image/gif;
 path = path(gif);
   } else if (jpg.equals(ext)) {
 type = image/jpeg;
 path = path(jpeg);
   } else if (css.equals(ext)) {
 type = text/css;
 path = path(css);
   } else if (flash.equals(ext)) {
 type = application/x-shockwave-flash;
 path = path(flash);
   } else if (text.equals(ext)) {
 type = text/plain;
 path = path(text);
   } else if (js.equals(ext)) {
 type = text/javascript;
 path = path(js);
   } else if (png.equals(ext)) {
 type = image/png;
 path = path(png);
   } else if (html.equals(ext)) {
 type = text/html;
 path = path(html);
   } else if (bmp.equals(ext)) {
 type = image/bmp;
 path = path(bmp);
   } else if (tif.equals(ext)) {
 type = image/tiff;
 path = path(tiff);
   } else if (tiff.equals(ext)) {
 type = image/tiff;
 path = path(tiff);
   }

   String fileName = Classpath.WEB_INF + path + file;

   response.setContentType(type);

   /* E.g. cache = post-check=120,pre-check=240,
 = max-age=86400,private

  post-checks are the time after the initial cache at which you
  have an immediate view without any update.  The time from the
  post to the pre-check is the time whem you get an immediate
  view but an update.  The time after the pre-check time is when
  you get an update prior to a view.
  Cf. 
http://msdn.microsoft.com/workshop/author/perf/perftips.asp#Use_Cache-Control_Extensions
*/http://msdn.microsoft.com/workshop/author/perf/perftips.asp#Use_Cache-Control_Extensions*/

   String cache   = request.getParameter(cache);  /* HTTP 1.1: Numbers
are seconds for cache. */
   String pragma  = request.getParameter(pragma); /* HTTP 1.0: Numbers
are seconds for pragma. */
   String expires = request.getParameter(expires);/* HTTP 1.0: Numbers
are minutes for expires. */

   response.setHeader(Cache-Control,  ((cache   == null) ?
max-age=864,private : cache));
   response.setHeader(Pragma, ((pragma  == null) ?
max-age=864,private : pragma));
   response.setHeader(Expires,((expires == null) ?
144000 : expires));
   response.addHeader(Content-Disposition,(filename= + fileName));

   try {
 FileInputStream fis= new FileInputStream(fileName);
 BufferedInputStream bis= new BufferedInputStream(fis);
 byte[]  bytes  = new byte[bis.available()];
 OutputStreamos = response.getOutputStream();
 bis.read(bytes);
 os.write(bytes);
 os.flush();
 os.close();
 os = null;
 fis.close();
 fis = null;
 bis.close();
 bis = null;
   } catch (IOException ioe) {
 StdOut.log(SiteConstant.ERROR_LOG,ResourceCacheAction: problem file
is:  + fileName + \n + StackTrace.trace(ioe) + \n + ioe.getMessage());
   }

   return null;
 }

 private String path(String fileType) {
   return resource + File.separator + content_type + File.separator +
fileType + File.separator;
 }
} ///;-)

On 5/16/06, M.Liang Liu [EMAIL PROTECTED] wrote:


*Dakota Jack,*your solution is awesome;cool.
Actually I am a freshman to struts;as a result,I need your help to do the
same as you.
**Greatly appreciated if you send your code of the very action
class  which
is to deliver all images or other resources.

Thanks .
On 5/17/06, Dakota Jack [EMAIL PROTECTED] wrote:

 Using standard URLs is just a guarantee that you will keep having these
 sorts of problems.  I use an action to deliver all images, including
 flash,
 or other resources, CSS, etc.  I would suggest you do the same and you
 will
 never have to worry about this recurrent problem again.







--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-17 Thread Dakota Jack

Here is a use of the previous code, Liu.  CRACKWILLOW is used instead of
the usual .do.

html:img src='cache.CRACKWILLOW?file=flags/great_britain.gif' height='18'
border='0'/

Here is the Struts config.

   action path='/cache'
scope='request' type='
com.crackwillow.struts.action.ResourceCacheAction' /



On 5/16/06, M.Liang Liu [EMAIL PROTECTED] wrote:


*Dakota Jack,*your solution is awesome;cool.
Actually I am a freshman to struts;as a result,I need your help to do the
same as you.
**Greatly appreciated if you send your code of the very action
class  which
is to deliver all images or other resources.

Thanks .
On 5/17/06, Dakota Jack [EMAIL PROTECTED] wrote:

 Using standard URLs is just a guarantee that you will keep having these
 sorts of problems.  I use an action to deliver all images, including
 flash,
 or other resources, CSS, etc.  I would suggest you do the same and you
 will
 never have to worry about this recurrent problem again.







--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-17 Thread Dakota Jack

That is irrelevant.  You miss the point.  You can run Flash dynamically by
varying the content.  Flash has an action script.  Gainty's point is
useful.  The fact that Flash or JS run locally is irrelevant.  In fact, I
create my Flash on the backend dynamically.

On 5/16/06, Dave Newton [EMAIL PROTECTED] wrote:


Martin Gainty wrote:
 My cursory understanding of Flash is that it runs as a Gateway thru Jrun
Container I invite you to look at
http://www.adobe.com/support/documentation/en/flash/


What? Flash runs locally.

Dave



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





--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-17 Thread Dakota Jack

Probably correct but a work-intensive solution.  A generic solution would be
better.

On 5/16/06, Bart Busschots [EMAIL PROTECTED] wrote:


Hi,

This is probably a simple problem with relative paths, just do a
view-source on the generated page to see what's going on. That or right
click and 'view image' to see what URL the image is being retrieved
from. I'd wager it won't be what you're expecting and that will be the
cause of your problems.

HTH, Bart.

M.Liang Liu wrote:
 My GOD!
 The same thing  happened when I try to insert an image!!

 Help,please.
 On 5/16/06, M.Liang Liu [EMAIL PROTECTED] wrote:

 Hi,guys!
I am meeting with a problem when I tried to insert a flash to my
 pages.I use Tiles plug-in and it works well.
   I put a flash in my header.jsp and the flash can display as
 expected as
 I typed the very url of this page.But when I put this page in my
 layout.jsp tiles files,nothing displayed.
   I defined the xml file as following:

  !DOCTYPE tiles-definitions PUBLIC -//Apache Software
Foundation//DTD
  Tiles Configuration 1.1//EN 
  http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd;
  tiles-definitions
  definition name=.main.layout path=/tiles/layouts/Layout.jsp
  put name=title value=${title}/
  put name=menutree value=/tiles/menutree.jsp /
  put name=header value= /
  put name=body value=/
  put name=footer value=/tiles/footer.jsp /
  /definition
  definition name=.index extends=.main.layout
  put name=title value=welcome!!! type=string /
  put name=header value=/tiles/header.jsp /
  /definition
  /tiles-definitions
 
 And I opened welcome.do mapping to .index and the pages displayed
 successfully ,except the flash.

 Who can help me?And it is strange,yup?

 Beg your pardon for my poor English.

 Thanks for reading.






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





--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-17 Thread M.Liang Liu

H,thanks a lot Dakota Jack!

It costs time for me to understand your cool solution to problems of this
kind.

Thank you.



On 5/17/06, Dakota Jack [EMAIL PROTECTED] wrote:


Actually, in a real sense it was.  You have to deliver the flash file to
the
Flash plugin, after all.  That is a problem with knowing how to embed
flash.

On 5/16/06, Dave Newton [EMAIL PROTECTED] wrote:

 Wendy Bossons wrote:
  If you just want to embed a flash movie, the following is an example:

 The original poster was having a (probable) relative path issue; I don't
 think it was a don't-know-how-to-embed-flash problem.

 Dave



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




--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~





--
 http://blog.csdn.net/patriotlml
   Drink   Drank Drunk
http://my.donews.com/patriotlml/


RE: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-17 Thread David G. Friedman
Funny, but it almost seemed like D.J wrote a fancy way of saying this:

If you don't have the Flash plugin installed in your browser then it won't 
work

What a practical answer (add sarcasm here).

Regards,
David / [EMAIL PROTECTED]

On 5/17/06, Dakota Jack [EMAIL PROTECTED] wrote:

 Actually, in a real sense it was.  You have to deliver 
 the flash file to the Flash plugin, after all.  That 
 is a problem with knowing how to embed flash.


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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-17 Thread Dave Newton
David G. Friedman wrote:
 If you don't have the Flash plugin installed in your browser then it won't 
 work
   

No no, it's just not knowing the difference between a
technology-independent path issue, which is Struts, and a problem with
the technology itself.

It wouldn't have mattered what was being included, it was a Struts path
resolution/generation misunderstanding.

Dave



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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-17 Thread Dakota Jack

Well, you ought to try doing it on your own.  That would really cost
you time.  ///;-)

On 5/17/06, M.Liang Liu [EMAIL PROTECTED] wrote:

H,thanks a lot Dakota Jack!

It costs time for me to understand your cool solution to problems of this
kind.

Thank you.



On 5/17/06, Dakota Jack [EMAIL PROTECTED] wrote:

 Actually, in a real sense it was.  You have to deliver the flash file to
 the
 Flash plugin, after all.  That is a problem with knowing how to embed
 flash.

 On 5/16/06, Dave Newton [EMAIL PROTECTED] wrote:
 
  Wendy Bossons wrote:
   If you just want to embed a flash movie, the following is an example:
 
  The original poster was having a (probable) relative path issue; I don't
  think it was a don't-know-how-to-embed-flash problem.
 
  Dave
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 You can lead a horse to water but you cannot make it float on its back.
 ~Dakota Jack~




--
  http://blog.csdn.net/patriotlml
Drink   Drank Drunk
http://my.donews.com/patriotlml/





--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-17 Thread Dakota Jack

Friendman, you are completely missing the boat. Do you know how the
src parameter works in Flash?  Give me a break!  Don't read into my
comments what you might have meant.

On 5/17/06, David G. Friedman [EMAIL PROTECTED] wrote:

Funny, but it almost seemed like D.J wrote a fancy way of saying this:

If you don't have the Flash plugin installed in your browser then it won't 
work

What a practical answer (add sarcasm here).

Regards,
David / [EMAIL PROTECTED]

On 5/17/06, Dakota Jack [EMAIL PROTECTED] wrote:

 Actually, in a real sense it was.  You have to deliver
 the flash file to the Flash plugin, after all.  That
 is a problem with knowing how to embed flash.


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





--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~

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



I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread M.Liang Liu

Hi,guys!
  I am meeting with a problem when I tried to insert a flash to my
pages.Iuse Tiles plug-in and it works well.
 I put a flash in my header.jsp and the flash can display as expected as I
typed the very url of this page.But when I put this page in my
layout.jsptiles files,nothing displayed.
 I defined the xml file as following:


!DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD
Tiles Configuration 1.1//EN 
http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd;
tiles-definitions
definition name=.main.layout path=/tiles/layouts/Layout.jsp
put name=title value=${title}/
put name=menutree value=/tiles/menutree.jsp /
put name=header value= /
put name=body value=/
put name=footer value=/tiles/footer.jsp /
/definition
definition name=.index extends=.main.layout
put name=title value=welcome!!! type=string /
put name=header value=/tiles/header.jsp /
/definition
/tiles-definitions


And I opened welcome.do mapping to .index and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread M.Liang Liu

My GOD!
The same thing  happened when I try to insert an image!!

Help,please.
On 5/16/06, M.Liang Liu [EMAIL PROTECTED] wrote:


Hi,guys!
   I am meeting with a problem when I tried to insert a flash to my
pages.I use Tiles plug-in and it works well.
  I put a flash in my header.jsp and the flash can display as expected as
I typed the very url of this page.But when I put this page in my
layout.jsp tiles files,nothing displayed.
  I defined the xml file as following:

 !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD
 Tiles Configuration 1.1//EN 
 http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd;
 tiles-definitions
 definition name=.main.layout path=/tiles/layouts/Layout.jsp
 put name=title value=${title}/
 put name=menutree value=/tiles/menutree.jsp /
 put name=header value= /
 put name=body value=/
 put name=footer value=/tiles/footer.jsp /
 /definition
 definition name=.index extends=.main.layout
 put name=title value=welcome!!! type=string /
 put name=header value=/tiles/header.jsp /
 /definition
 /tiles-definitions

And I opened welcome.do mapping to .index and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.





--
 http://blog.csdn.net/patriotlml
   Drink   Drank Drunk
http://my.donews.com/patriotlml/


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Emmanouil Batsis

M.Liang Liu wrote:


My GOD!
The same thing  happened when I try to insert an image!!



* Have you tried accessing the URL of the image directly from your 
browser? What is the response?

* Anything in the logs?

Manos

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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Bart Busschots

Hi,

This is probably a simple problem with relative paths, just do a 
view-source on the generated page to see what's going on. That or right 
click and 'view image' to see what URL the image is being retrieved 
from. I'd wager it won't be what you're expecting and that will be the 
cause of your problems.


HTH, Bart.

M.Liang Liu wrote:

My GOD!
The same thing  happened when I try to insert an image!!

Help,please.
On 5/16/06, M.Liang Liu [EMAIL PROTECTED] wrote:


Hi,guys!
   I am meeting with a problem when I tried to insert a flash to my
pages.I use Tiles plug-in and it works well.
  I put a flash in my header.jsp and the flash can display as 
expected as

I typed the very url of this page.But when I put this page in my
layout.jsp tiles files,nothing displayed.
  I defined the xml file as following:

 !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD
 Tiles Configuration 1.1//EN 
 http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd;
 tiles-definitions
 definition name=.main.layout path=/tiles/layouts/Layout.jsp
 put name=title value=${title}/
 put name=menutree value=/tiles/menutree.jsp /
 put name=header value= /
 put name=body value=/
 put name=footer value=/tiles/footer.jsp /
 /definition
 definition name=.index extends=.main.layout
 put name=title value=welcome!!! type=string /
 put name=header value=/tiles/header.jsp /
 /definition
 /tiles-definitions

And I opened welcome.do mapping to .index and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.








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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Christian Bollmeyer

This is kind of trivial and not related to Tiles at all.
Fact is, your Flash thing or even the image, if you like,
are not found because their URLs are incorrect. Solution
is to specify context-relative URLs like this (JSP 2.0):

img src=${pageContext.request.contextPath}/myImage.jpg

and the like. For older JSP versions, use the c:out or
c:url tags.

HTH,
-- Chris

M.Liang Liu schrieb:


My GOD!
The same thing  happened when I try to insert an image!!

Help,please.
On 5/16/06, M.Liang Liu [EMAIL PROTECTED] wrote:


Hi,guys!
   I am meeting with a problem when I tried to insert a flash to my
pages.I use Tiles plug-in and it works well.
  I put a flash in my header.jsp and the flash can display as expected as
I typed the very url of this page.But when I put this page in my
layout.jsp tiles files,nothing displayed.
  I defined the xml file as following:

 !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD
 Tiles Configuration 1.1//EN 
 http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd;
 tiles-definitions
 definition name=.main.layout path=/tiles/layouts/Layout.jsp
 put name=title value=${title}/
 put name=menutree value=/tiles/menutree.jsp /
 put name=header value= /
 put name=body value=/
 put name=footer value=/tiles/footer.jsp /
 /definition
 definition name=.index extends=.main.layout
 put name=title value=welcome!!! type=string /
 put name=header value=/tiles/header.jsp /
 /definition
 /tiles-definitions

And I opened welcome.do mapping to .index and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.








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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Martin Gainty
Hello Christian
You're probably better off asking on livedocs.macromedia.com
My cursory understanding of Flash is that it runs as a Gateway thru Jrun 
Container I invite you to look at
http://www.adobe.com/support/documentation/en/flash/
Let me know how this works for you,
Viel Gluck,
Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Christian Bollmeyer [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, May 16, 2006 2:52 PM
Subject: Re: I've got a big problem:Can NOT insert flash into jsp---using 
struts 1.1 and Tiles


 This is kind of trivial and not related to Tiles at all.
 Fact is, your Flash thing or even the image, if you like,
 are not found because their URLs are incorrect. Solution
 is to specify context-relative URLs like this (JSP 2.0):
 
 img src=${pageContext.request.contextPath}/myImage.jpg
 
 and the like. For older JSP versions, use the c:out or
 c:url tags.
 
 HTH,
 -- Chris
 
 M.Liang Liu schrieb:
 
 My GOD!
 The same thing  happened when I try to insert an image!!
 
 Help,please.
 On 5/16/06, M.Liang Liu [EMAIL PROTECTED] wrote:

 Hi,guys!
I am meeting with a problem when I tried to insert a flash to my
 pages.I use Tiles plug-in and it works well.
   I put a flash in my header.jsp and the flash can display as expected as
 I typed the very url of this page.But when I put this page in my
 layout.jsp tiles files,nothing displayed.
   I defined the xml file as following:

  !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD
  Tiles Configuration 1.1//EN 
  http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd;
  tiles-definitions
  definition name=.main.layout path=/tiles/layouts/Layout.jsp
  put name=title value=${title}/
  put name=menutree value=/tiles/menutree.jsp /
  put name=header value= /
  put name=body value=/
  put name=footer value=/tiles/footer.jsp /
  /definition
  definition name=.index extends=.main.layout
  put name=title value=welcome!!! type=string /
  put name=header value=/tiles/header.jsp /
  /definition
  /tiles-definitions
 
 And I opened welcome.do mapping to .index and the pages displayed
 successfully ,except the flash.

 Who can help me?And it is strange,yup?

 Beg your pardon for my poor English.

 Thanks for reading.

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


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Dave Newton
Martin Gainty wrote:
 My cursory understanding of Flash is that it runs as a Gateway thru Jrun 
 Container I invite you to look at 
 http://www.adobe.com/support/documentation/en/flash/
   

What? Flash runs locally.

Dave



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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Wendy Bossons

If you just want to embed a flash movie, the following is an example:

OBJECT classid=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0;
WIDTH=550 HEIGHT=400 id=myMovieName
PARAM NAME=movie VALUE=myFlashMovie.swf
PARAM NAME=quality VALUE=high
PARAM NAME=bgcolor VALUE=#FF
EMBED src=/support/flash/ts/documents/myFlashMovie.swf quality=high bgcolor=#FF 
WIDTH=550 HEIGHT=400
NAME=myMovieName ALIGN= TYPE=application/x-shockwave-flash
PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
/EMBED
/OBJECT



Dave Newton wrote:

Martin Gainty wrote:
  

My cursory understanding of Flash is that it runs as a Gateway thru Jrun 
Container I invite you to look at 
http://www.adobe.com/support/documentation/en/flash/
  



What? Flash runs locally.

Dave



-
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: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Dave Newton
Wendy Bossons wrote:
 If you just want to embed a flash movie, the following is an example:

The original poster was having a (probable) relative path issue; I don't
think it was a don't-know-how-to-embed-flash problem.

Dave



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



Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread M.Liang Liu

Thanks a lot for your immediate reply which helped me a lot to resolve this
problem.

The solution *Christian Bollmeyer *provided is just fine;I make the image
display properly;*
**Bart Busschots's *advice is of great useful,I check all my webapp to make
sure all the things go as expected.*

**Wendy Bossons's * code is right in a jsp page---it is the same as
mime.But the flash can NOT display when I put it in a Tiles file,and it is
the real problem I met as Dave Newton pointed out.*

*The solution to flash-problem is* *to name the movie's value you want to
insert as a  context-Relative url as following:
PARAM NAME=movie VALUE=${pageContext.request.contextPath
}/tiles/myFlashMovie.swf

and the code to insert a flash is to be:

object classid=clsid:d27cdb6e-ae6d-11cf-96b8-44455354

codebase=
http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0

width=783 height=90 id=logo align=middle
param name=allowScriptAccess value=sameDomain /
param name=movie 
value=${pageContext.request.contextPath}/tiles/logo.swf
/
param name=quality value=high /
param name=bgcolor value=#ff /
embed src=${pageContext.request.contextPath}/tiles/logo.swf
quality=high bgcolor=#ff width=783 height=90
name=logo
align=middle allowScriptAccess=sameDomain
type=application/x-shockwave-flash
pluginspage=http://www.macromedia.com/go/getflashplayer;
//object



I got it as what I said.And if there is any better way ,please notice me.

Thanks again.


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread Dakota Jack

Using standard URLs is just a guarantee that you will keep having these
sorts of problems.  I use an action to deliver all images, including flash,
or other resources, CSS, etc.  I would suggest you do the same and you will
never have to worry about this recurrent problem again.

On 5/16/06, M.Liang Liu [EMAIL PROTECTED] wrote:


Hi,guys!
   I am meeting with a problem when I tried to insert a flash to my
pages.Iuse Tiles plug-in and it works well.
  I put a flash in my header.jsp and the flash can display as expected as
I
typed the very url of this page.But when I put this page in my
layout.jsptiles files,nothing displayed.
  I defined the xml file as following:

 !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD
 Tiles Configuration 1.1//EN 
 http://jakarta.apache.org/struts/dtds/tiles-config_1_1.dtd;
 tiles-definitions
 definition name=.main.layout path=/tiles/layouts/Layout.jsp
 put name=title value=${title}/
 put name=menutree value=/tiles/menutree.jsp /
 put name=header value= /
 put name=body value=/
 put name=footer value=/tiles/footer.jsp /
 /definition
 definition name=.index extends=.main.layout
 put name=title value=welcome!!! type=string /
 put name=header value=/tiles/header.jsp /
 /definition
 /tiles-definitions

And I opened welcome.do mapping to .index and the pages displayed
successfully ,except the flash.

Who can help me?And it is strange,yup?

Beg your pardon for my poor English.

Thanks for reading.





--
You can lead a horse to water but you cannot make it float on its back.
~Dakota Jack~


Re: I've got a big problem:Can NOT insert flash into jsp---using struts 1.1 and Tiles

2006-05-16 Thread M.Liang Liu

*Dakota Jack,*your solution is awesome;cool.
Actually I am a freshman to struts;as a result,I need your help to do the
same as you.
**Greatly appreciated if you send your code of the very action class  which
is to deliver all images or other resources.

Thanks .
On 5/17/06, Dakota Jack [EMAIL PROTECTED] wrote:


Using standard URLs is just a guarantee that you will keep having these
sorts of problems.  I use an action to deliver all images, including
flash,
or other resources, CSS, etc.  I would suggest you do the same and you
will
never have to worry about this recurrent problem again.




RequestUtils.message in struts 1.1

2006-04-24 Thread Garner Shawn
I'm trying to get my Spanish text using the RequestUtils.message method.
I get my English just fine when using the following but when the
locale is set to Spanish in the action class then this doesn't work:

RequestUtils.message(pageContext, Globals.MESSAGES_KEY,
Globals.LOCALE_KEY, (String) keyTable.get(name));

Is it looking in the request scope only because I think those keys are
only in the session?  I know my Spanish is there because my page
displays in Spanish except for the portion that I use
RequestUtils.message for.

Is ther an equivilent to get it from the session?

Any help?

Shawn

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



Struts 1.1 ApplicationResources.properties

2006-03-10 Thread Yariel Ramos Moreno
Hi:

I have a LookupDispatchAction in my application. In the JSP mapped to this 
action, I need 2 submit buttons with the same name (Search) but with differents 
funtionalities. In my ApplicationResource.properties file I have defined 2 
diferent properties with the same value:

search.go=Search
search.advRes=Seach

But when I execute the web application, and I press any of those buttons, it 
always map to the same results page... always is desplayed the page asociated 
to search.advRes.

If I change the value of one the properties, it work fine.

How do I make this possible? Can I have 2 different properties with the same 
value or not?

Thands in advance.

RE: Struts 1.1 and IExplorer

2006-03-08 Thread Krishna, Mattam \(M.\)
Hi Yariel Ramos Moreno,

Can you send your struts-confing's action mapping code.

Thanks and Regards,
Krishna Mattam
Team Member - CDF Toolset
Contact:044-22548575
Email: [EMAIL PROTECTED]

-Original Message-
From: Yariel Ramos Moreno [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 08, 2006 7:40 AM
To: user@struts.apache.org
Subject: Struts 1.1 and IExplorer


Hello:

I'm developing a web application using Struts 1.1 and Tiles. I have a
tile for searchs consisting in a JSP with the following code: .
html:form action=/search
table width=100% border=0 cellpadding=0 cellspacing=0
tr
td colspan=3Buscar Noticias/td
/tr
tr
td valign=top
html:text property=searchText/
/td
td valign=middle width=40
html:submit property=searchType
bean:message key=search.go/
/html:submit
/td
/tr
tr
td colspan=3
html:submit property=searchType
bean:message key=search.adv/
/html:submit
/td
/tr
/table/td
/html:form
...

I have an ActionForm asociated to it with the definition of searchText
property and the get, set and reset methods. Also, there is a
LookupDispatchAction defining the mappings according with the selected
button. Here is the class:

public class SearchAction extends LookupDispatchAction {
 
 public ActionForward op_search(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response) {
  
   return mapping.findForward(showSearch);
 }
 
 public ActionForward op_advSearch(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response) {
  
   return mapping.findForward(showAdvSearch);
 }
 
 protected Map getKeyMethodMap() {
  MapString, String map = new HashMap String, String ();
map.put(, op_search);
map.put(search.go, op_search);
map.put(search.adv, op_advSearch);

return (map);
 }
}

The line map.put(, op_search); is for the case I press Enter in the
input area instead of pressing one of the defined buttons (I'm not sure
if it work this way, maybe I don't need it).

When I execute my application in Mozila Firefox, pressing Enter in the
input area, it works fine and forwards to showSearch correctly. But when
execute it in Internet Explorer, I get the following exception:

SEVERE: Servlet.service() for servlet action threw exception
javax.servlet.ServletException: Request[/search] does not contain
handler parameter named searchType at
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAct
ion.java:199)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:484)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
274)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:667)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
at java.lang.Thread.run(Thread.java:595)

What's the problem here? It's mine or it's an Internet Explorer bug with
Struts 1.1? Is there another way of doing what I want (calling the
correct forward when I press Enter in the input area), something like a
default value for my property or another method (searchText)?

I need some help as soon as you can, please.

Thanks in advance.

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

RE: Struts 1.1 and IExplorer

2006-03-08 Thread Yariel Ramos Moreno
Hello Krishna:

Here is the code for the action-mapping:

action-mappings 
  action
  attribute=searchForm
  input=/pages/search.jsp
  name=searchForm
  parameter=searchType
  path=/search
  scope=request
  type=facade.struts.action.SearchAction
  validate=false
  forward name=showAdvSearch path=page.advSearch /
  forward name=showSearch path=page.search /
/action  
   /action-mappings


Struts 1.1 and IExplorer

2006-03-07 Thread Yariel Ramos Moreno
Hello:

I'm developing a web application using Struts 1.1 and Tiles. I have a tile for 
searchs consisting in a JSP with the following code:
.
html:form action=/search
table width=100% border=0 cellpadding=0 cellspacing=0
tr
td colspan=3Buscar Noticias/td
/tr
tr
td valign=top
html:text property=searchText/
/td
td valign=middle width=40
html:submit property=searchType
bean:message key=search.go/
/html:submit
/td
/tr
tr
td colspan=3
html:submit property=searchType
bean:message key=search.adv/
/html:submit
/td
/tr
/table/td
/html:form
...

I have an ActionForm asociated to it with the definition of searchText property 
and the get, set and reset methods. Also, there is a LookupDispatchAction 
defining the mappings according with the selected button. Here is the class:

public class SearchAction extends LookupDispatchAction {
 
 public ActionForward op_search(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response) {
  
   return mapping.findForward(showSearch);
 }
 
 public ActionForward op_advSearch(
   ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
   HttpServletResponse response) {
  
   return mapping.findForward(showAdvSearch);
 }
 
 protected Map getKeyMethodMap() {
  MapString, String map = new HashMap String, String ();
map.put(, op_search);
map.put(search.go, op_search);
map.put(search.adv, op_advSearch);

return (map);
 }
}

The line map.put(, op_search); is for the case I press Enter in the input 
area instead of pressing one of the defined buttons (I'm not sure if it work 
this way, maybe I don't need it).

When I execute my application in Mozila Firefox, pressing Enter in the input 
area, it works fine and forwards to showSearch correctly. But when execute it 
in Internet Explorer, I get the following exception:

SEVERE: Servlet.service() for servlet action threw exception
javax.servlet.ServletException: Request[/search] does not contain handler 
parameter named searchType
at 
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:199)
at 
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)

What's the problem here? It's mine or it's an Internet Explorer bug with Struts 
1.1? Is there another way of doing what I want (calling the correct forward 
when I press Enter in the input area), something like a default value for my 
property or another method (searchText)?

I need some help as soon as you can, please.

Thanks in advance.

Re: Struts 1.1 and IExplorer

2006-03-07 Thread Michael Jouravlev
On 3/7/06, Yariel Ramos Moreno [EMAIL PROTECTED] wrote:
 When I execute my application in Mozila Firefox, pressing Enter in the input 
 area, it works fine and forwards to showSearch correctly. But when execute it 
 in Internet Explorer, I get the following exception:

 SEVERE: Servlet.service() for servlet action threw exception
 javax.servlet.ServletException: Request[/search] does not contain handler 
 parameter named searchType

Sometimes some browsers (I could not find a system in this) do not
send a submit element when you hit Enter. Sometimes they send the
first submit element on a form.

So, you need to handle situation when no submit buttons is sent. This
would be a keyboard submit or default submit.

Michael.

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



Is Validator 1.2 compatible with Struts 1.1

2006-02-13 Thread Kalra, Ashwani

Hi,
I want to use validator 1.2 with struts 1.1. The reason is that
Validator 1.2 provides facility for reducing the size of
struts-validator.xml file for multiple language and countries.
Another question is how do I  use non-default locale with struts for
printing error messages


__
Thanks
Ashwani Kalra





This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
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.


RE: [OT] Re: Struts 1.1 issue (myEclipse+Jboss 3.2.5+SQL Server 2000)

2006-02-09 Thread Jitendra Kumar
Dave,

Thanks for your response. I have got your point and will try to follow
the guidelines from my next mail on.

I was basically interested in knowing all the steps that are required to
connect to a remote SQL server 2000 using Struts on JBoss.

After a night of trial and errors, I have finally established the
connection.

I am listing the steps to perform this task. It may be helpful to few
people.

**

Steps to configure JBoss for MS SQL Server database and Struts

1) MS SQL Server driver classes are required in the Classpath. Copy MS
SQL Server JDBC driver class; jar files mssqlserver.jar, msbase.jar,
msutil.jar to the server/default/lib directory.


2) To configure with non-XA MS SQL Server datasource-copy
/docs/examples/jca/mssql-ds.xml to /server/default/deploy directory.

3) To configure with MS SQL Server XA datasource copy
/docs/examples/jca/mssql-xa-ds.xml to /server/default/deploy dir. Modify
mssql-ds.xml configuration file. Driver Class and Connection URL
settings for MS SQL Server JDBC Drivers are as follows:
3.1) driver-classcom.microsoft.jdbc.sqlserver.SQLServerDriver
/driver-class
3.2) connection-url
jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=MyDatabase
/connection-url

4) To configure with XA JDBC driver for MS SQL Server modify the
mssql-xa-ds.xml configuration file.
4.1)
driver-classcom.microsoft.jdbcx.sqlserver.SQLServerDataSource/driver-
class

5) The standardjbosscmp-jdbc.xml configuration file is configured with
Hypersonic database. To configure JBoss server with MS SQL Server modify
/server/default/conf/standardjbosscmp-jdbc.xml configuration file. 

6) Make the changes as:
jbosscmp-jdbc
defaults 
datasourcejava:/MSSQLDS/datasource 
datasource-mappingMS SQLSERVER2000/datasource-mapping 
/defaults 
/jbosscmp-jdbc

7) Modify login-config.xml configuration file with MS SQL Server
database settings. Add the following application- policy/ element to
login-config.xml.

application-policy name = MSSQLDbRealm
authentication
login-module code =
org.jboss.resource.security.ConfiguredIdentityLoginModule flag =
required
module-option name = principalsa/module-option
module-option name = userNamesa/module-option
module-option name = passwordpassword/module-option
module-option name =
managedConnectionFactoryNamejboss.jca:service=LocalTxCM,name=MSSQLDS
/module-option 
/login-module
/authentication
/application-policy

By modifying the mssql-ds.xml, standardjbosscmp-jdbc.xml and
login-config.xml the JBoss 4.0 server is configured to be used with a MS
SQL Server database.


8) Download these two files to use data connection using Struts and copy
them to the server/default/lib directory.
1. Commons-pool-1.2.jar
2. Commons-dbcp-1.2.1.jar

Regards,
Jitendra

-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 08, 2006 5:48 PM
To: Struts Users Mailing List
Subject: [OT] Re: Struts 1.1 issue (myEclipse+Jboss 3.2.5+SQL Server
2000)


Jitendra Kumar wrote:
 Using the above I simply want to print the records of any table in my 
 SQL Server 2K DB.

 The problem:
 I am not able to do the above. I have tried changing some files in 
 Jboss. I have copied some jars of DB Drivers in WEB-INF/lib folder
etc.
   
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.catb.org/%7Eesr/faqs/smart-questions.html

By what mechanism would you expect us to be able to answer this
question?

Besides the fact that this has absolutely nothing to do with Struts, you
have provided essentially zero information that would allow us to even
BEGIN to help. Do you get an error? If so, what error? What JARS are you
using? How are you accessing the database?

Dave



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



Struts 1.1 issue (myEclipse+Jboss 3.2.5+SQL Server 2000)

2006-02-08 Thread Jitendra Kumar
I am writing this mail after spending a lot of time struggling with the
stuff mentioned in subject line.

My Setup

1. myEclipse IDE
2. Struts Version 1.1
3. JDK 1.5
4. Jboss 3.2.5 (Please don't ask me to go to Jboss mailing list :-( )

5. SQL Server 2000 (This server is running on a remote win 2000 server)



I am developing this application on a win 2K prof environ.

The Requirement:

Using the above I simply want to print the records of any table in my SQL
Server 2K DB.

The problem:
I am not able to do the above. I have tried changing some files in Jboss. I
have copied some jars of DB Drivers in WEB-INF/lib folder etc.

If any of you are using the above environment or have knowledge about the
same then please tell me the procedure in steps to achieve the above
mentioned target.

Thanks in advance 


Regards,
Jitendra Kumar


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

[OT] Re: Struts 1.1 issue (myEclipse+Jboss 3.2.5+SQL Server 2000)

2006-02-08 Thread Dave Newton
Jitendra Kumar wrote:
 Using the above I simply want to print the records of any table in my SQL
 Server 2K DB.

 The problem:
 I am not able to do the above. I have tried changing some files in Jboss. I 
 have copied some jars of DB Drivers in WEB-INF/lib folder etc.
   
http://www.catb.org/~esr/faqs/smart-questions.html
http://www.catb.org/%7Eesr/faqs/smart-questions.html

By what mechanism would you expect us to be able to answer this question?

Besides the fact that this has absolutely nothing to do with Struts, you
have provided essentially zero information that would allow us to even
BEGIN to help. Do you get an error? If so, what error? What JARS are you
using? How are you accessing the database?

Dave



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



Re: Struts-1.1 Tiles exception error page

2006-02-02 Thread Laurie Harper
Both will help. Figuring out what size buffer you need will be a process 
of experimentation. The bottom line is that this is not a robust 
solution unless you can be reasonably sure the size of each page will 
not vary very much.


L.

Vladislav Pernin wrote:
You mean tiles:insert attribute=xxx flush=false / or %@ page 
autoFlush=false ... buffer=64kb, or both ?


I do not really have an idea what could be a reasonable value for buffer.

Vlad


Laurie Harper a écrit :

Well, assuming the IllegalStateException is complaining about not 
being able to forward after the response has been committed or 
something similar, the problem is that (at least some of) the response 
has already been sent when the error occurs.


You may be able to work around that by (a) making sure you use 
flush=false everywhere and (b) increasing the size of the response 
buffer.


L.

Vladislav Pernin wrote:

I try to migrate to Struts 1.2.8, the ServletException ... message 
is not displayed any more.


Problem is that if I use the error-page of the web.xml, I got the 
following exception :
2006-02-01 18:58:27 ErrorDispatcherValve[localhost]: Exception 
Processing ErrorPage[exceptionType=java.lang.Throwable, 
location=/error.jsp]
java.lang.IllegalStateException: Impossible de remettre ? z?ro apr?s 
que la r?ponse ait ?t? envoy?e
   at 
org.apache.catalina.connector.ResponseBase.reset(ResponseBase.java:742)
   at 
org.apache.catalina.connector.HttpResponseBase.reset(HttpResponseBase.java:765) 

   at 
org.apache.catalina.connector.http.HttpResponseImpl.reset(HttpResponseImpl.java:156) 

   at 
org.apache.catalina.connector.HttpResponseBase.reset(HttpResponseBase.java:326) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:364) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.throwable(ErrorDispatcherValve.java:209) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:126) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:534) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:994) 

   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1105) 


   at java.lang.Thread.run(Thread.java:534)

If I use the %@ page errorPage ..., the tiles bloc which fails is 
replaced by the content of error.jsp but not the user is not redirected.


Any idea ?

Vladislav Pernin

Vladislav Pernin wrote:

I just found in the 1.2.4 release note that this has been resolved. 
So I'm going to take a look at 1.2.4 migration.


Vladislav Pernin

Vladislav Pernin wrote:


Hi all,

I'm working in an Struts-1.1 tiles environment and I need to be 
able to redirect user on a JSP error page when an errors occurs. I 
also need to send an email, that can be done from the JSP error 
page or from an exception handler.


The global-exceptions declared in the struts-config.xml catch the 
exception that occur in the struts action only.


I also need to catch exception in the JSP, so I try to set an 
error-page in the web.xml, the exception thrown from the 
TableauBord.jsp is not caugth and an ugly A ServletException in 
/jsp/TableauBord.jsp ... is displayed instead of the content of 
the TableauBord.jsp inserted by tiles:insert attribute=corps/ 
in Template.jsp ; the JSP error page error.jsp is not called.


So I try to add a %@ page errorPage=/jsp/error.jsp % in the 
pages Template.jsp and TableauBord.jsp, I got a different 
behaviour, the ServletException ... message went out but the JSP 
error page has still not been called. After some testing, I 
realised that I could put any string in the %@ page 
errorPage=sdqsdsqdqsdsqd %, no change.


I try to use a standard JSP page, I mean without tiles templating, 
and my JSP error page is called with both solutions (error-page in 
web.xml and directive errorPage in JSP).


Maybe the response is commited before the exception

Re: Struts-1.1 Tiles exception error page

2006-02-01 Thread Vladislav Pernin
I just found in the 1.2.4 release note that this has been resolved. So 
I'm going to take a look at 1.2.4 migration.


Vladislav Pernin

Vladislav Pernin wrote:


Hi all,

I'm working in an Struts-1.1 tiles environment and I need to be able 
to redirect user on a JSP error page when an errors occurs. I also 
need to send an email, that can be done from the JSP error page or 
from an exception handler.


The global-exceptions declared in the struts-config.xml catch the 
exception that occur in the struts action only.


I also need to catch exception in the JSP, so I try to set an 
error-page in the web.xml, the exception thrown from the 
TableauBord.jsp is not caugth and an ugly A ServletException in 
/jsp/TableauBord.jsp ... is displayed instead of the content of the 
TableauBord.jsp inserted by tiles:insert attribute=corps/ in 
Template.jsp ; the JSP error page error.jsp is not called.


So I try to add a %@ page errorPage=/jsp/error.jsp % in the pages 
Template.jsp and TableauBord.jsp, I got a different behaviour, the 
ServletException ... message went out but the JSP error page has 
still not been called. After some testing, I realised that I could put 
any string in the %@ page errorPage=sdqsdsqdqsdsqd %, no change.


I try to use a standard JSP page, I mean without tiles templating, and 
my JSP error page is called with both solutions (error-page in web.xml 
and directive errorPage in JSP).


Maybe the response is commited before the exception is thrown ?

The web gave me some directions, I tried all of them without any 
success. So if you guys have an idea, it would be great.


Regards,
Vladislav Pernin

--_ 


Template.jsp:_

%@ page contentType=text/html;charset=utf-8 %
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
html
head
html:base /
tiles:importAttribute name=titrePage/
...

body 
div class=toptiles:insert attribute=imagesEntete//div
...
tiles:insert attribute=corps/
...

_TableauBord.jsp :
_JSP page where the error occurs



_titles-defs.xml :_
definition name=.MainLayout path=/Template.jsp
   put name=titrePage  value=page.defaut.titre /
   put name=imagesEntete value=/jsp/Entete.jsp /
   put name=corps   value=corps /
   /definition
definition name=.TableauBord extends=.MainLayout
put name=corps value=/jsp/TableauBord.jsp/   
/definition



_struts-config.xml :_
...
global-exceptions
exception key=page.error.key
type=java.lang.Exception
path=/jsp/error.jsp
handler=xxx.yyy.ExceptionHandler /
/global-exceptions
...

_web.xml :_
error-page
exception-typejava.lang.Exception/exception-type
location/jsp/error.jsp/location
/error-page


-
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: Struts-1.1 Tiles exception error page

2006-02-01 Thread Vladislav Pernin
I try to migrate to Struts 1.2.8, the ServletException ... message is 
not displayed any more.


Problem is that if I use the error-page of the web.xml, I got the 
following exception :
2006-02-01 18:58:27 ErrorDispatcherValve[localhost]: Exception 
Processing ErrorPage[exceptionType=java.lang.Throwable, location=/error.jsp]
java.lang.IllegalStateException: Impossible de remettre ? z?ro apr?s que 
la r?ponse ait ?t? envoy?e
   at 
org.apache.catalina.connector.ResponseBase.reset(ResponseBase.java:742)
   at 
org.apache.catalina.connector.HttpResponseBase.reset(HttpResponseBase.java:765)
   at 
org.apache.catalina.connector.http.HttpResponseImpl.reset(HttpResponseImpl.java:156)
   at 
org.apache.catalina.connector.HttpResponseBase.reset(HttpResponseBase.java:326)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:364)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.throwable(ErrorDispatcherValve.java:209)
   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:126)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:534)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:994)
   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1105)

   at java.lang.Thread.run(Thread.java:534)

If I use the %@ page errorPage ..., the tiles bloc which fails is 
replaced by the content of error.jsp but not the user is not redirected.


Any idea ?

Vladislav Pernin

Vladislav Pernin wrote:

I just found in the 1.2.4 release note that this has been resolved. So 
I'm going to take a look at 1.2.4 migration.


Vladislav Pernin

Vladislav Pernin wrote:


Hi all,

I'm working in an Struts-1.1 tiles environment and I need to be able 
to redirect user on a JSP error page when an errors occurs. I also 
need to send an email, that can be done from the JSP error page or 
from an exception handler.


The global-exceptions declared in the struts-config.xml catch the 
exception that occur in the struts action only.


I also need to catch exception in the JSP, so I try to set an 
error-page in the web.xml, the exception thrown from the 
TableauBord.jsp is not caugth and an ugly A ServletException in 
/jsp/TableauBord.jsp ... is displayed instead of the content of the 
TableauBord.jsp inserted by tiles:insert attribute=corps/ in 
Template.jsp ; the JSP error page error.jsp is not called.


So I try to add a %@ page errorPage=/jsp/error.jsp % in the pages 
Template.jsp and TableauBord.jsp, I got a different behaviour, the 
ServletException ... message went out but the JSP error page has 
still not been called. After some testing, I realised that I could 
put any string in the %@ page errorPage=sdqsdsqdqsdsqd %, no change.


I try to use a standard JSP page, I mean without tiles templating, 
and my JSP error page is called with both solutions (error-page in 
web.xml and directive errorPage in JSP).


Maybe the response is commited before the exception is thrown ?

The web gave me some directions, I tried all of them without any 
success. So if you guys have an idea, it would be great.


Regards,
Vladislav Pernin

--_ 


Template.jsp:_

%@ page contentType=text/html;charset=utf-8 %
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
html
head
html:base /
tiles:importAttribute name=titrePage/
...

body 
div class=toptiles:insert attribute=imagesEntete//div
...
tiles:insert attribute=corps/
...

_TableauBord.jsp :
_JSP page where the error occurs
   
_titles-defs.xml :_

definition name=.MainLayout path=/Template.jsp
   put name=titrePage  value=page.defaut.titre /
   put name=imagesEntete value=/jsp/Entete.jsp /
   put name=corps   value

Re: Struts-1.1 Tiles exception error page

2006-02-01 Thread Laurie Harper
Well, assuming the IllegalStateException is complaining about not being 
able to forward after the response has been committed or something 
similar, the problem is that (at least some of) the response has already 
been sent when the error occurs.


You may be able to work around that by (a) making sure you use 
flush=false everywhere and (b) increasing the size of the response buffer.


L.

Vladislav Pernin wrote:
I try to migrate to Struts 1.2.8, the ServletException ... message is 
not displayed any more.


Problem is that if I use the error-page of the web.xml, I got the 
following exception :
2006-02-01 18:58:27 ErrorDispatcherValve[localhost]: Exception 
Processing ErrorPage[exceptionType=java.lang.Throwable, 
location=/error.jsp]
java.lang.IllegalStateException: Impossible de remettre ? z?ro apr?s que 
la r?ponse ait ?t? envoy?e
   at 
org.apache.catalina.connector.ResponseBase.reset(ResponseBase.java:742)
   at 
org.apache.catalina.connector.HttpResponseBase.reset(HttpResponseBase.java:765) 

   at 
org.apache.catalina.connector.http.HttpResponseImpl.reset(HttpResponseImpl.java:156) 

   at 
org.apache.catalina.connector.HttpResponseBase.reset(HttpResponseBase.java:326) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:364) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.throwable(ErrorDispatcherValve.java:209) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:126) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:534)
   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433)
   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:994) 

   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1105) 


   at java.lang.Thread.run(Thread.java:534)

If I use the %@ page errorPage ..., the tiles bloc which fails is 
replaced by the content of error.jsp but not the user is not redirected.


Any idea ?

Vladislav Pernin

Vladislav Pernin wrote:

I just found in the 1.2.4 release note that this has been resolved. So 
I'm going to take a look at 1.2.4 migration.


Vladislav Pernin

Vladislav Pernin wrote:


Hi all,

I'm working in an Struts-1.1 tiles environment and I need to be able 
to redirect user on a JSP error page when an errors occurs. I also 
need to send an email, that can be done from the JSP error page or 
from an exception handler.


The global-exceptions declared in the struts-config.xml catch the 
exception that occur in the struts action only.


I also need to catch exception in the JSP, so I try to set an 
error-page in the web.xml, the exception thrown from the 
TableauBord.jsp is not caugth and an ugly A ServletException in 
/jsp/TableauBord.jsp ... is displayed instead of the content of the 
TableauBord.jsp inserted by tiles:insert attribute=corps/ in 
Template.jsp ; the JSP error page error.jsp is not called.


So I try to add a %@ page errorPage=/jsp/error.jsp % in the pages 
Template.jsp and TableauBord.jsp, I got a different behaviour, the 
ServletException ... message went out but the JSP error page has 
still not been called. After some testing, I realised that I could 
put any string in the %@ page errorPage=sdqsdsqdqsdsqd %, no change.


I try to use a standard JSP page, I mean without tiles templating, 
and my JSP error page is called with both solutions (error-page in 
web.xml and directive errorPage in JSP).


Maybe the response is commited before the exception is thrown ?

The web gave me some directions, I tried all of them without any 
success. So if you guys have an idea, it would be great.


Regards,
Vladislav Pernin

--_ 


Template.jsp:_

%@ page contentType=text/html;charset=utf-8 %
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean

Re: Struts-1.1 Tiles exception error page

2006-02-01 Thread Vladislav Pernin
You mean tiles:insert attribute=xxx flush=false / or %@ page 
autoFlush=false ... buffer=64kb, or both ?


I do not really have an idea what could be a reasonable value for buffer.

Vlad


Laurie Harper a écrit :

Well, assuming the IllegalStateException is complaining about not 
being able to forward after the response has been committed or 
something similar, the problem is that (at least some of) the response 
has already been sent when the error occurs.


You may be able to work around that by (a) making sure you use 
flush=false everywhere and (b) increasing the size of the response 
buffer.


L.

Vladislav Pernin wrote:

I try to migrate to Struts 1.2.8, the ServletException ... message 
is not displayed any more.


Problem is that if I use the error-page of the web.xml, I got the 
following exception :
2006-02-01 18:58:27 ErrorDispatcherValve[localhost]: Exception 
Processing ErrorPage[exceptionType=java.lang.Throwable, 
location=/error.jsp]
java.lang.IllegalStateException: Impossible de remettre ? z?ro apr?s 
que la r?ponse ait ?t? envoy?e
   at 
org.apache.catalina.connector.ResponseBase.reset(ResponseBase.java:742)
   at 
org.apache.catalina.connector.HttpResponseBase.reset(HttpResponseBase.java:765) 

   at 
org.apache.catalina.connector.http.HttpResponseImpl.reset(HttpResponseImpl.java:156) 

   at 
org.apache.catalina.connector.HttpResponseBase.reset(HttpResponseBase.java:326) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatcherValve.java:364) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.throwable(ErrorDispatcherValve.java:209) 

   at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:126) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:116) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:534) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:127) 

   at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596) 

   at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:433) 

   at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:948)
   at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:994) 

   at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1105) 


   at java.lang.Thread.run(Thread.java:534)

If I use the %@ page errorPage ..., the tiles bloc which fails is 
replaced by the content of error.jsp but not the user is not redirected.


Any idea ?

Vladislav Pernin

Vladislav Pernin wrote:

I just found in the 1.2.4 release note that this has been resolved. 
So I'm going to take a look at 1.2.4 migration.


Vladislav Pernin

Vladislav Pernin wrote:


Hi all,

I'm working in an Struts-1.1 tiles environment and I need to be 
able to redirect user on a JSP error page when an errors occurs. I 
also need to send an email, that can be done from the JSP error 
page or from an exception handler.


The global-exceptions declared in the struts-config.xml catch the 
exception that occur in the struts action only.


I also need to catch exception in the JSP, so I try to set an 
error-page in the web.xml, the exception thrown from the 
TableauBord.jsp is not caugth and an ugly A ServletException in 
/jsp/TableauBord.jsp ... is displayed instead of the content of 
the TableauBord.jsp inserted by tiles:insert attribute=corps/ 
in Template.jsp ; the JSP error page error.jsp is not called.


So I try to add a %@ page errorPage=/jsp/error.jsp % in the 
pages Template.jsp and TableauBord.jsp, I got a different 
behaviour, the ServletException ... message went out but the JSP 
error page has still not been called. After some testing, I 
realised that I could put any string in the %@ page 
errorPage=sdqsdsqdqsdsqd %, no change.


I try to use a standard JSP page, I mean without tiles templating, 
and my JSP error page is called with both solutions (error-page in 
web.xml and directive errorPage in JSP).


Maybe the response is commited before the exception is thrown ?

The web gave me some directions, I tried all of them without any 
success. So if you guys have an idea, it would be great.


Regards,
Vladislav Pernin

--_ 


Template.jsp

Struts-1.1 Tiles exception error page

2006-01-31 Thread Vladislav Pernin

Hi all,

I'm working in an Struts-1.1 tiles environment and I need to be able to 
redirect user on a JSP error page when an errors occurs. I also need to 
send an email, that can be done from the JSP error page or from an 
exception handler.


The global-exceptions declared in the struts-config.xml catch the 
exception that occur in the struts action only.


I also need to catch exception in the JSP, so I try to set an error-page 
in the web.xml, the exception thrown from the TableauBord.jsp is not 
caugth and an ugly A ServletException in /jsp/TableauBord.jsp ... is 
displayed instead of the content of the TableauBord.jsp inserted by 
tiles:insert attribute=corps/ in Template.jsp ; the JSP error page 
error.jsp is not called.


So I try to add a %@ page errorPage=/jsp/error.jsp % in the pages 
Template.jsp and TableauBord.jsp, I got a different behaviour, the 
ServletException ... message went out but the JSP error page has still 
not been called. After some testing, I realised that I could put any 
string in the %@ page errorPage=sdqsdsqdqsdsqd %, no change.


I try to use a standard JSP page, I mean without tiles templating, and 
my JSP error page is called with both solutions (error-page in web.xml 
and directive errorPage in JSP).


Maybe the response is commited before the exception is thrown ?

The web gave me some directions, I tried all of them without any 
success. So if you guys have an idea, it would be great.


Regards,
Vladislav Pernin

--_
Template.jsp:_

%@ page contentType=text/html;charset=utf-8 %
%@ taglib uri=/WEB-INF/struts-tiles.tld prefix=tiles %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
%@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
	
html

head
html:base /
tiles:importAttribute name=titrePage/
...

body 
div class=toptiles:insert attribute=imagesEntete//div
...
tiles:insert attribute=corps/
...

_TableauBord.jsp :
_JSP page where the error occurs


_titles-defs.xml :_
definition name=.MainLayout path=/Template.jsp
   put name=titrePage  value=page.defaut.titre /
   put name=imagesEntete value=/jsp/Entete.jsp /
   put name=corps   value=corps /
   /definition
definition name=.TableauBord extends=.MainLayout
put name=corps value=/jsp/TableauBord.jsp/  
/definition


_struts-config.xml :_
...
global-exceptions
exception key=page.error.key
type=java.lang.Exception
path=/jsp/error.jsp
handler=xxx.yyy.ExceptionHandler /
/global-exceptions
...

_web.xml :_
error-page
exception-typejava.lang.Exception/exception-type
location/jsp/error.jsp/location
/error-page


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



pitfalls when moving from Tomcat 5.0 to 5.5 (Struts 1.1)?

2006-01-06 Thread Holger Stratmann

Hello everybody,

I have a Struts 1.1 application running in Tomcat 5.0.

I THINK the transition to Tomcat 5.5 should be smooth, as
a) the struts part should work pretty much in different Tomcats?
b) Tomcat 5.0 to 5.5 is only a minor release, so it should be very 
compatible?


However, I have various problems :-((

Both Tomcats are out of the box with only this one webapp deployed.
In Tomcat 5.5, I get
*
Cannot find message resources under key org.apache.struts.action.MESSAGE 
Tomcat 5.5

*

After a bit of research, this seems to be related to versions of
commons-digester.jar
commons-beanutils.jar

I copied them from Tomcat 5 to my WEB-INF/lib, but I'm still confused 
about this (I did have those jar files in my lib, just different 
versions): Can anybody tell me what exactly the problem is and which 
versions I must or mustn't use?


Now the start page works ok, but when trying to access one of my 
modules, I still get a similar error:


javax.servlet.ServletException: Missing message for key title

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)

org.apache.jsp.admin.index_jsp._jspService(org.apache.jsp.admin.index_jsp:659)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

*root cause*

javax.servlet.jsp.JspException: Missing message for key title
org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:297)

org.apache.jsp.admin.index_jsp._jspx_meth_bean_message_0(org.apache.jsp.admin.index_jsp:693)

org.apache.jsp.admin.index_jsp._jspService(org.apache.jsp.admin.index_jsp:205)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

The only help I could find on the web said somthing about the resource 
declaration in web.xml.
I use different resource files for my modules and want to keep it that way!
The resources are defined in the struts-config-[module].xml like this:
   message-resources parameter=resources.admin/

I checked all config files and they are all valid XML.

Can anybody help me find and fix this?

Thanks in advance,

Holger


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



Struts 1.1 and Validation

2005-10-28 Thread April Francis
On Struts 1.1, does the html:cancel tag work?

Example:
If I click on the cancel button below, will validation be ignored?

html:cancel onClick=bCancel=true;
bean:message./
html:cancel

I have put the above in my jsp, but the struts validation still runs when I use 
the cancel button.  I'm thinking maybe struts 1.1 doesn't have the necessary 
pieces in place  If so, then how can I handle a cancel?

thank you,
April


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



Re: Struts 1.1 and Validation

2005-10-28 Thread Martin Gainty

using html:cancel bypasses form bean validate method
http://struts.apache.org/struts-taglib/tagreference-struts-html.html#cancelHTH- 
Original Message - 
From: April Francis [EMAIL PROTECTED]

To: user@struts.apache.org
Sent: Friday, October 28, 2005 12:30 PM
Subject: Struts 1.1 and Validation



On Struts 1.1, does the html:cancel tag work?

Example:
If I click on the cancel button below, will validation be ignored?

html:cancel onClick=bCancel=true;
bean:message./
html:cancel

I have put the above in my jsp, but the struts validation still runs when 
I use
the cancel button.  I'm thinking maybe struts 1.1 doesn't have the 
necessary

pieces in place  If so, then how can I handle a cancel?

thank you,
April


-
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: Struts 1.1 and Validation

2005-10-28 Thread pantichd
Swt!

We're still on Struts 1.0.2 (in process of upgrading to 1.2.7) and you
wouldn't believe the gyrations we've had to go through to get that
functionality.

Thanks!




   
 Martin Gainty   
 [EMAIL PROTECTED] 
 com   To 
   Struts Users Mailing List 
 10/28/2005 02:52  user@struts.apache.org
 PM cc 
   
   Subject 
 Please respond to Re:  Struts 1.1 and Validation  
   Struts Users   
   Mailing List   
 [EMAIL PROTECTED] 
  he.org  
   
   




using html:cancel bypasses form bean validate method
http://struts.apache.org/struts-taglib/tagreference-struts-html.html#cancelHTH-

Original Message -
From: April Francis [EMAIL PROTECTED]
To: user@struts.apache.org
Sent: Friday, October 28, 2005 12:30 PM
Subject: Struts 1.1 and Validation


 On Struts 1.1, does the html:cancel tag work?

 Example:
 If I click on the cancel button below, will validation be ignored?

 html:cancel onClick=bCancel=true;
 bean:message./
 html:cancel

 I have put the above in my jsp, but the struts validation still runs when

 I use
 the cancel button.  I'm thinking maybe struts 1.1 doesn't have the
 necessary
 pieces in place  If so, then how can I handle a cancel?

 thank you,
 April


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


-
The information contained in this message is intended only for the
personal and confidential use of the recipient(s) named above. If the
reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is
strictly prohibited. If you have received this communication in error,
please notify us immediately, and delete the original message.




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



Re: Struts 1.1 and Validation

2005-10-28 Thread Martin Gainty

Good Afternoon April

First instinct is to put in some switch logic in your Actions perform
But then again I asked why is your cancel calling the wrong Action perform 
method???
The cancel should forward to it's own Action class say CancelAction perform 
method()


Since a page is worth a 1000 words I would urge your to Take a look at 
Struts validation example available called Mailreader

http://luminal.gotdns.com/struts-mailreader/Tour.do
where the Initial screen login.jsp contains
html:form action=/SubmitLogon focus=username
onsubmit=return validateLogonForm(this);
table border=0 width=100%

Struts-config.xml contains the path /SubmitLogon which matches the parameter 
for the form action from login.jsp


actionpath=/SubmitLogon
 type=org.apache.struts.webapp.example.LogonAction
 name=LogonForm
scope=request
input=logon
exception
  key=expired.password
 
type=org.apache.struts.webapp.example.ExpiredPasswordException
 path=/ExpiredPassword.do/
  /action

The name LogonForm of our LogonAction class contains the form-bean 
definition for LogonForm

Any validator will do you do not necessarily need a 'Dyna'Validator Form
form-bean   name=LogonForm
type=org.apache.struts.validator.DynaValidatorForm
form-property name=username type=java.lang.String/
form-property name=password type=java.lang.String/
/form-bean

The LogonForm identifies the criteria used for the validation-rules.xml
form name=LogonForm

   field property=username
   depends=required
   arg0   key=prompt.username/
   /field

   field property=password
   depends=required, minlength,maxlength
   arg0   key=prompt.password/
   arg1   key=${var:minlength} name=minlength
  resource=false/
   arg2   key=${var:maxlength} name=maxlength
  resource=false/
   var
   var-namemaxlength/var-name
   var-value16/var-value
   /var
   var
   var-nameminlength/var-name
   var-value3/var-value
   /var
   /field

/form

You will notice that Never at any time is cancel  or reset forwarding to 
LogonAction

I hope this helps you..
Martin-

- Original Message - 
From: April Francis [EMAIL PROTECTED]

To: user@struts.apache.org
Sent: Friday, October 28, 2005 4:01 PM
Subject: Re: Struts 1.1 and Validation




Martin Gainty mgainty at hotmail.com writes:



using html:cancel bypasses form bean validate method
http://struts.apache.org/struts-taglib/tagreference-struts-
html.html#cancelHTH- 
Original Message - 
From: April Francis afrancis at bcbsok.com

To: user at struts.apache.org
Sent: Friday, October 28, 2005 12:30 PM
Subject: Struts 1.1 and Validation

 On Struts 1.1, does the html:cancel tag work?

 Example:
 If I click on the cancel button below, will validation be ignored?

 html:cancel onClick=bCancel=true;
 bean:message./
 html:cancel

 I have put the above in my jsp, but the struts validation still runs 
 when

 I use
 the cancel button.  I'm thinking maybe struts 1.1 doesn't have the
 necessary
 pieces in place  If so, then how can I handle a cancel?

 thank you,
 April


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






I even have this in my Action class and the validation still won't 
bypass...


if (this.isCancelled(request))
don't do anything, like saving the data

isCancelled is always false even if I click on the cancel button

Is there some piece I'm missing?  I want the cancel button to NOT run 
through
validation...which is what it's suppose to do, but doesn't seem to work 
for

me.  Is there some trick?

One thing I did notice, in the 'Struts In Action' book, it talks about 
having

the 'struts-validator.tld' file (pg 136, chapter 4).  BUT the Struts 1.1
download does not have it.  I've also seen other sites that say it is not
needed.

April


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



Problem XHTML Struts 1.1 amp;

2005-09-30 Thread Thomas Brogaard
Hi

We are changing our site to XHTML but we have a problem whith html:link.

When we are validating our site it is not valid because html:link use  
instead of amp;

Example
?distance=100kmmax=0type=0yearmin=1985

In our jsp page we have placed html:xhtml/ in the top of all out jsp 
pages.

Validator: http://validator.w3.org/

Kind regards

Thomas 




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



Version information for Struts Commons libraries included with Struts 1.1

2005-08-26 Thread Richard Yee
Does anyone know how to determine the versions of the
commons libraries that are included as part of Struts?
Specifically, I need to find out the versions of the
commons libraries that are part of the Struts 1.1
distribution. I am using the display tag library
(www.displaytag.org) and found that it has a
dependency on the 2.0 version commons-lang.jar file.
Struts 1.1 has an earlier version than that and I'd
like to check the versions of the other commons
libraries to see if I need to upgrade to newer
versions of them as well.

Thanks,

Richard




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



Re: Version information for Struts Commons libraries included with Struts 1.1

2005-08-26 Thread Laurie Harper

Richard Yee wrote:

Does anyone know how to determine the versions of the
commons libraries that are included as part of Struts?
Specifically, I need to find out the versions of the
commons libraries that are part of the Struts 1.1
distribution. I am using the display tag library
(www.displaytag.org) and found that it has a
dependency on the 2.0 version commons-lang.jar file.
Struts 1.1 has an earlier version than that and I'd
like to check the versions of the other commons
libraries to see if I need to upgrade to newer
versions of them as well.


You're best bet is to un-jar each library and look at META-INF/MANIFEST.MF 
in each. Often there will be an Implementation-Version property defined 
which will tell you the version of the library. I'm not sure how 
consistently the commons-* libraries supply this (and I've seen at least 
one case where the Implementation-Version was incorrect) so you may need to 
fall back to comparing file sizes against the distribution jars :-( I don't 
know any more reliable approach than that...


L.
--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/


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



Re: Version information for Struts Commons libraries included with Struts 1.1

2005-08-26 Thread Wendy Smoak

From: Richard Yee [EMAIL PROTECTED]


Does anyone know how to determine the versions of the
commons libraries that are included as part of Struts?
Specifically, I need to find out the versions of the
commons libraries that are part of the Struts 1.1
distribution. 


Scroll down to the What's Included section of the release notes:
  http://struts.apache.org/userGuide/release-notes-1.1.html

--
Wendy Smoak

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



Re: Version information for Struts Commons libraries included with Struts 1.1

2005-08-26 Thread Laurie Harper

Wendy Smoak wrote:

From: Richard Yee [EMAIL PROTECTED]

Does anyone know how to determine the versions of the
commons libraries that are included as part of Struts?
Specifically, I need to find out the versions of the
commons libraries that are part of the Struts 1.1
distribution. 


Scroll down to the What's Included section of the release notes:
  http://struts.apache.org/userGuide/release-notes-1.1.html


Doh! That's certainly a lot easier! :-) Thanks for the pointer Wendy.

L.
--
Laurie Harper
Open Source advocate, Java geek: http://www.holoweb.net/laurie
Founder, Zotech Software: http://www.zotechsoftware.com/


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



[PARTIALLY SOLVED] RE: handleConfigException in Struts 1.1

2005-08-24 Thread Pilgrim, Peter
FYI / HTHSB

Looks like it is the dreaded application server ClassLoader issue 
again and this episode perfectly illustrates the best practice for logging
in Enterprise business software and for framework writers.

http://www.geocities.com/Colosseum/Field/7217/SW/struts/errors.html

It is appears the build environment was changed under the project ANT 
config. An ``ActionForm'' type was included in the EAR and of course
in the WAR portion. 

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


 -Original Message-
 From: Pilgrim, Peter [mailto:[EMAIL PROTECTED]
 Sent: 23 August 2005 09:51
 To: Struts User Apache (E-mail)
 Subject: handleConfigException in Struts 1.1
 
 
 (I still need the source code for Struts 1.1)
 
 My real problem is a Struts 1.1 application ( my client does 
 not want to upgrade 1.2. )
 deployed on a WebLogic 8.1 Server. The application fails to 
 deploy because
 of a parsing error. Has anyone come across this type of stack 
 trace before?
 
 
 
 22-Aug-2005 17:57:53 o'clock BST Error HTTP 
 lnl45a-4102 asds1 ExecuteThread: '1' for queue: 
 'weblogic.kernel.System' WLS Kernel  BEA-1012
 16 Servlet: action failed to preload on startup in Web 
 application: asds.
 javax.servlet.UnavailableException: Parsing error processing 
 resource path
 at 
 org.apache.struts.action.ActionServlet.handleConfigException(A
ctionServlet.java:1035)
 at 
 org.apache.struts.action.ActionServlet.parseModuleConfigFile(A
ctionServlet.java:1014)
 at 
 org.apache.struts.action.ActionServlet.initModuleConfig(Action
Servlet.java:955)
 at 
 org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at 
 weblogic.servlet.internal.ServletStubImpl$ServletInitAction.ru
 n(ServletStubImpl.java:993)
 at 
 weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authe
nticatedSubject.java:317)
 at 
 weblogic.security.service.SecurityManager.runAs(SecurityManage
 r.java:118)
 at 
 weblogic.servlet.internal.ServletStubImpl.createServlet(Servle
tStubImpl.java:869)
 at 
 weblogic.servlet.internal.ServletStubImpl.createInstances(Serv
letStubImpl.java:848)
 at 
 weblogic.servlet.internal.ServletStubImpl.prepareServlet(Servl
etStubImpl.java:787)
 at 
 weblogic.servlet.internal.WebAppServletContext.preloadServlet(
WebAppServletContext.java:3260)
 at 
 weblogic.servlet.internal.WebAppServletContext.preloadServlets
 (WebAppServletContext.java:3205)
 at 
 weblogic.servlet.internal.WebAppServletContext.preloadResource
 s(WebAppServletContext.java:3182)
 at 
 weblogic.servlet.internal.WebAppServletContext.setStarted(WebA
ppServletContext.java:5663)
 at 
 weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869)
 at 
 weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationCo
ntainer.java:2022)
 at 
 weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicatio
nContainer.java:2063)
 at 
 weblogic.management.deploy.slave.SlaveDeployer$ComponentActiva
teTask.activateContainer(SlaveDeployer.java:2592)
 at 
 weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.do
 Commit(SlaveDeployer.java:2515)
 at 
 weblogic.management.deploy.slave.SlaveDeployer$Task.commit(Sla
veDeployer.java:2317)
 at 
 weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoC
 ommit(SlaveDeployer.java:2399)
 at 
 weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(Sl
aveDeployer.java:2311)
 at 
 weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.pr
 epare(SlaveDeployer.java:2479)
 at 
 weblogic.management.deploy.slave.SlaveDeployer.processPrepareT
 ask(SlaveDeployer.java:798)
 at 
 weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(Sl
aveDeployer.java:507)
 at 
 weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(S
laveDeployer.java:465)
 at 
 weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCall
backHandler.java:25)
 at 
 weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
 
 
 The struts-config.xml appears to be flawless, but it is better to have
 multiple eyes beating my two very experienced eyes. I just don't see
 any wrong in the struts-config in the simplest cut down version 
 and the bean classes do exist in the right place. Yes, I 
 started a process
 of elimination investigation to isolate the failure. Is it 
 the XML? Struts? 
 or WLS?
 
 ?xml version=1.0 encoding=UTF-8?
 
 !DOCTYPE struts-config PUBLIC
   -//Apache Software Foundation//DTD Struts 
 Configuration 1.1//EN
   
http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;

struts-config

handleConfigException in Struts 1.1

2005-08-23 Thread Pilgrim, Peter
(I still need the source code for Struts 1.1)

My real problem is a Struts 1.1 application ( my client does not want to 
upgrade 1.2. )
deployed on a WebLogic 8.1 Server. The application fails to deploy because
of a parsing error. Has anyone come across this type of stack trace before?



22-Aug-2005 17:57:53 o'clock BST Error HTTP lnl45a-4102 asds1 
ExecuteThread: '1' for queue: 'weblogic.kernel.System' WLS Kernel  
BEA-1012
16 Servlet: action failed to preload on startup in Web application: asds.
javax.servlet.UnavailableException: Parsing error processing resource path
at 
org.apache.struts.action.ActionServlet.handleConfigException(ActionServlet.java:1035)
at 
org.apache.struts.action.ActionServlet.parseModuleConfigFile(ActionServlet.java:1014)
at 
org.apache.struts.action.ActionServlet.initModuleConfig(ActionServlet.java:955)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at 
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at 
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)
at 
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
at 
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
at 
weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:3260)
at 
weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebAppServletContext.java:3205)
at 
weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:3182)
at 
weblogic.servlet.internal.WebAppServletContext.setStarted(WebAppServletContext.java:5663)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:869)
at 
weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:2022)
at 
weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:2063)
at 
weblogic.management.deploy.slave.SlaveDeployer$ComponentActivateTask.activateContainer(SlaveDeployer.java:2592)
at 
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.doCommit(SlaveDeployer.java:2515)
at 
weblogic.management.deploy.slave.SlaveDeployer$Task.commit(SlaveDeployer.java:2317)
at 
weblogic.management.deploy.slave.SlaveDeployer$Task.checkAutoCommit(SlaveDeployer.java:2399)
at 
weblogic.management.deploy.slave.SlaveDeployer$Task.prepare(SlaveDeployer.java:2311)
at 
weblogic.management.deploy.slave.SlaveDeployer$ActivateTask.prepare(SlaveDeployer.java:2479)
at 
weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:798)
at 
weblogic.management.deploy.slave.SlaveDeployer.prepareDelta(SlaveDeployer.java:507)
at 
weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:465)
at 
weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:25)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)


The struts-config.xml appears to be flawless, but it is better to have
multiple eyes beating my two very experienced eyes. I just don't see
any wrong in the struts-config in the simplest cut down version 
and the bean classes do exist in the right place. Yes, I started a process
of elimination investigation to isolate the failure. Is it the XML? Struts? 
or WLS?

?xml version=1.0 encoding=UTF-8?

!DOCTYPE struts-config PUBLIC
  -//Apache Software Foundation//DTD Struts Configuration 1.1//EN
  http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd;

struts-config

  !-- == Form Bean Definitions === --

  form-beans
form-bean name=NavigateForm type=com.csfb.asds.ui.form.NavigateForm / 
  /form-beans

  !-- == Global Forward Definitions == --

  global-forwards
forward name=blank path=/secured/index.jsp redirect=true /
  /global-forwards

  !-- == Action Mapping Definitions == --

/struts-config




The b**t**d thing is that WLS and Struts do not seem to obey Log4j.properties
setting I ordered ``log4j.logger.org.apache.struts = DEBUG''. I would expect
a very verbose WebLogic application server log files, but it doesn't do it
for me. I remember doing it in JBoss, Oracle AS 9.0 and Tomcat 4.1.24 circa 
2003! 
How else do you get Struts 1.1 to dump shed load of debugger output (again)? 

Failing that I want to hack the 1.1 code to show the exception stacktrace(s). 
I believe

Re: [URGENT] Struts 1.1 Source Download

2005-08-23 Thread Nicolas De Loof


I've put it on
http://loof.free.fr/jakarta-struts-1.1-src.zip

Hope it will help you.

Nico.

Pilgrim, Peter a écrit :


Can anyone tell me where I can download the full Struts 1.1 source code
other than http://archive.apache.org/dist/struts/ which is being blocked 
by my clients corporate security ?



--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom

Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications disclaimer: 


http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


-
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 Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
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]



RE: [URGENT] Struts 1.1 Source Download

2005-08-23 Thread Pilgrim, Peter

Thanks Nicolas. Tried downloading from your site, but something in the 
ZIP is triggering the down security here. Nothing to do with the URL 
location more probably I caught the bad side of the filter hashing 
algorithm.

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


 -Original Message-
 From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
 Sent: 23 August 2005 09:53
 To: Struts Users Mailing List
 Subject: Re: [URGENT] Struts 1.1 Source Download
 
 
 
 I've put it on
 http://loof.free.fr/jakarta-struts-1.1-src.zip
 
 Hope it will help you.
 
 Nico.
 
 Pilgrim, Peter a écrit :
 
 Can anyone tell me where I can download the full Struts 1.1 
 source code
 other than http://archive.apache.org/dist/struts/ which is 
 being blocked 
 by my clients corporate security ?
 
 
 --
 Peter Pilgrim :: J2EE Software Development
 Operations/IT - Credit Suisse First Boston, 
 Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
 Tel: +44-(0)207-883-4497
 
 =
 =
 Please access the attached hyperlink for an important 
 electronic communications disclaimer: 
 
 http://www.csfb.com/legal_terms/disclaimer_external_email.shtml
 
 =
 =
 
 
 -
 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 Capgemini Group. It 
 is intended only for the person to whom it is addressed. If 
 you are not the intended recipient,  you are not authorized 
 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]
 
 

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



Re: [URGENT] Struts 1.1 Source Download

2005-08-23 Thread Emmanouil Batsis


Long shot but have you tried using HTTPS?

Pilgrim, Peter wrote:

Thanks Nicolas. Tried downloading from your site, but something in the 
ZIP is triggering the down security here. Nothing to do with the URL 
location more probably I caught the bad side of the filter hashing 
algorithm.


--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom

Tel: +44-(0)207-883-4497


 


-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: 23 August 2005 09:53
To: Struts Users Mailing List
Subject: Re: [URGENT] Struts 1.1 Source Download



I've put it on
http://loof.free.fr/jakarta-struts-1.1-src.zip

Hope it will help you.

Nico.

Pilgrim, Peter a écrit :

   

Can anyone tell me where I can download the full Struts 1.1 
 


source code
   

other than http://archive.apache.org/dist/struts/ which is 
 

being blocked 
   


by my clients corporate security ?


--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom

Tel: +44-(0)207-883-4497

=
 


=
   

Please access the attached hyperlink for an important 
 

electronic communications disclaimer: 
   


http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

=
 


=
   


-
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 Capgemini Group. It 
is intended only for the person to whom it is addressed. If 
you are not the intended recipient,  you are not authorized 
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]


   



==
Please access the attached hyperlink for an important electronic communications disclaimer: 


http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


-
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: [URGENT] Struts 1.1 Source Download

2005-08-23 Thread Emmanouil Batsis


Right, no dice. Perhaps one should email the archive to you.

Emmanouil Batsis wrote:


Long shot but have you tried using HTTPS?

Pilgrim, Peter wrote:

Thanks Nicolas. Tried downloading from your site, but something in 
the ZIP is triggering the down security here. Nothing to do with the 
URL location more probably I caught the bad side of the filter 
hashing algorithm.


--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada 
Square, London E14 4QJ, United Kingdom

Tel: +44-(0)207-883-4497


 


-Original Message-
From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
Sent: 23 August 2005 09:53
To: Struts Users Mailing List
Subject: Re: [URGENT] Struts 1.1 Source Download



I've put it on
http://loof.free.fr/jakarta-struts-1.1-src.zip

Hope it will help you.

Nico.

Pilgrim, Peter a écrit :

  

Can anyone tell me where I can download the full Struts 1.1 


source code
  

other than http://archive.apache.org/dist/struts/ which is 


being blocked   


by my clients corporate security ?


--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada 
Square, London E14 4QJ, United Kingdom

Tel: +44-(0)207-883-4497

=



=
  

Please access the attached hyperlink for an important 


electronic communications disclaimer:   


http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

=



=
  


-
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 Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized 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]


  



== 

Please access the attached hyperlink for an important electronic 
communications disclaimer:

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

== 




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



[URGENT] Struts 1.1 Source Download

2005-08-23 Thread Pilgrim, Peter

Can anyone tell me where I can download the full Struts 1.1 source code
other than http://archive.apache.org/dist/struts/ which is being blocked 
by my clients corporate security ?


--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


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



Re: [URGENT] Struts 1.1 Source Download

2005-08-23 Thread Ed Griebel
I've put it on dropload.com for you, retrieval information sent as
private e-mail. (dropload allows a user to send a big file, and
another user can download it once by visiting the website.)

-ed

On 8/23/05, Emmanouil Batsis [EMAIL PROTECTED] wrote:
 
 Right, no dice. Perhaps one should email the archive to you.
 
 Emmanouil Batsis wrote:
 
  Long shot but have you tried using HTTPS?
 
  Pilgrim, Peter wrote:
 
  Thanks Nicolas. Tried downloading from your site, but something in
  the ZIP is triggering the down security here. Nothing to do with the
  URL location more probably I caught the bad side of the filter
  hashing algorithm.
 
  --
  Peter Pilgrim :: J2EE Software Development
  Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada
  Square, London E14 4QJ, United Kingdom
  Tel: +44-(0)207-883-4497
 
 
 
 
  -Original Message-
  From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
  Sent: 23 August 2005 09:53
  To: Struts Users Mailing List
  Subject: Re: [URGENT] Struts 1.1 Source Download
 
 
 
  I've put it on
  http://loof.free.fr/jakarta-struts-1.1-src.zip
 
  Hope it will help you.
 
  Nico.
 
  Pilgrim, Peter a écrit :
 
 
 
  Can anyone tell me where I can download the full Struts 1.1
 
  source code
 
 
  other than http://archive.apache.org/dist/struts/ which is
 
  being blocked
 
  by my clients corporate security ?
 
 
  --
  Peter Pilgrim :: J2EE Software Development
  Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada
  Square, London E14 4QJ, United Kingdom
  Tel: +44-(0)207-883-4497
 
  =
 
 
  =
 
 
  Please access the attached hyperlink for an important
 
  electronic communications disclaimer:
 
  http://www.csfb.com/legal_terms/disclaimer_external_email.shtml
 
  =
 
 
  =
 
 
  -
  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 Capgemini Group. It is
  intended only for the person to whom it is addressed. If you are not
  the intended recipient,  you are not authorized 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]
 
 
 
 
 
  ==
 
  Please access the attached hyperlink for an important electronic
  communications disclaimer:
  http://www.csfb.com/legal_terms/disclaimer_external_email.shtml
 
  ==
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: [URGENT] Struts 1.1 Source Download

2005-08-23 Thread Pilgrim, Peter

That is not the point. The secsoft is triggering on the
contents of the JAR or zip file. In other word said 
corporate software is reading the entire mistakenly
(hash) matching on a word, and saying No way Charlie, out you go.

Anyway I now have the file. Do you remember back in the
days before the Internet? Do you remember the gnu ftpmail?
I once request 12 parts of GNU Emacs source file by email.
Just email with the URL, I mean FTP address, the directory
what you want you to download. The next morning I walked
in the office my Emacs was ready. Deattach them to directory
then run cat emacs*.dta  emacs-1.0.1-src.tar.gz on SunOS. Oh bliss!

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497


 -Original Message-
 From: James Mitchell [mailto:[EMAIL PROTECTED]
 Sent: 23 August 2005 15:15
 To: Struts Users Mailing List
 Subject: Re: [URGENT] Struts 1.1 Source Download
 
 
 You know, you could have just gone here:
 http://archive.apache.org/dist/struts/struts-1.1/
 
 
 --
 James Mitchell
 Software Engineer / Open Source Evangelist
 Consulting / Mentoring / Freelance
 EdgeTech, Inc.
 http://www.edgetechservices.net/
 678.910.8017
 AIM:   jmitchtx
 Yahoo: jmitchtx
 MSN:   [EMAIL PROTECTED]
 Skype: jmitchtx
 
 
 
 On Aug 23, 2005, at 10:10 AM, Ed Griebel wrote:
 
  I've put it on dropload.com for you, retrieval information sent as
  private e-mail. (dropload allows a user to send a big file, and
  another user can download it once by visiting the website.)
 
  -ed
 
  On 8/23/05, Emmanouil Batsis [EMAIL PROTECTED] wrote:
 
 
  Right, no dice. Perhaps one should email the archive to you.
 
  Emmanouil Batsis wrote:
 
 
  Long shot but have you tried using HTTPS?
 
  Pilgrim, Peter wrote:
 
 
  Thanks Nicolas. Tried downloading from your site, but 
 something in
  the ZIP is triggering the down security here. Nothing to 
 do with  
  the
  URL location more probably I caught the bad side of the filter
  hashing algorithm.
 
  --
  Peter Pilgrim :: J2EE Software Development
  Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada
  Square, London E14 4QJ, United Kingdom
  Tel: +44-(0)207-883-4497
 
 
 
 
 
  -Original Message-
  From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
  Sent: 23 August 2005 09:53
  To: Struts Users Mailing List
  Subject: Re: [URGENT] Struts 1.1 Source Download
 
 
 
  I've put it on
  http://loof.free.fr/jakarta-struts-1.1-src.zip
 
  Hope it will help you.
 
  Nico.
 
  Pilgrim, Peter a écrit :
 
 
 
 
  Can anyone tell me where I can download the full Struts 1.1
 
 
  source code
 
 
 
  other than http://archive.apache.org/dist/struts/ which is
 
 
  being blocked
 
 
  by my clients corporate security ?
 
 
  --
  Peter Pilgrim :: J2EE Software Development
  Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada
  Square, London E14 4QJ, United Kingdom
  Tel: +44-(0)207-883-4497
 
  =
 
 
 
  =
 
 
 
  Please access the attached hyperlink for an important
 
 
  electronic communications disclaimer:
 
 
  http://www.csfb.com/legal_terms/disclaimer_external_email.shtml
 
  =
 
 
 
  =
 
 
 
  
 - 
  
  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 Capgemini Group. It is
  intended only for the person to whom it is addressed. If you  
  are not
  the intended recipient,  you are not authorized 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]
 
 
 
 
 
 
  
 === 
  ===
 
  Please access the attached hyperlink for an important electronic
  communications disclaimer:
  http://www.csfb.com/legal_terms/disclaimer_external_email.shtml
 
  
 === 
  ===
 
 
 
  
 --- 
  --
  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: [URGENT] Struts 1.1 Source Download

2005-08-23 Thread Martin Gainty
Yes..Most corp environments have big brother software to make sure you're 
not 'contaminating' their environment

Personally I like bringing my laptop for that reason
Martin
- Original Message - 
From: Pilgrim, Peter [EMAIL PROTECTED]

To: 'Struts Users Mailing List' user@struts.apache.org
Sent: Tuesday, August 23, 2005 10:30 AM
Subject: RE: [URGENT] Struts 1.1 Source Download



That is not the point. The secsoft is triggering on the
contents of the JAR or zip file. In other word said
corporate software is reading the entire mistakenly
(hash) matching on a word, and saying No way Charlie, out you go.

Anyway I now have the file. Do you remember back in the
days before the Internet? Do you remember the gnu ftpmail?
I once request 12 parts of GNU Emacs source file by email.
Just email with the URL, I mean FTP address, the directory
what you want you to download. The next morning I walked
in the office my Emacs was ready. Deattach them to directory
then run cat emacs*.dta  emacs-1.0.1-src.tar.gz on SunOS. Oh bliss!

--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston,
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497



-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]
Sent: 23 August 2005 15:15
To: Struts Users Mailing List
Subject: Re: [URGENT] Struts 1.1 Source Download


You know, you could have just gone here:
http://archive.apache.org/dist/struts/struts-1.1/


--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM:   jmitchtx
Yahoo: jmitchtx
MSN:   [EMAIL PROTECTED]
Skype: jmitchtx



On Aug 23, 2005, at 10:10 AM, Ed Griebel wrote:

 I've put it on dropload.com for you, retrieval information sent as
 private e-mail. (dropload allows a user to send a big file, and
 another user can download it once by visiting the website.)

 -ed

 On 8/23/05, Emmanouil Batsis [EMAIL PROTECTED] wrote:


 Right, no dice. Perhaps one should email the archive to you.

 Emmanouil Batsis wrote:


 Long shot but have you tried using HTTPS?

 Pilgrim, Peter wrote:


 Thanks Nicolas. Tried downloading from your site, but
something in
 the ZIP is triggering the down security here. Nothing to
do with
 the
 URL location more probably I caught the bad side of the filter
 hashing algorithm.

 --
 Peter Pilgrim :: J2EE Software Development
 Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada
 Square, London E14 4QJ, United Kingdom
 Tel: +44-(0)207-883-4497





 -Original Message-
 From: Nicolas De Loof [mailto:[EMAIL PROTECTED]
 Sent: 23 August 2005 09:53
 To: Struts Users Mailing List
 Subject: Re: [URGENT] Struts 1.1 Source Download



 I've put it on
 http://loof.free.fr/jakarta-struts-1.1-src.zip

 Hope it will help you.

 Nico.

 Pilgrim, Peter a écrit :




 Can anyone tell me where I can download the full Struts 1.1


 source code



 other than http://archive.apache.org/dist/struts/ which is


 being blocked


 by my clients corporate security ?


 --
 Peter Pilgrim :: J2EE Software Development
 Operations/IT - Credit Suisse First Boston, Floor 15, 5 Canada
 Square, London E14 4QJ, United Kingdom
 Tel: +44-(0)207-883-4497

 =



 =



 Please access the attached hyperlink for an important


 electronic communications disclaimer:


 http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

 =



 =




- 
 

 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 Capgemini Group. It is
 intended only for the person to whom it is addressed. If you
 are not
 the intended recipient,  you are not authorized 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]







===
 ===

 Please access the attached hyperlink for an important electronic
 communications disclaimer:
 http://www.csfb.com/legal_terms/disclaimer_external_email.shtml


===
 ===




--- 
 --

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

problem with retaining form bean values - Struts 1.1

2005-08-05 Thread Shyam Anand
Hi,

I'm using Struts 1.1 for my web application. I have a
problem with retaining my form bean values in the
following scenario:
I have a JSP page with portions displayed in sequence
based on user action. I have 3 buttons on the page and
parts of the JSP page are displayed when the user
clicks on each button.I use DispatchAction for this
purpose and a single form bean for the JSP.

The following is the sequence of user interactions on
the page.

1.Initially the user clicks a link to get to the JSP -
get method of DispatchAction is called, and the
first part of the JSP page is displayed.

2. The user enters some values and clicks a button to
look up information. This invokes the lookup method
of the DispatchAction class, and subsequently, the
results are displayed on the JSP, along with other
input fields.

3. The user enters some more details on the JSP and
clicks a Continue button, which invokes the
continue method of the DispatchAction class. Based
on the data entered, some more information/input
fields are displayed on the JSP.

4. Finally, the user enters the remaining fields and
submits the form.

The issue I'm having is that the values entered in
steps 1 and 2 are not retained in the form bean when
the page is submitted or if there is a validation
error.I have used session scope for my form bean and
it didn't help.

Could somebody tell me what I'm doing wrong. Has
anybody come across such a scenario ? If so, what is
the best way to accomplish this task?

Any help would be greatly appreciated.

Thanks,
Shyam




Start your day with Yahoo! - make it your home page 
http://www.yahoo.com/r/hs 
 

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



RE: Marking fields having errors in struts 1.1

2005-07-04 Thread Kalra, Ashwani

Thanks Wendy, But I am working withd 1.1 , I think I have to customize
the tags of 1.1,
Or can I use struts 1.2 html tags in 1.1?
Has any one faced this situation?

-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 05, 2005 9:50 AM
To: Struts Users Mailing List
Subject: Re: Marking fields having errors

From: Kalra, Ashwani [EMAIL PROTECTED]

 I want to highlight the field labels or show some marker text like
 '!', Not the error messages

The form element tags (since 1.2.5) have 'errorKey' 'errorStyle'
'errorStyleClass' and 'errorStyleId' attributes.  Some combination of
those should do what you want.

http://struts.apache.org/userGuide/struts-html.html#text

--
Wendy Smoak



-
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 Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
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]



Re: from struts 1.1 to struts 1.2.7 on JDev 10 g

2005-06-28 Thread Metin Erksan
hi erol,
 
do not play jdevelopers default struts folder.just add struts-1.2.7 do project 
library as third library and be sure that struts-1.2.7 must be on top of the 
other libraries.
i had tried and it had worked.
 
regards

EROL TEZCAN [EMAIL PROTECTED] wrote:
Hi All,

I am using JDev 10g. Now I want to use struts 1.2.7. Now it works with struts 
1.1

I downloaded struts 1.2.7 and extract it in a temp folder, and copied all files 
to /jdev/jakarta_struts/ folder.

When I want to run my old application(employee), it gives me some of errors 
like that:

Error(2): java.lang.ClassNotFoundException: 
org.apache.struts.taglib.html.MessagesTei
Error(2): Unable to load taghandler class: /WEB-INF/struts-html.tld
Error(3): java.lang.ClassNotFoundException: 
org.apache.struts.taglib.bean.CookieTei
Error(3): Unable to load taghandler class: /WEB-INF/struts-bean.tld

I created a new application, and a new jsp page for testing.
When I want to add a tag from Componennt Palette into jsp page, it adds .

How can I use struts 1.2.7 on JDeveloper10g without any problems?

Any suggestion?

Erol

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail

from struts 1.1 to struts 1.2.7 on JDev 10 g

2005-06-27 Thread EROL TEZCAN
Hi All,
 
I am using JDev 10g. Now I want to use struts 1.2.7. Now it works with struts 
1.1
 
I downloaded struts 1.2.7 and extract it in a temp folder, and copied all files 
to /jdev/jakarta_struts/ folder.
 
When I want to run my old application(employee), it gives me some of errors 
like that:
 
Error(2): java.lang.ClassNotFoundException: 
org.apache.struts.taglib.html.MessagesTei
Error(2): Unable to load taghandler class: /WEB-INF/struts-html.tld
Error(3): java.lang.ClassNotFoundException: 
org.apache.struts.taglib.bean.CookieTei
Error(3): Unable to load taghandler class: /WEB-INF/struts-bean.tld
 
I created a new application, and a new jsp page for testing.
When I want to add a bean:write / tag from Componennt Palette into jsp page, 
it adds bean:null /.
 
How can I use struts 1.2.7 on JDeveloper10g without any problems?
 
Any suggestion?
 
Erol

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Can struts-1.1 support multiple configurations and multiple resources

2005-06-14 Thread Venkat Reddy Valluri
Manfred,
   THanks again for giving clarification. Here I got some solution. I used 
bundle parametre in html:erros bundle=sub/  so that I can find the 
Resources where It was tied to the key sub which is as I already mentioned 
given in struts-sub.xml like below
   
message-resources
  parameter=com.sub.examp.SubResources key=sub
/message-resources
   But again I got some problem with validation files.  Can struts-1.1 support 
multiple validation files? 

Thank you Manfred 
  

--Venkat



-Original Message-
From:   Manfred Wolff [mailto:[EMAIL PROTECTED]
Sent:   Tue 6/14/2005 1:12 AM
To: Struts Users Mailing List
Cc: 
Subject:Re: Can struts-1.1 support multiple configurations and multiple 
resources

--Venkat

Thats the trick. If you set null to false, than *if* a error message is not 
found, the struts framework prints the language and the key, that is not found. 
So it says: You have an error here. So you have an other mistake. It is good 
practice to set null to false in all ressurce bundles, so you can see if 
anything is wrong.


-Manfred

Venkat Reddy Valluri wrote:

Hi Manfred,
   I have given null=false  for my main module struts config file and still 
 the error message is not displayed

 instead it is just dipaying like below
   en.us.error.user.user_name.required. (It is just displaying 
 property but not value)

Thank you very much

--Venkat

  



-Original Message-
From:  Manfred Wolff [mailto:[EMAIL PROTECTED]
Sent:  Mon 6/13/2005 1:47 PM
To:Struts Users Mailing List
Cc:
Subject:   Re: Can struts-1.1 support multiple configurations and multiple 
resources
Venkat

I think you don't have to deal with suffixes (like sub) because struts 
itsselfs concatinate the module in the key, stored into the session. I 
have a little example written for my struts book (only in german) that 
deals with multiple struts config files. You may download it under

http://struts-ge-packt.de/download/code.zip

Because it is no maven project it comes with a lot of libraries.

1st Struts config: (struts-config.xml)
message-resources parameter=MessageResources null=false /

2nd Struts config with Module (struts-modul-confix.xml)
message-resources parameter=MessageModulResources /

It is a struts 1.2 application but the module support is fine in 1.1

-Manfred

Venkat Reddy Valluri wrote:

  

Hi  Manfred,
Thank you very much for responding immediately. I ended up multiple  
 struts config files successfully. But the thing is when I tried to use 
 separate resources for each struts config file using bundle parametre,  It 
 seems not to be working.  

Here is my struts configurations

 In my main module struts config file
I included below one
struts-main.xml---
message-resources
   parameter=com.main.examp.ApplicationResources/


In my sub module struts config file

I included below one
struts-sub.xml---
  message-resources
   parameter=com.sub.examp.SubResources key=sub
/message-resources

SubResources.properties
error.user.user_name.required=UserName is required

Here in my sub module
  
SubEditActionForm.java---

In validate method I have given like this

public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
  ActionErrors errors = new ActionErrors();

   if (user_name == null || user_name.length() == 0) {
   errors.add(user_name, new  
 ActionError(error.user.user_name.required));
   }
  return errors;
}

But here the error messgae UserName is required  is not able to be displyed 
on screen  when I submit the page with out entering user_name

   So I thought of passing buddle  attribute sub  which is used 
 struts-sub.xml  to ActionError class
(
message-resources
   parameter=com.sub.examp.SubResources key=sub
/message-resources)

  But there is no option to pass that attribute in ActionError or 
 ActionMessage class
 
   SO here where I struck 

Can you please  throw some light on this

Thanks in advace

--Venkat



  





  
-Original Message-
From: Manfred Wolff [mailto:[EMAIL PROTECTED]
Sent: Mon 6/13/2005 10:00 AM
To:   Struts Users Mailing List
Cc:   
Subject:  Re: Can struts-1.1 support multiple configurations and multiple 
resources

Yes it can with multiple module support.

http://struts.apache.org/userGuide/configuration.html#dd_config_modules

Manfred

Venkat Reddy Valluri wrote:

 



Hi

 Can struts-1.1 support multiple configurations and multiple resources. Can 
 some body please throw some light on this. I need it very urgent

Thanks in advance

--Venkat





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

Can struts-1.1 support multiple configurations and multiple resources

2005-06-13 Thread Venkat Reddy Valluri
Hi

   Can struts-1.1 support multiple configurations and multiple resources. Can 
some body please throw some light on this. I need it very urgent

Thanks in advance

--Venkat

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

Re: Can struts-1.1 support multiple configurations and multiple resources

2005-06-13 Thread Manfred Wolff


Yes it can with multiple module support.

http://struts.apache.org/userGuide/configuration.html#dd_config_modules

Manfred

Venkat Reddy Valluri wrote:


Hi

  Can struts-1.1 support multiple configurations and multiple resources. Can 
some body please throw some light on this. I need it very urgent

Thanks in advance

--Venkat

 




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




--
===
Dipl.-Inf. Manfred Wolff
---
phone neusta  : +49 421 20696-0
fax neusta: +49 421 20696-99
phone private : +49 421 534522
eFax  : +49 1212 6 62663 96533
---

Diese E-Mail enthlt mglicherweise vertrauliche und/oder rechtlich geschtzte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtmlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte 
Kopieren sowie die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorised 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.


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



RE: Can struts-1.1 support multiple configurations and multiple resources

2005-06-13 Thread Venkat Reddy Valluri
Hi Manfred,
   I have given null=false  for my main module struts config file and still 
the error message is not displayed

 instead it is just dipaying like below
   en.us.error.user.user_name.required. (It is just displaying property 
but not value)

Thank you very much

--Venkat

  



-Original Message-
From:   Manfred Wolff [mailto:[EMAIL PROTECTED]
Sent:   Mon 6/13/2005 1:47 PM
To: Struts Users Mailing List
Cc: 
Subject:Re: Can struts-1.1 support multiple configurations and multiple 
resources
Venkat

I think you don't have to deal with suffixes (like sub) because struts 
itsselfs concatinate the module in the key, stored into the session. I 
have a little example written for my struts book (only in german) that 
deals with multiple struts config files. You may download it under

http://struts-ge-packt.de/download/code.zip

Because it is no maven project it comes with a lot of libraries.

1st Struts config: (struts-config.xml)
message-resources parameter=MessageResources null=false /

2nd Struts config with Module (struts-modul-confix.xml)
message-resources parameter=MessageModulResources /

It is a struts 1.2 application but the module support is fine in 1.1

-Manfred

Venkat Reddy Valluri wrote:

Hi  Manfred,
 Thank you very much for responding immediately. I ended up multiple  
 struts config files successfully. But the thing is when I tried to use 
 separate resources for each struts config file using bundle parametre,  It 
 seems not to be working.  

Here is my struts configurations

  In my main module struts config file
I included below one
struts-main.xml---
 message-resources
parameter=com.main.examp.ApplicationResources/


In my sub module struts config file

I included below one
struts-sub.xml---
   message-resources
parameter=com.sub.examp.SubResources key=sub
/message-resources

SubResources.properties
error.user.user_name.required=UserName is required

Here in my sub module
   
SubEditActionForm.java---

In validate method I have given like this

public ActionErrors validate(ActionMapping mapping,
 HttpServletRequest request) {
   ActionErrors errors = new ActionErrors();

if (user_name == null || user_name.length() == 0) {
errors.add(user_name, new  
 ActionError(error.user.user_name.required));
}
   return errors;
 }
 
But here the error messgae UserName is required  is not able to be displyed 
on screen  when I submit the page with out entering user_name

So I thought of passing buddle  attribute sub  which is used 
 struts-sub.xml  to ActionError class
(
message-resources
parameter=com.sub.examp.SubResources key=sub
/message-resources)

   But there is no option to pass that attribute in ActionError or 
 ActionMessage class
  
SO here where I struck 

Can you please  throw some light on this

Thanks in advace

--Venkat



   





   
-Original Message-
From:  Manfred Wolff [mailto:[EMAIL PROTECTED]
Sent:  Mon 6/13/2005 10:00 AM
To:Struts Users Mailing List
Cc:
Subject:   Re: Can struts-1.1 support multiple configurations and multiple 
resources

Yes it can with multiple module support.

http://struts.apache.org/userGuide/configuration.html#dd_config_modules

Manfred

Venkat Reddy Valluri wrote:

  

Hi

  Can struts-1.1 support multiple configurations and multiple resources. Can 
 some body please throw some light on this. I need it very urgent

Thanks in advance

--Venkat

 



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





  



-- 
===
Dipl.-Inf. Manfred Wolff
Software Engineer
---
http://www.manfred-wolff.de
http://www.struts-it.org
---

Die fatale Neigung der Menschen,
vom Nachdenken ber eine Sache nachzulassen,
wenn sie nicht lnger zweifelhaft ist,
ist die Ursache der Hlfte ihrer Irrtmer.
- John Stuart Mil -
___


-
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 struts-1.1 support multiple configurations and multiple resources

2005-06-13 Thread Manfred Wolff


--Venkat

Thats the trick. If you set null to false, than *if* a error message is not 
found, the struts framework prints the language and the key, that is not found. 
So it says: You have an error here. So you have an other mistake. It is good 
practice to set null to false in all ressurce bundles, so you can see if 
anything is wrong.


-Manfred

Venkat Reddy Valluri wrote:


Hi Manfred,
  I have given null=false  for my main module struts config file and still 
the error message is not displayed

instead it is just dipaying like below
  en.us.error.user.user_name.required. (It is just displaying property 
but not value)

Thank you very much

--Venkat

 




-Original Message-
From:   Manfred Wolff [mailto:[EMAIL PROTECTED]
Sent:   Mon 6/13/2005 1:47 PM
To: Struts Users Mailing List
Cc: 
Subject:Re: Can struts-1.1 support multiple configurations and multiple 
resources
Venkat

I think you don't have to deal with suffixes (like sub) because struts 
itsselfs concatinate the module in the key, stored into the session. I 
have a little example written for my struts book (only in german) that 
deals with multiple struts config files. You may download it under


http://struts-ge-packt.de/download/code.zip

Because it is no maven project it comes with a lot of libraries.

1st Struts config: (struts-config.xml)
message-resources parameter=MessageResources null=false /

2nd Struts config with Module (struts-modul-confix.xml)
message-resources parameter=MessageModulResources /

It is a struts 1.2 application but the module support is fine in 1.1

-Manfred

Venkat Reddy Valluri wrote:

 


Hi  Manfred,
   Thank you very much for responding immediately. I ended up multiple  struts config files successfully. But the thing is when I tried to use separate resources for each struts config file using bundle parametre,  It seems not to be working.  


Here is my struts configurations

In my main module struts config file
I included below one
struts-main.xml---
   message-resources
  parameter=com.main.examp.ApplicationResources/


In my sub module struts config file

I included below one
struts-sub.xml---
 message-resources
  parameter=com.sub.examp.SubResources key=sub
/message-resources

SubResources.properties
error.user.user_name.required=UserName is required

Here in my sub module
 
SubEditActionForm.java---


In validate method I have given like this

public ActionErrors validate(ActionMapping mapping,
   HttpServletRequest request) {
 ActionErrors errors = new ActionErrors();

  if (user_name == null || user_name.length() == 0) {
  errors.add(user_name, new  
ActionError(error.user.user_name.required));
  }
 return errors;
}
   
But here the error messgae UserName is required  is not able to be displyed on screen  when I submit the page with out entering user_name


  So I thought of passing buddle  attribute sub  which is used struts-sub.xml 
 to ActionError class
(
message-resources
  parameter=com.sub.examp.SubResources key=sub
/message-resources)

 But there is no option to pass that attribute in ActionError or ActionMessage 
class

  SO here where I struck 


Can you please  throw some light on this

Thanks in advace

--Venkat



 






 
-Original Message-

From:   Manfred Wolff [mailto:[EMAIL PROTECTED]
Sent:   Mon 6/13/2005 10:00 AM
To: Struts Users Mailing List
Cc: 
Subject:Re: Can struts-1.1 support multiple configurations and multiple 
resources

Yes it can with multiple module support.

http://struts.apache.org/userGuide/configuration.html#dd_config_modules

Manfred

Venkat Reddy Valluri wrote:



   


Hi

Can struts-1.1 support multiple configurations and multiple resources. Can some 
body please throw some light on this. I need it very urgent

Thanks in advance

--Venkat





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




--
===
Dipl.-Inf. Manfred Wolff
---
phone neusta  : +49 421 20696-0
fax neusta: +49 421 20696-99
phone private : +49 421 534522
eFax  : +49 1212 6 62663 96533
---

Diese E-Mail enthlt mglicherweise vertrauliche und/oder rechtlich geschtzte 
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtmlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail

Re: Source code for Struts 1.1

2005-03-29 Thread Keng Onn
Thanks for all the replies! I've found and downloaded the source code. 
Btw, just to confirm, coz there are 6 folders within, namely

1. conf
2. contrib
3. doc
4. legacy
5. src
6. web
The source code should be inside src/share issit? Coz there're another 7 
folders within src, namely i) example, ii) exercise-taglib, iii) share, 
iv) test, v) tiles-documentation, vi) upload, vii) validator

Thanks and regards,
Keng Onn.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Source code for Struts 1.1

2005-03-27 Thread Keng Onn
Hi,
Does anyone know how I can get a copy of the Struts 1.1 source code? 
It's to help in debugging a web-app I'm working on which is developed 
using Struts 1.1.

I've looked at the Apache website, but all it offers is the Struts 1.2.4 
source / binaries / lib :(

Regards,
Keng Onn.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Source code for Struts 1.1

2005-03-27 Thread Saulo de Oliveira
I'm not sure, but i think you can checkout using svn
url: http://svn.apache.org/repos/asf/struts/
branch's url: 
http://svn.apache.org/repos/asf/struts/core/branches/STRUTS_1_1_BRANCH/

regards,
Eugênio Saulo


On Mon, 28 Mar 2005 12:17:19 +0800, Keng Onn [EMAIL PROTECTED] wrote:
 Hi,
 
 Does anyone know how I can get a copy of the Struts 1.1 source code?
 It's to help in debugging a web-app I'm working on which is developed
 using Struts 1.1.
 
 I've looked at the Apache website, but all it offers is the Struts 1.2.4
 source / binaries / lib :(
 
 Regards,
 Keng Onn.
 
 -
 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: Source code for Struts 1.1

2005-03-27 Thread Antony Paul
http://archive.apache.org/dist/jakarta/struts/source/ has 1.1 source code


On Mon, 28 Mar 2005 01:27:14 -0300, Saulo de Oliveira [EMAIL PROTECTED] wrote:
 I'm not sure, but i think you can checkout using svn
 url: http://svn.apache.org/repos/asf/struts/
 branch's url: 
 http://svn.apache.org/repos/asf/struts/core/branches/STRUTS_1_1_BRANCH/
 
 regards,
 Eugênio Saulo
 
 
 On Mon, 28 Mar 2005 12:17:19 +0800, Keng Onn [EMAIL PROTECTED] wrote:
  Hi,
 
  Does anyone know how I can get a copy of the Struts 1.1 source code?
  It's to help in debugging a web-app I'm working on which is developed
  using Struts 1.1.
 
  I've looked at the Apache website, but all it offers is the Struts 1.2.4
  source / binaries / lib :(
 
  Regards,
  Keng Onn.
 
  -
  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]
 
 


-- 
rgds
Antony Paul
http://www.geocities.com/antonypaul24/

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



Re: Struts 1.1 UTF-8 problem

2005-01-10 Thread Guillaume Cottenceau
Koon Yue Lam kisstech 'at' gmail.com writes:

 Hi, here is the situation:
 Tomcat 5.25
 MySQL 4.1
 Struts 1.1
 
 when I use Struts form to get some form data submited by a webpage, it
 is encode in latin but not utf-8. I have already set the page encoding
 to UTF-8 in my JSP.
 
 I need to new a String specific the encoding to UTF-8 in order to save
 unicode data into MySQL
 
 Is there any way to tell Struts encode all data in UTF-8 ??

You might want to browse the archives.

http://marc.theaimsgroup.com/?l=struts-userm=110484806414499
http://marc.theaimsgroup.com/?l=struts-userm=110175805321521

-- 
Guillaume Cottenceau

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



Struts 1.1 UTF-8 problem

2005-01-09 Thread Koon Yue Lam
Hi, here is the situation:
Tomcat 5.25
MySQL 4.1
Struts 1.1

when I use Struts form to get some form data submited by a webpage, it
is encode in latin but not utf-8. I have already set the page encoding
to UTF-8 in my JSP.

I need to new a String specific the encoding to UTF-8 in order to save
unicode data into MySQL

Is there any way to tell Struts encode all data in UTF-8 ??

btw, display UTF-8 character is fine

Thanks

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



RE: use EL in Struts 1.1

2004-10-28 Thread Kris Schneider
I imagine it'll work just like TC 4.1 if his app is using a Servlet 2.3
web.xml.

Quoting Karr, David [EMAIL PROTECTED]:

 You're using Tomcat 5 with Struts-EL?  You don't need to use Struts-EL
 with Tomcat 5.  Doing so is wasteful (and I'm surprised it works).  The
 base Struts tag library will provide exactly the same functionality
 (except for perhaps the expr attribute on logic:match), without the
 indirection necessary in Struts-EL.
 
  -Original Message-
  From: Erik Weber [mailto:[EMAIL PROTECTED] 
  
  I use Tomcat 5.0.27, I don't use the isELIgnored attribute, 
  and I do 
  use the struts-el tags (Struts version 1.1), and everything 
  works fine.
  
  Erik
  
  
  David G. Friedman wrote:
  
  Rajesh,
  
  If you use this syntax in your Tomcat 5.X.X (I'm on 5.0.27) JSP's:
  %@ page isELIgnored=false %
  
  Remember to use the standard struts tags, not the 
  contributed struts-el
  tags.
  
  Regards,
  David
  
  -Original Message-
  From: Rajesh [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, October 27, 2004 11:41 PM
  To: 'Struts Users Mailing List'
  Subject: RE: use EL in Struts 1.1
  
  
  Hai
  
  Am using Tomcat5
  
  Its supporting JSP2 right
  
  
  Regards,
  
  Rajmahendra R. Hegde
  GK Bharani Software Pvt. Ltd.
  
  There are two ways of constructing a software design. One 
  way is to make it
  so simple that there are obviously no deficiencies. And the 
  other way is to
  make it so complicated that there are no obvious deficiencies.
  -- C.A.R. Hoare
  
  -Original Message-
  From: Karr, David [mailto:[EMAIL PROTECTED]
  Sent: Thursday, October 28, 2004 12:44 AM
  To: Struts Users Mailing List
  Subject: RE: use EL in Struts 1.1
  
  Are you using a JSP 1.2 or JSP 2.0 container?  If you're 
  using a JSP 1.2
  container, you use the jars/tlds in contrib/struts-el/lib. 
   If you're
  using a JSP 2.0 container, don't use Struts-EL.  I didn't 
  see in any of
  these notes where you said what container you're using.
  

  
  -Original Message-
  From: Rajesh [mailto:[EMAIL PROTECTED]
  
  Hai all,
  
  is it possible to use EL in Struts 1.1 ?
  
   Struts-EL how to use with Struts 1.1.
  
  Regards,
  
  Rajmahendra R. Hegde
  GK Bharani Software Pvt. Ltd.
  
  There are two ways of constructing a software design. One way is to
  make it so simple that there are obviously no deficiencies. And the
  other way is to make it so complicated that there are no obvious
  deficiencies.

-- 
Kris Schneider mailto:[EMAIL PROTECTED]
D.O.Tech   http://www.dotech.com/

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



Re: use EL in Struts 1.1

2004-10-28 Thread Janelle Smith
I'm using Tomcat  5.0.28 and I find I no longer need to use the 
struts-el tags because JSP 2.0 supports the ${} notation anywhere in the 
jsp page.  e.g. you can put ${2+2} it it will display 4 on the page.  I 
now find I can do everything I need to do with the regular struts tags 
and jstl. This was the main reason I upgraded to Tomcat 5.X.  I did find 
that it was a little tricky to get it working properly because you need 
to upgrade the schema reference in your web.xml file to:

?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
   version=2.4
Check out the JSP 2.0 specification Part 1 page 63 where it describes 
the jsp 2.0 implementation of el.

I have found that this has really made development much easier. 

Hope that helps,
Janelle Smtih
Erik Weber wrote:
I use Tomcat 5.0.27, I don't use the isELIgnored attribute, and I do 
use the struts-el tags (Struts version 1.1), and everything works fine.

Erik
David G. Friedman wrote:
Rajesh,
If you use this syntax in your Tomcat 5.X.X (I'm on 5.0.27) JSP's:
%@ page isELIgnored=false %
Remember to use the standard struts tags, not the contributed struts-el
tags.
Regards,
David
-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 11:41 PM
To: 'Struts Users Mailing List'
Subject: RE: use EL in Struts 1.1
Hai
Am using Tomcat5
Its supporting JSP2 right
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to 
make it
so simple that there are obviously no deficiencies. And the other way 
is to
make it so complicated that there are no obvious deficiencies.
   -- C.A.R. Hoare

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 12:44 AM
To: Struts Users Mailing List
Subject: RE: use EL in Struts 1.1
Are you using a JSP 1.2 or JSP 2.0 container?  If you're using a JSP 1.2
container, you use the jars/tlds in contrib/struts-el/lib.  If you're
using a JSP 2.0 container, don't use Struts-EL.  I didn't see in any of
these notes where you said what container you're using.
 

-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Hai all,
is it possible to use EL in Struts 1.1 ?
Struts-EL how to use with Struts 1.1.
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the
other way is to make it so complicated that there are no obvious
deficiencies.
   -- C.A.R. Hoare
  

-
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: use EL in Struts 1.1

2004-10-28 Thread Erik Weber
Thanks. I do remember that using the EL didn't work without the 
struts-el tags, but my web.xml is from 2.3 (portability is a concern for 
now), so that must be it. I'll give this a try.

Erik

Janelle Smith wrote:
I'm using Tomcat  5.0.28 and I find I no longer need to use the 
struts-el tags because JSP 2.0 supports the ${} notation anywhere in 
the jsp page.  e.g. you can put ${2+2} it it will display 4 on the 
page.  I now find I can do everything I need to do with the regular 
struts tags and jstl. This was the main reason I upgraded to Tomcat 
5.X.  I did find that it was a little tricky to get it working 
properly because you need to upgrade the schema reference in your 
web.xml file to:

?xml version=1.0 encoding=ISO-8859-1?
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
   xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
   xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
   version=2.4
Check out the JSP 2.0 specification Part 1 page 63 where it describes 
the jsp 2.0 implementation of el.

I have found that this has really made development much easier.
Hope that helps,
Janelle Smtih
Erik Weber wrote:
I use Tomcat 5.0.27, I don't use the isELIgnored attribute, and I 
do use the struts-el tags (Struts version 1.1), and everything works 
fine.

Erik
David G. Friedman wrote:
Rajesh,
If you use this syntax in your Tomcat 5.X.X (I'm on 5.0.27) JSP's:
%@ page isELIgnored=false %
Remember to use the standard struts tags, not the contributed struts-el
tags.
Regards,
David
-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 11:41 PM
To: 'Struts Users Mailing List'
Subject: RE: use EL in Struts 1.1
Hai
Am using Tomcat5
Its supporting JSP2 right
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to 
make it
so simple that there are obviously no deficiencies. And the other 
way is to
make it so complicated that there are no obvious deficiencies.
   -- C.A.R. Hoare

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 12:44 AM
To: Struts Users Mailing List
Subject: RE: use EL in Struts 1.1
Are you using a JSP 1.2 or JSP 2.0 container?  If you're using a JSP 
1.2
container, you use the jars/tlds in contrib/struts-el/lib.  If you're
using a JSP 2.0 container, don't use Struts-EL.  I didn't see in any of
these notes where you said what container you're using.

 

-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Hai all,
is it possible to use EL in Struts 1.1 ?
Struts-EL how to use with Struts 1.1.
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the
other way is to make it so complicated that there are no obvious
deficiencies.
   -- C.A.R. Hoare
  


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


use EL in Struts 1.1

2004-10-27 Thread Rajesh
Hai all,
 
is it possible to use EL in Struts 1.1 ?
 
 Struts-EL how to use with Struts 1.1.
 
Regards,
 
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
 
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies. 
-- C.A.R. Hoare
 


use EL in Struts 1.1

2004-10-27 Thread Rajesh
Hai all,
 
is it possible to use EL in Struts 1.1 ?
 
 Struts-EL how to use with Struts 1.1.
 
Regards,
 
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
 
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies. 
-- C.A.R. Hoare
 


Re: use EL in Struts 1.1

2004-10-27 Thread dmu2201

is it possible to use EL in Struts 1.1 ?

Yes it is. Just insert this in the top of your JSP page:
%@ page isELIgnored=false %
Enjoy...
Claus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: use EL in Struts 1.1

2004-10-27 Thread Rajesh
Hai Claus,

Thanks :)

After  i added the line 

%@ page isELIgnored=false %

In layout page in a tile page am passing a querystring(parameter) as
?CategoryId=3

If i need to display can i just add it as

img src=images/category${request.parameter.CagegoryId}.gif width=120
height=40

?

Regards,
 
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
 
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies. 
-- C.A.R. Hoare

-Original Message-
From: dmu2201 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 2:01 PM
To: Struts Users Mailing List
Subject: Re: use EL in Struts 1.1


 
is it possible to use EL in Struts 1.1 ?
 

Yes it is. Just insert this in the top of your JSP page:

%@ page isELIgnored=false %

Enjoy...
Claus

-
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: use EL in Struts 1.1

2004-10-27 Thread Rajesh
Hai Claus,

Thanks :)

After  i added the line 

%@ page isELIgnored=false %

In layout page in a tile page am passing a querystring(parameter) as
?CategoryId=3

If i need to display can i just add it as

img src=images/category${request.parameter.CagegoryId}.gif width=120
height=40

?

Regards,
 
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
 
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies. 
-- C.A.R. Hoare

-Original Message-
From: dmu2201 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 2:01 PM
To: Struts Users Mailing List
Subject: Re: use EL in Struts 1.1


 
is it possible to use EL in Struts 1.1 ?
 

Yes it is. Just insert this in the top of your JSP page:

%@ page isELIgnored=false %

Enjoy...
Claus

-
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: use EL in Struts 1.1

2004-10-27 Thread dmu2201
Hi Rajesh
In layout page in a tile page am passing a querystring(parameter) as
?CategoryId=3
If i need to display can i just add it as
img src=images/category${request.parameter.CagegoryId}.gif width=120
height=40
 

I'm afraid not since the method signature is 
request.getParameter(String) and what you are trying to do is 
request.getParameter().getCagegoryId().getGif(), which you cant do since 
the getParameter method takes a String.
One way, not so pretty would be to use %% with casts and such:
 % ((CagegoryObject) 
request.getParameter(CagegoryId)).getCagegoryId().getGif()%.

Another way would be to use a bean:define tag (be sure to include the 
bean tag lib before trying this):
 bean:define id=cagegory type=CagegoryObject 
value=%request.getParameter(cagegoryId)% /

then you can write
 img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /

Replace the CagegoryObject with whatever Object cagegoryId is a type of...
I haven't tested this, but it should work...
Claus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: use EL in Struts 1.1

2004-10-27 Thread Rajesh
Hai Claus,

The code  

img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /

Is not parsed and directly appairs in the html source code.

In my lib directry i have standard struts jars some site they added jstl.jar
and struts-el.jar.

I redownloaded struts1.1 but in the distribution binary zip file i didn’t
found struts-el.jar

Is it really needed to parse ${} keys ? If yes where can i get it.
Regards,
 
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
 
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies. 
-- C.A.R. Hoare

-Original Message-
From: dmu2201 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 2:58 PM
To: Struts Users Mailing List
Subject: Re: use EL in Struts 1.1

Hi Rajesh

In layout page in a tile page am passing a querystring(parameter) as
?CategoryId=3

If i need to display can i just add it as

img src=images/category${request.parameter.CagegoryId}.gif width=120
height=40

  

I'm afraid not since the method signature is
request.getParameter(String) and what you are trying to do is
request.getParameter().getCagegoryId().getGif(), which you cant do since the
getParameter method takes a String.
One way, not so pretty would be to use %% with casts and such:
  % ((CagegoryObject)
request.getParameter(CagegoryId)).getCagegoryId().getGif()%.

Another way would be to use a bean:define tag (be sure to include the bean
tag lib before trying this):
  bean:define id=cagegory type=CagegoryObject 
value=%request.getParameter(cagegoryId)% /

then you can write
  img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /

Replace the CagegoryObject with whatever Object cagegoryId is a type of...

I haven't tested this, but it should work...

Claus

-
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: use EL in Struts 1.1

2004-10-27 Thread Rajesh
Hai Claus,

The code  

img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /

Is not parsed and directly appairs in the html source code.

In my lib directry i have standard struts jars some site they added jstl.jar
and struts-el.jar.

I redownloaded struts1.1 but in the distribution binary zip file i didn’t
found struts-el.jar

Is it really needed to parse ${} keys ? If yes where can i get it.
Regards,
 
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
 
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies. 
-- C.A.R. Hoare

-Original Message-
From: dmu2201 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 2:58 PM
To: Struts Users Mailing List
Subject: Re: use EL in Struts 1.1

Hi Rajesh

In layout page in a tile page am passing a querystring(parameter) as
?CategoryId=3

If i need to display can i just add it as

img src=images/category${request.parameter.CagegoryId}.gif width=120
height=40

  

I'm afraid not since the method signature is
request.getParameter(String) and what you are trying to do is
request.getParameter().getCagegoryId().getGif(), which you cant do since the
getParameter method takes a String.
One way, not so pretty would be to use %% with casts and such:
  % ((CagegoryObject)
request.getParameter(CagegoryId)).getCagegoryId().getGif()%.

Another way would be to use a bean:define tag (be sure to include the bean
tag lib before trying this):
  bean:define id=cagegory type=CagegoryObject 
value=%request.getParameter(cagegoryId)% /

then you can write
  img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /

Replace the CagegoryObject with whatever Object cagegoryId is a type of...

I haven't tested this, but it should work...

Claus

-
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: use EL in Struts 1.1

2004-10-27 Thread dmu2201
Rajesh wrote:
Hai Claus,
The code  

img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /

Is not parsed and directly appairs in the html source code.
 

You would have to use the struts html tags. I forgot to mention that, sorry.
try
html:img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /
instead

In my lib directry i have standard struts jars some site they added jstl.jar
and struts-el.jar.
I redownloaded struts1.1 but in the distribution binary zip file i didnt
found struts-el.jar
Is it really needed to parse ${} keys ? If yes where can i get it.
 

No you don't need the struts-el.jar, if you have the struts.jar in your 
lib dir. I don't, and I use EL :-)

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


RE: use EL in Struts 1.1

2004-10-27 Thread Rajesh
:) My Boss :0

How not working for me then 

Should i add any taglib ???

Can u give em any URL i can get basic use of EL ${...} objects


Regards,
 
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
 
There are two ways of constructing a software design. One way is to make it so simple 
that there are obviously no deficiencies. And the other way is to make it so 
complicated that there are no obvious deficiencies. 
-- C.A.R. Hoare

-Original Message-
From: dmu2201 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 3:10 PM
To: Struts Users Mailing List
Subject: Re: use EL in Struts 1.1

Rajesh wrote:

Hai Claus,

The code

img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /

Is not parsed and directly appairs in the html source code.

  

You would have to use the struts html tags. I forgot to mention that, sorry.
try
html:img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /
instead

In my lib directry i have standard struts jars some site they added 
jstl.jar and struts-el.jar.

I redownloaded struts1.1 but in the distribution binary zip file i 
didnt found struts-el.jar

Is it really needed to parse ${} keys ? If yes where can i get it.

  

No you don't need the struts-el.jar, if you have the struts.jar in your lib dir. I 
don't, and I use EL :-)

Enjoy...
Claus

-
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: use EL in Struts 1.1

2004-10-27 Thread Rajesh
:) My Boss :0

How not working for me then 

Should i add any taglib ???

Can u give em any URL i can get basic use of EL ${...} objects


Regards,
 
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
 
There are two ways of constructing a software design. One way is to make it so simple 
that there are obviously no deficiencies. And the other way is to make it so 
complicated that there are no obvious deficiencies. 
-- C.A.R. Hoare

-Original Message-
From: dmu2201 [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 27, 2004 3:10 PM
To: Struts Users Mailing List
Subject: Re: use EL in Struts 1.1

Rajesh wrote:

Hai Claus,

The code

img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /

Is not parsed and directly appairs in the html source code.

  

You would have to use the struts html tags. I forgot to mention that, sorry.
try
html:img src=images/category${cagegory.cagegoryId.gif} width=120 
height=40 /
instead

In my lib directry i have standard struts jars some site they added 
jstl.jar and struts-el.jar.

I redownloaded struts1.1 but in the distribution binary zip file i 
didnt found struts-el.jar

Is it really needed to parse ${} keys ? If yes where can i get it.

  

No you don't need the struts-el.jar, if you have the struts.jar in your lib dir. I 
don't, and I use EL :-)

Enjoy...
Claus

-
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: use EL in Struts 1.1

2004-10-27 Thread dmu2201
Rajesh wrote:
:) My Boss :0
How not working for me then 

Should i add any taglib ???
 

Yeah you have to use the HTML and Bean taglibs:
 %@ taglib uri=/WEB-INF/tlds/struts-html.tld prefix=html %
 %@ taglib uri=/WEB-INF/tlds/struts-bean.tld prefix=bean %
replace the uri with the relative path to your tlds
Can u give em any URL i can get basic use of EL ${...} objects
 

Yup:
  http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: use EL in Struts 1.1

2004-10-27 Thread David G. Friedman
Rajesh,

Have you tried one of these approaches:

1) Just a JSP 2.0 application server or web server?

2) Use the Struts-EL taglibs (bean-el, struts-html-el, etc.) located in the
/contrib folder of the 1.1 release?

Regards,
David

-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 4:27 AM
To: 'Struts Users Mailing List'
Subject: use EL in Struts 1.1


Hai all,

is it possible to use EL in Struts 1.1 ?

 Struts-EL how to use with Struts 1.1.

Regards,

Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.

There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies.
-- C.A.R. Hoare



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



RE: use EL in Struts 1.1

2004-10-27 Thread Karr, David
Are you using a JSP 1.2 or JSP 2.0 container?  If you're using a JSP 1.2
container, you use the jars/tlds in contrib/struts-el/lib.  If you're
using a JSP 2.0 container, don't use Struts-EL.  I didn't see in any of
these notes where you said what container you're using.

 -Original Message-
 From: Rajesh [mailto:[EMAIL PROTECTED] 
 
 Hai all,
  
 is it possible to use EL in Struts 1.1 ?
  
  Struts-EL how to use with Struts 1.1.
  
 Regards,
  
 Rajmahendra R. Hegde
 GK Bharani Software Pvt. Ltd.
  
 There are two ways of constructing a software design. One way 
 is to make it so simple that there are obviously no 
 deficiencies. And the other way is to make it so complicated 
 that there are no obvious deficiencies. 
 -- C.A.R. Hoare
  
 

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



RE: use EL in Struts 1.1

2004-10-27 Thread Rajesh
Hai 

Am using Tomcat5

Its supporting JSP2 right 


Regards,
 
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
 
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies. 
-- C.A.R. Hoare

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 28, 2004 12:44 AM
To: Struts Users Mailing List
Subject: RE: use EL in Struts 1.1 

Are you using a JSP 1.2 or JSP 2.0 container?  If you're using a JSP 1.2
container, you use the jars/tlds in contrib/struts-el/lib.  If you're
using a JSP 2.0 container, don't use Struts-EL.  I didn't see in any of
these notes where you said what container you're using.

 -Original Message-
 From: Rajesh [mailto:[EMAIL PROTECTED]
 
 Hai all,
  
 is it possible to use EL in Struts 1.1 ?
  
  Struts-EL how to use with Struts 1.1.
  
 Regards,
  
 Rajmahendra R. Hegde
 GK Bharani Software Pvt. Ltd.
  
 There are two ways of constructing a software design. One way is to 
 make it so simple that there are obviously no deficiencies. And the 
 other way is to make it so complicated that there are no obvious 
 deficiencies.
 -- C.A.R. Hoare
  
 

-
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: use EL in Struts 1.1

2004-10-27 Thread David G. Friedman
Rajesh,

If you use this syntax in your Tomcat 5.X.X (I'm on 5.0.27) JSP's:
%@ page isELIgnored=false %

Remember to use the standard struts tags, not the contributed struts-el
tags.

Regards,
David

-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 11:41 PM
To: 'Struts Users Mailing List'
Subject: RE: use EL in Struts 1.1


Hai

Am using Tomcat5

Its supporting JSP2 right


Regards,

Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.

There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies.
-- C.A.R. Hoare

-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 12:44 AM
To: Struts Users Mailing List
Subject: RE: use EL in Struts 1.1

Are you using a JSP 1.2 or JSP 2.0 container?  If you're using a JSP 1.2
container, you use the jars/tlds in contrib/struts-el/lib.  If you're
using a JSP 2.0 container, don't use Struts-EL.  I didn't see in any of
these notes where you said what container you're using.

 -Original Message-
 From: Rajesh [mailto:[EMAIL PROTECTED]

 Hai all,

 is it possible to use EL in Struts 1.1 ?

  Struts-EL how to use with Struts 1.1.

 Regards,

 Rajmahendra R. Hegde
 GK Bharani Software Pvt. Ltd.

 There are two ways of constructing a software design. One way is to
 make it so simple that there are obviously no deficiencies. And the
 other way is to make it so complicated that there are no obvious
 deficiencies.
 -- C.A.R. Hoare


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



Re: use EL in Struts 1.1

2004-10-27 Thread Erik Weber
I use Tomcat 5.0.27, I don't use the isELIgnored attribute, and I do 
use the struts-el tags (Struts version 1.1), and everything works fine.

Erik
David G. Friedman wrote:
Rajesh,
If you use this syntax in your Tomcat 5.X.X (I'm on 5.0.27) JSP's:
%@ page isELIgnored=false %
Remember to use the standard struts tags, not the contributed struts-el
tags.
Regards,
David
-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 27, 2004 11:41 PM
To: 'Struts Users Mailing List'
Subject: RE: use EL in Struts 1.1
Hai
Am using Tomcat5
Its supporting JSP2 right
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to make it
so simple that there are obviously no deficiencies. And the other way is to
make it so complicated that there are no obvious deficiencies.
   -- C.A.R. Hoare
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 28, 2004 12:44 AM
To: Struts Users Mailing List
Subject: RE: use EL in Struts 1.1
Are you using a JSP 1.2 or JSP 2.0 container?  If you're using a JSP 1.2
container, you use the jars/tlds in contrib/struts-el/lib.  If you're
using a JSP 2.0 container, don't use Struts-EL.  I didn't see in any of
these notes where you said what container you're using.
 

-Original Message-
From: Rajesh [mailto:[EMAIL PROTECTED]
Hai all,
is it possible to use EL in Struts 1.1 ?
Struts-EL how to use with Struts 1.1.
Regards,
Rajmahendra R. Hegde
GK Bharani Software Pvt. Ltd.
There are two ways of constructing a software design. One way is to
make it so simple that there are obviously no deficiencies. And the
other way is to make it so complicated that there are no obvious
deficiencies.
   -- C.A.R. Hoare
   


-
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: Struts 1.1 iterate woes

2004-10-04 Thread Victor Grazi
That works, thanks.
But does anyone have a Struts EL version? I prefer to go that route.
Thanks Victor
___
Sent with SnapperMail
www.snappermail.com

.. Original Message ...
On Sun, 3 Oct 2004 18:27:11 -0500 Hubert Rabago [EMAIL PROTECTED] wrote:
I have to admit I always have trouble dealing with the iterate tag.  I
recently rediscovered how easy it is to do these iterations using the
nested tags.  Have you tried them?  Maybe something like this would
work for you:

html:form action=/test
   nested:iterate property=list
   nested:write property=id /br
   nested:text property=description
onchange=changefield(this);/br
   nested:hidden property=isChanged /br
   /nested:iterate
   html:submitSend/html:submit
/html:form

I don't know if it's considered best practice to also surround the
form with nested:form, but I've tried using the basic html:form
and it works fine, too.  The result is code I can actually understand.
:)

If you want to stick to the html tags, take a look at the example in
http://wiki.apache.org/struts/StrutsCatalogLazyList

hth,
Hubert

On Sun, 3 Oct 2004 14:16:19 -0400, Victor Grazi [EMAIL PROTECTED] wrote:
 We are trying to use logic:iterate in a JSP to access items in a list
 stored in the Form Bean by the Action class but we can't seem to get the
 syntax right.
 
 I am getting an error meessage from PropertyUtils that displays the 
index as
 '${index}', which indicates that that struts el expression is not 
resolving
 to an int.
 
 Here is my exact syntax. The form and action are described in more detail
 below.
 
 html:form action=/test
logic:iterate id=lineItem indexId=index name=testForm
 property=list
 
!-- display the index counter for the fun of it. This 
works
 ok --
bean:write name=index /br
 
!-- now access the id of the indexth element of the list
 --
bean:write name=list[${index}].id /br
 
!-- now access the description of the indexth element of
 the list --
html:text property=list[${index}].description
 onchange=changefield(this);/br
html:hidden property=isChanged[${index}] /br
 
/logic:iterate
html:submitSend/html:submit
 /html:form
 
 I have created several Test classes to help me understand the flow...
 
 The form is an instance of TestForm exends ActionForm and its form name 
in
 struts-config.xml is testForm. (This is the named form for the action.)
 TestForm has one property: java.util.List list with accessors public List
 getList() and public void setList(List list).
 
 List is always a List of LineItem objects where LineItem is a simple
 JavaBean with properties
 String id (public String getId() and public void setId(String id)), 
String
 description (public String getDescription() and public void
 setDescription(String description)) and boolean isChanged (public void


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



Struts 1.1 iterate woes

2004-10-03 Thread Victor Grazi
We are trying to use logic:iterate in a JSP to access items in a list
stored in the Form Bean by the Action class but we can't seem to get the
syntax right. 

I am getting an error meessage from PropertyUtils that displays the index as
'${index}', which indicates that that struts el expression is not resolving
to an int.

Here is my exact syntax. The form and action are described in more detail
below.

html:form action=/test
logic:iterate id=lineItem indexId=index name=testForm
property=list

!-- display the index counter for the fun of it. This works
ok --
bean:write name=index /br

!-- now access the id of the indexth element of the list
--
bean:write name=list[${index}].id /br

!-- now access the description of the indexth element of
the list --
html:text property=list[${index}].description
onchange=changefield(this);/br
html:hidden property=isChanged[${index}] /br

/logic:iterate
html:submitSend/html:submit
/html:form

I have created several Test classes to help me understand the flow...

The form is an instance of TestForm exends ActionForm and its form name in
struts-config.xml is testForm. (This is the named form for the action.)
TestForm has one property: java.util.List list with accessors public List
getList() and public void setList(List list). 

List is always a List of LineItem objects where LineItem is a simple
JavaBean with properties
String id (public String getId() and public void setId(String id)), String
description (public String getDescription() and public void
setDescription(String description)) and boolean isChanged (public void
setIsChanged(boolean value) and public boolean getIsChanged() )

The Action (TestAction extends Action) execute method creates a List of 5
LineItem objects and stores that List into the form by calling
((TestForm)form).setList(list), then forwards to the jsp (test.jsp)

In the jsp I would like to iterate through the list to perform the
following: 
display the id (as html read-only text) and the
description (as html:text) of each line item, 
then use JavaScript to change the isChanged property (in a hidden field)
when the onchange event is triggered.

I have tried several different syntaxes. I also tried using arrays instead
of List's. I also specified the type of the LineItem class explicitly in the
form element. I tried each of the html: and bean:write lines above one
at a time to see if any would be successful, but they all produce that same
error. I have combed the web for a good example of how to accomplish this,
but I couldn't find anything that handled things in a way that would work
for us.

Can you tell me what I am doing wrong and how to accomplish the access?

Thanks/Victor



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



Re: Struts 1.1 iterate woes

2004-10-03 Thread Addy Kapur
I have used the following syntax and it works.

 logic:iterate name=BForm property=bVO.lines id=bAmount indexId=idx
  html:hidden property=%=bVO.bLine[+idx+].name%/
html:hidden property=%=bVO.bLine[+idx+].id%/
html:hidden property=%=bVO.bLine[+idx+].amount%/
   /logic:iterate


On Sun, 3 Oct 2004 14:16:19 -0400, Victor Grazi [EMAIL PROTECTED] wrote:
 We are trying to use logic:iterate in a JSP to access items in a list
 stored in the Form Bean by the Action class but we can't seem to get the
 syntax right.
 
 I am getting an error meessage from PropertyUtils that displays the index as
 '${index}', which indicates that that struts el expression is not resolving
 to an int.
 
 Here is my exact syntax. The form and action are described in more detail
 below.
 
 html:form action=/test
 logic:iterate id=lineItem indexId=index name=testForm
 property=list
 
 !-- display the index counter for the fun of it. This works
 ok --
 bean:write name=index /br
 
 !-- now access the id of the indexth element of the list
 --
 bean:write name=list[${index}].id /br
 
 !-- now access the description of the indexth element of
 the list --
 html:text property=list[${index}].description
 onchange=changefield(this);/br
 html:hidden property=isChanged[${index}] /br
 
 /logic:iterate
 html:submitSend/html:submit
 /html:form
 
 I have created several Test classes to help me understand the flow...
 
 The form is an instance of TestForm exends ActionForm and its form name in
 struts-config.xml is testForm. (This is the named form for the action.)
 TestForm has one property: java.util.List list with accessors public List
 getList() and public void setList(List list).
 
 List is always a List of LineItem objects where LineItem is a simple
 JavaBean with properties
 String id (public String getId() and public void setId(String id)), String
 description (public String getDescription() and public void
 setDescription(String description)) and boolean isChanged (public void
 setIsChanged(boolean value) and public boolean getIsChanged() )
 
 The Action (TestAction extends Action) execute method creates a List of 5
 LineItem objects and stores that List into the form by calling
 ((TestForm)form).setList(list), then forwards to the jsp (test.jsp)
 
 In the jsp I would like to iterate through the list to perform the
 following:
 display the id (as html read-only text) and the
 description (as html:text) of each line item,
 then use JavaScript to change the isChanged property (in a hidden field)
 when the onchange event is triggered.
 
 I have tried several different syntaxes. I also tried using arrays instead
 of List's. I also specified the type of the LineItem class explicitly in the
 form element. I tried each of the html: and bean:write lines above one
 at a time to see if any would be successful, but they all produce that same
 error. I have combed the web for a good example of how to accomplish this,
 but I couldn't find anything that handled things in a way that would work
 for us.
 
 Can you tell me what I am doing wrong and how to accomplish the access?
 
 Thanks/Victor
 
 -
 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: Struts 1.1 iterate woes

2004-10-03 Thread Hubert Rabago
I have to admit I always have trouble dealing with the iterate tag.  I
recently rediscovered how easy it is to do these iterations using the
nested tags.  Have you tried them?  Maybe something like this would
work for you:

html:form action=/test
   nested:iterate property=list
   nested:write property=id /br
   nested:text property=description
onchange=changefield(this);/br
   nested:hidden property=isChanged /br
   /nested:iterate
   html:submitSend/html:submit
/html:form

I don't know if it's considered best practice to also surround the
form with nested:form, but I've tried using the basic html:form
and it works fine, too.  The result is code I can actually understand.
:)

If you want to stick to the html tags, take a look at the example in
http://wiki.apache.org/struts/StrutsCatalogLazyList

hth,
Hubert

On Sun, 3 Oct 2004 14:16:19 -0400, Victor Grazi [EMAIL PROTECTED] wrote:
 We are trying to use logic:iterate in a JSP to access items in a list
 stored in the Form Bean by the Action class but we can't seem to get the
 syntax right.
 
 I am getting an error meessage from PropertyUtils that displays the index as
 '${index}', which indicates that that struts el expression is not resolving
 to an int.
 
 Here is my exact syntax. The form and action are described in more detail
 below.
 
 html:form action=/test
logic:iterate id=lineItem indexId=index name=testForm
 property=list
 
!-- display the index counter for the fun of it. This works
 ok --
bean:write name=index /br
 
!-- now access the id of the indexth element of the list
 --
bean:write name=list[${index}].id /br
 
!-- now access the description of the indexth element of
 the list --
html:text property=list[${index}].description
 onchange=changefield(this);/br
html:hidden property=isChanged[${index}] /br
 
/logic:iterate
html:submitSend/html:submit
 /html:form
 
 I have created several Test classes to help me understand the flow...
 
 The form is an instance of TestForm exends ActionForm and its form name in
 struts-config.xml is testForm. (This is the named form for the action.)
 TestForm has one property: java.util.List list with accessors public List
 getList() and public void setList(List list).
 
 List is always a List of LineItem objects where LineItem is a simple
 JavaBean with properties
 String id (public String getId() and public void setId(String id)), String
 description (public String getDescription() and public void
 setDescription(String description)) and boolean isChanged (public void
 setIsChanged(boolean value) and public boolean getIsChanged() )
 
 The Action (TestAction extends Action) execute method creates a List of 5
 LineItem objects and stores that List into the form by calling
 ((TestForm)form).setList(list), then forwards to the jsp (test.jsp)
 
 In the jsp I would like to iterate through the list to perform the
 following:
 display the id (as html read-only text) and the
 description (as html:text) of each line item,
 then use JavaScript to change the isChanged property (in a hidden field)
 when the onchange event is triggered.
 
 I have tried several different syntaxes. I also tried using arrays instead
 of List's. I also specified the type of the LineItem class explicitly in the
 form element. I tried each of the html: and bean:write lines above one
 at a time to see if any would be successful, but they all produce that same
 error. I have combed the web for a good example of how to accomplish this,
 but I couldn't find anything that handled things in a way that would work
 for us.
 
 Can you tell me what I am doing wrong and how to accomplish the access?
 
 Thanks/Victor


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



Re: Struts 1.1 iterate woes

2004-10-03 Thread Victor Grazi
Thanks Addy, but I am not clear on your syntax. What is your bVO.lines? 
Remember my list is in my form. Also what is bLine? Not sure where my 
variables correspond
Regards
Victor

.. Original Message ...
On Sun, 3 Oct 2004 15:55:20 -0400 Addy Kapur [EMAIL PROTECTED] wrote:
I have used the following syntax and it works.

 logic:iterate name=BForm property=bVO.lines id=bAmount 
indexId=idx
  html:hidden property=%=bVO.bLine[+idx+].name%/
html:hidden property=%=bVO.bLine[+idx+].id%/
html:hidden 
property=%=bVO.bLine[+idx+].amount%/
   /logic:iterate


On Sun, 3 Oct 2004 14:16:19 -0400, Victor Grazi [EMAIL PROTECTED] 
wrote:
 We are trying to use logic:iterate in a JSP to access items in a list
 stored in the Form Bean by the Action class but we can't seem to get the
 syntax right.
 
 I am getting an error meessage from PropertyUtils that displays the 
index as
 '${index}', which indicates that that struts el expression is not 
resolving
 to an int.
 
 Here is my exact syntax. The form and action are described in more detail
 below.
 
 html:form action=/test
 logic:iterate id=lineItem indexId=index name=testForm
 property=list
 
 !-- display the index counter for the fun of it. This 
works
 ok --
 bean:write name=index /br
 
 !-- now access the id of the indexth element of the list
 --
 bean:write name=list[${index}].id /br
 
 !-- now access the description of the indexth element of
 the list --
 html:text property=list[${index}].description
 onchange=changefield(this);/br
 html:hidden property=isChanged[${index}] /br
 
 /logic:iterate
 html:submitSend/html:submit
 /html:form
 
 I have created several Test classes to help me understand the flow...
 
 The form is an instance of TestForm exends ActionForm and its form name 
in
 struts-config.xml is testForm. (This is the named form for the action.)
 TestForm has one property: java.util.List list with accessors public List
 getList() and public void setList(List list).
 
 List is always a List of LineItem objects where LineItem is a simple
 JavaBean with properties
 String id (public String getId() and public void setId(String id)), 
String
 description (public String getDescription() and public void
 setDescription(String description)) and boolean isChanged (public void
 setIsChanged(boolean value) and public boolean getIsChanged() )
 
 The Action (TestAction extends Action) execute method creates a List 
of 5
 LineItem objects and stores that List into the form by calling
 ((TestForm)form).setList(list), then forwards to the jsp (test.jsp)
 
 In the jsp I would like to iterate through the list to perform the
 following:
 display the id (as html read-only text) and the
 description (as html:text) of each line item,
 then use JavaScript to change the isChanged property (in a hidden 
field)
 when the onchange event is triggered.
 
 I have tried several different syntaxes. I also tried using arrays 
instead
 of List's. I also specified the type of the LineItem class explicitly in 
the
 form element. I tried each of the html: and bean:write lines above 
one
 at a time to see if any would be successful, but they all produce that 
same
 error. I have combed the web for a good example of how to accomplish 
this,
 but I couldn't find anything that handled things in a way that would work
 for us.
 
 Can you tell me what I am doing wrong and how to accomplish the access?
 
 Thanks/Victor
 
 -
 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: Struts 1.1 iterate woes

2004-10-03 Thread Karr, David
If ${index} is not evaluating, then this is not a Struts problem.
It's an issue with the container you're using and your configuration of
it.

For instance, you appear to say you're using Struts-EL.  Do you have the
correct taglib directives to use Struts-EL as opposed to Struts?  What
container are you using?

 -Original Message-
 From: Victor Grazi [mailto:[EMAIL PROTECTED] 
 
 We are trying to use logic:iterate in a JSP to access items 
 in a list stored in the Form Bean by the Action class but we 
 can't seem to get the syntax right. 
 
 I am getting an error meessage from PropertyUtils that 
 displays the index as '${index}', which indicates that that 
 struts el expression is not resolving to an int.
 
 Here is my exact syntax. The form and action are described in 
 more detail below.
 
 html:form action=/test
   logic:iterate id=lineItem indexId=index 
 name=testForm property=list
 
   !-- display the index counter for the fun of 
 it. This works ok --
   bean:write name=index /br
 
   !-- now access the id of the indexth element 
 of the list
 --
   bean:write name=list[${index}].id /br
 
   !-- now access the description of the indexth 
 element of
 the list --
   html:text property=list[${index}].description
 onchange=changefield(this);/br
   html:hidden property=isChanged[${index}] /br
 
   /logic:iterate
   html:submitSend/html:submit
 /html:form
 
 I have created several Test classes to help me understand the flow...
 
 The form is an instance of TestForm exends ActionForm and its 
 form name in struts-config.xml is testForm. (This is the 
 named form for the action.) TestForm has one property: 
 java.util.List list with accessors public List
 getList() and public void setList(List list). 
 
 List is always a List of LineItem objects where LineItem is a 
 simple JavaBean with properties String id (public String 
 getId() and public void setId(String id)), String description 
 (public String getDescription() and public void 
 setDescription(String description)) and boolean isChanged 
 (public void setIsChanged(boolean value) and public boolean 
 getIsChanged() )
 
 The Action (TestAction extends Action) execute method 
 creates a List of 5 LineItem objects and stores that List 
 into the form by calling ((TestForm)form).setList(list), then 
 forwards to the jsp (test.jsp)
 
 In the jsp I would like to iterate through the list to perform the
 following: 
 display the id (as html read-only text) and the
 description (as html:text) of each line item, 
 then use JavaScript to change the isChanged property (in a 
 hidden field) when the onchange event is triggered.
 
 I have tried several different syntaxes. I also tried using 
 arrays instead of List's. I also specified the type of the 
 LineItem class explicitly in the form element. I tried each 
 of the html: and bean:write lines above one at a time to 
 see if any would be successful, but they all produce that 
 same error. I have combed the web for a good example of how 
 to accomplish this, but I couldn't find anything that handled 
 things in a way that would work for us.
 
 Can you tell me what I am doing wrong and how to accomplish 
 the access?
 
 Thanks/Victor
 
 
 
 -
 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 can I know the version of common-validator.jar included in struts 1.1

2004-09-14 Thread Chris
Howdy,

I want to download and the common-validator.jar 's source code ,
so I want to know the  common-validator 's version to download
the right source. But can not get the  version number by examine struts1.1's
binary distro.

Could anybody give me a hint?

Regards
Chris


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



<    1   2   3   >