Re: Quick question about iterators beans on a page

2002-02-17 Thread Adam Hardy

On Sat, 16 February 2002, Ted Husted wrote:
 
 The container gives each request its own thread. 
 
 If the list is created with new in the action, and then placed into the
 request, it is thread-safe. Just the same as if you had created it on
 the JSP. 


So the request object that I can store stuff in is in fact just a local variable of 
some controller class? That makes sense. 

Sorry for the confusion earlier - I see the session could be dangerous if the user 
decides to open more than one window. 

Thanks for your help guys. Have a good weekend, what's left of it.

Adam


Find the best deals on the web at AltaVista Shopping!
http://www.shopping.altavista.com

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




Re: Quick question about iterators beans on a page

2002-02-17 Thread Ted Husted

The request, session, and application context objects are part of the
servlet specification. 

http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletRequest.html

http://java.sun.com/docs/books/tutorial/servlets/overview/architecture.html

The Struts controller is not creating anything here, but simply making
use of a existing resource (provided for this exact purpose). 

http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_model.html#javabeans

HTH. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/


Adam Hardy wrote:
 
 On Sat, 16 February 2002, Ted Husted wrote:
 
  The container gives each request its own thread.
 
  If the list is created with new in the action, and then placed into the
  request, it is thread-safe. Just the same as if you had created it on
  the JSP.
 
 So the request object that I can store stuff in is in fact just a local variable of 
some controller class? That makes sense.
 
 Sorry for the confusion earlier - I see the session could be dangerous if the user 
decides to open more than one window.
 
 Thanks for your help guys. Have a good weekend, what's left of it.
 
 Adam
 
 Find the best deals on the web at AltaVista Shopping!
 http://www.shopping.altavista.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: action without form

2002-02-17 Thread SUPRIYA MISRA

Henry,
Look at admin.do of your UFM fal project that I have programmed(Contact Mary 
Hill). It has no form bean whatsoever, not even a blank one.

action path=/admin
type=fal.AdminAction
forward name=success path=/admin.jsp /

The admin Action sets the session variables of who the user is,his 
department list, his access level, and other bunch of stuff. Admin.jsp has 
only html:links to different Actions.

From: Ted Husted [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: Re: action without form
Date: Sat, 16 Feb 2002 04:28:34 -0500

Yes, but the html:form tag expects a formbean, so in that case you need
to create a blank form to placate the tag.

Henry Lu wrote:
 
  In Struts, can we setup an action without form in the struts-config.xml
  file? is the following legal?
 
  action
   pathe=/something
   type=so.so.somthing
   scope=request
   ...
   
  /action
 
  There is no name specified in this action.
 
  
---
  Henry Lu
  MCITphone: (734) 936-2063
  University of Michigan Medical Center   fax:   (734) 763-4372
 
  --
  To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
mailto:[EMAIL PROTECTED]

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Java Web Development with Struts.
-- Tel +1 585 737-3463.
-- Web http://www.husted.com/struts/

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





_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: FOP and strus

2002-02-17 Thread Ajay Chitre

One approach would be to convert java objects to xml using Castor and then
pass the XML to FOP.

HTH.

-- Original Message --

Hi, I am looking into FOP in generating PDF in
struts...  the examples so far that I have seen are
only taking static XML files and XLS files.  Can
someone tell me how to use FOP to generate pdf with
dynamic XML string (generated by some java objects) on
the fly?

I would apprecaite if you could even provide me with
some sample code.

Thanks
John


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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



Ajay Chitre

Diligent Team, Inc.
(Where Diligent People Work as a Team)

http://www.DiligentTeam.com



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




datasources management

2002-02-17 Thread mike m

What is the benefit of configuring datasources in the struts-config.xml
file?

My meaning is, I am revising an existing webapp to use struts.  Obviously, I
replaced my home-grown controller because struts has so many more features.

But, I'm not sure I gain by replacing my home-grown datasource manager.  I
am using WebSphere, so presumably I don't need pool man.  Data sources are
defined in a property file (not xml, but good enough) and are cached.

Am I over-looking something?  Will I miss out on some features if I keep
datasource management separate from struts classes?  Isn't limiting access
to datasources to the ActionServlet rather limiting?

Mike


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




Tiles examples in Jbuilder5 and Tomcat 4 ?

2002-02-17 Thread John Menke

I am trying to load the the tiles-doc webapp into Jbuilder 5 using tomcat 4.
I can get everything to compile, but when I try to Web Run the index.jsp I
get the following and I cannot debug the page.  If I start tomcat4 outside
of Jbuilder it works fine.

Here is the Jbuilder trace:

C:\jbuilder5\jdk1.3\bin\javaw -classpath G:\Apache Tomcat
4.0\bin\bootstrap.jar;G:\Apache Tomcat
4.0\webapps\struts-menu\WEB-INF\lib\struts.jar;G:\Apache Tomcat
4.0\webapps\struts-menu\WEB-INF\lib\struts-menu.jar;G:\Apache Tomcat
4.0\lib\jasper-compiler.jar;G:\Apache Tomcat
4.0\lib\jasper-runtime.jar;G:\Apache Tomcat
4.0\lib\naming-factory.jar;G:\Apache Tomcat
4.0\server\lib\catalina.jar;G:\Apache Tomcat
4.0\server\lib\jakarta-regexp-1.2.jar;G:\Apache Tomcat
4.0\server\lib\servlets-common.jar;G:\Apache Tomcat
4.0\server\lib\servlets-default.jar;G:\Apache Tomcat
4.0\server\lib\servlets-invoker.jar;G:\Apache Tomcat
4.0\server\lib\servlets-manager.jar;G:\Apache Tomcat
4.0\server\lib\servlets-snoop.jar;G:\Apache Tomcat
4.0\server\lib\servlets-webdav.jar;G:\Apache Tomcat
4.0\server\lib\tomcat-ajp.jar;G:\Apache Tomcat
4.0\server\lib\tomcat-util.jar;G:\Apache Tomcat
4.0\server\lib\warp.jar;G:\Apache Tomcat
4.0\common\lib\activation.jar;G:\Apache Tomcat
4.0\common\lib\jdbc2_0-stdext.jar;G:\Apache Tomcat
4.0\common\lib\jndi.jar;G:\Apache Tomcat 4.0\common\lib\jta.jar;G:\Apache
Tomcat 4.0\common\lib\mail.jar;G:\Apache Tomcat
4.0\common\lib\naming-common.jar;G:\Apache Tomcat
4.0\common\lib\naming-resources.jar;G:\Apache Tomcat
4.0\common\lib\servlet.jar;G:\Apache Tomcat
4.0\common\lib\tools.jar;G:\Apache Tomcat
4.0\common\lib\tyrex-0.9.7.0.jar;G:\Apache Tomcat
4.0\common\lib\xerces.jar;G:\Apache Tomcat
4.0\webapps\tiles-doc\WEB-INF\lib\tiles.jar;G:\Apache Tomcat
4.0\webapps\tiles-doc\WEB-INF\lib\commons-beanutils.jar;G:\Apache Tomcat
4.0\webapps\tiles-doc\WEB-INF\lib\commons-collections.jar;G:\Apache Tomcat
4.0\webapps\tiles-doc\WEB-INF\lib\commons-digester.jar;C:\jbuilder5\jdk1.3\d
emo\jfc\Java2D\Java2Demo.jar;C:\jbuilder5\jdk1.3\jre\lib\i18n.jar;C:\jbuilde
r5\jdk1.3\jre\lib\jaws.jar;C:\jbuilder5\jdk1.3\jre\lib\rt.jar;C:\jbuilder5\j
dk1.3\jre\lib\sunrsasign.jar;C:\jbuilder5\jdk1.3\lib\dt.jar;C:\jbuilder5\jdk
1.3\lib\tools.jar  -Dcatalina.home=G:/Apache Tomcat 4.0
org.apache.catalina.startup.Bootstrap start -config C:\Documents and
Settings\john1\jbproject\StrutsTest\conf\server8080.xml
HttpConnector Opening server socket on all host IP addresses
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
WebappLoader[/tiles-doc]: Deploying class repositories to work directory
C:\Documents and Settings\john1\jbproject\StrutsTest\work\tiles-doc
WebappLoader[/tiles-doc]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to
G:\Apache Tomcat 4.0\webapps\tiles-doc\WEB-INF\lib\commons-beanutils.jar
WebappLoader[/tiles-doc]: Deploy JAR /WEB-INF/lib/commons-collections.jar to
G:\Apache Tomcat 4.0\webapps\tiles-doc\WEB-INF\lib\commons-collections.jar
WebappLoader[/tiles-doc]: Deploy JAR /WEB-INF/lib/commons-digester.jar to
G:\Apache Tomcat 4.0\webapps\tiles-doc\WEB-INF\lib\commons-digester.jar
WebappLoader[/tiles-doc]: Deploy JAR /WEB-INF/lib/struts.jar to G:\Apache
Tomcat 4.0\webapps\tiles-doc\WEB-INF\lib\struts.jar
WebappLoader[/tiles-doc]: Deploy JAR /WEB-INF/lib/tiles.jar to G:\Apache
Tomcat 4.0\webapps\tiles-doc\WEB-INF\lib\tiles.jar
StandardManager[/tiles-doc]: Seeding random number generator class
java.security.SecureRandom
StandardManager[/tiles-doc]: Seeding of random number generator has been
completed
ContextConfig[/tiles-doc]: No Realm has been configured to authenticate
against
ContextConfig[/tiles-doc]: Marking this application unavailable due to
previous error(s)
StandardContext[/tiles-doc]: Error initializing naming context for context
/tiles-doc
StandardContext[/tiles-doc]: Context startup failed due to previous errors
StandardContext[/tiles-doc]: Error initializing naming context for context
/tiles-doc
WebappLoader[/struts-menu]: Deploying class repositories to work directory
C:\Documents and Settings\john1\jbproject\StrutsTest\work\struts-menu
WebappLoader[/struts-menu]: Deploy JAR /WEB-INF/lib/jaxp.jar to G:\Apache
Tomcat 4.0\webapps\struts-menu\WEB-INF\lib\jaxp.jar
WebappLoader[/struts-menu]: Deploy JAR /WEB-INF/lib/jdbc2_0-stdext.jar to
G:\Apache Tomcat 4.0\webapps\struts-menu\WEB-INF\lib\jdbc2_0-stdext.jar
WebappLoader[/struts-menu]: Deploy JAR /WEB-INF/lib/parser.jar to G:\Apache
Tomcat 4.0\webapps\struts-menu\WEB-INF\lib\parser.jar
WebappLoader[/struts-menu]: Deploy JAR /WEB-INF/lib/struts-menu.jar to
G:\Apache Tomcat 4.0\webapps\struts-menu\WEB-INF\lib\struts-menu.jar
WebappLoader[/struts-menu]: Deploy JAR /WEB-INF/lib/struts.jar to G:\Apache
Tomcat 4.0\webapps\struts-menu\WEB-INF\lib\struts.jar
StandardManager[/struts-menu]: Seeding random number generator class
java.security.SecureRandom
StandardManager[/struts-menu]: Seeding of random number generator has been
completed
StandardWrapper[/struts-menu:default]: Loading container 

RE: Tiles examples in Jbuilder5 and Tomcat 4 ?

2002-02-17 Thread Robert D. Morse

It seems that the Tomcat version packaged with JBuilder is hosed.  I had the
exact problem under 6.0 Enterprise. Download Tomcat from the Jakarta site
and install it.  Point to that version rather than the one in the JBuilder
directory, and it should work fine.

-robert.

-Original Message-
From: John Menke [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 17, 2002 1:22 PM
To: struts-user
Subject: Tiles examples in Jbuilder5 and Tomcat 4 ?


I am trying to load the the tiles-doc webapp into Jbuilder 5 using tomcat 4.
I can get everything to compile, but when I try to Web Run the index.jsp I
get the following and I cannot debug the page.  If I start tomcat4 outside
of Jbuilder it works fine.

Here is the Jbuilder trace:

C:\jbuilder5\jdk1.3\bin\javaw -classpath G:\Apache Tomcat
4.0\bin\bootstrap.jar;G:\Apache Tomcat
4.0\webapps\struts-menu\WEB-INF\lib\struts.jar;G:\Apache Tomcat
4.0\webapps\struts-menu\WEB-INF\lib\struts-menu.jar;G:\Apache Tomcat
4.0\lib\jasper-compiler.jar;G:\Apache Tomcat
4.0\lib\jasper-runtime.jar;G:\Apache Tomcat
4.0\lib\naming-factory.jar;G:\Apache Tomcat
4.0\server\lib\catalina.jar;G:\Apache Tomcat
4.0\server\lib\jakarta-regexp-1.2.jar;G:\Apache Tomcat
4.0\server\lib\servlets-common.jar;G:\Apache Tomcat
4.0\server\lib\servlets-default.jar;G:\Apache Tomcat
4.0\server\lib\servlets-invoker.jar;G:\Apache Tomcat
4.0\server\lib\servlets-manager.jar;G:\Apache Tomcat
4.0\server\lib\servlets-snoop.jar;G:\Apache Tomcat
4.0\server\lib\servlets-webdav.jar;G:\Apache Tomcat
4.0\server\lib\tomcat-ajp.jar;G:\Apache Tomcat
4.0\server\lib\tomcat-util.jar;G:\Apache Tomcat
4.0\server\lib\warp.jar;G:\Apache Tomcat
4.0\common\lib\activation.jar;G:\Apache Tomcat
4.0\common\lib\jdbc2_0-stdext.jar;G:\Apache Tomcat
4.0\common\lib\jndi.jar;G:\Apache Tomcat 4.0\common\lib\jta.jar;G:\Apache
Tomcat 4.0\common\lib\mail.jar;G:\Apache Tomcat
4.0\common\lib\naming-common.jar;G:\Apache Tomcat
4.0\common\lib\naming-resources.jar;G:\Apache Tomcat
4.0\common\lib\servlet.jar;G:\Apache Tomcat
4.0\common\lib\tools.jar;G:\Apache Tomcat
4.0\common\lib\tyrex-0.9.7.0.jar;G:\Apache Tomcat
4.0\common\lib\xerces.jar;G:\Apache Tomcat
4.0\webapps\tiles-doc\WEB-INF\lib\tiles.jar;G:\Apache Tomcat
4.0\webapps\tiles-doc\WEB-INF\lib\commons-beanutils.jar;G:\Apache Tomcat
4.0\webapps\tiles-doc\WEB-INF\lib\commons-collections.jar;G:\Apache Tomcat
4.0\webapps\tiles-doc\WEB-INF\lib\commons-digester.jar;C:\jbuilder5\jdk1.3\d
emo\jfc\Java2D\Java2Demo.jar;C:\jbuilder5\jdk1.3\jre\lib\i18n.jar;C:\jbuilde
r5\jdk1.3\jre\lib\jaws.jar;C:\jbuilder5\jdk1.3\jre\lib\rt.jar;C:\jbuilder5\j
dk1.3\jre\lib\sunrsasign.jar;C:\jbuilder5\jdk1.3\lib\dt.jar;C:\jbuilder5\jdk
1.3\lib\tools.jar  -Dcatalina.home=G:/Apache Tomcat 4.0
org.apache.catalina.startup.Bootstrap start -config C:\Documents and
Settings\john1\jbproject\StrutsTest\conf\server8080.xml
HttpConnector Opening server socket on all host IP addresses
Starting service Tomcat-Standalone
Apache Tomcat/4.0.1
WebappLoader[/tiles-doc]: Deploying class repositories to work directory
C:\Documents and Settings\john1\jbproject\StrutsTest\work\tiles-doc
WebappLoader[/tiles-doc]: Deploy JAR /WEB-INF/lib/commons-beanutils.jar to
G:\Apache Tomcat 4.0\webapps\tiles-doc\WEB-INF\lib\commons-beanutils.jar
WebappLoader[/tiles-doc]: Deploy JAR /WEB-INF/lib/commons-collections.jar to
G:\Apache Tomcat 4.0\webapps\tiles-doc\WEB-INF\lib\commons-collections.jar
WebappLoader[/tiles-doc]: Deploy JAR /WEB-INF/lib/commons-digester.jar to
G:\Apache Tomcat 4.0\webapps\tiles-doc\WEB-INF\lib\commons-digester.jar
WebappLoader[/tiles-doc]: Deploy JAR /WEB-INF/lib/struts.jar to G:\Apache
Tomcat 4.0\webapps\tiles-doc\WEB-INF\lib\struts.jar
WebappLoader[/tiles-doc]: Deploy JAR /WEB-INF/lib/tiles.jar to G:\Apache
Tomcat 4.0\webapps\tiles-doc\WEB-INF\lib\tiles.jar
StandardManager[/tiles-doc]: Seeding random number generator class
java.security.SecureRandom
StandardManager[/tiles-doc]: Seeding of random number generator has been
completed
ContextConfig[/tiles-doc]: No Realm has been configured to authenticate
against
ContextConfig[/tiles-doc]: Marking this application unavailable due to
previous error(s)
StandardContext[/tiles-doc]: Error initializing naming context for context
/tiles-doc
StandardContext[/tiles-doc]: Context startup failed due to previous errors
StandardContext[/tiles-doc]: Error initializing naming context for context
/tiles-doc
WebappLoader[/struts-menu]: Deploying class repositories to work directory
C:\Documents and Settings\john1\jbproject\StrutsTest\work\struts-menu
WebappLoader[/struts-menu]: Deploy JAR /WEB-INF/lib/jaxp.jar to G:\Apache
Tomcat 4.0\webapps\struts-menu\WEB-INF\lib\jaxp.jar
WebappLoader[/struts-menu]: Deploy JAR /WEB-INF/lib/jdbc2_0-stdext.jar to
G:\Apache Tomcat 4.0\webapps\struts-menu\WEB-INF\lib\jdbc2_0-stdext.jar
WebappLoader[/struts-menu]: Deploy JAR /WEB-INF/lib/parser.jar to G:\Apache
Tomcat 4.0\webapps\struts-menu\WEB-INF\lib\parser.jar
WebappLoader[/struts-menu]: Deploy JAR 

CodeMaker is nice

2002-02-17 Thread Vic Cekvenich

http://husted.com/struts/resources/codemaker.htm

I just tried above and it worked great.

A client had an HTML prototype, we converted to JSP.
Then... above tool sucked out the properties and generate FormBeans with 
getters and setters.

Cool.

Vic



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




Re: FOP and strus (IE problem)

2002-02-17 Thread John Ng

Hi, The following is a piece of the code that I write
in the perform method of an ActionForm to generate the
PDF.  However, it works fine in netscape, but NOT IE. 
Can someone help me with this?

Thanks!
John 

  
  File xsltfile=new File(c:/uwreportdet.xsl);
  File xmlfile=new File(c:/uwreport.xml);
  
  StringWriter writer = new StringWriter();
  //XSLTransform.transform(s,
xsltfile.getCanonicalPath(), 
  //writer);
 
XSLTransform.transform(xmlfile.getCanonicalPath(),
xsltfile.getCanonicalPath(), 
 writer);
  writer.flush();
  writer.close();
  
  System.out.println(fo file: [ +
writer.toString() + ]);

  response.setContentType(application/pdf);
  StringReader reader = new
StringReader(writer.toString());
  

  Driver driver = new Driver(new
InputSource(reader), out);
  driver.run();

  byte[] content = out.toByteArray();
  response.setContentLength(content.length);
  response.getOutputStream().write(content);
  response.getOutputStream().flush();

--- Ted Husted [EMAIL PROTECTED] wrote:
 Or the Commons-Digester :o)
 
 Ajay Chitre wrote:
  
  One approach would be to convert java objects to
 xml using Castor and then
  pass the XML to FOP.
  
  HTH.
  
  -- Original Message --
  
  Hi, I am looking into FOP in generating PDF in
  struts...  the examples so far that I have seen
 are
  only taking static XML files and XLS files.  Can
  someone tell me how to use FOP to generate pdf
 with
  dynamic XML string (generated by some java
 objects) on
  the fly?
  
  I would apprecaite if you could even provide me
 with
  some sample code.
  
  Thanks
  John
  
  
 
 __
  Do You Yahoo!?
  Yahoo! Sports - Coverage of the 2002 Olympic
 Games
  http://sports.yahoo.com
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
  
  
  Ajay Chitre
  
  Diligent Team, Inc.
  (Where Diligent People Work as a Team)
  
  http://www.DiligentTeam.com
  
  --
  To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 -- Ted Husted, Husted dot Com
 -- For priority Struts support, 
 - visit http://husted.com/about/services
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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




Re: using logic:iterate to display collection and build html:input fi

2002-02-17 Thread Duncan Harris

[EMAIL PROTECTED] () wrote:

 I am trying to use logic:iterate to display a collection of data and also
 build a dynamic list of html:text input fields.
 
 Here's my code
 
 logic:iterate id=transactionAmountBoundary
 name=createTransactionAmountBoundariesForm
   property=transactionAmountBoundaries indexId=x
 tr
   td class=subHeading
   bean:write name=transactionAmountBoundary
 property=transactionDescription filter=true/
   /td
 
   td class=subHeading
   html:text name=createTransactionAmountBoundariesForm
 property=minValue%=x% size=10 maxlength=10 /
   /td
 
   td class=subHeading
   html:text name=createTransactionAmountBoundariesForm
 property=maxValue%=x% size=10 maxlength=10 /
   /td
 /tr 
 /logic:iterate
 
 The transactionDescription appears fine. But the problem is getting the
 minValue and maxValue text fields to appear in HTML as minValue1, minValue2,
 etc..  and maxValue1, maxValue2
 
 This code give me an error:
 javax.servlet.ServletException: No getter method for property minValue of
 bean createTransactionAmountBoundariesForm
 
 When I didn't have the %=x% code, the HTML generated had all the records
 with same code:   name=minValue and name=maxValue
 
 Does anyone have any suggestions?


Bit late, but this should work:

html:text name=createTransactionAmountBoundariesForm
 property='%= maxValue + x %' size=10 maxlength=10 /


Duncan Harris
~~~
Hartford, Cheshire, U.K., Tel: 07968 060418
Looking for STRUTS contract work in the U.K.

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




Re: java.io.IOException: Broken pipe

2002-02-17 Thread SUPRIYA MISRA

try this at the top of your jsp page
%@ page buffer=100kb %


From: Gao, Gang [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
CC: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
Subject: java.io.IOException: Broken pipe
Date: Sat, 16 Feb 2002 12:03:03 -0600

Hi,
We are consistently getting this Broken Pipe Exception. This is an
emergency.
Our application is in production and now it is on hold just for this
problem, immediate help would be appreciated.
The following is the error message:
javax.servlet.jsp.JspException: Input/output error: java.io.IOException:
Broken pipe
 at
org.apache.struts.util.ResponseUtils.writePrevious(ResponseUtils.java:184)
 at
org.apache.struts.taglib.logic.IterateTag.doAfterBody(IterateTag.java:402)
 at
jsp_servlet._intranet._workflow._workflow_all_tasks._jspService(_workflow_al
l_tasks.java:943)
 at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:213)
 at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:157)
 at
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.ja
va:1759)
 at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
 at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:213)
 at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:1265)
 at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:1631)
 at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
 at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
 
We're using struts1.0.1 and Weblogic6.0 sp2.
Thanks in advance.

Gang Gao
Verizon e-biz




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: FOP and strus (IE problem)

2002-02-17 Thread Gregor Rayman

John Ng [EMAIL PROTECTED] wrote:

 Hi, The following is a piece of the code that I write
 in the perform method of an ActionForm to generate the
 PDF.  However, it works fine in netscape, but NOT IE. 
 Can someone help me with this?
 
 Thanks!
 John 

Try adding ?.pdf to the url.

--
gR


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




Resuming request

2002-02-17 Thread E. Blood


I have a problem and I would like advice on the best way to approach
it.

There is a case of where I would like an action to make a modification
to the session and return to the orignal jsp with the orignal request.

So for example, viewing an article, and the request contains the
article number, category information, etc.  There is a a form with a
multiple selection box and a submit that will allow the user to change
article filtering options.

What I want is to be able to submit the form to the action, have the
action modify the session, and return to the orignal article page with
the original request parameters.

It is sort of like the bookmarking a page that requires
authentication, but I didn't find any solutions that returned to the
orignal request after the authentication is complete.

Thanks.

-- 
eblood

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




Re: FOP and strus (IE problem)

2002-02-17 Thread Arron Bates

Oh, what a world of pain.
IE in this regard is a pile of *@!# and NS is the absolute honey  :)

This is off-struts, but I know the pain you go through to get IE going 
properly.

Here's what I had to do to get it running reliably...


// START CODE --==

// set the response type
response.setContentType(application/pdf);
// set the content details
response.setHeader(Content-Disposition, inline; 
filename=ConfirmationLetter.pdf; );

// creating a temporary output stream
ByteArrayOutputStream bout = new ByteArrayOutputStream();

// this class takes teh xml document and runs it through the FOP process
// and pumps it into the output stream created.
OnlineSalesPDFGenerator pdf = new OnlineSalesPDFGenerator(xmlDoc);
pdf.run(form,request,bout);

byte[] content = bout.toByteArray();

// set the exact content length from our temp output stream
response.setContentLength(content.length);

// write the content
response.getOutputStream().write(content);

// flush the stream
response.getOutputStream().flush();

// ==-- END CODE


I went through a lot of pain to get all the alternatives people were 
doing to get this. Important parts are...
a) The response type.
b) The Content-Disposition details. This sets filenames and stuff for 
the file saving dialog boxes etc.
c) Setting the exact content length. Made possible by writing to the 
ByteArrayOutputStream and getting its resulting size.

And if you're pessimistic (most likely you are by now :), make sure you 
flush and close the output stream, and you can also throw in what Gregor 
says below with your URL. After the above though, you shouldn't have any 
problems.

Hopefully this will get you where you need to be.


Arron.


Gregor Rayman wrote:

John Ng [EMAIL PROTECTED] wrote:

Hi, The following is a piece of the code that I write
in the perform method of an ActionForm to generate the
PDF.  However, it works fine in netscape, but NOT IE. 
Can someone help me with this?

Thanks!
John 


Try adding ?.pdf to the url.

--
gR


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








Re: Resuming request

2002-02-17 Thread SUPRIYA MISRA

use this
return (new ActionForward(mapping.getInput()));

in struts-cofig file
input=bookmark.jsp  that has been bookmarked



From: E. Blood [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Resuming request
Date: Sun, 17 Feb 2002 17:01:56 -0700


I have a problem and I would like advice on the best way to approach
it.

There is a case of where I would like an action to make a modification
to the session and return to the orignal jsp with the orignal request.

So for example, viewing an article, and the request contains the
article number, category information, etc.  There is a a form with a
multiple selection box and a submit that will allow the user to change
article filtering options.

What I want is to be able to submit the form to the action, have the
action modify the session, and return to the orignal article page with
the original request parameters.

It is sort of like the bookmarking a page that requires
authentication, but I didn't find any solutions that returned to the
orignal request after the authentication is complete.

Thanks.

--
eblood

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





_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




RE: Resuming request

2002-02-17 Thread Danny Collins

I think if you were to forward to the input


Mapping.findForward(input); 

I think will solve the problem, it will return to the page and have all
of the values the user just entered.

or something along those lines I get the input one mixed up with
forwards. Either way if you get back to the input you should be fine

HTH without being too confusing
Danny
-Original Message-
From: E. Blood [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, February 17, 2002 7:02 PM
To: [EMAIL PROTECTED]
Subject: Resuming request


I have a problem and I would like advice on the best way to approach
it.

There is a case of where I would like an action to make a modification
to the session and return to the orignal jsp with the orignal request.

So for example, viewing an article, and the request contains the
article number, category information, etc.  There is a a form with a
multiple selection box and a submit that will allow the user to change
article filtering options.

What I want is to be able to submit the form to the action, have the
action modify the session, and return to the orignal article page with
the original request parameters.

It is sort of like the bookmarking a page that requires
authentication, but I didn't find any solutions that returned to the
orignal request after the authentication is complete.

Thanks.

-- 
eblood

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



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