[OT] RE: java virtual machine crashed

2004-01-16 Thread Mike Jasnowski
it would probably help the diagnosis if you could describe the events
leading up to the crash.

-Original Message-
From: Otto, Frank [mailto:[EMAIL PROTECTED]
Sent: Friday, January 16, 2004 9:27 AM
To: Struts-User (E-Mail)
Subject: java virtual machine crashed


Hello,

I get some times following error and I don't know why. :-(

Heap at VM Abort:
Heap
 def new generation   total 3456K, used 3064K [0x4499, 0x44d5,
0x44e7)
  eden space 3072K,  98% used [0x4499, 0x44c830a8, 0x44c9)
  from space 384K,  11% used [0x44c9, 0x44c9b200, 0x44cf)
  to   space 384K,   0% used [0x44cf, 0x44cf, 0x44d5)
 tenured generation   total 45712K, used 37834K [0x44e7, 0x47b14000,
0x4899)
   the space 45712K,  82% used [0x44e7, 0x47362810, 0x47362a00,
0x47b14000)
 compacting perm gen  total 16896K, used 16751K [0x4899, 0x49a1,
0x4c99)
   the space 16896K,  99% used [0x4899, 0x499ebe40, 0x499ec000,
0x49a1)

Local Time = Fri Jan 16 14:54:50 2004
Elapsed Time = 13685
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (1.4.2-b28 mixed mode)
#

Has anyone an idea?


Regards,

Frank


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



RE: exception validator

2004-01-12 Thread Mike Jasnowski
search the list archives, this is a well documented problem.

-Original Message-
From: shankarr [mailto:[EMAIL PROTECTED]
Sent: Monday, January 12, 2004 9:48 AM
To: Struts Users Mailing List
Subject: exception validator


Hi!
I am getting the following exception and not able to debug.
Pleaes help.

Shanky

Jan 12, 2004 8:16:03 PM org.apache.struts.validator.ValidatorPlugIn
initResource

EVERE: jakarta.apache.org
ava.net.UnknownHostException: jakarta.apache.org
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:386)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:602)
at sun.net.www.http.HttpClient.init(HttpClient.java:303)
at sun.net.www.http.HttpClient.init(HttpClient.java:264)
at sun.net.www.http.HttpClient.New(HttpClient.java:336)
at sun.net.www.http.HttpClient.New(HttpClient.java:317)
at sun.net.www.http.HttpClient.New(HttpClient.java:312)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
tion.java:481)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
java:472)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
ection.java:574)
at java.net.URL.openStream(URL.java:960)
at
org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown So
rce)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown
Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
Source

at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
Sourc
)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(
nknown Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
nown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1567)
at
org.apache.commons.validator.ValidatorResourcesInitializer.initialize
ValidatorResourcesInitializer.java:259)
at
org.apache.struts.validator.ValidatorPlugIn.initResources(ValidatorPl
gIn.java:222)
at
org.apache.struts.validator.ValidatorPlugIn.init(ValidatorPlugIn.java
161)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServle
.java:1158)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
at javax.servlet.GenericServlet.init(GenericServlet.java:256)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.
ava:1044)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:88
)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContex
.java:3948)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4
71)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
java:866)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:85
)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)

at
org.apache.catalina.core.StandardHostDeployer.install(StandardHostDep
oyer.java:316)


-
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: html:text and converter

2004-01-09 Thread Mike Jasnowski
I believe, the point at which commons converters are implemented in Struts
won't help you here, judging by the way you're passing data to the view.

But if all you're trying to do is format the string into a date and you have
to stick with the DTO directly to view approach, you could try a combination
of the Struts TextTag and the JSTL formatting tags?  Format the data in the
JSP with the JStL formatting tag, then pass this new value to the TextTag?

Another option is to format it in the action, and pass it thru an actionform
(as previously described)



-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 08, 2004 2:27 PM
To: Struts Users Mailing List
Subject: Re: html:text and converter


Yes, that last msg wasn't much help.  Maybe if you provide a bigger picture
of
the situation, other folks can give you alternatives.  Or at least help
convince
you of the advantages to using AFs.

--- Hubert Rabago [EMAIL PROTECTED] wrote:
 Perhaps it's time to consider using AFs.  :)


 --- Giovani Salvador [EMAIL PROTECTED] wrote:
  The problem is that i am not showing the data with the action form. I
use
  the html:text to read
  directly from my DTO and, unfortunatly, no conversion is made.  :(
 
 
  Giovani Salvador
 
 
  - Original Message -
  From: Hubert Rabago [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Thursday, January 08, 2004 3:14 PM
  Subject: Re: html:text and converter
 
 
   You'll have to format the data that you're passing to your ActionForm.
If
  you're
   extending from ActionForm (but not using a Dyna form), perhaps you can
  format the
   data in your setField() method, or before returning from a getField()
  method.
  
   --- Giovani Salvador [EMAIL PROTECTED] wrote:
Hi all...
   
Is there a way to force that html:text call a converter? My problem
is
  that i
am trying to format
a date before showing it with html:text tag and a possible way is to
  pass by
the StringConverter class,
for example. By debugging the jakarta commons beans i perceveid that
  this call
is not made. Any tip
on how to force passing by the StringConverter?
   
Thanks.
   
Giovani Salvador
   
  

 __
 Do you Yahoo!?
 Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
 http://hotjobs.sweepstakes.yahoo.com/signingbonus

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



__
Do you Yahoo!?
Yahoo! Hotjobs: Enter the Signing Bonus Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

-
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: Handling Missing Message Key

2004-01-07 Thread Mike Jasnowski
set the 'null' property in the config for the msg bundle to 'false' so the
exception doesn't happen, the DTD for the struts config details it more

-Original Message-
From: Brian Styles [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 07, 2004 2:49 PM
To: [EMAIL PROTECTED]
Subject: Handling Missing Message Key


Hi all,

I'm using the i8ln features in the struts bean tag library

I populate a form bean with info from the database, and this info acts as
the key in a resource bundle so that I can add a international versions
using

bean:message name=form property=database_property/

however, I would very much like the actual underlying property to be written
out if the key doesn't exist in the resource bundle, rather than getting the
nasty missing message key exception. Is this possible?

thanks very much,
Brian

_
Tired of spam? Get advanced junk mail protection with MSN 8.
http://join.msn.com/?page=features/junkmail


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



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



RE: Warning: Page has Expired

2004-01-06 Thread Mike Jasnowski
Well, presumably your providing some navigation for the user to move forward
in the application, why not provide a suitable link (rather than relying on
the back button) to do this?

-Original Message-
From: Manjunath Bhat [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 1:35 AM
To: Struts Users Mailing List
Subject: RE: Warning: Page has Expired


Thanks for the reply. I tried this but no luck.

Actually my web form contains some form fields plus a file upload
element. Some thing similar to online resume submission. So I have to
POST method inorder to achieve the result.

-Original Message-
From: Martin Gainty [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 5:49 PM
To: Struts Users Mailing List
Subject: Re: Warning: Page has Expired

Did you try to turn off expire? e.g.

%
response.setDateHeader (Expires, 0);
response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-store);
response.setDateHeader(max-age, 0);
response.setDateHeader(Expires, 0);
%

Regards,
Martin

- Original Message -
From: Manjunath Bhat [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, January 05, 2004 6:55 AM
Subject: Warning: Page has Expired


Hi

I have a page which calls an action. Depending on certain condition I
will forward it to suitable pages. After this steps if user clicks the
Browser's back button, it gives typical browser error Warning: Page has
Expired  (I am using IE). This happens especially after the validation
failure. How to overcome this problem?
I don't want to use GET method in html:form/

Thanks in advance

M Bhat


-
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: Is there a way to prevent urls from being entered from the browser?

2003-12-29 Thread Mike Jasnowski
ctrl+esc w/o a keyboard? That would be a neat trick.

-Original Message-
From: Mark Lowe [mailto:[EMAIL PROTECTED]
Sent: Monday, December 29, 2003 2:41 PM
To: Struts Users Mailing List
Subject: Re: Is there a way to prevent urls from being entered from the
browser?


Is like the one in virgin stores where you can ctrl+esc and get the 
menu/desktop up?


On 29 Dec 2003, at 19:30, Chappell, Simon P wrote:

 Oh that's far too clever!

 We just used thin-client terminals locked in kiosk mode with I.E. 
 running in full screen, using touch screens and taking away the 
 keyboard and mouse. Ha ha ... now try typing in a URL!!! :-)

 Simon

 -Original Message-
 From: Brice Ruth [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 29, 2003 1:09 PM
 To: Struts Users Mailing List
 Subject: Re: Is there a way to prevent urls from being entered from 
 the
 browser?


 In theory, you could write a filter for the forwards that
 would check to
 see if a REFERER is set for the request. If not, the request
 was likely
 entered directly in a browser.

 Jim Anderson wrote:

 To clarify: I would like to be able to define ActionForwards for use
 within the app but which cannot be entered directly into the browser
 by the user. Is this possible?

 Thanks.

 jim


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


 -- 
 Brice D. Ruth
 Sr. IT Analyst
 Fiskars Brands, Inc.


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



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



-
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: Digester does not like ''

2003-12-11 Thread Mike Jasnowski
because the XML parser will expand entity references when it parses the
document, if it sees amp; it can expand it to , but if it sees a
standalone , it doesn't know what to do with it, or if it happens to be
next to another character, it iwll try to interpret that as an entity
reference.  There are five built-in entity references, and you can define
your own as well, but custom ones you can define the values for in your DTD.

One technique is to enclose markup you don't want parse to allow these
characters in a CDATA section, so perhaps:

root
 element![CDATA[ myest]]/element
/root

This tells the XML parser to not parse what is contained in between [ and ].
This technique is often used in applications where javascript is used, to
avoid parsing errors with Javascript operators like .

Or you can just use the character entity.

HTH,
Mike Jasnowski

-Original Message-
From: Andy Schmidgall [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 12:44 PM
To: Struts Users Mailing List
Subject: RE: Digester does not like ''


Well, I know amp; is the character entity for , but I'm just not clear
on why amp; works in this case... Is it simply because '' is flagged
in the parser as reserved for entities of the form xxx;, or is there
another reason? That's all I was asking. Sorry if I wasn't clear :)

-Andy

-Original Message-
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 11:35 AM
To: Struts Users Mailing List
Subject: Re: Digester does not like ''


amp; is the character entity for the ampersand sign ''.

-- Chris

NB. This is so basic that you absolutely should look this
up when seriously doing web development.

- Original Message -
From: Andy Schmidgall [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 6:23 PM
Subject: OT: Digester does not like ''


I'm sure I'm demonstrating a lack of basic knowledge about character
encoding here, but why does amp; work when '' doesn't? The thing
that gets me is that they both have '' in them :)

-Andy

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 10:54 AM
To: Struts Users Mailing List
Subject: RE: Digester does not like ''


Try amp;

 -Original Message-
 From: Chiming Huang [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 11, 2003 11:51 AM
 To: Struts Users Mailing List
 Subject: Digester does not like ''


 Hi,

 We are using the Digester which comes with the Struts 1.1 for reading
 xml files.  The Digester will throw exception if the data contains an
 '' character.  Is there a way to work around this?

 Thanks,
 Chiming


 -
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now

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


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



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


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



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



RE: Digester does not like ''

2003-12-11 Thread Mike Jasnowski
or at least not treat it like markup characters

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 3:19 PM
To: Struts Users Mailing List
Subject: RE: Digester does not like ''


because the XML parser will expand entity references when it parses the
document, if it sees amp; it can expand it to , but if it sees a
standalone , it doesn't know what to do with it, or if it happens to be
next to another character, it iwll try to interpret that as an entity
reference.  There are five built-in entity references, and you can define
your own as well, but custom ones you can define the values for in your DTD.

One technique is to enclose markup you don't want parse to allow these
characters in a CDATA section, so perhaps:

root
 element![CDATA[ myest]]/element
/root

This tells the XML parser to not parse what is contained in between [ and ].
This technique is often used in applications where javascript is used, to
avoid parsing errors with Javascript operators like .

Or you can just use the character entity.

HTH,
Mike Jasnowski

-Original Message-
From: Andy Schmidgall [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 12:44 PM
To: Struts Users Mailing List
Subject: RE: Digester does not like ''


Well, I know amp; is the character entity for , but I'm just not clear
on why amp; works in this case... Is it simply because '' is flagged
in the parser as reserved for entities of the form xxx;, or is there
another reason? That's all I was asking. Sorry if I wasn't clear :)

-Andy

-Original Message-
From: Christian Bollmeyer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 11:35 AM
To: Struts Users Mailing List
Subject: Re: Digester does not like ''


amp; is the character entity for the ampersand sign ''.

-- Chris

NB. This is so basic that you absolutely should look this
up when seriously doing web development.

- Original Message -
From: Andy Schmidgall [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 6:23 PM
Subject: OT: Digester does not like ''


I'm sure I'm demonstrating a lack of basic knowledge about character
encoding here, but why does amp; work when '' doesn't? The thing
that gets me is that they both have '' in them :)

-Andy

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 11, 2003 10:54 AM
To: Struts Users Mailing List
Subject: RE: Digester does not like ''


Try amp;

 -Original Message-
 From: Chiming Huang [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 11, 2003 11:51 AM
 To: Struts Users Mailing List
 Subject: Digester does not like ''


 Hi,

 We are using the Digester which comes with the Struts 1.1 for reading
 xml files.  The Digester will throw exception if the data contains an
 '' character.  Is there a way to work around this?

 Thanks,
 Chiming


 -
 Do you Yahoo!?
 Free Pop-Up Blocker - Get it now

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


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



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


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



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



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



RE: struts application with frames: top, side menus and main screen

2003-11-13 Thread Mike Jasnowski
I'm using frames w/Struts, what specifically do you want to know?  There's
not anything special you have to do with frames and Struts as far as I know.

-Original Message-
From: neso m [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 13, 2003 3:02 PM
To: [EMAIL PROTECTED]
Subject: struts application with frames: top, side menus and main screen




Hi !

Has anyone found sample STRUTS application and/or documentation on the net
that uses frames ? I would like to build the application with top menu, side
menu and main screen.
Thanks !

Neso






-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard


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



RE: XML importing :

2003-11-11 Thread Mike Jasnowski
You might try looking at www.xmlsoftware.com, they have tons of XML related
utilities and tools.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 11, 2003 7:55 AM
To: Struts Users Mailing List
Subject: XML importing :



Sorry for a unrelated question, but is there a easy way of taking xml data
and importing it into a relational database some like


person
  nameMike/name
/person

gets translated as

insert into user values (Mike)

etc..

Mike







The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.




-
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: init form on page

2003-11-11 Thread Mike Jasnowski
You really should be populating the form from within an action before you
get to the JSP.

But if you must, custom tags aside, this might work:

%

  ActionForm form = (ActionForm)pageContext.getAttribute(formBeanName);
  BeanUtils.copyProperties(databean,form);
  pageContext.setAttribute(formBeanName,form);

%

Do rendering here

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Peter Klassen
Sent: Tuesday, November 11, 2003 8:07 AM
To: [EMAIL PROTECTED]
Subject: init form on page


Hi u all,
would like to init a ActionForm on the Top of my JSP-Page with an given
Data-Bean.

How can i retrieve the Form? pageContext? session?

thx, Peter




-
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: [FRIDAY] Why people want to know who read their msg?

2003-11-07 Thread Mike Jasnowski
Or better yet, why not just write an Outlook add-in that strips the header
for you.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 3:32 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] Why people want to know who read their msg?



--- Adam Hardy [EMAIL PROTECTED] wrote:
 On 11/07/2003 09:13 PM Yansheng Lin wrote:
  That's not the point.
 
  -Original Message-
  From: James Mitchell [mailto:[EMAIL PROTECTED]
  Sent: November 7, 2003 12:48 PM
  To: Struts Users Mailing List
  Subject: Re: [FRIDAY] Why people want to know who read their msg?
 
 
  On Fri, 7 Nov 2003, Yansheng Lin wrote:
 
 
 It's pissing me off when my Outlook asks me if I went to send a
 notification
 message.

 Actually I know what you mean and I find it slightly annoying having to
 hit tab - return to get rid of the confirm dialog box, and the problem

 is that I cannot turn off the configuration option because that turns it

 off for the whole application and I need it set 'on' for my personal
 email account, but 'off' for my list accounts like this one.

 I wonder if anyone on the Jakarta admin team could set the mailing list
 software to strip the 'request-confirmation' email header from the mails

 it sends out? As Yinsheng says, there is no point in them.

You want Jakarta to change its processes to accomodate your use of a
poorly written email client?  Not likely...

David


 Adam

 --
 struts 1.1 + tomcat 5.0.12 + java 1.4.2
 Linux 2.4.20 RH9


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



__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

-
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: html:text i'm lost

2003-10-31 Thread Mike Jasnowski
The name you provide for the name attr in bean:write/ must match the
name you stored it in the request with.

-Original Message-
From: struts [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2003 8:41 AM
To: Struts Users Mailing List
Subject: Re: html:text i'm lost


When i do something like you proposed
bean:write name=users property=userName/

 error: org.apache.jasper.JasperException: Cannot find bean
sessionScope.users in any scope

In the action i have:
usersForm.setUsers(usersValues);

//-- assign form object to the request object

setForm(mapping, userForm, request);

//-- populate the form object

populateForm(form, request);





- Original Message -
From: Firat TIRYAKI [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, October 31, 2003 2:35 PM
Subject: Re: html:text


 you should use the name too
 name is the id you define in tags (logic:iterate maybe)
 bean:write name=users property=userName/

 and also

 c:out value=${users.userName} should work

 F.



 - Original Message -
 From: struts [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, October 31, 2003 3:18 PM
 Subject: html:text


 This is maybe a stupid question but how can i print the user.userName
value
 on screen instead of in a text box ?

 eg:

 html:text property=users.userName size=10 maxlength=10/

 i want to do something like : bean:write property=users.userName/ but
 this is not working.

 Thanks


 -
 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: Eclipse-like web view framework for struts?

2003-10-27 Thread Mike Jasnowski
The WebLogic Portal implementation I'm using at the moment has capabilities
like you describe, you can customize layouts, lf, etc.. and place views on
a browser screen, min/max them.

I don't know if there are open-source implementations like this.  There is
also an Eclipse WebTools project being started, but unfortunately I don't
know if it has this kind of requirement.

-Original Message-
From: Kruse, Matt [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 11:36 AM
To: Struts Users Mailing List (E-mail)
Subject: Eclipse-like web view framework for struts?


I would like to build a web app that functions like a control panel with
multiple views of data that the user can close, resize, etc.

What I keep coming back to is wanting something similar to the Eclipse
development environment, where I can pick my views and position them on the
screen and have the layout be customizable by the users. Except in a
browser, probably using frames and/or iframes. Somewhat like a portal, even,
but not exactly.

My target browser will be IE only, so I can do lots of cool things, but I
don't want to get into active X or anything like that. Purely HTML/CSS
browser-based interface.

Is there any kind of framework or UI tool which will get me going with this
kind of approach?

Matt Kruse


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



RE: Tags creating Tags

2003-10-27 Thread Mike Jasnowski
Going from your example, I'm not sure why you even need to subclass a Struts
tag to get the output you described. You should be able to code something
like this on your JSP:

lukas:myTag lang=en
  html:file property=formFile styleClass=FormField/
/lukas:myTag


The tag handling flow would look like (similar to what you proposed
earlier):

 myTag.doStartTag();

 pageContext.getOut().println(tabletrtd);

 *include output of body of custom tag here, which might be Struts tags
which are invoked.

 myTag.doEndTag();

 pageContext.getOut().println(/td/tr/table);


 Which would evaluate to


 table
  tr
   td
input type=file name=formFile value= class=FormField
   /td
  /tr
 /table

All this w/o changing or subclassing a Struts tag, the only Custom tag work
is myTag.

HTH,
Mike

-Original Message-
From: Lukas Bradley [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 26, 2003 7:34 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Tags creating Tags


Hi all,

Maybe I'm just tired, but the answer to this is not to be found.  I could me
making this harder than it is, or something might be right in front of me,
and I don't see it.

What I want is a custom tag that creates other custom tags.  Here is a
simple example:

lukas:myTag lang=en /

Should produce something like this:

table
  trtdEnglish/td/tr
  trtdhtml:file property=formFile styleClass=FormField//td/tr
   !-- Imagine a lot more custom tags here --
/table

Which should then evaluate to:

table
  trtdEnglish/td/tr
  trtdinput type=file name=formFile value=
class=FormField/td/tr
   !-- Imagine a lot more custom tags rendering here. --
/table

I've thought about trying to extend BodyTagSupport, return
EVAL_BODY_BUFFERED in doStartTag(), modify the bodyContent in doAfterBody(),
then return EVAL_PAGE() in doEndTag().  However, BodyContent has a protected
constructor, and no way to set its content.

I want to maintain the functionality gained from Struts-like custom tags,
while extracting the creation of them in a super-duper momma tag.  Any help?

Lukas




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



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



RE: Tags creating Tags

2003-10-27 Thread Mike Jasnowski
Just to be clear, I'm not advocating that the custom tag internally
instantiate the Struts tag, but rather let the container instantiate them as
it encountered them in the JSP. So

 CustomTag.doStartTag();
StrutsTag.doStartTag();
StrutsTag.doEndTag();
 CustomTag.doEndTag();

The custom tag must enable it's body to be evaluated so the Struts tag is
invoked. but other than that.

-Original Message-
From: Edgar P Dollin [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 10:51 AM
To: 'Lukas Bradley'; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: Tags creating Tags


There is a little more overhead than this.

You are now taking control of the struts tag lifespan.  Currently, assuming
tag pooling, this is done by the container based on a hash of the parameter
values.  If you are careful you can piggyback on that by synchronizing the
internal tag instantiation with your tag.  You could instantiate the
internal tag on every reference, but that would be a step back in terms of
efficiency.

Then any jsp parameters you will be passing to the internal tag must be
passed prior to invoking the tag.  Additionally, each of the methods of the
Tag or BodyTag interfaces must be implemented and call the internally
referenced tag based on the requirements of the tag.  Most of the struts
tags don't have a 'real' body so this is not that important.  If you were
considering wrapping the iterate tag, you would have an interesting problem.

Edgar

 -Original Message-
 From: Lukas Bradley [mailto:[EMAIL PROTECTED]
 Sent: Monday, October 27, 2003 10:25 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: Tags creating Tags


 Mike emailed me this idea last night, and I think it's the best yet.

 Brilliant solution, Mike.

 Lukas

 Mike Jasnowski [EMAIL PROTECTED] wrote in message
 news:[EMAIL PROTECTED]
  Going from your example, I'm not sure why you even need to
 subclass a
 Struts
  tag to get the output you described. You should be able to code
  something like this on your JSP:
 
  lukas:myTag lang=en
html:file property=formFile styleClass=FormField/
  /lukas:myTag
 
 
  The tag handling flow would look like (similar to what you proposed
  earlier):
 
   myTag.doStartTag();
 
   pageContext.getOut().println(tabletrtd);
 
   *include output of body of custom tag here, which might be Struts
  tags which are invoked.
 
   myTag.doEndTag();
 
   pageContext.getOut().println(/td/tr/table);
 
 
   Which would evaluate to
 
 
   table
tr
 td
  input type=file name=formFile value= class=FormField
 /td
/tr
   /table
 
  All this w/o changing or subclassing a Struts tag, the only
 Custom tag
 work
  is myTag.
 
  HTH,
  Mike
 
  -Original Message-
  From: Lukas Bradley [mailto:[EMAIL PROTECTED]
  Sent: Sunday, October 26, 2003 7:34 PM
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: Tags creating Tags
 
 
  Hi all,
 
  Maybe I'm just tired, but the answer to this is not to be found.  I
  could
 me
  making this harder than it is, or something might be right
 in front of
  me, and I don't see it.
 
  What I want is a custom tag that creates other custom tags.
  Here is a
  simple example:
 
  lukas:myTag lang=en /
 
  Should produce something like this:
 
  table
trtdEnglish/td/tr
trtdhtml:file property=formFile
 styleClass=FormField//td/tr
 !-- Imagine a lot more custom tags here --
  /table
 
  Which should then evaluate to:
 
  table
trtdEnglish/td/tr
trtdinput type=file name=formFile value=
  class=FormField/td/tr
 !-- Imagine a lot more custom tags rendering here. -- /table
 
  I've thought about trying to extend BodyTagSupport, return
  EVAL_BODY_BUFFERED in doStartTag(), modify the bodyContent in
 doAfterBody(),
  then return EVAL_PAGE() in doEndTag().  However, BodyContent has a
 protected
  constructor, and no way to set its content.
 
  I want to maintain the functionality gained from Struts-like custom
  tags, while extracting the creation of them in a super-duper momma
  tag.  Any
 help?
 
  Lukas
 
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]





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



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



RE: Commenting JSP code?

2003-10-24 Thread Mike Jasnowski
%--
   Comment
--%

-Original Message-
From: Ruth, Brice [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 12:58 PM
To: Struts Users Mailing List
Subject: Commenting JSP code?


How do I go about putting comments in my JSP code that I don't want sent 
out to the browser?

-- 
Brice D. Ruth
Sr. IT Analyst
Fiskars Brands, Inc.



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



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



RE: hide section of form

2003-10-24 Thread Mike Jasnowski
That's because of the behavior of the visibility property only indicates
that the div should be visible|invisible, but not change it's dimensions
in the document I believe. That's why the space still appears occupied.

 What I think you want is something more like the display property, which
indicates whether the div should occupy space in the document. Of course,
watch out for Netscape's treatment of this property.

That said, you might also look at changing the dimensions of the div as well
as setting visibility.

HTH,
Mike Jasnowski

-Original Message-
From: Jan Kester [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 12:43 PM
To: Struts Users Mailing List
Subject: RE: hide section of form


Thanks,

I did add DHTML and used DIV with visibility hidden and visibility visible.
Only, the submit buttons that come afterwards, remain in the same location.
That is, when the questions are hidden, the buttons are a far below in the
page.

Regards, Jan

-Mensaje original-
De: Rajat Pandit [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 24 de octubre de 2003 10:14
Para: 'Struts Users Mailing List'
Asunto: RE: hide section of form


Thoug a non struts related question,  you might want to consider layers
(DHTML) and make them visible or invisible. Try using dreamweaver. It
has a good tool for making layers

-Original Message-
From: Jan Kester [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 12:59 AM
To: Struts Users Mailing List
Subject: hide section of form


Hello

how can I hide a section of my form with struts/javascript. That is,
someone presses a radio button and sees additional questions, presses
the opposite radio button and questions disappears. Without reloading
the form.

Regards, Jan


-
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: Drop down selection without submit?

2003-10-20 Thread Mike Jasnowski
You can launch a URL when the onselect event handler is invoked for the
select box I believe.

-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 3:33 PM
To: Struts Users Mailing List
Subject: Drop down selection without submit?


Hi,

I would like to make a selection from a drop down menu
and call an action without using a submit button.  The action
is called by a change in the menu selection.

Any suggestions?

Thanks,
Barry


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



RE: No bean specified

2003-09-30 Thread Mike Jasnowski
This generally means that somewhere you named a bean, either in a tag or a
call to some BeanUtils method. However the bean name specified could not be
located, perhaps it's in the wrong scope, perhaps it's using a wrong value
for the name attribute on a tag.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 6:36 AM
To: [EMAIL PROTECTED]
Subject: No bean specified


Hi all,
Does anybody know what causes this exception??

javax.servlet.ServletException: BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:821)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


java.lang.IllegalArgumentException: No bean specified

org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUti
ls.java:837)

org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)

org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.j
ava:821)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)

org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)

-
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: Retrieving value of java script variable in a Scriplet

2003-09-30 Thread Mike Jasnowski
The two are evaluated at different times, one on the server, and one on the
client

-Original Message-
From: Raghu.Ramakrishnan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 1:19 PM
To: Struts Users Mailing List
Subject: Retrieving value of java script variable in a Scriplet





Hi,

Does any one know how I could retrive a Java script variable between a
scriplet code


Eg:

for (var i = 0; i= (listSize-1); i++)
{

var pay = '%= orgAmcStmt %';
alert (The current Index is Before the Scriplet is: +
pay);

%
if (list.size()!= 0)
{
// I would like to get the Value of i
here 
}
%

}

I would like to get the value of i withing the scriplet


Raghu



-Original Message-
From: Matthias Fraass [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 12:02 PM
To: [EMAIL PROTECTED]
Subject: html:errors indexed?


Hi,

I've got a JSP page with some elements which are drawn by iterating
through a collection. Each of these elements can be validated
individually. The problem is that html:errors doesn't handle the
indexed tag as the other controls (e.g. html:text) do.
How can I show specific error messages for the controls?
Do I have to expand ErrorsTag =)?

I hope my description is sufficient - otherwise I can provide some
example code but I think it's quite a straightforward problem.

Regards,

Matthias


-
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: configure default error page in web.xml

2003-09-30 Thread Mike Jasnowski
It's too bad you couldn't forward that to an Action, which could then
forward it to a custom page, or rethrow so a Struts exception handler could
grab it.

-Original Message-
From: Zhang, Larry (L.) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 30, 2003 3:13 PM
To: Struts Users Mailing List
Subject: configure default error page in web.xml


HI,

I have a request to catch a Java Exception in the servlet and display an
error page. The functionality requires that we display different error
message for different exception.

A way to do this is to put try and catch logic in servlet, and if an
Exception is caught, I do
request.setAttribute(javax.servlet.jsp.jspExcetion,e), and then forward to
jsp error page, where we check the type of exception implicit object. Based
on this type, we display different error message. This is fine, but we are
not going to use this approach.

The other way is to configure web.xml. We can configure an error page for
specific Java exception. If the specific exception is raised to the web
container, the configured error page will get called. My question is that is
there any body  doing this way successfully?

Thanks.

Larry Zhang


-
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: [Q]Tags: Lookforward to create the correct session name for bean?

2003-09-29 Thread Mike Jasnowski
Assuming your action uses the form your going to render, I don't see any
reason why you shouldn't be able to.

But looking at your question, you seem to be describing what Struts does
already.  It saves a form bean under a key with the same value as the name
attribute. Then you are forwarded to a JSP which uses tag(s) to render that
form.

Are you wanting to save a different object altogether than the action form?
You wouldn't be able to save a different object with the same key value that
Struts would use I expect. Unless you use a different scope perhaps, but
even then you might have conflicts.



-Original Message-
From: Johan Wasserman - CPX Mngd Services
[mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:03 PM
To: Struts Users Mailing List
Subject: RE: [Q]Tags: Lookforward to create the correct session name for
bean?


Are my questions real difficult, or s stupid?

No-one's ever answered any of 'em, if only I knew why.

{:(

-Original Message-
From: Johan Wasserman - CPX Mngd Services
Sent: Monday, September 29, 2003 8:17 AM
To: Struts Users Mailing List
Subject: [Q]Tags: Lookforward to create the correct session name for
bean?


Hi,
Is there a way for a formAction to look at the tag defined in the form
(especialy the name attribute) so that I can create a bean and save it
in the session as the same name as the name attribute even before the
tag needs it.

Thanks,
Johan.

-
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: Prevent display of JspException

2003-09-29 Thread Mike Jasnowski
Is this exception coming from you're own code? Can you do a File.exists()
first and throw something more app specific that a Struts exception handler
could catch?

-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:42 PM
To: Struts Users Mailing List
Subject: Prevent display of JspException


I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?

Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.

Thanks.


-
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: Prevent display of JspException

2003-09-29 Thread Mike Jasnowski
your own...

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:37 PM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


Is this exception coming from you're own code? Can you do a File.exists()
first and throw something more app specific that a Struts exception handler
could catch?

-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:42 PM
To: Struts Users Mailing List
Subject: Prevent display of JspException


I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?

Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.

Thanks.


-
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: Prevent display of JspException

2003-09-29 Thread Mike Jasnowski
Ahh, in the case of message keys, there is an attribute you can use to
change the behavior of missing keys, I believe it's called null, here is
the description from the dtd

 nullSet to true if you want our message resources to
return a
 null string for unknown message keys, or false to
return a
 message with the bad key value.



-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 1:02 PM
To: Mike Jasnowski; Struts Users Mailing List
Subject: RE: Prevent display of JspException


No. It would be thrown by struts code, say if somebody mucked with my
ApplicationResources.properties and a certain message key couldn't be found.
This is something that would happen when the JSPs are compiled. There is
really only an off chance of this occuring in production, just wanted to see
if something could be done should it arise.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 9:40 AM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


your own...

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:37 PM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


Is this exception coming from you're own code? Can you do a File.exists()
first and throw something more app specific that a Struts exception handler
could catch?

-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:42 PM
To: Struts Users Mailing List
Subject: Prevent display of JspException


I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?

Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.

Thanks.


-
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: Prevent display of JspException

2003-09-29 Thread Mike Jasnowski
I know this might not be the behavior you want, but at least the app
wouldn't crash.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:59 PM
To: Wes Kubo; Struts Users Mailing List
Subject: RE: Prevent display of JspException


Ahh, in the case of message keys, there is an attribute you can use to
change the behavior of missing keys, I believe it's called null, here is
the description from the dtd

 nullSet to true if you want our message resources to
return a
 null string for unknown message keys, or false to
return a
 message with the bad key value.



-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 1:02 PM
To: Mike Jasnowski; Struts Users Mailing List
Subject: RE: Prevent display of JspException


No. It would be thrown by struts code, say if somebody mucked with my
ApplicationResources.properties and a certain message key couldn't be found.
This is something that would happen when the JSPs are compiled. There is
really only an off chance of this occuring in production, just wanted to see
if something could be done should it arise.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 9:40 AM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


your own...

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:37 PM
To: Struts Users Mailing List
Subject: RE: Prevent display of JspException


Is this exception coming from you're own code? Can you do a File.exists()
first and throw something more app specific that a Struts exception handler
could catch?

-Original Message-
From: Wes Kubo [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 12:42 PM
To: Struts Users Mailing List
Subject: Prevent display of JspException


I've been doing some refactoring with my ApplicationResources.properties and
every once in a while I get a page that shows a JspException when I've
mistyped a property name or whatever. Is there anyway of catching the
JspException at this compilcation point and displaying a different message
(or none at all)?

Theoretically, this should never happen once we deploy, but if someone mucks
with an image path or something is missing, I'd rather the client deal with
a missing image rather than see the JspException trace.

Thanks.


-
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: Struts reusable jsp design question?

2003-09-22 Thread Mike Jasnowski
Have you looked at Tiles?

-Original Message-
From: Bob Jensen [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 3:49 PM
To: [EMAIL PROTECTED]
Subject: Struts reusable jsp design question?


Warning I am new to Struts, so I appoligize if this has been addressed
before, however I
have not found a discussion on this.

I want to create a jsp that is reusable from several jsps, for this
discussion I will call it Resuable.jsp.

Here is the problem I am trying to solve.

CallerOne.jsp requires 3 pieces of data(key1, key2, key3), so I have
CallerOnePreparePageAction that prepares the data for the jsp.

CallerOne.jsp calls ResuablePreparePageAction passing in the data needed by
Reusable.jsp.
Reusable.jsp call ReusableAction to perform its task.  If successful
ReusableAction  needs to return
to who ever called it and needs to pass back the required pieces of
data needed by the caller, in this case (key1, key2, key3).

I want this to work if CallerTwo.jsp that requires, 4 different pieces of
information calls Reusable.jsp as well.

Some ideas:
I could require that the return action, and a list of return fields be
specified, but that would seem to require building
hidden fields on the Reusable.jsp and building a dynamic forward in
ReusableAction.

I could put the caller's form bean in session scope, and pass in the return
action, but what about multiple browser
windows being opened on the caller?

Is there a Struts best practices approach to this problem?

thanks in advance,
Bob













-
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: XForms Engines (was RE: Is it possible to remove *.do or /do/* from the URL)

2003-09-19 Thread Mike Jasnowski
I think there are server-side XForms engines, at leave Novell said they had
one at the TSS this year

-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 9:49 AM
To: Struts Users Mailing List
Subject: XForms Engines (was RE: Is it possible to remove *.do or /do/*
from the URL)



XForms is cool and all, but ...

* Does anyone care?  Even Microsoft (who would arguably need to be
   convinced to implement support for this to make it a viable
   real world standard)?

For what it's worth, XML.com has a story this week on 10 Favorite
XForms Engines: http://www.xml.com/pub/a/2003/09/10/xforms.html

These aren't finished products, but players include IBM, Novell, and
Oracle (among others.)

I guess we'll see what happens; I'd been thinking about JSF and
XForms as complementary, but then, my thinking was at a pretty
superficial level.

Joe

--
--
Joe Germuska
[EMAIL PROTECTED]
http://blog.germuska.com
If nature worked that way, the universe would crash all the time.
--Jaron Lanier

-
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: Reuse of JSP's and relative links

2003-09-17 Thread Mike Jasnowski
You might be able to do this with an onsubmit handler

ie.. html:form onsubmit=this.location.href='/Show.do'

-Original Message-
From: Daniel Wang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 10:29 AM
To: Struts Users Mailing List
Subject: Re: Reuse of JSP's and relative links


You can't.  :(

- Original Message -
From: Anders [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 7:24 AM
Subject: Re: Reuse of JSP's and relative links


 Ah, great! :)

 How can i do the same thing in the html:form tag? Anyone knows?

 Thanks,
 Anders,

 On Wed, 17 Sep 2003, Daniel Wang wrote:

  use href as opposed to page
 
  i.e. html:link href=Show.do
 
  - Original Message -
  From: Anders [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, September 17, 2003 7:07 AM
  Subject: Reuse of JSP's and relative links
 
 
   Hi,
  
   How can i get html:link to use relative links?
  
   I'm trying to reuse actions and JSP several places under different
paths.
   My problem is:
  
   The user enters through /secure/articles/Show.do and it displays the
page
   with articles. The links on the page lets you go to the next page and
read
   the full article.
  
   I then use the same action class for /secure/news/Show.do, and want to
use
   the same JSP's. It all works fine until the user clicks a link which
   directs him to /secure/articles/Show.do?page=2 .
  
   How can i make html:link use relative paths? I would like to specify
   html:link action=Show.do?page=2 and that would lead to
   /secure/news/Show.do because the originating url said so.
  
   Thanks,
   Anders,
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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



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



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



RE: Reuse of JSP's and relative links

2003-09-17 Thread Mike Jasnowski
Or

html:form onsubmit=this.action='/Show.do';this.submit();

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 10:29 AM
To: Struts Users Mailing List
Subject: RE: Reuse of JSP's and relative links


You might be able to do this with an onsubmit handler

ie.. html:form onsubmit=this.location.href='/Show.do'

-Original Message-
From: Daniel Wang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 10:29 AM
To: Struts Users Mailing List
Subject: Re: Reuse of JSP's and relative links


You can't.  :(

- Original Message -
From: Anders [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 7:24 AM
Subject: Re: Reuse of JSP's and relative links


 Ah, great! :)

 How can i do the same thing in the html:form tag? Anyone knows?

 Thanks,
 Anders,

 On Wed, 17 Sep 2003, Daniel Wang wrote:

  use href as opposed to page
 
  i.e. html:link href=Show.do
 
  - Original Message -
  From: Anders [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Wednesday, September 17, 2003 7:07 AM
  Subject: Reuse of JSP's and relative links
 
 
   Hi,
  
   How can i get html:link to use relative links?
  
   I'm trying to reuse actions and JSP several places under different
paths.
   My problem is:
  
   The user enters through /secure/articles/Show.do and it displays the
page
   with articles. The links on the page lets you go to the next page and
read
   the full article.
  
   I then use the same action class for /secure/news/Show.do, and want to
use
   the same JSP's. It all works fine until the user clicks a link which
   directs him to /secure/articles/Show.do?page=2 .
  
   How can i make html:link use relative paths? I would like to specify
   html:link action=Show.do?page=2 and that would lead to
   /secure/news/Show.do because the originating url said so.
  
   Thanks,
   Anders,
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 



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



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



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



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



RE: Reuse of JSP's and relative links

2003-09-17 Thread Mike Jasnowski
Ahh good point, I was thinking I guess in terms if it was launched from a
button.

-Original Message-
From: Daniel Wang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 10:39 AM
To: Struts Users Mailing List
Subject: Re: Reuse of JSP's and relative links


Actually you probably don't want to do the extra this.submit() from within
a submit handler -- it'll create an endless loop

onSubmit should submit the form unless a FALSE is returned

- Original Message -
From: Mike Jasnowski [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 7:31 AM
Subject: RE: Reuse of JSP's and relative links


 Or

 html:form onsubmit=this.action='/Show.do';this.submit();

 -Original Message-
 From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 10:29 AM
 To: Struts Users Mailing List
 Subject: RE: Reuse of JSP's and relative links


 You might be able to do this with an onsubmit handler

 ie.. html:form onsubmit=this.location.href='/Show.do'

 -Original Message-
 From: Daniel Wang [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 17, 2003 10:29 AM
 To: Struts Users Mailing List
 Subject: Re: Reuse of JSP's and relative links


 You can't.  :(

 - Original Message -
 From: Anders [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, September 17, 2003 7:24 AM
 Subject: Re: Reuse of JSP's and relative links


  Ah, great! :)
 
  How can i do the same thing in the html:form tag? Anyone knows?
 
  Thanks,
  Anders,
 
  On Wed, 17 Sep 2003, Daniel Wang wrote:
 
   use href as opposed to page
  
   i.e. html:link href=Show.do
  
   - Original Message -
   From: Anders [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, September 17, 2003 7:07 AM
   Subject: Reuse of JSP's and relative links
  
  
Hi,
   
How can i get html:link to use relative links?
   
I'm trying to reuse actions and JSP several places under different
 paths.
My problem is:
   
The user enters through /secure/articles/Show.do and it displays the
 page
with articles. The links on the page lets you go to the next page
and
 read
the full article.
   
I then use the same action class for /secure/news/Show.do, and want
to
 use
the same JSP's. It all works fine until the user clicks a link which
directs him to /secure/articles/Show.do?page=2 .
   
How can i make html:link use relative paths? I would like to specify
html:link action=Show.do?page=2 and that would lead to
/secure/news/Show.do because the originating url said so.
   
Thanks,
Anders,
   
   
   
  
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



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



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



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



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



RE: Reuse of JSP's and relative links

2003-09-17 Thread Mike Jasnowski
Actually now that I think about it I'm not sure you'd be able to change the
action attribute of the form tag during onsubmit. It might be too late at
that point.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 10:46 AM
To: Struts Users Mailing List
Subject: RE: Reuse of JSP's and relative links


Ahh good point, I was thinking I guess in terms if it was launched from a
button.

-Original Message-
From: Daniel Wang [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 10:39 AM
To: Struts Users Mailing List
Subject: Re: Reuse of JSP's and relative links


Actually you probably don't want to do the extra this.submit() from within
a submit handler -- it'll create an endless loop

onSubmit should submit the form unless a FALSE is returned

- Original Message -
From: Mike Jasnowski [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 16, 2003 7:31 AM
Subject: RE: Reuse of JSP's and relative links


 Or

 html:form onsubmit=this.action='/Show.do';this.submit();

 -Original Message-
 From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, September 16, 2003 10:29 AM
 To: Struts Users Mailing List
 Subject: RE: Reuse of JSP's and relative links


 You might be able to do this with an onsubmit handler

 ie.. html:form onsubmit=this.location.href='/Show.do'

 -Original Message-
 From: Daniel Wang [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 17, 2003 10:29 AM
 To: Struts Users Mailing List
 Subject: Re: Reuse of JSP's and relative links


 You can't.  :(

 - Original Message -
 From: Anders [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Wednesday, September 17, 2003 7:24 AM
 Subject: Re: Reuse of JSP's and relative links


  Ah, great! :)
 
  How can i do the same thing in the html:form tag? Anyone knows?
 
  Thanks,
  Anders,
 
  On Wed, 17 Sep 2003, Daniel Wang wrote:
 
   use href as opposed to page
  
   i.e. html:link href=Show.do
  
   - Original Message -
   From: Anders [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Wednesday, September 17, 2003 7:07 AM
   Subject: Reuse of JSP's and relative links
  
  
Hi,
   
How can i get html:link to use relative links?
   
I'm trying to reuse actions and JSP several places under different
 paths.
My problem is:
   
The user enters through /secure/articles/Show.do and it displays the
 page
with articles. The links on the page lets you go to the next page
and
 read
the full article.
   
I then use the same action class for /secure/news/Show.do, and want
to
 use
the same JSP's. It all works fine until the user clicks a link which
directs him to /secure/articles/Show.do?page=2 .
   
How can i make html:link use relative paths? I would like to specify
html:link action=Show.do?page=2 and that would lead to
/secure/news/Show.do because the originating url said so.
   
Thanks,
Anders,
   
   
   
  
 -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



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



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



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



-
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: Using DispatchAction class with Struts Validator

2003-09-17 Thread Mike Jasnowski
Do you have corresponding pages for each method? Would the page attribute
enable you to only validate fields relevant to the corresponding dispatch
method? Or have I missed your question.

-Original Message-
From: Burhan Nazir [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 12:50 PM
To: [EMAIL PROTECTED]
Subject: Using DispatchAction class with Struts Validator


Got a problem thats been bugging me for a while:

I'm using an action class that extends DispatchAction class.  The methods in
this class use the same ActionForm class (DynaValidatorActionForm).
However,
the validation requirments for each method in the dispatch class are
different.

I understand that if I use the DynaValidatorActionForm, I can map the action
URI to the name property in the validation.xml file.  Is it possible to map
the exact method in my dispacth to the validation.xml file?

For example, if my DispatchAction class URI path mapping is: /dispatch,
and
I have a method named update1 and update2 within the dispatch class, can
I do this in
my validation.xml file?:

formset
form name=/dispatch.do.update1
..do special validation here
/form
form name=/dispatch.do.update2
..do special validation here
/form
/formset

Many thanks for your help!
-Burhan




--
FreeBSD 4.8-STABLE * http://www.freebsd.org
 5:40PM  up 127 days,  2:09, 11 users, load averages: 0.00, 0.00, 0.00

-
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: [OT] OutOfMemoryError when I have plenty of heap

2003-09-17 Thread Mike Jasnowski
Even though you might not think a profiler would be useful, it might not
hurt to just poke around and see what's up.

JProbe is a useful tool for debugging/profiling these types of errors, you
can remotely connect and watch things like object creation, heap usage,
etc..See what types of objects have been allocated most,what things may not
be being garbage collected,etc..


-Original Message-
From: Kito D. Mann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 2:16 PM
To: Struts Users Mailing List
Subject: Re: [OT] OutOfMemoryError when I have plenty of heap


Casey,

If you're using JSP, and you have a large number of pages running in a
single VM, you may be filling up the permanent generation area of the
VM's memory. This is a fixed amount of memory dedicated to classes,
methods, and so on (reflective data). Since JSPs are compiled into classes,
it's actually possible to fill up this area of memory and consequently get
an OutOfMemoryError. You can, of course, increase the size -- see
http://java.sun.com/docs/hotspot/gc1.4.2/ for details.

How many JSPs does At 08:21 AM 9/17/2003 -0400, you wrote:
Hi everyone,

There are many smart people on this list and I haven't been
able to get anywhere with this problem, so...

I'm running 12 Struts-based apps under Resin 2 on a Linux box.
(I don't believe that this is a Struts problem - this is
just some background for you)

Every few days (sometimes this will happen after 2 days, sometimes
5 or 6) I get an OutOfMemory error which stops the JVM...
I have plenty of room in the heap (the machine has 1 GB or
RAM and I have the max heap size -Xmx set to 896 MB) Just before
it dies there are a few attempts to free more memory.
 From the GC log:

Full GC 227765K-132728K(274140K), 3.2615930 secs
Full GC 132729K-132728K(274140K), 2.5218730 secs
Full GC 132803K-120231K(274140K), 3.1998370 secs
OutOfMemoryError

As you can see - I'm only using 132 MB after the first
GC which leaves plenty Runtime.freeMemory()
etc. returns similar results..

Does anybody have any ideas? I don't even know where to look
next... It doesn't look like a profiler would help me here
since I don't have tons of objects filling up my memory.

Thanks,
Casey

Kito D. Mann
Author, JSF in Action
JSF FAQ: http://www.jsfcentral.com





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



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



RE: [OT] -- Editing XML

2003-09-17 Thread Mike Jasnowski
First off, what you describe is possible.  There are probably a number of
ways to accomplish this, you might want to consider using something like XML
binding for working with the XML data structures directly. There are
frameworks like JAXB, XMLBeans, etc. that enable you to work wtih XML
documents in a more business object oriented or just plain java object
fashion, rather than using DOM.  You might also consider using XSLT directly
to transform the document, using something like XUpdate that can describe
changes to an XML document using an XML grammar.  Then there's XForms, which
is intended to solve some of the same problems.

  -Original Message-
  From: Greg Hess [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, September 17, 2003 3:36 PM
  To: Struts
  Subject: [OT] -- Editing XML


  Hi All,



  I have been assigned to add functionality to my STRUTS app that provides
the ability to alter many 3rd party defined XML data structures. It would
like to take a 3rd party XML data structure and defined XSLT to create a
HTML form for editing the underling XML data structure. Only requiring basic
input validation maybe from a schema. When the form has been completed and
submitted the XML data structure would be recreated with the new input
values. I need to do this in a generic way so that the same application can
process and edit any defined XML data structure.



  XML/XSLT a HTML FORM a XML



  Can I do this?



  Are there any tools out there that enable this?



  Could a 3rd party define a XML data structure and XSLT that would create a
HTML form for editing the data structure?



  Any comments/input is greatly appreciated, I have been assigned this task
and have no idea if it is possible or where to start.



  Many Thanks,



Greg Hess

Software Engineer

Wrapped Apps Corporation

275 Michael Cowpland Dr.

Suite 201

Ottawa, Ontario

K2M 2G2

Tel: (613) 591 -7552

Fax: (613) 591-0523

1 (877) 388-6742








RE: Tiles and Struts.

2003-09-15 Thread Mike Jasnowski
Tiles should be cumulative in that you shouldn't repeat HTML,BODY,etc. tags
in each one. Only the outermost. You might consider using a Tiles controller
to selectively choose the title, the controller would be called before any
other tiles are called if you define it at the definition level.

-Original Message-
From: deepaksawdekar [mailto:[EMAIL PROTECTED]
Sent: Monday, September 15, 2003 11:45 AM
To: Struts Users Mailing List
Subject: Tiles and Struts.


Hello,
We are using struts and tiles for view component of our application.
We are facing the problem of setting the title for the jsp. The title has to
be taken from the properties file and it depends upon the body of the tiles.
Any pointer how to do this.
my jsp file is as follows.


%@ taglib uri=/tags/struts-tiles prefix=tiles %

tiles:insert page=../common/layout.jsp flush=true
  tiles:put name=header value=../common/header.jsp /
  tiles:put name=leftmenu value=../common/globalleftmenu.jsp /
  tiles:put name=body-content
value=../globaladmin/gblTechnologyBody.jsp /
  tiles:put name=footer value=../common/footer.jsp /
/tiles:insert


I am setting the tile in gblTechnologyBody.jsp file.  It works fine when i
have html head  in all the jsp above. But if i remove html head tag from the
jsp it does not work.
I am removing the HTML head tag since when i do view source from the it i
get 5 different html head and body tags.
4 for the jsp above and one for the layout.jsp.


Pl. advice

Thanks and Regards
Deepak.

-
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: how to start a background process using a struts action ?

2003-09-05 Thread Mike Jasnowski
Well, fancy scheduling API's aside, the action could launch a process via
the JDK's Runtime.exec() method. You can pass that parms and properties.

-Original Message-
From: José Gustavo Zagato [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 1:11 PM
To: 'Struts Users Mailing List'
Subject: how to start a background process using a struts action ?


Hi Folks !

Does anyone here know if is possible to start a background
process ( like a daemon/service) using an action ? I need this feature
because the user will input a few parameters and a schedule date then
the system generate the user specific information.

Im using struts 1.1 and Toncat 4.1.18, so any tips on how can I
accomplish this task ?

Regards !

  José Gustavo Zagato Rosa
System Analyst - Atos Origin
[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: Failing to get an answer,can it be done?

2003-09-05 Thread Mike Jasnowski
Sure, 

html:image src='%= formBean.url %'/

or wi html-el

html:image src=${formBean.url}'/

I haven't used the html-el lib so I'm guessing on that last one

-Original Message-
From: Das, Amar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 2:24 PM
To: [EMAIL PROTECTED]
Subject: Failing to get an answer,can it be done?


Hi,

Is it possible to set the src URL of an input image tag in the action form?
For example, how can I assign a URL dynamically to the src attribute of an
input tag of type image?

html:form ..

html:image src=??? /

/html:form

Thanks

-
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: Failing to get an answer,can it be done?

2003-09-05 Thread Mike Jasnowski
Are you sure the value isn't getting reset before it gets to your page? I
assume no exceptions are being thrown which prevent the field from
initializing, I saw earlier you're initializing this value in the
constructor.  What happens if you just leave the value assigned from the
private instance var and have the accessor retrive that w/o the stuff in the
constructor?

 html:image src='%= MapForm.mapSource() %' property= /

From your example, I also assume you retrieved the MapForm object from the
session in the proper scope?

-Original Message-
From: Das, Amar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 4:37 PM
To: 'Struts Users Mailing List'
Subject: RE: Failing to get an answer,can it be done?




Thanks. But it is not working.
In my form bean (MapForm) I am setting the following variable
public class MapForm extends ActionForm {

  /* Map Source*/
  private String
mapSource=http://geo.tpmc.com/output/dqs_GEO2056217212.jpg;;
  .

  public MapForm(){
try {

mapSource = map.getMapOutput().getURL();
.

Then on my jsp page I am using the following
html:image src='%= MapForm.mapSource() %' property= /

Any suggestion?

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 3:16 PM
To: Struts Users Mailing List
Subject: RE: Failing to get an answer,can it be done?

Sure,

html:image src='%= formBean.url %'/

or wi html-el

html:image src=${formBean.url}'/

I haven't used the html-el lib so I'm guessing on that last one

-Original Message-
From: Das, Amar [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 2:24 PM
To: [EMAIL PROTECTED]
Subject: Failing to get an answer,can it be done?


Hi,

Is it possible to set the src URL of an input image tag in the action form?
For example, how can I assign a URL dynamically to the src attribute of an
input tag of type image?

html:form ..

html:image src=??? /

/html:form

Thanks

-
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: How can i simply show a form property as a simple text

2003-09-03 Thread Mike Jasnowski
bean:write/

-Original Message-
From: Florent LOTHON [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 9:25 AM
To: Struts
Subject: How can i simply show a form property as a simple text


Hi

In an editing form page
How can i simply show a form property as a simple text (not in an
html:xxx input tag).

Flo




--
Ce message est protege par les regles relatives au secret des
correspondances ; il peut en outre contenir des informations a caractere
confidentiel ou protegees par differentes regles et notamment le secret des
affaires ; il est etabli a destination exclusive de son destinataire. Toute
divulgation, utilisation, diffusion ou reproduction (totale ou partielle) de
ce message, ou des informations qu'il contient, doit etre prealablement
autorisee.
Tout message electronique est susceptible d'alteration et son integrite ne
peut etre assuree. Les AGF declinent toute responsabilite au titre de ce
message s'il a ete modifie ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire
immediatement et d'avertir l'expediteur de l'erreur de distribution et de la
destruction du message.
This message is protected by the secrecy of correspondence rules ;
furthermore it may contain privileged or confidential information that is
protected by law, notably by the secrecy of business relations rule ; it is
intended solely for the attention of   the addressee . Any disclosure, use,
dissemination or reproduction (either whole or  partial) of this message or
the information contained herein is strictly prohibited without prior
consent.
Any electronic message  is susceptible to alteration  and  its integrity can
not be assured.  AGF declines any  responsibility for  this message in the
event of  alteration  or falsification..
If you are not the intended  recipient, please destroy it immediately and
notify the sender of the wrong delivery and the mail deletion.
--



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



RE: How can i simply show a form property as a simple text

2003-09-03 Thread Mike Jasnowski
c:out value=${formBean.property}/  should work for straight actionforms,
dynaforms would be a bit different.  In your example this should work:

c:out value=${bitmap_form.FORMER_FILE_SRC}/

-Original Message-
From: Sloan Seaman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 11:44 AM
To: Struts Users Mailing List
Subject: Re: How can i simply show a form property as a simple text


I'm got almsot the same question.

I populate a form bean in an action and then display the page with the
populated form bean.

I want to use c:out to display one of the values in the form bean but I'm
not sure where to look for the value.

I have the action scope set to request and the bean name is bitmap_form, so
I figured:

c:out value=${requestScope.bitmap_form.FORMER_FILE_SRC}/

would do it... but it doesn't.

FORMER_FILE_SRC is the property of the form bean that I wish to display...

Any ideas?

- Original Message -
From: Slattery, Tim - BLS [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 10:48 AM
Subject: RE: How can i simply show a form property as a simple text


 From: Florent LOTHON [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 03, 2003 9:25 AM

  In an editing form page
  How can i simply show a form property as a simple text (not
  in an html:xxx input tag).

 Either the Struts bean:write ... tag or the JSTL c:out ... tag will do
 what you want.

 --
 Tim Slattery
 [EMAIL PROTECTED]


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





This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



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



RE: ExceptionHandler storing ActionErrors in session

2003-09-03 Thread Mike Jasnowski
What about adding a symmetrical removeErrors()/removeMessages() to Action?

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:21 PM
To: Struts Users Mailing List
Subject: Re: ExceptionHandler storing ActionErrors in session


I don't believe there is currently a way to remove messages from the
session.  How would Struts know when to remove them?  I have written a
small subclass of ActionMessages that only returns its messages once. 
This allows me to store messages in the session without them being
displayed multiple times.  

You're not the first person to need this feature so maybe it's time to
float the subclass idea on struts-dev (unless there is a better way).

David


--- Robert Taylor [EMAIL PROTECTED] wrote:
 I'm just starting to fiddle around with ExceptionHandlers and was
 wondering
 how and when ActionErrors are removed from session scoped if configured
 to
 be stored there.
 
 I took a look at the ErrorsTag and the MessagesTag (because I'm assuming
 these tags would be used to render the ActionErrors) and didn't see
 provisions for removing ActionErrors from session scope.
 
 I must have missed something obvious here and would appreciate anyone
 who
 could point me in the right direction.
 
 robert
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



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



RE: ExceptionHandler storing ActionErrors in session

2003-09-03 Thread Mike Jasnowski
How would your Action know to call that?  How would your app know which
Action was executed after the one that generated the messages?

I would expect the same way an Action determines that it needs to call
saveErrors(), if there are errors in the collection. The Action makes the
determination on whether errors exist and need to be passed to a JSP or
another action. The next action that is invoked may or may not care about
these errors, and calls removeXXX(). That is a bit of a pain I would agree
to have to explicitly make a call to removeErrors() you don't care about.

But how does the tag know whether it should clear them out after one use?
At least with the action the user then has more precise control over when
the messages are cleared.

That said, there may not be many, if any, cases of having to carry messages
past one use. But for example in an application where you have recorded some
errors/messages, but allow the user to continue on. And the messages are
shown persistently at the top of a page or in some other frame, Once the
user decides to clear the errors/messages, an Action would then call the
removeXXX() method.

Mike Jasnowski

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:34 PM
To: Struts Users Mailing List
Subject: RE: ExceptionHandler storing ActionErrors in session


--- Mike Jasnowski [EMAIL PROTECTED] wrote:
 What about adding a symmetrical removeErrors()/removeMessages() to
 Action?

How would your Action know to call that?  How would your app know which
Action was executed after the one that generated the messages?

David


 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 03, 2003 5:21 PM
 To: Struts Users Mailing List
 Subject: Re: ExceptionHandler storing ActionErrors in session


 I don't believe there is currently a way to remove messages from the
 session.  How would Struts know when to remove them?  I have written a
 small subclass of ActionMessages that only returns its messages once.
 This allows me to store messages in the session without them being
 displayed multiple times.

 You're not the first person to need this feature so maybe it's time to
 float the subclass idea on struts-dev (unless there is a better way).

 David


 --- Robert Taylor [EMAIL PROTECTED] wrote:
  I'm just starting to fiddle around with ExceptionHandlers and was
  wondering
  how and when ActionErrors are removed from session scoped if
 configured
  to
  be stored there.
 
  I took a look at the ErrorsTag and the MessagesTag (because I'm
 assuming
  these tags would be used to render the ActionErrors) and didn't see
  provisions for removing ActionErrors from session scope.
 
  I must have missed something obvious here and would appreciate anyone
  who
  could point me in the right direction.
 
  robert
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com

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



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



__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



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



RE: ExceptionHandler storing ActionErrors in session

2003-09-03 Thread Mike Jasnowski
I would expect the same way an Action determines that it needs to call
saveErrors(), if there are errors in the collection. The Action makes the
determination on whether errors exist and need to be passed to a JSP or
another action. The next action that is invoked may or may not care about
these errors, and calls removeXXX(). That is a bit of a pain I would agree
to have to explicitly make a call to removeErrors() you don't care about.

Let me clarify this a bit more. I think when the application is being
designed, the appdev knows which actions could forward to a particular
action, as well as general application flow. The appdev decides that no
matter who its caller or forwarding entity was, that it's going to disregard
any messages/errors.

The appdev also knows that some actions can only be forwarded to by a small
set or single action, in which case and wants to carry those messages
forward until some future time. In the cases of actions that can be
forwarded to by many other entities, but only wants to remove
messages/errors for some of those would be a bit problematic.  But I think
distinct actions which implement a use-case know when they do or do not care
about errors that happened in a previous action, thus the application
dictates when to remove messages/errors.

Mike Jasnowski

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:45 PM
To: Struts Users Mailing List; [EMAIL PROTECTED]
Subject: RE: ExceptionHandler storing ActionErrors in session


How would your Action know to call that?  How would your app know which
Action was executed after the one that generated the messages?

I would expect the same way an Action determines that it needs to call
saveErrors(), if there are errors in the collection. The Action makes the
determination on whether errors exist and need to be passed to a JSP or
another action. The next action that is invoked may or may not care about
these errors, and calls removeXXX(). That is a bit of a pain I would agree
to have to explicitly make a call to removeErrors() you don't care about.

But how does the tag know whether it should clear them out after one use?
At least with the action the user then has more precise control over when
the messages are cleared.

That said, there may not be many, if any, cases of having to carry messages
past one use. But for example in an application where you have recorded some
errors/messages, but allow the user to continue on. And the messages are
shown persistently at the top of a page or in some other frame, Once the
user decides to clear the errors/messages, an Action would then call the
removeXXX() method.

Mike Jasnowski

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 5:34 PM
To: Struts Users Mailing List
Subject: RE: ExceptionHandler storing ActionErrors in session


--- Mike Jasnowski [EMAIL PROTECTED] wrote:
 What about adding a symmetrical removeErrors()/removeMessages() to
 Action?

How would your Action know to call that?  How would your app know which
Action was executed after the one that generated the messages?

David


 -Original Message-
 From: David Graham [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, September 03, 2003 5:21 PM
 To: Struts Users Mailing List
 Subject: Re: ExceptionHandler storing ActionErrors in session


 I don't believe there is currently a way to remove messages from the
 session.  How would Struts know when to remove them?  I have written a
 small subclass of ActionMessages that only returns its messages once.
 This allows me to store messages in the session without them being
 displayed multiple times.

 You're not the first person to need this feature so maybe it's time to
 float the subclass idea on struts-dev (unless there is a better way).

 David


 --- Robert Taylor [EMAIL PROTECTED] wrote:
  I'm just starting to fiddle around with ExceptionHandlers and was
  wondering
  how and when ActionErrors are removed from session scoped if
 configured
  to
  be stored there.
 
  I took a look at the ErrorsTag and the MessagesTag (because I'm
 assuming
  these tags would be used to render the ActionErrors) and didn't see
  provisions for removing ActionErrors from session scope.
 
  I must have missed something obvious here and would appreciate anyone
  who
  could point me in the right direction.
 
  robert
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


 __
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software
 http://sitebuilder.yahoo.com

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



 -
 To unsubscribe

RE: How to write HTML label text

2003-09-03 Thread Mike Jasnowski
I think there is a labelTag floating around, but you should be able to do
bean:write/, bean:message/ or c:out/

I think someone asked this same question about a day ago on this list.

-Original Message-
From: Srinivas Gunturu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 03, 2003 6:28 PM
To: 
Subject: How to write HTML label text


Hi All,

I want to display an uneditable text value on the page showing the name of
the person who entered the order.  The name is stored in a bean inside my
ActionForm and I do know how to display it in a text box using html:text
tag.  However, I would prefer to show it as strait html and not sure how to
do it since there is no html:label tag.

I tried

jsp:getProperty name=myForm property=orderInfo.name / does not work
and gives an error as orderInfo.name not a valid property.

Any other way I can print this?

TIA


-
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: Bars Graph

2003-09-02 Thread Mike Jasnowski
I built such an app with Struts and JFreeChart, I would look at that
charting lib. Other than that, there's nothing special about the web app.

-Original Message-
From: NYIMI Jose (BMB) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 11:20 AM
To: [EMAIL PROTECTED]
Subject: Bars Graph


Hello,

I have following needs:

* parse a text files on daily basis
* put the result into database
* buit a web application upon above database
* provide the client a web form where he can choose which graph to see
* on submit, connect to database, plot the graph(bars) and render it to
the client as an image

I would like to build my web application using struts (hope i have
choosen a right tool :-) )

Is there any re-usable component that will build graphs (image) for me.
Let say, i will give it (x,y) pairs of data and it will build bars graph
?

Any inputs is welcome.

Thanks in advance





 DISCLAIMER 

This e-mail and any attachment thereto may contain information which is
confidential and/or protected by intellectual property rights and are
intended for the sole use of the recipient(s) named above.
Any use of the information contained herein (including, but not limited to,
total or partial reproduction, communication or distribution in any form) by
other persons than the designated recipient(s) is prohibited.
If you have received this e-mail in error, please notify the sender either
by telephone or by e-mail and delete the material from any computer.

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our
website at http://www.proximus.be or refer to any Proximus agent.



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



RE: Bars Graph

2003-09-02 Thread Mike Jasnowski
Their demo code was enough for me to see how to set up some pretty good
graphs. From their javadoc was good enough. From their the rest is pretty
easy.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 12:18 PM
To: Struts Users Mailing List
Subject: RE: Bars Graph


yeahsure.  JFreeChart may be free but unless you are a friggin genius,
you have to pony up $150 for the documentation in order to be able to use
it.

Mark

-Original Message-
From: Ronald Rotteveel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 11:41 AM
To: Struts Users Mailing List
Subject: Re: Bars Graph


Hello,

I'm not going to say anything about choosing struts is the right choice. And
I think some people won't call it a TOOL, it's more like a framework...

What I can say is something about the Bars Graph tool/library you need.

I personally think that http://www.jfree.org/jfreechart/index.html is a very
good one and it's Open Source (LGPL) and free. There is also another project
that uses this library for a custom tag library called:
http://cewolf.sourceforge.net/

Hope this helps

Cheers,

Ronald

- Original Message -
From: NYIMI Jose (BMB) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:20 PM
Subject: Bars Graph


Hello,

I have following needs:

* parse a text files on daily basis
* put the result into database
* buit a web application upon above database
* provide the client a web form where he can choose which graph to see
* on submit, connect to database, plot the graph(bars) and render it to
the client as an image

I would like to build my web application using struts (hope i have
choosen a right tool :-) )

Is there any re-usable component that will build graphs (image) for me.
Let say, i will give it (x,y) pairs of data and it will build bars graph
?

Any inputs is welcome.

Thanks in advance





 DISCLAIMER 

This e-mail and any attachment thereto may contain information which is
confidential and/or protected by intellectual property rights and are
intended for the sole use of the recipient(s) named above.
Any use of the information contained herein (including, but not limited to,
total or partial reproduction, communication or distribution in any form) by
other persons than the designated recipient(s) is prohibited.
If you have received this e-mail in error, please notify the sender either
by telephone or by e-mail and delete the material from any computer.

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our
website at http://www.proximus.be or refer to any Proximus agent.



-
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: Bars Graph

2003-09-02 Thread Mike Jasnowski
From there and From there... sorry for the bad grammar

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 2:37 PM
To: Struts Users Mailing List
Subject: RE: Bars Graph


Their demo code was enough for me to see how to set up some pretty good
graphs. From their javadoc was good enough. From their the rest is pretty
easy.

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 12:18 PM
To: Struts Users Mailing List
Subject: RE: Bars Graph


yeahsure.  JFreeChart may be free but unless you are a friggin genius,
you have to pony up $150 for the documentation in order to be able to use
it.

Mark

-Original Message-
From: Ronald Rotteveel [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 11:41 AM
To: Struts Users Mailing List
Subject: Re: Bars Graph


Hello,

I'm not going to say anything about choosing struts is the right choice. And
I think some people won't call it a TOOL, it's more like a framework...

What I can say is something about the Bars Graph tool/library you need.

I personally think that http://www.jfree.org/jfreechart/index.html is a very
good one and it's Open Source (LGPL) and free. There is also another project
that uses this library for a custom tag library called:
http://cewolf.sourceforge.net/

Hope this helps

Cheers,

Ronald

- Original Message -
From: NYIMI Jose (BMB) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, September 02, 2003 5:20 PM
Subject: Bars Graph


Hello,

I have following needs:

* parse a text files on daily basis
* put the result into database
* buit a web application upon above database
* provide the client a web form where he can choose which graph to see
* on submit, connect to database, plot the graph(bars) and render it to
the client as an image

I would like to build my web application using struts (hope i have
choosen a right tool :-) )

Is there any re-usable component that will build graphs (image) for me.
Let say, i will give it (x,y) pairs of data and it will build bars graph
?

Any inputs is welcome.

Thanks in advance





 DISCLAIMER 

This e-mail and any attachment thereto may contain information which is
confidential and/or protected by intellectual property rights and are
intended for the sole use of the recipient(s) named above.
Any use of the information contained herein (including, but not limited to,
total or partial reproduction, communication or distribution in any form) by
other persons than the designated recipient(s) is prohibited.
If you have received this e-mail in error, please notify the sender either
by telephone or by e-mail and delete the material from any computer.

Thank you for your cooperation.

For further information about Proximus mobile phone services please see our
website at http://www.proximus.be or refer to any Proximus agent.



-
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: bnot able to display error messages

2003-08-25 Thread Mike Jasnowski
If you're storing the errors under the key dashboard, you need to extract
them with that key, otherwise you need to use Globals.  From the Struts RC1
tag (sorry I don't have the Final src handy)

  protected String name = Globals.ERROR_KEY;

Globals.ERROR_KEY is the default key the html:errors/ tag will look under.

HTH,
Mike Jasnowski

-Original Message-
From: Monajit Choudhury [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 5:29 AM
To: Struts Users Mailing List
Subject: bnot able to display error messages


Hi
  I have some problems displaying errors in the jsp page.
In the action class, I am  have the following code

catch (Exception exception) {
errors.add(dashboard,new ActionError(dashboard,error
fetching dashboard valueobject));

saveErrors(request, errors);
forwardValue = mapping.findForward(failure);
return forwardValue;
}

And in the jsp page i am trying to print out the errors by putting
html:errors/ tag so  that it displays all the errors that are
saved.But the page is not displaying any errors.
Please help

Regds
Monojit



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



RE: Checkboxes

2003-08-25 Thread Mike Jasnowski
The attached JSP may help you, I posted it a couple weeks ago to help solve
a similar problem.

HTH,
mike jasnowski

-Original Message-
From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 4:58 AM
To: Struts Users Mailinglist
Subject: Checkboxes


Hi,
I have the following problem:

I have a list of 71 Checkboxes and want to have one checkbox to select all
of them at once. This works fine but I cannot uncheck this checkbox if it
was checked once in order to uncheck all other checkboxes.

Can anybody help me on this. Any code samples would be very helpful.

Thanks in advance,

Filip




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

RE: Generating logs w/Log4J in ActionClass

2003-08-22 Thread Mike Jasnowski
In your action class, retrieve your log instance

Log LOG = LogFactory.getLog(YourAction.class);

Then wherever you need to log:

if (LOG.isDebugEnabled()) {
  LOG.debug(Log your debug msg here);
}

 Replace isDebugEnabled() with whatever level you want to use.

HTH,
Mike J

-Original Message-
From: Kapadia Mitesh-C23457 [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 11:55 AM
To: [EMAIL PROTECTED]
Subject: Generating logs w/Log4J in ActionClass


I have the appropriate configurations completed to use Log4J w/Tomcat. 
However, how would I invoke Log4J from within my action class to generate
DEBUG statements? 
I have the following package imported: 
import org.apache.log4j.*; 
Any examples would be most appreciated. 
Thanks in advance. 
- Mitesh 


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



RE: Generating logs w/Log4J in ActionClass

2003-08-22 Thread Mike Jasnowski
Sorry, this is with commons logging not log4j specifically

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 9:29 AM
To: Struts Users Mailing List
Subject: RE: Generating logs w/Log4J in ActionClass


In your action class, retrieve your log instance

Log LOG = LogFactory.getLog(YourAction.class);

Then wherever you need to log:

if (LOG.isDebugEnabled()) {
  LOG.debug(Log your debug msg here);
}

 Replace isDebugEnabled() with whatever level you want to use.

HTH,
Mike J

-Original Message-
From: Kapadia Mitesh-C23457 [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 11:55 AM
To: [EMAIL PROTECTED]
Subject: Generating logs w/Log4J in ActionClass


I have the appropriate configurations completed to use Log4J w/Tomcat. 
However, how would I invoke Log4J from within my action class to generate
DEBUG statements? 
I have the following package imported: 
import org.apache.log4j.*; 
Any examples would be most appreciated. 
Thanks in advance. 
- Mitesh 


-
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: tag writing newbie

2003-08-21 Thread Mike Jasnowski
1/ Can I use EL in my own tags (${loop.count}), if not automatic how?

Yes, http://jakarta.apache.org/commons/el/api/index.html

Are you constructing a list of different types? If so that will complicate
things especially if they
have no common characteristics. If they are all of the same type, you should
be able to interate over them with standard JSTL and Struts tags

-Original Message-
From: Mike Whittaker [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 21, 2003 6:51 AM
To: Struts List
Subject: tag writing newbie


I have a List of subclasses that need to be iterated over and rendered in
jsp.

I notice that 'instanceof' is a reserved word in jstl, but has not been
implemented yet. So I now feel the need to write a tag.

On 1st glance I thought custom tag would be limited to Strings, but I see
that I can get at Request object.

So I am proposing this sort of thing:

c:forEach var=list items=${myList} varStatus=loop
hp:myTag count=${loop.count} set=type /
c:if test=${type == 'mySubClass'} pRendering mySubClass/p /c:if
...
/c:forEach

Then in the tag class

List myList = (List)request.getAttribute(myList)
myList.get(//int from loop.count//)
// do is instanceof
// set variable for tag attribute 'set' ie 'type' to a String indicating
subclass

Questions:
0/ Is there a better/easier way to accomplish this?
1/ Can I use EL in my own tags (${loop.count}), if not automatic how?
2/ Is there a simpler way to get at the objects in my List within tag class,
than this?

--
Mike W



-
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: getting actionForm values inside our tags,

2003-08-20 Thread Mike Jasnowski
Since the actionForm is just another JavaBean, you should have no trouble
accessing it like other beans. I usually find the relevant bean via
pageContext.findAttribute(name), then use BeanUtils to access properties of
it.

-Original Message-
From: Seyhan BASMACI (Internet Yazilimlari Yetkilisi)
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 8:56 AM
To: Struts Users Mailing List
Subject: getting actionForm values inside our tags,



Struts tags reads property values from ActionForm related with called
action,

/* html:text property=amount / */   inside jsp , calls getAmount method
on actionForm object, and then set as value

we want to add this behaviour into our tags,
is there any generic way to do this, it accesses the form object then call
appropriate method on that object

-
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: HTML TAGS ------ STRUTS TAGS

2003-08-20 Thread Mike Jasnowski
While maybe not the most elegant/appropriate solution for this, have you
looked at XSLT?

-Original Message-
From: rubensgama [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 20, 2003 3:24 PM
To: Struts-User
Subject: HTML TAGS -- STRUTS TAGS


Anybody knows a free Java Tool, API or class for conversion HTML tags in
STRUTS tags?

Rubens Gama
Thanks in Advance



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.509 / Virus Database: 306 - Release Date: 12/8/2003



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



RE: Adding to a tiles definition at runtime?

2003-08-19 Thread Mike Jasnowski
Have you looked at tiles controllers? They can be defined at the definition
or tile level, and can be used to dynamically include data into a tile at
runtime? Specifically I use them with a small tag lib that populates a view
JavaBean that is then passed to each tile.

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 19, 2003 1:04 PM
To: Struts Mailing List
Subject: Adding to a tiles definition at runtime?


Is there any possible way to add additional variables to a tiles definition
at runtime or to modify them? IE here is a definition:
definition name=.menu.Software path=/tiles/menu.jsp

putList name=menus

add value=Home/

add value=SW1/

add value=SW2/

add value=SW3/

add value=SW4/

add value=SW5/

add value=SW6/

/putList

/definition



And then my menu jsp iterates through that list of menus adding them.  The
problem is I need a seperate tiles definition for every possible menu
configuration, and then if I want an action that forwards to a definition
that could show different menus.. etc etc it gets to be a pain. So would it
be possible to change whats in that list or add to that list in my action
before I forward to a tiles def? *Shrug just trying to get some ideas
together here*.



If that is not possible then my next question is in my baselayout.jsp I have
the

tiles:insert attribute=menu/ tag.  In which scope does it search for a
variable named menu?  and if i changed that to tiles:insert
attribute=$menu/ or something of that nature could it change at runtime
based on something in my request/or session scope?

Thanks in advance!


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



[OT] Primate Programming

2003-08-14 Thread Mike Jasnowski
A Web site that spoofs the computer programming industry by offering
chimpanzees and baboons to work for as little as 50 cents an hour has taken
its monkey business too far, according to the Iowa Primate Learning
Sanctuary.

http://www.cnn.com/2003/TECH/internet/08/06/chimp.program.ap/index.html


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



RE: Application Design Document

2003-08-14 Thread Mike Jasnowski
Does your company have a standard template for a design note? If not,
there's nothing wrong with coming up with your own format, as long as you
convey the concepts.  Although it's a bit odd that you're writing the design
document after you've finished the app.

-Original Message-
From: Tarek M. Nabil [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 10:07 AM
To: Struts (E-mail)
Subject: Application Design Document


Hi everyone,

I just finished developing a web application using Struts and our client is
asking us to provide a design document for the application.

I was wondering, if among the struts community, there's a certain template
or even ideas for how such a document should look like and what it should
include.

I was especially thinking of a diagram that illustrates the actions and
their relationship with the JSP's and the Model. Does such diagram exist?
And if yes, are there tools to generate it?

By the way, if there's nothing standard, then I would certainly appreciate
any individual experiences.

Thanks,
Tarek M. Nabil

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



FW: Checkall for Multibox--pls. help

2003-08-14 Thread Mike Jasnowski




-Original Message-From: Mike Jasnowski 
[mailto:[EMAIL PROTECTED]Sent: Thursday, August 14, 2003 2:57 
PMTo: Goldy JCc: 
[EMAIL PROTECTED]Subject: RE: Checkall for 
Multibox--pls. help
Hello,

Attached is a JSP that illustrates the checkbox 
interaction you describe in the context of a html:multibox use. I 
adapted it from my use in a custom tag I had, so the logic to check the top-most 
checkbox is hardwired. In my usages, this checkbox is only checked if all 
existing checkboxes in the table are checked. This is generally done by 
comparing whether items from one collection appear in another. So you might need 
to adapt it a bit more to your case. But the interactions are as 
follows:

1) 
When unchecking the top-most checkbox (this appears in the table heading), all 
other checkboxes in the table are unchecked, and vice-versa when 
checked
2) 
When unchecking the first checkbox in a row, the top-most checkbox is 
unchecked.
3) 
When checking the last checkbox in a set of rows, the top-most checkbox is 
checked.

You'll 
need to change the property names etc. and checkbox names to match your 
environment/application.

HTH,
Mike 
Jasnowski

  -Original Message-From: Goldy J 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, August 14, 2003 4:42 
  AMTo: [EMAIL PROTECTED]Subject: RE: Checkall for 
  Multibox--pls. help
  
  Hello Mike,
  
  I tried using code in my JSP but it didnt work. I am attaching the code 
  snippet of the same. 
  Basically as I mentioned earlier I am using multibox inside a iterator 
  tag to show checkboxes for valid rows of a table.And there is a checkbox 
  at the top which should check and uncheck them all.
  
  The first part of my attached code is the universal checkbox , whereas 
  the lower is the multibox checkboxes for every row. 
  
  If you could provide some inputs it would be helpful . Also if u could 
  send the JSP of ur code it would help how to use it . 
  
  ThanksMike Jasnowski [EMAIL PROTECTED] 
  wrote:
  
  Yes 
it is possible, I'm not using multibox, but the same logic 
applies:function checkAll(cAll){var cbs = 
document.forms[0].elements['" + checkBoxNamePrefix + "'];if (typeof 
cbs.length == \"undefined\") {cbs = document.forms[0]." + 
checkBoxNamePrefix + ";if (cAll.checked " + andOps + " !cbs.checked) 
cbs.checked = true; if(!cAll.checked  cbs.checked) cbs.checked 
= false;return;}for (var i=0;i<CBS.LENGTH;I++) if 
(cbs[i].checked  !cAll.checked) cbs[i].checked = false;else 
(cbs[i].checked) = true;");}function unCheck(item){");if 
(!item.checked) document.forms[0].all.checked = false;else {var cbs 
= document.forms[0].elements['" + checkBoxNamePrefix +"'];for (var 
i=0;i<CBS.LENGTH;I++) { if (!cbs[i].checked) return 
false;}document.forms[0].all.checked = true;}if! the 
formatting is off I apologize, I cut this out of some code 
andreformatted for email. The checkAll function is for the top-level 
box, andthe unCheck() item is for an individual item. The variable part 
is the"checkboxNameprefix" which is supplied when the tag this comes 
from rendersthe set of checkboxes. If you need more info let me 
know.-Original Message-From: Goldy J 
[mailto:[EMAIL PROTECTED]Sent: Wednesday, August 13, 2003 12:49 
PMTo: [EMAIL PROTECTED]Subject: Checkall for 
Multibox--pls. helpHello,I have a JSP in which I show 
number of records in a table. Each row has acheckbox associated with it. 
All the valid records has to be checked bydefault. I have been able to 
do so using MULTIBOX using TED's famous tip.My problem is that the 
client wants a checkbox at the top , click of whichshould select all the 
checkbox and unselect of which should unselect all inone go ..s! 
omething similar to yahoo mail ..Tried to do some stuff but failed. 
Can some one help and let me know if itis at all possible to do so with 
multibox ..if yes how??Thanks in 
advance-Do you 
Yahoo!?SBC Yahoo! DSL - Now only $29.95 per 
month!-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For 
additional commands, e-mail: 
  [EMAIL PROTECTED]
  
  
  Do you Yahoo!?SBC 
  Yahoo! DSL - Now only $29.95 per month!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Checkall for Multibox--pls. help

2003-08-14 Thread Mike Jasnowski



Sorry, 
resending due to errors in attaching file

  -Original Message-From: Mike Jasnowski 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, August 14, 2003 2:59 
  PMTo: [EMAIL PROTECTED]Subject: FW: 
  Checkall for Multibox--pls. help
  
  -Original Message-From: Mike Jasnowski 
  [mailto:[EMAIL PROTECTED]Sent: Thursday, August 14, 2003 2:57 
  PMTo: Goldy JCc: 
  [EMAIL PROTECTED]Subject: RE: Checkall for 
  Multibox--pls. help
  Hello,
  
  Attached is a JSP that illustrates the checkbox 
  interaction you describe in the context of a html:multibox use. I 
  adapted it from my use in a custom tag I had, so the logic to check the 
  top-most checkbox is hardwired. In my usages, this checkbox is only 
  checked if all existing checkboxes in the table are checked. This is generally 
  done by comparing whether items from one collection appear in another. So you 
  might need to adapt it a bit more to your case. But the interactions are as 
  follows:
  
  1) 
  When unchecking the top-most checkbox (this appears in the table heading), all 
  other checkboxes in the table are unchecked, and vice-versa when 
  checked
  2) 
  When unchecking the first checkbox in a row, the top-most checkbox is 
  unchecked.
  3) 
  When checking the last checkbox in a set of rows, the top-most checkbox is 
  checked.
  
  You'll need to change the property names etc. and 
  checkbox names to match your environment/application.
  
  HTH,
  Mike 
  Jasnowski
  
-Original Message-From: Goldy J 
[mailto:[EMAIL PROTECTED]Sent: Thursday, August 14, 2003 4:42 
AMTo: [EMAIL PROTECTED]Subject: RE: Checkall for 
Multibox--pls. help

Hello Mike,

I tried using code in my JSP but it didnt work. I am attaching the code 
snippet of the same. 
Basically as I mentioned earlier I am using multibox inside a iterator 
tag to show checkboxes for valid rows of a table.And there is a 
checkbox at the top which should check and uncheck them all.

The first part of my attached code is the universal checkbox , whereas 
the lower is the multibox checkboxes for every row. 

If you could provide some inputs it would be helpful . Also if u could 
send the JSP of ur code it would help how to use it . 

ThanksMike Jasnowski [EMAIL PROTECTED] 
wrote:

Yes 
  it is possible, I'm not using multibox, but the same logic 
  applies:function checkAll(cAll){var cbs = 
  document.forms[0].elements['" + checkBoxNamePrefix + "'];if (typeof 
  cbs.length == \"undefined\") {cbs = document.forms[0]." + 
  checkBoxNamePrefix + ";if (cAll.checked " + andOps + " !cbs.checked) 
  cbs.checked = true; if(!cAll.checked  cbs.checked) 
  cbs.checked = false;return;}for (var i=0;i<CBS.LENGTH;I++) 
  if (cbs[i].checked  !cAll.checked) cbs[i].checked = 
  false;else (cbs[i].checked) = true;");}function 
  unCheck(item){");if (!item.checked) document.forms[0].all.checked = 
  false;else {var cbs = document.forms[0].elements['" + 
  checkBoxNamePrefix +"'];for (var i=0;i<CBS.LENGTH;I++) { if 
  (!cbs[i].checked) return false;}document.forms[0].all.checked = 
  true;}if! the formatting is off I apologize, I cut this out of 
  some code andreformatted for email. The checkAll function is for the 
  top-level box, andthe unCheck() item is for an individual item. The 
  variable part is the"checkboxNameprefix" which is supplied when the 
  tag this comes from rendersthe set of checkboxes. If you need more 
  info let me know.-Original Message-From: Goldy J 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, August 13, 2003 12:49 
  PMTo: [EMAIL PROTECTED]Subject: Checkall for 
  Multibox--pls. helpHello,I have a JSP in which I show 
  number of records in a table. Each row has acheckbox associated with 
  it. All the valid records has to be checked bydefault. I have been 
  able to do so using MULTIBOX using TED's famous tip.My problem is 
  that the client wants a checkbox at the top , click of whichshould 
  select all the checkbox and unselect of which should unselect all 
  inone go ..s! omething similar to yahoo mail ..Tried to do 
  some stuff but failed. Can some one help and let me know if itis at 
  all possible to do so with multibox ..if yes how??Thanks in 
  advance-Do you 
  Yahoo!?SBC Yahoo! DSL - Now only $29.95 per 
  month!-To 
  unsubscribe, e-mail: [EMAIL PROTECTED]For 
  additional commands, e-mail: 
[EMAIL PROTECTED]


Do you Yahoo!?SBC 
Yahoo! DSL - Now only $29.95 per 
month!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Struts is incomplete

2003-08-14 Thread Mike Jasnowski
Personally IMHO I think there is a common misconception among some people
that Struts solves more problems than it is intended to. I see people use
the phrase The Struts way.. often with regards to a problem it's not
intended to solve. Struts will give you alot, but it's not going to write
your app for you, it doesn't tell you how to write your app either.


my 2cents


-Original Message-
From: Greg Ludington [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 10:00 AM
To: [EMAIL PROTECTED]
Subject: RE: Struts is incomplete


(response about the initial iterate question at end):

Frankly  the example applications stink.
I have tried struts-logon and that has load of mistakes in it , while

Whom is this supposed to help?  People who do not like struts?  Nope --
if they do not like it, chances are they are not on this list.  People
who use and/or commit to struts?  Nope -- because you do not give any
indication of what you think is wrong with it, so they have no idea how
to help you, or to improve the product.  People on the fence, who may or
may not use it?  You might think you save these people some time by
scaring them off, but those who leave based on a lack of infomration
will likely have to make decisions without proper knowledge, which can
also be dangerous.  Criticism without focus or direction helps nobody.

Struts is not for everybody, nor is it even for every project -- and
nobody on this list would pretend it is.  If it helps you, great.  If it
is not for your project, great -- pick the framework or development
environment that works for you.  And if struts is *close but not quite*
what you need, well, that is where these lists and this model of
development shines.  If you rephrased your issue as follows:

I find the example applications are not well-documented.  My project
needs a strong user authentication component, but the examples have bug
X, Y, and Z in them.  With problems in such a simple example, I do not
think Struts can handle a login scheme.  How do people get around X, Y,
Z to implement robust user authentication?

-- you might get a better response.  Armed with a knowledge of which X,
Y, and Z are your problems, people on this list can provide some manner
of help on how to get around these problems.  Sometimes problems arise
because the developer does not understand a particular facet of struts
-- it is complex, and there are points where fuller documentation would
be nice.  (Ooops -- I should be more specific -- maybe next time:) ).
Sometimes it is a genuine problem or bug in the framework, in which case
putting it on this list can bring it directly to the attention of the
coders -- a responsiveness that does not exist elsewhere.  In either
case, a conceptual hurdle or a bug, a *specific*, polite post will often
get you a solution.  Sometimes it will not, but a vague post saying
something stinks *NEVER* will.

the users are supposed to produce .war files that are production
ready,tried and tested.

Yes, if you are a developer, you are expected to put together solutions
that work.  It is, after all, your job.  If shortcomings in the examples
lead you not to trust struts as a foundation, then you can a) use it, in
which case it is also your job to dig past the examples, learn the
underlying concepts, and adapt/fix it to your needs, or b) not use it,
in which case it becomes your job to find something better, or to roll
your own.  You have that choice.

I have purchased a book called in Struts in Action and the simple
example
application also doesn't work and needed correcting.

Again, this helps nobody.  What did not work?  If you made specific
corrections, I am sure Ted Husted would appreciate hearing them, and
would gladly put them on his website Errata to help other people with
the same issues.  If you did not make corrections, but just had problems
getting the samples running, post what problems you had, and perhaps
people will help you get it working.

These American companies have a culture of releasing beta
functionality. Hyping it up. Getting  people from the industry to
test it free. Having had the benefit of your free time then they
charge you by selling to you
after having had your free feedback.
I am surprised you have not noticed this cultural trend.

I am not going to argue American software firms, except to point out
that Apache is not a company, nor is it, strictly speaking, American.
Yes, they expect bleeding-edge people to test it.  On any given project,
you have the option of taking nightly builds, which may or may not be
stable, but will have newer whiz-bang features.  Yes, these
bleeding-edge testers do more work, and as a reward they get a
significant voice in the shape of the products they use.  If this is not
for you, you can take something marked as stable, that might not have
every feature, but has been more thoroughly tested.  You get a *CHOICE*
on how you want to participate.   And after you make that choice and the
Apache group takes your 

RE: Urgent: generating PDF from form data

2003-08-14 Thread Mike Jasnowski
Have you looked at FOP?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 1:16 PM
To: [EMAIL PROTECTED]
Subject: Urgent: generating PDF from form data


Hi All
I use struts. I wanted to know if there is a we can generate a PDF with
the form data the user submits so that the users can print the pages.
Please let me know if there is any resource on it or if there is something
related to it.


Thanks in Advance

--Mohan



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



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



[OT] RE: very simple if/else question

2003-08-14 Thread Mike Jasnowski
So when is someone going to quote Bill Clinton and say It depends on what
your definition of 'is' is? ;)

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 11:55 AM
To: 'Struts Users Mailing List'
Subject: RE: very simple if/else question




First, my comparison was about whether JSTL is faster than scriptlets and
not Struts tags (I NEVER said Struts tags were faster than JSTL tags) so
there you misquoted me (so we are even).

Second, I meant your quote as a summary any moron would agree that is what
you were, in summary, saying.  I don't think you said ... either but that
is in the quote, so it wasn't exact.  Sorry for the misunderstanding.

Third, something as silly as Java taglibs is exactly my point.
Basically, listen to you your own advice, I have seen people come on this
forum and bash Struts (on this, the Struts forum) and you don't say a word.
Yet, you basically tried to tell me not to post bad things about JSTL here
even though we are all barraged with JSTL postings DAILY (basically, a
censorship attempt, IMO).

So who really cares more about the stupid tags, you or me just trying to,
instead of censor, at least give another idea about, how they ARE just
stupid tags, that aren't perfect.

Fourth, I think you have me all wrong.  I'm not mad or anything, I am just
as irritated about your original censorship attempt and follow up JSTL hype
up as you are of people basing JSTL.  I just don't understand why you can't
just say, here is how to do it in JSTL, without trying to hype it up on the
Struts group.

Just for the record here is what made me think of elitist:
http://marc.theaimsgroup.com/?l=struts-userm=105897443627729w=2

I guess it is futile, because, why, people on the struts users group aren't
elite enough to have a valid opinion?  Only JCP members no what's best for
developers.

Anyway, I am done with this topic myself.




-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 10:44 AM
To: Struts Users Mailing List
Subject: RE: very simple if/else question

--- Bailey, Shane C. [EMAIL PROTECTED] wrote:

 Man (you already used Dude), I already stated that that doc is much
 better
 than the 50 other docs out there as far as JSTL reference.  It appears
 to be
 a scan of a book in crappy PDF format.

 I just think it is very elitist for Dave to be constantly throwing
 around
 that JSTL is so great in so many aspects (e.g. faster for development
 and
 faster execution)as if it were fact when it is mostly opinion (or future
 release fact).  He never says, IMO, JSTL is really good ... it is
 always
 JSTL IS the greatest  All because an alpha product (tomcat)
 optimizes
 some JSTL tags doesn't mean it is faster for execution (people take that
 as
 everywhere everytime).  Any container vendor could make whatever they
 want
 optimized (if they really wanted to).

There is absolutely nothing elitist about my views.  It is a fact that the
JSTL tags are faster than Struts tags in some containers.  Resin already
provides this optimization and Tomcat 5 will (at least in part) when it is
released.  It's very unlikely that a container would optimize
non-standard, proprietary tags like Struts.  It's also very likely that
all major containers will provide optimized JSTL implementations because
it is a Java standard.

I don't need to preface every opinion I have with IMO.  It's fairly
obvious what is an opinion statement and what is factual.  I have never
stated, JSTL IS the greatest ... as you seem to have quoted me as
saying.  I have also never said that the JSTL is perfect.

I believe this conversation started with someone asking for opinions on
which taglibs to use: Struts or JSTL.  I stated my opinions and reasons
for preferring the JSTL over the Struts counterparts.  There is no need to
make personal attacks over something as silly as Java taglibs so I suggest
you lighten up.

David


 If you read my previous posts you see how everything that David said
 which
 made JSTL so great could also be said for scriptlets and as I said, that
 doesn't mean that scriptlets should be used.  The only come back anyone
 could say was that JSTL IS optimized (leaving out that it is only in
 alpha
 tomcat, partly).  I agree that JSTL has many good parts but to act like
 it
 is perfect and so great and exaggerate its current capabilities is just
 one
 sided.

 It is like brainwashing.  And that is sad.


 -Original Message-
 From: Steve Raeburn [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 13, 2003 8:41 PM
 To: Struts Users Mailing List
 Subject: RE: very simple if/else question

 Dude, did you bother to look at the links David gave you?
 Or ask on the correct mailing list?
 Or even do some research yourself?

 Google. Fifth link down. JSTL reference.

 Steve

  -Original Message-
  From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
  Sent: August 13, 2003 2:50 PM
  To: 'Struts Users Mailing 

RE: Hello

2003-08-14 Thread Mike Jasnowski
http://jakarta.apache.org/struts/userGuide/index.html 

Is a good place to start.



-Original Message-
From: Ilknur Elmaci [mailto:[EMAIL PROTECTED]
Sent: Monday, August 11, 2003 9:48 AM
To: 'Struts Users Mailing List'
Subject: Hello



Hi Everybody,

I am new in Struts. I must learn much quickly the Struts. So do you have
example or sample about Struct which explain base architecture of
Struct.


Thanks very much for your helps.


-
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: JSTL messages bundles Gotcha

2003-08-14 Thread Mike Jasnowski
You can also expose your bundle as a var though w/ JSTL so you don't have to
nest everything that way.

-Original Message-
From: Adam Hardy [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 12, 2003 11:45 AM
To: Struts Users Mailing List
Subject: JSTL messages  bundles Gotcha


On for the archives. I was on the point of sending it as a question but
resolved it, so here is the answer.

I was having a hard time configuring JSTL to find my
ApplicationResources.properties file.

According to the documentation, I could do either of these:

context-param
   param-name
 javax.servlet.jsp.jstl.fmt.localizationContext
   /param-name
   param-valueApplicationResources.properties/param-value
/context-param

in web.xml
or

fmt:bundle basename=ApplicationResources.properties/

in my JSP.

Neither worked for me for an hour or so until I realised:

You don't put .properties on the end 

fmt:bundle should nest all the fmt tags that will refer to it.

Adam

--
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


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



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



RE: HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1

2003-08-14 Thread Mike Jasnowski
I think you need forward name=success path=/dashboard.do/ in your
actionforward for logic action

-Original Message-
From: Monajit Choudhury [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 14, 2003 12:01 PM
To: Struts Users Mailing List
Subject: HELP!1


Hi
   I am facing a problem.I have a login page.After a person logs in, he
should be taken to another page, but via an action class(path=/dashboard)
which will create the data to be shown in that page.But that action class is
not invoked atall.
Here is a snippet of my struts-config.xml file.

action path=/login
type=com.puma.gbs.uma.action.LoginAction
name=loginForm
input=/pages/puma_login.jsp
forward name=success
   path=/dashboard/
forward name=failure path=/pages/puma_login.jsp redirect=true/

 /action


 action   path=/dashboard
type=com.puma.gbs.dashboard.action.DashboardAction
  name=dashboardForm
  input=/pages/db/main.jsp
  scope=request
forward name=viewDashboard path=/pages/db/dashboard.jsp/
forward name=failure path=/index.jsp/


-
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: generating PDF from form data

2003-08-14 Thread Mike Jasnowski
Someone wrote something called DOMify, can't recall who, but it will XMLify
a JavaBean or perhaps graph of JavaBeans. If you search the net on DOMify
(Maybe Maverick does this).

-Original Message-
From: Graham Stark [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 2:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Urgent: generating PDF from form data


Mohan,

You could try try FOP, if you were prepared to manipulate your data into
XML first.

See: xml.apache.org/fop

Graham


 Hi All
 I use struts. I wanted to know if there is a we can generate a PDF with
 the form data the user submits so that the users can print the pages.
 Please let me know if there is any resource on it or if there is something
 related to it.


 Thanks in Advance

 --Mohan



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

--
Graham Stark, Virtual Worlds
phone: (+044) 01908 618239 mobile: 07952 633185
Homepage http://www.virtual-worlds.biz
Virtual Learning Arcade http://www.bized.ac.uk/virtual/vla
Virtual Economy http://www.bized.ac.uk/virtual/economy


-
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: Helllllllllllllo - Digester Issue

2003-08-14 Thread Mike Jasnowski
Have you checked that your logging settings are different in each
environment? What level of messages are being emitted on the machine? It
will usually indicate something like DEBUG, WARN, etc.. in the log entry.
You might just need to crank down the settings.

-Original Message-
From: Raj Atchutuni [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 12:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Helo - Digester Issue


I am using Struts w/ WSAD 5.0 for development.

At the start up of the home page on Orion on Unix (after deployment)
i see enormous (could be Digester messages) debug statements,on the
console, which causing 5-10 mins delay in displaying the page.
I dont see this problem when i am running the application in WSAD on my
local.

Can i switch off these messages so that i can see the first page
quickly ?
Thanks
Raj




-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



RE: Checkall for Multibox--pls. help

2003-08-14 Thread Mike Jasnowski
Yes it is possible, I'm not using multibox, but the same logic applies:

function checkAll(cAll){
var cbs = document.forms[0].elements[' + checkBoxNamePrefix + '];
if (typeof cbs.length == \undefined\) {
cbs = document.forms[0]. + checkBoxNamePrefix + ;
if (cAll.checked  + andOps +  !cbs.checked) cbs.checked = true; if
(!cAll.checked  cbs.checked) cbs.checked = false;
return;
}
for (var i=0;icbs.length;i++)
if (cbs[i].checked  !cAll.checked) cbs[i].checked = false;
else (cbs[i].checked) = true;);
}

function unCheck(item){);
 if (!item.checked) document.forms[0].all.checked = false;
 else {
  var cbs = document.forms[0].elements[' + checkBoxNamePrefix +
'];
   for (var i=0;icbs.length;i++) {
 if (!cbs[i].checked) return false;
  }
document.forms[0].all.checked = true;
 }

if the formatting is off I apologize, I cut this out of some code and
reformatted for email.  The checkAll function is for the top-level box, and
the unCheck() item is for an individual item.  The variable part is the
checkboxNameprefix which is supplied when the tag this comes from renders
the set of checkboxes.  If you need more info let me know.

-Original Message-
From: Goldy J [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 12:49 PM
To: [EMAIL PROTECTED]
Subject: Checkall for Multibox--pls. help


Hello,

I have a JSP in which I show number of records in a table. Each row has a
checkbox associated with it. All the valid records has to be checked by
default. I have been able to do so using MULTIBOX using TED's famous tip.

My problem is that the client wants a checkbox at the top , click of which
should select all the checkbox and unselect of which should unselect all in
one go ..something similar to yahoo mail ..

Tried to do some stuff but failed. Can some one help and let me know if it
is at all possible to do so with multibox ..if  yes how??

Thanks in advance


-
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!


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



RE: very simple if/else question

2003-08-14 Thread Mike Jasnowski
These are the JSTL tags, just install it like the struts tag libraries.
Jakarta has a ref impl of these tags.

-Original Message-
From: Slattery, Tim - BLS [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 12:27 PM
To: 'Struts Users Mailing List'
Subject: RE: very simple if/else question


 c:choose
 c:when test=${Fund.marketStatus != Kapaly}

What are these c: ... tags? What do I have to have installed in order to
use them?


-
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: [OT - Slightly] Returning Error Status from Business Layer

2003-08-14 Thread Mike Jasnowski
You should look also at the declarative exception handling Struts has. 

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 3:26 PM
To: Struts Users Mailing List
Subject: Re: [OT - Slightly] Returning Error Status from Business Layer


--- Erik Price [EMAIL PROTECTED] wrote:
 
 
 Jerry Jalenak wrote:
 
  Just curious - how do most of you return errors from your business
 model?
  Do you simply return an integer value (-1, 0. 99?) and then interpret
 it in
  the action?  

Yuck.

 Or do you return a error string that maps to something in
  ApplicationResources?  Any other techniques?  I'm trying to find a
 'best
  practice' on how to do this  
 
 Java has a really elegant mechanism for returning errors called 
 Exceptions

Errors from the business layer should be reported as exceptions.  The
exception could carry a list of error messages or resource keys so that
the next layer can display a message to the user.  Or the next layer could
interpret the exception into some error message, it's your choice.

David

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


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



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



RE: Application Design Document -- Struts Studio - Independent opinion

2003-08-14 Thread Mike Jasnowski
Here's another Eclipse based Struts diagram tool.  I haven't used it, I
don't know if it just renders the config, or if it is interactive and
enables you to edit the config thru the diagram.

http://www.improve-technologies.com/alpha/struts-config-editor/images/plug-i
n.gif

-Original Message-
From: message message [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 1:20 PM
To: [EMAIL PROTECTED]
Subject: RE: Application Design Document -- Struts Studio - Independent
opinion




I haven't downloaded any test application.
Test application came with the Swing GUI IDE.

I know exactly what the problem is.
The message says
INFO: Starting Coyote HTTP/1.1 on port 8880
That clearly isn't the case.
There is no server running on port 8880.
Port programming is beyond the intellect of Struts Studio staff.

The message is just a message.
The message bears no resemblence to the state of the server.

Another words Struts Studio people tried to cheat by
Putting a message saying server starting when they knew nothing of port
programming
nor did they tried to find out about port programming even though they
have the source code.

All the Strut Studio  people did was download free ware and then cash in on
it.
It takes more than putting a swing GUI  on Free Ware to build an IDE.



From: Cameron Hickey [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Application Design Document -- Struts Studio - Independent
opinion
Date: Tue, 5 Aug 2003 19:43:48 +0300

I followed the same procedure you described for struts studio, and was
quite surprised that the browser opened up, and actually did work.  I
don't know why you had this problem, but you probably should not be so
quick to blame it on the test application you downloaded.  There are
possibly dozens of factors related to whether this sample function will
work, most of which probably have to do with the custom configuration
you have on your computer.

For me, more relevant criticism of Struts Studio includes:

   - Scrolling with a wheel mouse in the code view does not work.
   - There is no simple way to zoom in and out on the schematic
view.
   - There are almost no keyboard shortcuts.

This application is by no means a robust enterprise IDE, but it does a
very nice job generating diagrams of your struts configuration, which
can be very useful for debugging applications, or explaining to others
how they work.  It also makes some of the manual modifications to all
the different properties much simpler and quicker than straight text
editing.

Cameron



-Original Message-
From: message message [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 7:04 PM
To: [EMAIL PROTECTED]
Subject: RE: Application Design Document -- Struts Studio - Independent
opinion


After reading this thread I downloaded Struts Studio.
Installed it.
I started up the studio.
Selected the Struts-config tab.
Noticed a message  saying  starting Coyote HTTP 1.1 on port 8880.

I then went to the Start game  icon where the message says right click 

select run.
So I did.

The browser started automatically saying The page cannot be displayed.

As I have no doubts in my ability to start an IDE.
It must be the Sh***it waste of time studio which can't run a simple
sample
program.

I just wanted to share this information with everybody because this kind
of
thing happend alot with java sh***it tools.













 From: message message [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: RE: Application Design Document
 Date: Tue, 05 Aug 2003 18:43:44 +0400
 
 
 WAS 5.0 Struts Diagram -
 Do you know if that is available as a plug-in for Eclipse 2.1
 
 
 From: Syed, Nazeer [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Subject: RE: Application Design Document
 Date: Tue, 5 Aug 2003 10:18:59 -0400
 
 There Struts Diagram in WSAD5.0 Which I ofen use to draw navigation
 
 Other tools like Struts Studio are also helpful.
 
 Thanks
 Nazeer
 
 
 -Original Message-
 From: Tarek M. Nabil [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, August 05, 2003 10:07 AM
 To: Struts (E-mail)
 Subject: Application Design Document
 
 Hi everyone,
 
 I just finished developing a web application using Struts and our
client
 is asking us to provide a design document for the application.
 
 I was wondering, if among the struts community, there's a certain
 template or even ideas for how such a document should look like and
what
 it should include.
 
 I was especially thinking of a diagram that illustrates the actions
and
 their relationship with the JSP's and the Model. Does such diagram
 exist? And if yes, are there tools to generate it?
 
 By the way, if there's nothing standard, then I would certainly
 appreciate any individual experiences.
 
 Thanks,
 Tarek M. Nabil
 
 

RE: Delete Validation -- with Vector displayed

2003-08-14 Thread Mike Jasnowski
You can populate an ActionErrors object in your actionform, or in an action
depending on where you're validating.  You populate the ActionErrors list
with ActionError objects,  so in your form you might

ActionErrors errors = new ActionErrors();
errors.add(ActionErrors.GLOBAL_ERROR, new
ActionError(msgKey,arg0,arg1,...));
return errors;

 If from within an Action,  you'd do the the same, exception you wouldn't
return it, you'd save it to the request:

saveErrors(request,errors);

Where request is the HttpRequest object that was passed to your
action.execute() method.


 You're msgkey would point to a parameterized msg that might look like this:

 The entity {0} you requested is in use by the following other entities {1}

 You might have to do some special processing to make the list of entities
appear as a single parm if the number if variable.


HTH,
Mike Jasnowski

-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:28 PM
To: 'Struts Users Mailing List'
Subject: RE: Delete Validation -- with Vector displayed


This is what I have in my JSP already - to validate other fields of the form
bean:
%--  Error Messages --%
logic:messagesPresent
Table class=btable
tr
td
bean:message key=errors.header/
ul
html:messages id=error
li class=sched_inputbean:write
name=error//li
/html:messages
/ul
/td
/tr
/Table
BR
/logic:messagesPresent

I get those validations/messages from the 'Validate' method in the form bean
along with the applicationResources.properties file.

I have a check for the 'errors' object in my action class.
1. How can I write my delete-validation in a way that does not conflict with
all of the above?
2. you mentioned 'Return an ActionError...'. Where would I return it
to/from? How can I declare a new ActionError and add it to errors??



-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:10 PM
To: Struts Users Mailing List
Subject: RE: Delete Validation -- with Vector displayed


Return an ActionError with a message parameterized to include the names of
the entities, then on the JSP, render that errors collection.

-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:08 PM
To: 'Struts Users Mailing List'
Subject: Delete Validation -- with Vector displayed


Hello Everyone,

I have a 'Delete' button in my JSP (a submit button). As the button is
submitted, a method gets called (from the Action class) to do the following:
1. checks if the field is NOT used by entities 2. Based on 1, either the
field gets deleted, or the field does not get deleted and a Vector of
entities using the field is returned.

How can I validate/ display a message to the user in case the field is used
and cannot be deleted? The error message should also include the entities
using the field (which is a Vector, or a string).


Thank you,

Mona



*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized.

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.

*


-
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 in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized.

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter

RE: message localization

2003-08-11 Thread Mike Jasnowski
Here's one example with JSTL

Define a bundle...

fmt:setBundle basename=propfilename var=current_bundle scope=page/


 Then used later...

fmt:message key=keyname bundle=${current_bundle}
fmt:param value=${ServerForm.clonedServerName}/
/fmt:message


There are other variations...

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Sunday, August 10, 2003 7:25 PM
To: 'Struts Users Mailing List'
Subject: message localization


All this talking on JSP 2.0, JSTL and Struts-el brought me to ask if 
I should avoid using the following: 

bean-el:message key='${UserSexKey[select]}'/

Could someone tell me what is the equivalent in JSTL?

Erez





-
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: WebLogic 8.1.1 and Struts 1.1/Tiles

2003-08-08 Thread Mike Jasnowski
I'm using WLS 8.1 , Tiles/Struts1.1Final and JSP's w/no problems. 

-Original Message-
From: Witbeck, Shane [mailto:[EMAIL PROTECTED]
Sent: Friday, August 08, 2003 9:50 AM
To: [EMAIL PROTECTED]
Subject: WebLogic 8.1.1 and Struts 1.1/Tiles


Has anyone had any issues with JSP's not compiling with WL 8.1.1 and Struts
1.1 using Tiles? I have just upgraded WL and some JSPs compile and others
dont.

Thanks,

Shane

-
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: How to use ActionError with two keys?

2003-08-07 Thread Mike Jasnowski
The name of the host would presumably be available from the actionform, or
some bean in your action. Then you would create an ActionError like this:

 new ActionError(errors.required,hostName);


I'm not sure I understand why the host name, which seems to be a variable
would be represented as a key also.

-Original Message-
From: Zsolt Koppany [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 06, 2003 9:47 AM
To: Struts Users Mailing List
Subject: Re: How to use ActionError with two keys?


And how can I do that?

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

Zsolt




On Wed, 2003-08-06 at 15:36, Prashanth.S wrote:
 Hi
 i think u need to use positional parameter substitution instead of using
another key
 like {0},{1} etc in actionerror and replace them with actual values in
properties file..
 HTH
 prashanth

 Zsolt Koppany [EMAIL PROTECTED] wrote:
 Hi,

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


 new ActionError(errors.required, host.name)



 Zsolt


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



 -
 Do you Yahoo!?
 Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



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



RE: Delete Validation -- with Vector displayed

2003-08-07 Thread Mike Jasnowski
Return an ActionError with a message parameterized to include the names of
the entities, then on the JSP, render that errors collection.

-Original Message-
From: Alawadhi, Mona [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 05, 2003 2:08 PM
To: 'Struts Users Mailing List'
Subject: Delete Validation -- with Vector displayed


Hello Everyone,

I have a 'Delete' button in my JSP (a submit button). As the button is
submitted, a method gets called (from the Action class) to do the following:
1. checks if the field is NOT used by entities 2. Based on 1, either the
field gets deleted, or the field does not get deleted and a Vector of
entities using the field is returned.

How can I validate/ display a message to the user in case the field is used
and cannot be deleted? The error message should also include the entities
using the field (which is a Vector, or a string).


Thank you,

Mona



*
The information in this email is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this email by anyone else
is unauthorized.

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this email are subject to the terms and conditions expressed in
the governing KPMG client engagement letter.

*


-
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: [OT] XForms

2003-08-01 Thread Mike Jasnowski
Is XForms really going to be the next stage in the evolution of forms on
the
browser or is it just some hyped up hot air thats really a wild goose
chase?

IMHO it's hard to say, XForms has been perculating for along time. I think
if you speak to some vendors (Like Novell) they think so. But in reality,
there are some assumptions being made by these vendors that may make it
difficult for XForms to really proliferate. Such as native support for
XForms. As you mentioned there are few clients that natively support XForms,
and those that do use a plugin. Now you might argue that using a plugin is
good enough, until you have to start managing plugins, plugin verions, etc..
then you have different platforms for the plugin (applets anyone?).  It also
assumes that you (and your app) live in mostly an XML world. Which is not
the case for many, and those that do may not be doing so natively (I.e.
exposing relational data via XML as opposed to an XML database).

And if XForms becomes natively supported, let's hope all vendors choose to
support the same,full spec the same way. (HTML, CSS, CSSP ???).

Frankly I think you can accomplish similar things with existing technologies
and practices.

HTH,
Mike j

-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 2:03 AM
To: Struts
Subject: [OT] XForms


Currently the app Im working on is using an xhtml front end (with struts of
course) but Ive been asked to look at XForms with an eye to migrating to it
in the future (and probably throwing in a migration to JSF while Im there).

Currently the XForms spec is only a candidate release with afaik very little
browser support, though I gather there are a number of plugins that
implement an XForms processor.

I'm in the process of reading through whats on the w3c site about it but am
still pretty clueless as to what it really implies in terms of what we would
do different to now. While I understand what I am reading I dont truly grok
it yet.

Anyone else been looking into this and can share some pointers on what I
need to think about?

Is XForms really going to be the next stage in the evolution of forms on the
browser or is it just some hyped up hot air thats really a wild goose chase?


-
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: Calling a tiles definition from a jsp?

2003-08-01 Thread Mike Jasnowski
You could put the tile-def on the JSP

-Original Message-
From: David Erickson [mailto:[EMAIL PROTECTED]
Sent: Friday, August 01, 2003 2:11 PM
To: Struts Mailing List
Subject: Calling a tiles definition from a jsp?


We've got all our tiles definitions in tiles-def.xml in the web-inf folder,
and we were wondering if it is possible to somehow call a definition and
load it from a jsp?

For example if a user comes to our site thats not logged in we wanted to
direct him to a jsp that uses one of our tiles def's like .app.Home  instead
of forwarding to a blank action that all it does is forward a user to that
same definition.  Is this possible at all or do I have to go through an
action.
Thanks


-
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: Javascript validation for struts form field elements

2003-07-31 Thread Mike Jasnowski
One such way is this

document.forms[0].elements[ ele name with dot here ]

-Original Message-
From: Veena B N [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 7:58 AM
To: 'Struts Users Mailing List'
Subject: RE: Javascript validation for struts form field elements


Thanks daniel,
I am using the same. but due to my property tag having a dot(.) in b/n even
the validations in validation.xml and validator-rules.xml are not gng
through

Veena

-Original Message-
From: Suzette Daniel [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 5:14 PM
To: 'Struts Users Mailing List'
Subject: RE: Javascript validation for struts form field elements


Use struts validation, don't give the form it's own name this is done in the
struts config file. See Struts in Action chapter 12
(http://www.manning.com/husted/chap12.pdf).

Suzette H. Daniel

-Original Message-
From: Veena B N [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 7:13 AM
To: '[EMAIL PROTECTED]'
Subject: Javascript validation for struts form field elements


Hi

I am using struts form for jsp pages. I have a actionForm which initialises
a value object(which has getter and setter methods). So my form field
elements are specified as below in my jsp page--

html:form action=createItemdata method=GET name=inqform
type=com.xyz.abc.forms.oma.InquiryForm onsubmit=return
validateInqform(inqform)  html:select property=inqVO.productDiv
styleClass=SELECTMAND tabindex=2
  html:option value=-- Please Select --/html:option

  /html:select
/html:form

Now if I want to do javascript(client end) validation, the form field
elements are not recognised since property is converted to name while
delivering the html page and the form field element name cannot contain
'.'(a dot) within the name for js validation.

Now how else can I access the property of the element without a dot for
client side validation. Can anyone please help


Thanks
Veena


-
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: Any tool for struts?

2003-07-31 Thread Mike Jasnowski
Have you looked at Struts Console?
http://www.jamesholmes.com/struts/console/. It integrates with many major
IDE's.
There's also Struts Studio http://www.exadel.com/products_strutsstudio.htm.

Many major IDE's also seem to be moving to make Struts supported natively
(WLW, JDeveloper, WSAD, etc..)

-Original Message-
From: JavaXML Developer [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 12:52 PM
To: [EMAIL PROTECTED]
Subject: Any tool for struts?


Hello group,

I want to know if there is any tool available in the market to develop
struts applications faster?

Thanks,
Vicky


-
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software


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



RE: extending Struts taglibs to indicate form field states

2003-07-31 Thread Mike Jasnowski
We use a mechanism that basically wraps a set of Struts Form/Form Fields in
a tag that applies a set of XSLT templates to the body of the tag.  This
enables use to add features like you describe w/o touching the Struts tags
themselves. We use it for custom error placement, highlighting form fields
for required, or error conditions, etc..

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Yann Cébron
Sent: Thursday, July 31, 2003 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: extending Struts taglibs to indicate form field states



 Im considering extending the Struts taglibs (specfically the form object
 tags). What Im thinking about doing is adding a formStateObject to my
 ActionForm beans and having it dictate the state of specifc elements of
a
 form. For example, if a particular field should be disabled, then I would
 add disable=true to the parsed form tag. Other properties of my
 formStateObject include changing the css class of the object (to indicate
 which fields are required) and whether or not to display a form object. My
 intention is to clean up the JSP's that currently have logic tags wrapping
 code according to the values set in formStateObject.

 Has anyone else extended the taglibs in such a way?
 Opinions on this type of approach?

Try struts-layout:
http://struts.application-servers.com/

There are also some Bugzilla-tickets with attached patches regarding the
problem of marking input fields depending on their state.

HTH,
Yann




-
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: extending Struts taglibs to indicate form field states

2003-07-31 Thread Mike Jasnowski
We use a mechanism that basically wraps a set of Struts Form/Form Fields in
a tag that applies a set of XSLT
templates to the body of the tag.  This enables use to add features like
you describe w/o touching the Struts tags themselves. We use it for custom
error placement, highlighting form fields for required, or error conditions,
etc..

We also use this mechanism to share layout information for many of the
forms, nice way to centralize this type of information.

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 1:36 PM
To: Struts Users Mailing List
Subject: RE: extending Struts taglibs to indicate form field states


We use a mechanism that basically wraps a set of Struts Form/Form Fields in
a tag that applies a set of XSLT templates to the body of the tag.  This
enables use to add features like you describe w/o touching the Struts tags
themselves. We use it for custom error placement, highlighting form fields
for required, or error conditions, etc..

-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Yann Cébron
Sent: Thursday, July 31, 2003 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: extending Struts taglibs to indicate form field states



 Im considering extending the Struts taglibs (specfically the form object
 tags). What Im thinking about doing is adding a formStateObject to my
 ActionForm beans and having it dictate the state of specifc elements of
a
 form. For example, if a particular field should be disabled, then I would
 add disable=true to the parsed form tag. Other properties of my
 formStateObject include changing the css class of the object (to indicate
 which fields are required) and whether or not to display a form object. My
 intention is to clean up the JSP's that currently have logic tags wrapping
 code according to the values set in formStateObject.

 Has anyone else extended the taglibs in such a way?
 Opinions on this type of approach?

Try struts-layout:
http://struts.application-servers.com/

There are also some Bugzilla-tickets with attached patches regarding the
problem of marking input fields depending on their state.

HTH,
Yann




-
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: Dynamic Tree Menus --- HELP!!!

2003-07-31 Thread Mike Jasnowski
It's not common for them not to work, but there might be a JavaScript error.
You can tell this if you type javascript: in your address bar, it will
show a console of errors for the NS browser. Plus the NS browsers are (IMHO)
historically very strict about the validity of the page, bad HTML won't
render in many cases.  Although I don't know what problem you are having
specifically.

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:06 PM
To: 'Struts Users Mailing List'
Subject: RE: Dynamic Tree Menus --- HELP!!!




How come the example doesn't work with Netscape (v7.02 and my JavaScript is
turned on)??

I was thinking about using the Struts menus but I have users that are on
UNIX work workstations (Intranet app).  Is this common for the menus not to
work on Netscape?



-Original Message-
From: Todd Fuller [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:09 PM
To: [EMAIL PROTECTED]
Cc: Pat Quinn
Subject: RE: Dynamic Tree Menus --- HELP!!!

Pat,

Check out the Multi-level tree example at the URL below.

http://www2.metanology.com:8080/struts-examples-web/index.jsp

Todd Fuller
Metanology Corporation
4625 Alexander Dr., Ste 105
Alpharetta, GA 30022
770.475.1301 Office
404.561.0294 Cell
www.metanology.com


-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!


I appreciate your kind offer my details are as follows:

I've broken it down into a very basic example once you view this the third
node will appear with a series of plus images.

---
Menu-Config.xml
---
?xml version=1.0 encoding=UTF-8 ?
MenuConfig
  Displayers
Displayer   name=ListMenu
type=com.fgm.web.menu.displayer.ListMenuDisplayer/
  /Displayers
  Menus

Menu  name=test1  title=test1  description=test width=200
   Item   name=test2   title=test2 width=200
   Item   name=test3   title=test3 width=200
Item   name=test4   title=test4 location=index.jsp
width=200/
/Item
   /Item
/Menu

  /Menus

/MenuConfig

-
JSP Code
-
%@ taglib uri=/WEB-INF/struts-menu.tld prefix=menu%

menu:useMenuDisplayer name=ListMenu
menu:displayMenu name=test1/
/menu:useMenuDisplayer


From: Raible, Matt [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Subject: RE: Dynamic Tree Menus --- HELP!!!
Date: Thu, 31 Jul 2003 09:22:04 -0600

I'm willing to help if you send me the code.  Which Displayer are you
using?

Matt

-Original Message-
From: Pat Quinn [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 9:20 AM
To: [EMAIL PROTECTED]
Subject: Re: Dynamic Tree Menus --- HELP!!!


Is anyone out there working with dynamic HTML trees at the moment (i.e.
displaying data loaded from a data base) as i'm pulling my hair out here at
the moment.

I downloaded the source for Struts Menu and implemented a change to allow
me

to place a java bean with my tree menu details into HttpSession rather than
loading it from the menu xml file. Every thing works fine until i tried to
add triple nested node to the tree and it totally screws up presentation
i.e. The node image is repeatedly displayed. Its not due to my changes as i
tested it in the latest stable version and it fails also to render with the
same results.

I've also taken a look into using http://www.kobrix.com/ offering but their
configuration requirements to integrate with struts seems abit too much for
my liking.




Any suggestions, or should i just go find the JavaScript i require
elsewhere

and wrap it with my own custom tag library



 From: Pat Quinn [EMAIL PROTECTED]
 Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Dynamic Html Tree Menus - Java Beans.
 Date: Thu, 31 Jul 2003 10:22:51 +0100
 
 I'm looking for a tag library to aid the rendering of a Tree Menu using
 session/request stored objects.
 I want to included the menu data as a Java Bean in HttpSession for each
 user and then use tag libs in my JSP's. I've looked into the StrutsMenu
 Offering for Dynamic Menus but it loads menu data from an XML file.
 
 Any ideas or am i better off to develop my own custom tag lib?
 
 _
 MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
 http://join.msn.com/?page=features/virus
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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


-
To unsubscribe, e-mail: [EMAIL 

RE: StrutsDoc 0.3 Released

2003-07-28 Thread Mike Jasnowski
Nice!

-Original Message-
From: Nick [mailto:[EMAIL PROTECTED]
Sent: Sunday, July 27, 2003 12:49 AM
To: Struts Users Mailing List
Subject: Re: StrutsDoc 0.3 Released


Sure.  It's done and at:

http://www.systemmobile.com/strutsdoc/struts-example/

A tar ball of the docs are at:

http://www.systemmobile.com/strutsdoc/struts-example/struts-example-docs.tar
.gz




On Sat, Jul 26, 2003 at 11:30:04PM -0400, James Mitchell wrote:
 Can we run this against the struts-example and put it up as a demo?

 --
 James Mitchell
 Software Developer/Struts Evangelist
 http://www.struts-atlanta.org
 678-910-8017
 AIM:jmitchtx


 - Original Message -
 From: Nick [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Saturday, July 26, 2003 11:30 PM
 Subject: StrutsDoc 0.3 Released


  StrutsDoc 0.3 Released
 
  StrutsDoc is an extension task for Ant that allows developers to
  generate Javadoc-like documentation based on their various Struts
  configuration files.  The 0.3 release provides support for Stxx and
  Tiles configurations, as well as Struts module configurations.
 
  This release has been tested with Ant 1.5.2 and 1.5.3, running on JDK
  1.4.x on Windows and Linux.  Earlier JDK versions will probably work
  with with no problem, but Xalan must be provided in the classpath as
  XSLT is used to generate the documentation.
 
  StrutsDoc 0.3 is released under the BSD license and can be obtained
  from the sourceforge.net site:
 
  http://struts.sf.net/projects/strutsdoc
 
  Thanks to Don Brown for being the release manager for this release.
 
  --
  Nick Heudecker
  SystemMobile, Inc.
  Email: [EMAIL PROTECTED]
  Phone: 734.604.9192
  Web: http://www.systemmobile.com
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

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

--
Nick Heudecker
SystemMobile, Inc.
Email: [EMAIL PROTECTED]
Phone: 734.604.9192
Web: http://www.systemmobile.com

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



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



RE: Working with Struts + Dreamweaver

2003-07-25 Thread Mike Jasnowski
1. Is it really necessary to work with such a product?

It's really up to you, whatever makes you most productive.  Have you looked
at using utilities like XDoclet to generate some of your code as well?

2. Is it possible to work with Struts and Dreamweaver together? What
does it take to do in order to achieve that?

I believe so, I don't use DW myself, but there was a post a few days/ about
1 week ago maybe where someone had developed an extension that enabled you
to construct your pages with Struts tags, and view them in DW as the HTMl
they represent. Or something like that.  Although the tags of course are
just one aspect of Struts, not even the most criticial in that you can use
any tag library with Struts.



-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 3:13 PM
To: 'Struts Users Mailing List'
Subject: Working with Struts + Dreamweaver


I have a JBoss/Tomcat/Struts project in which till now I have written
all the pages manually with a simple editor. I have recently downloaded
Dreamweaver by Macromedia and started playing with it to see what it is
capable of doing. Being far from expert in HTML page design my questions
are:

1. Is it really necessary to work with such a product?
2. Is it possible to work with Struts and Dreamweaver together? What
does it take to do in order to achieve that?
3. Is there other products more integrated with the environment of
Struts ,JBoss ,Tomcat?

Any other help in the matter would be appreciated.

Thanks a lot,
Erez



-
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: Working with Struts + Dreamweaver

2003-07-25 Thread Mike Jasnowski
I'm using IntelliJ now, but then I am also not charged with the main page
construction, just the technologies (tags, etc.) behind them.  Our page
designer uses HomeSite I believe, but is really just using it as an editor.
I can say for Tiles support, I think there are a few tools which support
them (Struts Console?, Struts Studio). But we are basically generating a
core set of Tiles templates by hand, then using controllers to populate
them. We reuse the same tiles over and over (with only a few tiles
definitions), so we're not always constantly creating tiles for each unique
page.   So using an IDE for this is not that big of a win at this point for
us.

I'm not sure there exists a JSP tools/designer that natively supports Tiles,
but I could be wrong.  I think it would probably be a great thing if
whomever developed the DreamWeaver extension might extend it to support
Tiles if that's possible.  I think Struts Studio is a great idea, but IMO I
wouldn't want an editor that was specific to a technology. Many major IDE's
today support Struts (WSAD, WLW, JDeveloper 9.x) plus they understand the
other aspects of Struts like the config, action forms and classes. And you
have the facilities to create other J2EE artifacts for your app (Like EJBs,
Servlets, Tags, etc..).

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 3:35 PM
To: 'Struts Users Mailing List'
Subject: RE: Working with Struts + Dreamweaver


Thank for answer,

So what do you usually use? And if the project also uses Tiles? Any help
here is blessed.. :)

Erez

-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 8:30 PM
To: Struts Users Mailing List
Subject: RE: Working with Struts + Dreamweaver

1. Is it really necessary to work with such a product?

It's really up to you, whatever makes you most productive.  Have you
looked
at using utilities like XDoclet to generate some of your code as well?

2. Is it possible to work with Struts and Dreamweaver together? What
does it take to do in order to achieve that?

I believe so, I don't use DW myself, but there was a post a few days/
about
1 week ago maybe where someone had developed an extension that enabled
you
to construct your pages with Struts tags, and view them in DW as the
HTMl
they represent. Or something like that.  Although the tags of course are
just one aspect of Struts, not even the most criticial in that you can
use
any tag library with Struts.



-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 3:13 PM
To: 'Struts Users Mailing List'
Subject: Working with Struts + Dreamweaver


I have a JBoss/Tomcat/Struts project in which till now I have written
all the pages manually with a simple editor. I have recently downloaded
Dreamweaver by Macromedia and started playing with it to see what it is
capable of doing. Being far from expert in HTML page design my questions
are:

1. Is it really necessary to work with such a product?
2. Is it possible to work with Struts and Dreamweaver together? What
does it take to do in order to achieve that?
3. Is there other products more integrated with the environment of
Struts ,JBoss ,Tomcat?

Any other help in the matter would be appreciated.

Thanks a lot,
Erez



-
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: [OT]Persistance Layers

2003-07-24 Thread Mike Jasnowski
There seems to be alot of interest in Hibernate at the moment, I've only
used TopLink in the past, and one other home-grown framework.

http://hibernate.bluemars.net/?cowiki=2642204bf7d5f9b951cad752b9cfd894

-Original Message-
From: Jason Meredith [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 10:53 AM
To: Struts Users Mailing List
Subject: [OT]Persistance Layers



Does anyone use one of the available Persistance Layers mentioned at the
jakarta site - http://jakarta.apache.org/struts/resources/models.html

At the same time make extensive use of stored procedures with that
Persistance Layer. We use SP's for everything from security, filtering,
searching, updates, deletes, inserts... so on and so on.

Could some one mention the best one available to use with SP's?

What is the best Persistance Layer out at the moment?

Regards

Jason



***
The e-mail and any attachments are confidential. They may contain
privileged information and are intended for the named addressee(s)
only. If you are not the intended recipient, please notify us
immediately and do not disclose, distribute, or retain this e-mail
or any part of it.

Unless expressly stated, opinions in this e-mail are those of the
individual sender and not of the FIMAT Group. We believe but do not
warrant that this e-mail and any attachments are virus free.
You must therefore take full responsibility for virus checking.
The FIMAT Group reserve the right to monitor e-mail communications
through its networks.

Where this communication constitutes a financial promotion it is issued
and approved by Fimat International Banque S.A. (UK Branch) and is
only intended for persons of a kind described in article 19(5) of the
Financial Services and Markets Act 2000 (Financial Promotion) Order
2001.  This information is not intended to be distributed to UK Private
Customers (as defined by the Financial Services Authority).

Fimat International Banque S.A. (UK Branch) whose registered branch
in England is at SG House, 41 Tower Hill, London EC3N 4SG is authorised
by the Commission Bancaire in France and by the UK Financial Services
Authority; regulated by the Financial Services Authority for the conduct of
UK Business and is entered in the Financial Services Authority's register
(Register Number 183415), access to which can be gained via the following
link: www.fsa.gov.uk/register/

Member and a SETS Participant of the London Stock Exchange (LSE).
Where this communication is confirming an on exchange transaction
(as defined by the LSE),the transaction is subject to the rules of the LSE.
Any information, opinions, estimates and forecasts contained in this
document have been arrived at or obtained from public sources believed
to be reliable and in good faith which has not been independently
verified and no warranty, express or implied, is made as to their accuracy,
completeness or correctness.

This document is not an offer to sell or a solicitation to acquire or
dispose
of an interest in financial instruments.

If you have received this transmission in error, please telephone
+44 020 7676 8999 immediately so that we can arrange for its return.
***


-
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 in Action

2003-07-24 Thread Mike Jasnowski
Struts Console seems very popular and plugs into a few IDE's (including
Eclipse)

http://www.jamesholmes.com/struts/console/

As for other IDE's, I just switched to IntelliJ from Forte for Java and am
very happy.

-Original Message-
From: Chirag Mehta [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 1:24 PM
To: Struts Users Mailing List
Subject: Struts in Action


I have just started developing a Struts Webapp and was wondering if
there was an actual Struts app in production online that I could have a
look at?

Also, does anyone suggest a good IDE to work on. Currently i have
Eclipse with plugins galore. Is that the best option?

Thanks

Chirag

--
NOTICE: If received in error, please destroy and notify sender.  Sender
does not waive confidentiality or privilege, and use is prohibited.




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



RE: Multiple Struts-Config files

2003-07-24 Thread Mike Jasnowski
They should each be standalone/valid configs.

-Original Message-
From: Jerry Jalenak [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 2:29 PM
To: '[EMAIL PROTECTED]'
Subject: Multiple Struts-Config files


When using multiple struts-config files in web.xml, should each file be
complete?  i.e. should each begin and end with appropriate struts-config /
/struts-config tags? Or should the first one in the list contain the
struts-config, and the last one contain the /struts-config tag?

Jerry Jalenak
Team Lead, Web Publishing
LabOne, Inc.
10101 Renner Blvd.
Lenexa, KS  66219
(913) 577-1496

[EMAIL PROTECTED]


This transmission (and any information attached to it) may be confidential
and is intended solely for the use of the individual or entity to which it
is addressed. If you are not the intended recipient or the person
responsible for delivering the transmission to the intended recipient, be
advised that you have received this transmission in error and that any use,
dissemination, forwarding, printing, or copying of this information is
strictly prohibited. If you have received this transmission in error, please
immediately notify LabOne at the following email address:
[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: Simple Tiles question

2003-07-24 Thread Mike Jasnowski
It depends on how the tile is used. If the tile is a standalone page no, but
if it's intended to be a fragment of a page, then you'd want to remove those
to remove the possbility of having a malformed page.

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:51 PM
To: 'Struts Users Mailing List'
Subject: Simple Tiles question


A simple question I guess,

Is it legal to have the tags like html /html and others in a tile.
Meaning, when converting a page to a tile, do I have to remove those
html:html header etc. tags?

Erez



-
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: Simple Tiles question

2003-07-24 Thread Mike Jasnowski
Yeah, that's strange, but then some browsers are pretty good at ignoring bad
HTML

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:56 PM
To: 'Struts Users Mailing List'
Subject: RE: Simple Tiles question


It's strange since until now I haven't removed those tags and it just
went fine...strange no?


-Original Message-
From: Mike Jasnowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 8:52 PM
To: Struts Users Mailing List
Subject: RE: Simple Tiles question

It depends on how the tile is used. If the tile is a standalone page no,
but
if it's intended to be a fragment of a page, then you'd want to remove
those
to remove the possbility of having a malformed page.

-Original Message-
From: Erez Efrati [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:51 PM
To: 'Struts Users Mailing List'
Subject: Simple Tiles question


A simple question I guess,

Is it legal to have the tags like html /html and others in a tile.
Meaning, when converting a page to a tile, do I have to remove those
html:html header etc. tags?

Erez



-
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: Question About Passing Values from Action Class

2003-07-24 Thread Mike Jasnowski
Generally you would stuff this ArrayList in a formbean accessible via a
public getter, or you could I suppose put it in the session yourself as a
scoped attribute. Then in the JSP you access it by that attribute name.

-Original Message-
From: Meka Struts [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:58 PM
To: [EMAIL PROTECTED]
Subject: Question About Passing Values from Action Class


Hi,

I have an Action Class which has 2 methods

* an execute method that forwards using ActionMapping
* a protected method getXXX(), which return an ArrayList of objects to
execute method.

My question is, how would i pass the ArrayList to the view page (jsp) so
that it can extract data from ArrayList and display it.

I am actually going though an example and it seems to have missed that part.
I cant get to understand how will the ArrayList object be passed ?

Thank You

Meka Toka


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



RE: Question About Passing Values from Action Class

2003-07-24 Thread Mike Jasnowski
If you use the Struts method of using a FormBean, placing the bean into the
session is handled for you.  You obviously still have to populate the
formbean with your data.  You can also utilize DynaActionForms (declarative)
or code your own formBean that extends ActionForm.

When you are forwarded to your JSP, the various struts/JSTL tags will look
for the formBean named in the STruts ActionClass config (name) attribute,
which maps to a formBean definition.  You can then operate on it via the
tag itself or expose it (depending on the tag you use) via a scripting
variable and use other tags on the page to process it.

Generally most of the struts tags have a name attribute where you identify
the bean attribute name, this can also of course be the id you may have
exposed from another tag.

-Original Message-
From: Meka Struts [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 4:24 PM
To: Struts Users Mailing List
Subject: Re: Question About Passing Values from Action Class


Hi Mike,

Got your point. Thank You

In that case, how would the view classes be helpful. Because some people
will write View classes (plain java files with get/set - java beans )

Can i set the view class also in the session so that the View JSP can access
it and show the data ?

This situation will be arising when i have a data layer which returns me a
Bussiness Object. So i fill the data from bussiness object to view class and
then pass on to view jsp.

Please correct me if any part of above statement doesnt make sense.

Thank You

Meka Toka

PS: I have read and read 2 books, i am just clearing my doubts.


- Original Message -
From: Mike Jasnowski [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 4:10 PM
Subject: RE: Question About Passing Values from Action Class


 Generally you would stuff this ArrayList in a formbean accessible via a
 public getter, or you could I suppose put it in the session yourself as a
 scoped attribute. Then in the JSP you access it by that attribute name.

 -Original Message-
 From: Meka Struts [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 24, 2003 3:58 PM
 To: [EMAIL PROTECTED]
 Subject: Question About Passing Values from Action Class


 Hi,

 I have an Action Class which has 2 methods

 * an execute method that forwards using ActionMapping
 * a protected method getXXX(), which return an ArrayList of objects to
 execute method.

 My question is, how would i pass the ArrayList to the view page (jsp) so
 that it can extract data from ArrayList and display it.

 I am actually going though an example and it seems to have missed that
part.
 I cant get to understand how will the ArrayList object be passed ?

 Thank You

 Meka Toka


 -
 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: Ranko like question: What is the sense of some of these tags libs?

2003-07-23 Thread Mike Jasnowski
IMO, I wouldn't take examples like that as a best practice for using tags.
In some cases I think people sometime try to squeeze too much functionality
out of a set of tags, rather than creating higher-level tags to accomplish
what they want.   Or there might be shortcomings in the tags they're using
to achieve it in a cleaner way.

if my only resolve of using a tag is to have it look like CODE and not a
true tag why

Why not write/refactor the tag to do what you want? Why do you have to
resort to scriplets?

-Original Message-
From: Bailey, Shane C. [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 10:09 AM
To: [EMAIL PROTECTED]
Subject: Ranko like question: What is the sense of some of these tags
libs?




As Ranko asked, about the redundancy of Struts I would like to know that the
heck is the deal with SOME of these tag libs out there?

I mean, look at this: c:if test=${index%2==0} and look at this: %
if(index.intValue()%2==0){ %



I like NOT to use Java scriptlets in my JSPs and I am pretty decent at
achieving that but

if my only resolve of using a tag is to have it look like CODE and not a
true tag why

have people (code maintainers and the original coder in the first place)
learn a new language

and just use a scriptlet?



Seeing $var like tag code that makes me think this is some sort of
conspiracy so that all the

UNIX admins, with their UNIX scripts, who needed new jobs, since WinTel is
taking over, starting

writing tag libraries.



I mean really, what is the deal with these so called tags that aren't
tags?

JavaScript was cool when it came out (and wasn't developed by Sun) because
if you knew Java then

you were about 90% there to being a great JavaScripter.



So I say Ranko, are you just as bewildered at this as I am?



:-)



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



RE: Can someone help with this??? Using bean:write to display/stream PDF content

2003-07-23 Thread Mike Jasnowski
I think in a previous post someone mentioned setting the content-type of the
page to be that of a PDF document, then you write the stream back to the
client from the JSP.  The client will handle launching the appropritae
viewer.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 10:37 AM
To: [EMAIL PROTECTED]
Subject: Can someone help with this??? Using bean:write to
display/stream PDF content



Are there any struts gurus here that can help me? I did not get a single
answer to this question. If there was a solution to this question, it
would help many people that are working with portlets, like me, who can
use JSP and cannot use servlets durectly to stream binary content to the
browser. Thanks.

- Forwarded by Leonard Reinstein/NY/ONE on 07/23/2003 10:34
AM ---
From:   Leonard Reinstein on 07/22/2003 09:18 PM
To: [EMAIL PROTECTED]
cc:

Subject:Using bean:write to display/stream PDF content -- please
help.


I would like to be able to display/stream the PDF file in the browser and
use the bean:write tag in the JSP to acomplish that.
Say I have a form bean that has a byte array field, and I want the jsp to
specify the contentType as application/pdf and just have the bean:write
tag, such as:

bean:write name=mybean property=pdfcontent/

Is this possible to achieve? Are there any hacks/tricks to make it work in
a JSP when the form bean has the binary content field?

When I do it with with the byte array attribute, it just displays the
address of the array in memory (possibly calls toString()). If I make the
field of type String and convert the byte array to String in the
controller as follows: str = new String(byteArray),  it does not get
converted correctly and the browser hangs.

I know the best way to do it is to have a servlet. But I need to do it in
a JSP because of certain limitations of my application. Please help.

Thanks.







This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


-
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: Using an extension of ModuleConfigImpl

2003-07-23 Thread Mike Jasnowski
You can write minor extensions to some config elements like action and
forward. This extension class is named via the className attribute of
those elements.

-Original Message-
From: Karachiwala, Aslam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 10:39 AM
To: Struts-users (E-mail)
Subject: Using an extension of ModuleConfigImpl


Hi, all.

In Struts 1.1, is there a way to use one's own implementation/extension of
ModuleConfig and/or ModuleConfigFactory? I couldn't find any info on how
this could be done in any of the config *.xml files.

If this is not configurable then an option that was suggested to me was to
invoke ModuleConfigFactory.setFactoryClass() and set that to my own factory
class which will create my extension of ModuleConfigImpl. If I wanted to do
this then where/when should I set the factory class?

--aslam


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



RE: Can someone help with this??? Using bean:write to display/stream PDF content

2003-07-23 Thread Mike Jasnowski
The problem is: what is the type of the attribute in the form bean? If I
use byte array, it fails -- just displays the address of the array in

How are you writing out the byte array? Also, I'm no PDF expert but are we
sure the content-type is specified correctly? Meaning is application/pdf
exactly correct?

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 10:54 AM
To: Struts Users Mailing List
Subject: RE: Can someone help with this??? Using bean:write to
display/stream PDF content




The problem is: what is the type of the attribute in the form bean? If I
use byte array, it fails -- just displays the address of the array in
memory as a string on the screen. If I use String attribute in the form
bean and convert my pdf byte array into a string by doing this str = new
String(byteArray), then it does not convert properly and my browser hangs.
I did set the content type to application/pdf on top of the JSP. Any
suggestions how to make this work?



Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
cc:

Subject:RE: Can someone help with this??? Using bean:write to
display/stream PDF
content



I think in a previous post someone mentioned setting the content-type of
the
page to be that of a PDF document, then you write the stream back to the
client from the JSP.  The client will handle launching the appropritae
viewer.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 10:37 AM
To: [EMAIL PROTECTED]
Subject: Can someone help with this??? Using bean:write to
display/stream PDF content



Are there any struts gurus here that can help me? I did not get a single
answer to this question. If there was a solution to this question, it
would help many people that are working with portlets, like me, who can
use JSP and cannot use servlets durectly to stream binary content to the
browser. Thanks.

- Forwarded by Leonard Reinstein/NY/ONE on 07/23/2003
10:34
AM ---
From:   Leonard Reinstein on 07/22/2003 09:18 PM
To: [EMAIL PROTECTED]
cc:

Subject:Using bean:write to display/stream PDF content -- please
help.


I would like to be able to display/stream the PDF file in the browser and
use the bean:write tag in the JSP to acomplish that.
Say I have a form bean that has a byte array field, and I want the jsp to
specify the contentType as application/pdf and just have the bean:write
tag, such as:

bean:write name=mybean property=pdfcontent/

Is this possible to achieve? Are there any hacks/tricks to make it work in
a JSP when the form bean has the binary content field?

When I do it with with the byte array attribute, it just displays the
address of the array in memory (possibly calls toString()). If I make the
field of type String and convert the byte array to String in the
controller as follows: str = new String(byteArray),  it does not get
converted correctly and the browser hangs.

I know the best way to do it is to have a servlet. But I need to do it in
a JSP because of certain limitations of my application. Please help.

Thanks.







This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this
transmission
in error, please immediately contact the sender and destroy the material
in
its entirety, whether in electronic or hard copy format. Thank you.


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







This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


-
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: Using bean:write to display/stream PDF content -- please help.

2003-07-23 Thread Mike Jasnowski
Bean write may not be converting the property correctly, it's just
tostring'ing it, which is why you see the address of the object. You need
something that will stuff the binary form of the PDF into the response

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 23, 2003 11:09 AM
To: Struts Users Mailing List
Subject: RE: Using bean:write to display/stream PDF content -- please
help.




Did you try this code yourself? I am telling you that this is exactly what
I have done and it does not work. I have a form bean that has a byte array
attribute that I populate in the action and then set the content type and
use bean:write on that attribute in the JSP and it just displays the
address of the byte array on the screen instead of loading PDF. I don't
think the JSP and bean:write work correctly with the byte array fields.
The question was a tricky one. If it was that simple, I would not have
sent so many emails. Any other ideas?



Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:

Subject:RE: Using bean:write to display/stream PDF content --
please help.



I think you're missing the bigger concept.  A PDF is the same as a JPG -
it's a media file that differs from just the plain text sent in an html
page.

You can't just stream a PDF in the middle of HTML.  You have to associate
it
with a content type, and the browser has to make a request for it, just
like
it does for images. One HTML page with 2 images == 3 requests to the
server:
1 for the text, 1 for each image.Browsers (generally) won't make a
request for a PDF embedded in the page, as there is not related tag (like
the img= for gif/jpg).
  So, if your user gets to your stored PDF by clicking a link, your
rendering JSP page might look like this:

myTag:showPdf pdfid=123/

your tag would then:
-output the Content-Type and (ideally) filesize to the datastream
-then write out the bytes of the PDF file to the datastream
-end the tag

the browser will handle everything else

out.println(Content-Type=...

  byte[] pdf = loadPdf(123);

// write the bytes to out in whichever manner is most efficient




From: [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: RE: Using bean:write to display/stream PDF content -- please
help.
Date: Wed, 23 Jul 2003 10:55:32 -0400



And then what? I can easily access it from the form bean field and from
the session. There's no problem here. The question is how to stream it to
the client. Please see my previous email.



Please respond to Struts Users Mailing List
[EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
cc:

Subject:RE: Using bean:write to display/stream PDF content --
please help.




JSP is the same as Servlet.  Put your pdf content in the session scope,
you can
get it on your jsp page through session.getAttribute(pdfContent);


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: July 22, 2003 7:18 PM
To: [EMAIL PROTECTED]
Subject: Using bean:write to display/stream PDF content -- please help.

[SNIP]

I know the best way to do it is to have a servlet. But I need to do it in
a JSP because of certain limitations of my application. Please help.

Thanks.




This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended
recipient, you are hereby notified that any disclosure, copying,
distribution,
or use of the information contained herein (including any reliance
thereon) is
STRICTLY PROHIBITED. If you received this transmission in error, please
immediately contact the sender and destroy the material in its entirety,
whether
in electronic or hard copy format. Thank you.


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







This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this
transmission
in error, please immediately contact the sender and destroy the material
in
its entirety, whether in electronic or hard copy format. Thank you.


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

_
Protect your PC - get McAfee.com VirusScan Online

  1   2   >