Re: Can anyone help on this?

2001-11-16 Thread Konstantina Stamopoulou

Thanx for the advice Tom but I couldn't get much from the error.
What I did was to to call the .do file and forward the control to the .jsp
that uses the template.
Generally, is it illegal to use .do files within a template tag??

Thanx again,
Konstantina


- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 4:06 PM
Subject: RE: Can anyone help on this?


 look further down the stack trace, starting from the line Root cause.
 This might give you something more to work with ...

 hth,
 tomK

  -Original Message-
  From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
  Sent: donderdag 15 november 2001 12:56
  To: Struts Users Mailing List
  Subject: Can anyone help on this?
 
 
  Hello,
  I'm using a template for my application and for the main
  content I want to display a table from a database.
  When I access the database.do using a URL I get all the data
  correctly.
  When I use this database.do file in the .jsp that uses the
  template I get :
 
  javax.servlet.ServletException: Servlet Exception
  at
  org.apache.jasper.runtime.PageContextImpl.handlePageException(
  PageContextImpl.java:459)
  at
  _0002fcompany_0002ejspcompany_jsp_3._jspService(_0002fcompany_
  0002ejspcompany_jsp_3.java:234)
  at
  org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
 
 
  How should I handle this error?
 
  Thanx in advance.
 

 --
 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: Can anyone help on this?

2001-11-16 Thread Tom Klaasen (TeleRelay)

Hard to answer this one, isn't it?

First of all, maybe others on the list can get something out of the root
cause but are frustrated now because you obviously don't want to show
it.

Secondly, _how_ do you call the .do file? Showing us a snippet of your
page could help narrow down the guessing work.

Thirdly, I don't see any reason why a .do file could not be used in a
template tag (supposing you mean the insert tag), since the tag asks
for a URI. But I could be wrong on this one.


tomK


 -Original Message-
 From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] 
 Sent: vrijdag 16 november 2001 9:33
 To: Struts Users Mailing List
 Subject: Re: Can anyone help on this?
 
 
 Thanx for the advice Tom but I couldn't get much from the error.
 What I did was to to call the .do file and forward the 
 control to the .jsp
 that uses the template.
 Generally, is it illegal to use .do files within a template tag??
 
 Thanx again,
 Konstantina
 
 
 - Original Message -
 From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Thursday, November 15, 2001 4:06 PM
 Subject: RE: Can anyone help on this?
 
 
  look further down the stack trace, starting from the line 
 Root cause.
  This might give you something more to work with ...
 
  hth,
  tomK
 
   -Original Message-
   From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
   Sent: donderdag 15 november 2001 12:56
   To: Struts Users Mailing List
   Subject: Can anyone help on this?
  
  
   Hello,
   I'm using a template for my application and for the main
   content I want to display a table from a database.
   When I access the database.do using a URL I get all the data
   correctly.
   When I use this database.do file in the .jsp that uses the
   template I get :
  
   javax.servlet.ServletException: Servlet Exception
   at
   org.apache.jasper.runtime.PageContextImpl.handlePageException(
   PageContextImpl.java:459)
   at
   _0002fcompany_0002ejspcompany_jsp_3._jspService(_0002fcompany_
   0002ejspcompany_jsp_3.java:234)
   at
   
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  
  
   How should I handle this error?
  
   Thanx in advance.
  
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:struts-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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




Re: AW: If someone is interested

2001-11-16 Thread Maciej Koodziej

Hi,

In Your mail sent 16 listopada 2001 You wrote:

Indeed it's nice. I'd also appreciate if You shared the code.

s YESSS I would also like to see your code !!!
s Greate work

s -Ursprungliche Nachricht-
s Von: Christian Rab [mailto:[EMAIL PROTECTED]]
s Gesendet: Freitag, 16. November 2001 08:34
s An: Struts Users Mailing List
s Betreff: Re: If someone is interested


s Your application looks really cool, I'am very interested tho see your code!

s See you
s Christian


s 15.11.2001 22:45:09, Yuriy Zubarev [EMAIL PROTECTED] wrote:
Hello colleagues,

I've been developing a web app for myself and since
it's not the first app using Struts I attempted
to solve some general issues by providing some interfaces,
custom tag and generic actions. More specifically I'm talking
about tables, you know that questions about navigation,
sorting, formatting and so on...

To see what's done already, point your browser to
http://english.yuriy-zubarev.com

And if my work raises some interest among people,
I'll beautify the code (if there is no big load in the office)
and share it (with one of the purposes to get feedbacks
and criticism).

Best of luck,
Yuriy Zubarev




__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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






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


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



-- 
Best regards,
 Maciej


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




Re: If someone is interested

2001-11-16 Thread Konstantina Stamopoulou

Hi Yuriy,

I'm interested to see your code. I'm sure I could learn a lot of things form
it!

Thank you,
Konstantina


- Original Message -
From: Yuriy Zubarev [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 11:45 PM
Subject: If someone is interested


 Hello colleagues,

 I've been developing a web app for myself and since
 it's not the first app using Struts I attempted
 to solve some general issues by providing some interfaces,
 custom tag and generic actions. More specifically I'm talking
 about tables, you know that questions about navigation,
 sorting, formatting and so on...

 To see what's done already, point your browser to
 http://english.yuriy-zubarev.com

 And if my work raises some interest among people,
 I'll beautify the code (if there is no big load in the office)
 and share it (with one of the purposes to get feedbacks
 and criticism).

 Best of luck,
 Yuriy Zubarev




 __
 Do You Yahoo!?
 Find the one for you at Yahoo! Personals
 http://personals.yahoo.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: Can anyone help on this?

2001-11-16 Thread Tom Klaasen (TeleRelay)

Thank you...

Now you can see that there seems a Servlet Exception to be triggered
inside the test.do action. Unfortunately, the exact error message is
hidden by struts.

If you open up the code for org.apache.struts.taglib.template.InsertTag,
and replace line 149 with
throw new JspException(Error calling the specified URI, e);
you should get even more information about the exact origin of the
error.

It's like a walk in a very dark cave with a very small penlight
searching for a very small rock, I know, but that's just the fun of
programming ;-)

hth,
tomK

 -Original Message-
 From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]] 
 Sent: vrijdag 16 november 2001 10:25
 To: Struts Users Mailing List
 Subject: Re: Can anyone help on this?
 
 
 Well Tom I think you are right.
 The input I gave you was insufficient so here is all the story.
 
 THE .JSP USING THE TEMPLATE
 template:insert template='/chapterTemplate.jsp'
template:put name='header' content='/company.html' /
 template:put name='sidebar' content='/sidebar.jsp' /
 template:put name='content' content='/test.do'/
 template:put name='footer' content='/footer.html'/
 /template:insert
 
 
 THE ERROR
 
 Included servlet error: 500
 Location: /template-dina/company.jsp
 Error Location: /template-dina/test.do
 
 Root cause:
 javax.servlet.jsp.JspException: Servlet Exception
  at 
 org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag
 .java:149)
  at
 _0002fcompany_0002ejspcompany_jsp_4._jspService(_0002fcompany_
 0002ejspcompan
 y_jsp_4.java:221)
  at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service
 (JspServlet.ja
 va:130)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
 (JspServlet.ja
 va:282)
  at 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet
 .java:429)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at 
 org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
 .java:405)
  at org.apache.tomcat.core.Handler.service(Handler.java:287)
  at 
 org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
 org.apache.tomcat.core.ContextManager.internalService(ContextM
 anager.java:81
 2)
  at 
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
  at
 org.apache.tomcat.service.http.HttpConnectionHandler.processCo
 nnection(HttpC
 onnectionHandler.java:213)
  at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
 t.java:416)
  at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
 ol.java:501)
  at java.lang.Thread.run(Thread.java:484)
 
 I really appreciate your help.
 
 
 - Original Message -
 From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, November 16, 2001 11:09 AM
 Subject: RE: Can anyone help on this?
 
 
  Hard to answer this one, isn't it?
 
  First of all, maybe others on the list can get something 
 out of the root
  cause but are frustrated now because you obviously don't 
 want to show
  it.
 
  Secondly, _how_ do you call the .do file? Showing us a 
 snippet of your
  page could help narrow down the guessing work.
 
  Thirdly, I don't see any reason why a .do file could not be 
 used in a
  template tag (supposing you mean the insert tag), since 
 the tag asks
  for a URI. But I could be wrong on this one.
 
 
  tomK
 
 
   -Original Message-
   From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
   Sent: vrijdag 16 november 2001 9:33
   To: Struts Users Mailing List
   Subject: Re: Can anyone help on this?
  
  
   Thanx for the advice Tom but I couldn't get much from the error.
   What I did was to to call the .do file and forward the
   control to the .jsp
   that uses the template.
   Generally, is it illegal to use .do files within a template tag??
  
   Thanx again,
   Konstantina
  
  
   - Original Message -
   From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, November 15, 2001 4:06 PM
   Subject: RE: Can anyone help on this?
  
  
look further down the stack trace, starting from the line
   Root cause.
This might give you something more to work with ...
   
hth,
tomK
   
 -Original Message-
 From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 15 november 2001 12:56
 To: Struts Users Mailing List
 Subject: Can anyone help on this?


 Hello,
 I'm using a template for my application and for the main
 content I want to display a table from a database.
 When I access the database.do using a URL I get all the data
 correctly.
 

Re: Can anyone help on this?

2001-11-16 Thread Cedric Dumoulin


  I think you can't call an action as template region. The problem come from JSP
: you can't do a forward or sendRedirect once you have start written
something in output. Your action probably do a forward, but as you have already
written something in header, sidebar, ..., this cause an exception.

  Try to use Tiles library instead of templates. Think of it as an extended
templates library. You don't need to change your pages, just download tiles.jar
(or tilesForStruts1.0.jar), and instruct your web server to use tiles.tld
instead of struts-template.tld. This is done by adding or changing following
line in your web.xml :

  taglib
taglib-uri/WEB-INF/struts-template.tld/taglib-uri !-- logical name used
in your jsp file --!
taglib-location/WEB-INF/tiles.tld/taglib-location  !-- real uri of
tiles.tld --!
  /taglib


   Hope this help,

Cedric

Konstantina Stamopoulou wrote:

 Well Tom I think you are right.
 The input I gave you was insufficient so here is all the story.

 THE .JSP USING THE TEMPLATE
 template:insert template='/chapterTemplate.jsp'
template:put name='header' content='/company.html' /
 template:put name='sidebar' content='/sidebar.jsp' /
 template:put name='content' content='/test.do'/
 template:put name='footer' content='/footer.html'/
 /template:insert

 THE ERROR

 Included servlet error: 500
 Location: /template-dina/company.jsp
 Error Location: /template-dina/test.do

 Root cause:
 javax.servlet.jsp.JspException: Servlet Exception
  at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
  at
 _0002fcompany_0002ejspcompany_jsp_4._jspService(_0002fcompany_0002ejspcompan
 y_jsp_4.java:221)
  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
 va:130)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
 va:282)
  at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
  at org.apache.tomcat.core.Handler.service(Handler.java:287)
  at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
  at
 org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
 2)
  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
  at
 org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
 onnectionHandler.java:213)
  at
 org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
  at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
  at java.lang.Thread.run(Thread.java:484)

 I really appreciate your help.

 - Original Message -
 From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Friday, November 16, 2001 11:09 AM
 Subject: RE: Can anyone help on this?

  Hard to answer this one, isn't it?
 
  First of all, maybe others on the list can get something out of the root
  cause but are frustrated now because you obviously don't want to show
  it.
 
  Secondly, _how_ do you call the .do file? Showing us a snippet of your
  page could help narrow down the guessing work.
 
  Thirdly, I don't see any reason why a .do file could not be used in a
  template tag (supposing you mean the insert tag), since the tag asks
  for a URI. But I could be wrong on this one.
 
 
  tomK
 
 
   -Original Message-
   From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
   Sent: vrijdag 16 november 2001 9:33
   To: Struts Users Mailing List
   Subject: Re: Can anyone help on this?
  
  
   Thanx for the advice Tom but I couldn't get much from the error.
   What I did was to to call the .do file and forward the
   control to the .jsp
   that uses the template.
   Generally, is it illegal to use .do files within a template tag??
  
   Thanx again,
   Konstantina
  
  
   - Original Message -
   From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Thursday, November 15, 2001 4:06 PM
   Subject: RE: Can anyone help on this?
  
  
look further down the stack trace, starting from the line
   Root cause.
This might give you something more to work with ...
   
hth,
tomK
   
 -Original Message-
 From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
 Sent: donderdag 15 november 2001 12:56
 To: Struts Users Mailing List
 Subject: Can anyone help on this?


 Hello,
 I'm using a template for my application and for the main
 content I want to display a table from a database.
 When I access 

RE: If someone is interested

2001-11-16 Thread Martin Farrell

Hi

Yuriy the site looks brilliant, i'd definitely be interested in looking at
the source

thanks

martin

-Original Message-
From: Yuriy Zubarev [mailto:[EMAIL PROTECTED]]
Sent: 15 November 2001 21:45
To: [EMAIL PROTECTED]
Subject: If someone is interested


Hello colleagues,

I've been developing a web app for myself and since
it's not the first app using Struts I attempted
to solve some general issues by providing some interfaces,
custom tag and generic actions. More specifically I'm talking
about tables, you know that questions about navigation,
sorting, formatting and so on...

To see what's done already, point your browser to
http://english.yuriy-zubarev.com

And if my work raises some interest among people,
I'll beautify the code (if there is no big load in the office) 
and share it (with one of the purposes to get feedbacks
and criticism).

Best of luck,
Yuriy Zubarev




__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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


** For great Emap magazine subscription  gift offers visit 
http://www.emapmagazines.co.uk **


The information in this email is intended only for the addressee(s) named above.
Access to this email by anyone else is unauthorised.
If you are not the intended recipient of this message any disclosure, copying, 
distribution or any action taken in reliance on it is prohibited and may be unlawful. 

Emap plc and or its subsidiaries do not warrant that any attachments are free from 
viruses or other defects and accept no liability for any losses resulting from 
infected email transmissions.

Please note that any views expressed in this email may be those of the originator 
and do not necessarily reflect those of this organisation.



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




Re: Can anyone help on this?

2001-11-16 Thread Konstantina Stamopoulou

Now it makes sence Cedric.
My Action class indeed makes a forward so this must be the problem.
I'll try the tiles lib to see the extra functionality.

Many thanx



- Original Message -
From: Cedric Dumoulin [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 16, 2001 12:05 PM
Subject: Re: Can anyone help on this?



   I think you can't call an action as template region. The problem come
from JSP
 : you can't do a forward or sendRedirect once you have start written
 something in output. Your action probably do a forward, but as you have
already
 written something in header, sidebar, ..., this cause an exception.

   Try to use Tiles library instead of templates. Think of it as an
extended
 templates library. You don't need to change your pages, just download
tiles.jar
 (or tilesForStruts1.0.jar), and instruct your web server to use
tiles.tld
 instead of struts-template.tld. This is done by adding or changing
following
 line in your web.xml :

   taglib
 taglib-uri/WEB-INF/struts-template.tld/taglib-uri !-- logical
name used
 in your jsp file --!
 taglib-location/WEB-INF/tiles.tld/taglib-location  !-- real uri
of
 tiles.tld --!
   /taglib


Hope this help,

 Cedric

 Konstantina Stamopoulou wrote:

  Well Tom I think you are right.
  The input I gave you was insufficient so here is all the story.
 
  THE .JSP USING THE TEMPLATE
  template:insert template='/chapterTemplate.jsp'
 template:put name='header' content='/company.html' /
  template:put name='sidebar' content='/sidebar.jsp' /
  template:put name='content' content='/test.do'/
  template:put name='footer' content='/footer.html'/
  /template:insert
 
  THE ERROR
 
  Included servlet error: 500
  Location: /template-dina/company.jsp
  Error Location: /template-dina/test.do
 
  Root cause:
  javax.servlet.jsp.JspException: Servlet Exception
   at
org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
   at
 
_0002fcompany_0002ejspcompany_jsp_4._jspService(_0002fcompany_0002ejspcompan
  y_jsp_4.java:221)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 
org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
  va:130)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
 
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
  va:282)
   at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at org.apache.tomcat.core.Handler.service(Handler.java:287)
   at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
  2)
   at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
   at
 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
  onnectionHandler.java:213)
   at
 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)
 
  I really appreciate your help.
 
  - Original Message -
  From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, November 16, 2001 11:09 AM
  Subject: RE: Can anyone help on this?
 
   Hard to answer this one, isn't it?
  
   First of all, maybe others on the list can get something out of the
root
   cause but are frustrated now because you obviously don't want to show
   it.
  
   Secondly, _how_ do you call the .do file? Showing us a snippet of
your
   page could help narrow down the guessing work.
  
   Thirdly, I don't see any reason why a .do file could not be used in a
   template tag (supposing you mean the insert tag), since the tag asks
   for a URI. But I could be wrong on this one.
  
  
   tomK
  
  
-Original Message-
From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 16 november 2001 9:33
To: Struts Users Mailing List
Subject: Re: Can anyone help on this?
   
   
Thanx for the advice Tom but I couldn't get much from the error.
What I did was to to call the .do file and forward the
control to the .jsp
that uses the template.
Generally, is it illegal to use .do files within a template tag??
   
Thanx again,
Konstantina
   
   
- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 4:06 PM
Subject: RE: Can anyone help on this?
   
   
 look further down the stack trace, starting 

AW: If someone is interested

2001-11-16 Thread Roland Berger

Hi Yuriy

Yes I'm intressted too. Especially about the design of the navigation and
sorting stuff.
Thanks you.
Roland

-Ursprungliche Nachricht-
Von: Yuriy Zubarev [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 15. November 2001 22:45
An: [EMAIL PROTECTED]
Betreff: If someone is interested


Hello colleagues,

I've been developing a web app for myself and since
it's not the first app using Struts I attempted
to solve some general issues by providing some interfaces,
custom tag and generic actions. More specifically I'm talking
about tables, you know that questions about navigation,
sorting, formatting and so on...

To see what's done already, point your browser to
http://english.yuriy-zubarev.com

And if my work raises some interest among people,
I'll beautify the code (if there is no big load in the office)
and share it (with one of the purposes to get feedbacks
and criticism).

Best of luck,
Yuriy Zubarev




__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.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: Can anyone help on this?

2001-11-16 Thread Cedric Dumoulin


  Oops, I forgot something : if you use Tiles to solve your problem, you need to use
Tiles servlet. This is this servlet who do a include rather than a forward after an
insert.

  Cedric

Cedric Dumoulin wrote:

   I think you can't call an action as template region. The problem come from JSP
 : you can't do a forward or sendRedirect once you have start written
 something in output. Your action probably do a forward, but as you have already
 written something in header, sidebar, ..., this cause an exception.

   Try to use Tiles library instead of templates. Think of it as an extended
 templates library. You don't need to change your pages, just download tiles.jar
 (or tilesForStruts1.0.jar), and instruct your web server to use tiles.tld
 instead of struts-template.tld. This is done by adding or changing following
 line in your web.xml :

   taglib
 taglib-uri/WEB-INF/struts-template.tld/taglib-uri !-- logical name used
 in your jsp file --!
 taglib-location/WEB-INF/tiles.tld/taglib-location  !-- real uri of
 tiles.tld --!
   /taglib

Hope this help,

 Cedric

 Konstantina Stamopoulou wrote:

  Well Tom I think you are right.
  The input I gave you was insufficient so here is all the story.
 
  THE .JSP USING THE TEMPLATE
  template:insert template='/chapterTemplate.jsp'
 template:put name='header' content='/company.html' /
  template:put name='sidebar' content='/sidebar.jsp' /
  template:put name='content' content='/test.do'/
  template:put name='footer' content='/footer.html'/
  /template:insert
 
  THE ERROR
 
  Included servlet error: 500
  Location: /template-dina/company.jsp
  Error Location: /template-dina/test.do
 
  Root cause:
  javax.servlet.jsp.JspException: Servlet Exception
   at org.apache.struts.taglib.template.InsertTag.doEndTag(InsertTag.java:149)
   at
  _0002fcompany_0002ejspcompany_jsp_4._jspService(_0002fcompany_0002ejspcompan
  y_jsp_4.java:221)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServlet.ja
  va:130)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at
  org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
  va:282)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
   at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
   at org.apache.tomcat.core.Handler.service(Handler.java:287)
   at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
   at
  org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:81
  2)
   at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
   at
  org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
  onnectionHandler.java:213)
   at
  org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
   at
  org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
   at java.lang.Thread.run(Thread.java:484)
 
  I really appreciate your help.
 
  - Original Message -
  From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Friday, November 16, 2001 11:09 AM
  Subject: RE: Can anyone help on this?
 
   Hard to answer this one, isn't it?
  
   First of all, maybe others on the list can get something out of the root
   cause but are frustrated now because you obviously don't want to show
   it.
  
   Secondly, _how_ do you call the .do file? Showing us a snippet of your
   page could help narrow down the guessing work.
  
   Thirdly, I don't see any reason why a .do file could not be used in a
   template tag (supposing you mean the insert tag), since the tag asks
   for a URI. But I could be wrong on this one.
  
  
   tomK
  
  
-Original Message-
From: Konstantina Stamopoulou [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 16 november 2001 9:33
To: Struts Users Mailing List
Subject: Re: Can anyone help on this?
   
   
Thanx for the advice Tom but I couldn't get much from the error.
What I did was to to call the .do file and forward the
control to the .jsp
that uses the template.
Generally, is it illegal to use .do files within a template tag??
   
Thanx again,
Konstantina
   
   
- Original Message -
From: Tom Klaasen (TeleRelay) [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 4:06 PM
Subject: RE: Can anyone help on this?
   
   
 look further down the stack trace, starting from the line
Root cause.
 This might give you something more to work with ...

 hth,
 tomK

  -Original Message-
   

Struts JSP not reading parameters from URL

2001-11-16 Thread Scriven, Marcos

Hi

I've got a JSP which when rendered contains the line:

input type=text name=tradeProduct.ISIN maxlength=17 size=17
value= onblur=javascript:validateName(this); class=form2

Now, if I open this page with the URL mypage.jsp?tradeProduct.ISIN=abcd

The ISIN field is not set - I fear it's being ignored, and then set from the
form bean.

How, therefore, do I set the form field to a value when it is first loaded?
Basically, I want to load this page with the ISIN number of the product I
wish to edit.

Thanks

Marcos

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




Book for the beginner

2001-11-16 Thread Mihails Gulajevs

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hello all,

I am a newbie with Struts technology. Does anyone know the best book
for new developers? I have found a lot of, but I have a limited time
to build up the struts-enabled web application.

Thanks in advance,
Mihails Gulajevs
-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.0.2i

iQA/AwUBO/TdRo3AfpLTCnW4EQIUPQCfYvyDwHN1WoJZSCaOlumMMGQoc/EAoKTo
fHuNPokWaVGkByCiY9+1XpmL
=VBCe
-END PGP SIGNATURE-


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




how to number of rows in resultset without % ...

2001-11-16 Thread Dalibor Kezele

Multiple selectbox. It has size attribute which has to be set in order to
show all rows in database.
I'm using % ... code to get the number of rows in resultSet since I have
to know it before I take
data and display it in table. Could I get this size at least without %
..?

   sql:preparedStatement ...
sql:query
 SELECT * FROM MYTABLE
/sql:query
% int i = 0; %
sql:resultSet id=rsAction loop=true
 % i++; %
/sql:resultSet
% String size =  + i; %
sql:query
 SELECT * FROM MYTABLE
/sql:query
html:select property=segment multiple=true size=%=size %
 sql:resultSet id=rsAction loop=true
  % String id = rsAction.getString(1), value =
rsAction.getString(2); %
  html:option value=%=id %%=value%/html:option
 /sql:resultSet
/html:select
   /sql:preparedStatement

TIA,



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




RE: If someone is interested

2001-11-16 Thread DUPRAT Alexandre

Hi Yuriy,

it's a really good site. I think you cover most interesting things.
Coul'd I have a look at the source too?

thanks

Alexandre

-Message d'origine-
De: Martin Farrell [mailto:[EMAIL PROTECTED]]
Date: vendredi 16 novembre 2001 11:32
À: 'Struts Users Mailing List'
Objet: RE: If someone is interested


Hi

Yuriy the site looks brilliant, i'd definitely be interested in looking at
the source

thanks

martin

-Original Message-
From: Yuriy Zubarev [mailto:[EMAIL PROTECTED]]
Sent: 15 November 2001 21:45
To: [EMAIL PROTECTED]
Subject: If someone is interested


Hello colleagues,

I've been developing a web app for myself and since
it's not the first app using Struts I attempted
to solve some general issues by providing some interfaces,
custom tag and generic actions. More specifically I'm talking
about tables, you know that questions about navigation,
sorting, formatting and so on...

To see what's done already, point your browser to
http://english.yuriy-zubarev.com

And if my work raises some interest among people,
I'll beautify the code (if there is no big load in the office) 
and share it (with one of the purposes to get feedbacks
and criticism).

Best of luck,
Yuriy Zubarev




__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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


** For great Emap magazine subscription  gift offers visit
http://www.emapmagazines.co.uk **



The information in this email is intended only for the addressee(s) named
above.
Access to this email by anyone else is unauthorised.
If you are not the intended recipient of this message any disclosure,
copying, 
distribution or any action taken in reliance on it is prohibited and may be
unlawful. 

Emap plc and or its subsidiaries do not warrant that any attachments are
free from 
viruses or other defects and accept no liability for any losses resulting
from 
infected email transmissions.

Please note that any views expressed in this email may be those of the
originator 
and do not necessarily reflect those of this organisation.




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



++
| Ce courrier ainsi que les fichiers joints sont confidentiels.  |
| Si vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du système : [EMAIL PROTECTED]   |
|  - |
| Ce message confirme que le courrier a passé le contrôle|
| antivirus du relais de messagerie Internet avec succés.|
++

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




RE: If someone is interested

2001-11-16 Thread Rajeev M Singh

Yeah the site is good, a practical way of seeing what has been
implemented...which server you have put it in I mean web server and the
application server you have used?

Regards,
Rajeev

-Original Message-
From: DUPRAT Alexandre [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 16, 2001 6:39 PM
To: 'Struts Users Mailing List'
Subject: RE: If someone is interested


Hi Yuriy,

it's a really good site. I think you cover most interesting things.
Coul'd I have a look at the source too?

thanks

Alexandre

-Message d'origine-
De: Martin Farrell [mailto:[EMAIL PROTECTED]]
Date: vendredi 16 novembre 2001 11:32
À: 'Struts Users Mailing List'
Objet: RE: If someone is interested


Hi

Yuriy the site looks brilliant, i'd definitely be interested in looking
at the source

thanks

martin

-Original Message-
From: Yuriy Zubarev [mailto:[EMAIL PROTECTED]]
Sent: 15 November 2001 21:45
To: [EMAIL PROTECTED]
Subject: If someone is interested


Hello colleagues,

I've been developing a web app for myself and since
it's not the first app using Struts I attempted
to solve some general issues by providing some interfaces, custom tag
and generic actions. More specifically I'm talking about tables, you
know that questions about navigation, sorting, formatting and so on...

To see what's done already, point your browser to
http://english.yuriy-zubarev.com

And if my work raises some interest among people,
I'll beautify the code (if there is no big load in the office) 
and share it (with one of the purposes to get feedbacks
and criticism).

Best of luck,
Yuriy Zubarev




__
Do You Yahoo!?
Find the one for you at Yahoo! Personals http://personals.yahoo.com

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


** For great Emap magazine subscription  gift offers visit
http://www.emapmagazines.co.uk **




The information in this email is intended only for the addressee(s)
named above. Access to this email by anyone else is unauthorised. If you
are not the intended recipient of this message any disclosure, copying, 
distribution or any action taken in reliance on it is prohibited and may
be unlawful. 

Emap plc and or its subsidiaries do not warrant that any attachments are
free from 
viruses or other defects and accept no liability for any losses
resulting from 
infected email transmissions.

Please note that any views expressed in this email may be those of the
originator 
and do not necessarily reflect those of this organisation.





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



++
| Ce courrier ainsi que les fichiers joints sont confidentiels.  | Si 
| vous avez recu ce courrier par erreur, veuillez en informer |
| l'administrateur du système : [EMAIL PROTECTED]   |
|  - |
| Ce message confirme que le courrier a passé le contrôle|
| antivirus du relais de messagerie Internet avec succés.|
++

--
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: If someone is interested

2001-11-16 Thread David Bolsover

Yes please

Code please - good work 

David Bolsover
T:+44(0)1614276920
F:+44(0)1614276922
M:07773428118
E:[EMAIL PROTECTED] 

 -Original Message-
 From: Yuriy Zubarev [mailto:[EMAIL PROTECTED]]
 Sent: 15 November 2001 21:45
 To: [EMAIL PROTECTED]
 Subject: If someone is interested
 
 
 Hello colleagues,
 
 I've been developing a web app for myself and since
 it's not the first app using Struts I attempted
 to solve some general issues by providing some interfaces,
 custom tag and generic actions. More specifically I'm talking
 about tables, you know that questions about navigation,
 sorting, formatting and so on...
 
 To see what's done already, point your browser to
 http://english.yuriy-zubarev.com
 
 And if my work raises some interest among people,
 I'll beautify the code (if there is no big load in the office) 
 and share it (with one of the purposes to get feedbacks
 and criticism).
 
 Best of luck,
 Yuriy Zubarev
 
 
 
 
 __
 Do You Yahoo!?
 Find the one for you at Yahoo! Personals
 http://personals.yahoo.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: If someone is interested

2001-11-16 Thread Mantas Urbonavicius

Will you anounce about the source publicaly or should i join everyone
here and ask it personaly ? :)

btw, app looks interesting.
regards,
mantaz

 Hello colleagues,

 I've been developing a web app for myself and since
 it's not the first app using Struts I attempted
 to solve some general issues by providing some interfaces,
 custom tag and generic actions. More specifically I'm talking
 about tables, you know that questions about navigation,
 sorting, formatting and so on...

 To see what's done already, point your browser to
 http://english.yuriy-zubarev.com

 And if my work raises some interest among people,
 I'll beautify the code (if there is no big load in the office)
 and share it (with one of the purposes to get feedbacks
 and criticism).

 Best of luck,
 Yuriy Zubarev




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




Please help - I'm not getting anywhere with this

2001-11-16 Thread Scriven, Marcos

Any ideas?

 -Original Message-
 From: Scriven, Marcos 
 Sent: 16 November 2001 11:00
 To: 'Struts Users Mailing List'
 Subject: Struts JSP not reading parameters from URL
 
 
 Hi
 
 I've got a JSP which when rendered contains the line:
 
 input type=text name=tradeProduct.ISIN 
 maxlength=17 size=17
 value= onblur=javascript:validateName(this); class=form2
 
 Now, if I open this page with the URL 
 mypage.jsp?tradeProduct.ISIN=abcd
 
 The ISIN field is not set - I fear it's being ignored, and 
 then set from the
 form bean.
 
 How, therefore, do I set the form field to a value when it is 
 first loaded?
 Basically, I want to load this page with the ISIN number of 
 the product I
 wish to edit.
 
 Thanks
 
 Marcos
 
 --
 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: Please help - I'm not getting anywhere with this

2001-11-16 Thread Scriven, Marcos

Thanks Ken

It's just the first part I don't understand. How do I fire off an Action,
before going to the form for the first time? Also, how do I tell the Action
which form to use?

Thanks

Marcos

 -Original Message-
 From: Fletcher, Ken [mailto:[EMAIL PROTECTED]]
 Sent: 16 November 2001 15:22
 To: 'Struts Users Mailing List'
 Subject: RE: Please help - I'm not getting anywhere with this
 
 
 Create an action class that sets the form bean's field, then 
 add the form
 bean to the request before you forward to that page.  You'll 
 also need to
 use the appropriate tag in your jsp:  
 html:text name=tradeProduct property=ISIN/
 ...and, of course, have your form defined in your 
 struts-config.xml, etc.,
 etc
 
 -Original Message-
 From: Scriven, Marcos [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 16, 2001 8:53 AM
 To: 'Struts Users Mailing List'
 Subject: Please help - I'm not getting anywhere with this
 
 
 Any ideas?
 
  -Original Message-
  From: Scriven, Marcos 
  Sent: 16 November 2001 11:00
  To: 'Struts Users Mailing List'
  Subject: Struts JSP not reading parameters from URL
  
  
  Hi
  
  I've got a JSP which when rendered contains the line:
  
  input type=text name=tradeProduct.ISIN 
  maxlength=17 size=17
  value= onblur=javascript:validateName(this); class=form2
  
  Now, if I open this page with the URL 
  mypage.jsp?tradeProduct.ISIN=abcd
  
  The ISIN field is not set - I fear it's being ignored, and 
  then set from the
  form bean.
  
  How, therefore, do I set the form field to a value when it is 
  first loaded?
  Basically, I want to load this page with the ISIN number of 
  the product I
  wish to edit.
  
  Thanks
  
  Marcos
  
  --
  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]
 
 --
 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: If someone is interested

2001-11-16 Thread Peter Georgiou

I think there are so many people interested you may as well publicly show
the code.


Peter


 Hello colleagues,

 I've been developing a web app for myself and since
 it's not the first app using Struts I attempted
 to solve some general issues by providing some interfaces,
 custom tag and generic actions. More specifically I'm talking
 about tables, you know that questions about navigation,
 sorting, formatting and so on...

 To see what's done already, point your browser to
 http://english.yuriy-zubarev.com

 And if my work raises some interest among people,
 I'll beautify the code (if there is no big load in the office)
 and share it (with one of the purposes to get feedbacks
 and criticism).

 Best of luck,
 Yuriy Zubarev




 __
 Do You Yahoo!?
 Find the one for you at Yahoo! Personals
 http://personals.yahoo.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: Please help - I'm not getting anywhere with this

2001-11-16 Thread Marcel Andres

Marco,

I don't know if your question is a general JSP question, or related to struts. With 
struts, if you want to get a value set the first time you call the page, you should 
not use the .jsp. If you need the value to be set, you have to make sure, the action 
is called before the JSP will be displayed. So, make sure that you call the page with 
.do instead of .jsp.

Marcel

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 3:53 PM
To: [EMAIL PROTECTED]
Subject: Please help - I'm not getting anywhere with this


Any ideas?

 -Original Message-
 From: Scriven, Marcos 
 Sent: 16 November 2001 11:00
 To: 'Struts Users Mailing List'
 Subject: Struts JSP not reading parameters from URL
 
 
 Hi
 
 I've got a JSP which when rendered contains the line:
 
 input type=text name=tradeProduct.ISIN 
 maxlength=17 size=17
 value= onblur=javascript:validateName(this); class=form2
 
 Now, if I open this page with the URL 
 mypage.jsp?tradeProduct.ISIN=abcd
 
 The ISIN field is not set - I fear it's being ignored, and 
 then set from the
 form bean.
 
 How, therefore, do I set the form field to a value when it is 
 first loaded?
 Basically, I want to load this page with the ISIN number of 
 the product I
 wish to edit.
 
 Thanks
 
 Marcos
 
 --
 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]

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




How to Create A Dynamic Table with html:form

2001-11-16 Thread Barry Jia

Question : I want to create a dynamic table with html:form and have my
form bean and action can handle what I input. for instance : my form page is
:
html:form action=submitnewapp.do enctype=multipart/form-data
focus=jad
table
   tr
 td
   Input the file name of thebiJAD/i/b file for your
application:
  /td
   td
 html:file property=jad size=30 maxlength=100 /
/td
  /tr
  %-- here is what I hope to create by a class or a some business
logic. --%
  %= myClass.out %
 tr
td colspan=2  html:submit property=submit value=Submit /
  /tr
/table
/html:form
I define a myClass which can generate html string like this :
tr td/tdtdinput type=checkbox name=carrier value=Bell Bell
/td /tr\n ;
But I access this JSP page, there are always null show up on the page
before my table, I view the source through my browser,there are not any null
on the source, I do not know where it is from.
I tried to use bean, but my class need a DataSource, is it possible to set
Datasource as a bean property ?
Thanks
  



FW: How to Create A Dynamic Table with html:form

2001-11-16 Thread Barry Jia


Question : I want to create a dynamic table with html:form and have my
form bean and action can handle what I input. for instance : my form page is
:
html:form action=submitnewapp.do enctype=multipart/form-data
focus=jad
table
   tr
 td
   Input the file name of thebiJAD/i/b file for your
application:
  /td
   td
 html:file property=jad size=30 maxlength=100 /
/td
  /tr
  %-- here is what I hope to create by a class or a some business
logic. --%
  %= myClass.out %
 tr
td colspan=2  html:submit property=submit value=Submit /
  /tr
/table
/html:form
I define a myClass which can generate html string like this :
tr td/tdtdinput type=checkbox name=carrier value=Bell Bell
/td /tr\n ;
But I access this JSP page, there are always null show up on the page
before my table, I view the source through my browser,there are not any null
on the source, I do not know where it is from.
I tried to use bean, but my class need a DataSource, is it possible to set
Datasource as a bean property ?
Thanks
  



RE: how to number of rows in resultset without % ...

2001-11-16 Thread Bradley M. Handy

Try this.

ResultSet resultSet = execute query here to return a result set
int numRows = 0;
if(resultSet.last()) {
numRows = resultSet.getRow();  // return the row id.
}

One thing to note is if your ResultSet is not setup to for
bi-directional reading, you will lose the use of your ResultSet doing
this.

Bradley M. Handy
Programmer/Analyst
Spring Arbor University
--www.arbor.edu
--mailto:[EMAIL PROTECTED]
 

-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]] 
Sent: Friday, November 16, 2001 2:24 PM
To: Struts Users Mailing List
Subject: Re: how to number of rows in resultset without % ...

TIA,

Try SELECT COUNT() FROM mytable

That should return the # of records returned.

Regards,

Richard


At 01:46 PM 11/16/2001 +0100, you wrote:
Multiple selectbox. It has size attribute which has to be set in order
to
show all rows in database.
I'm using % ... code to get the number of rows in resultSet since I
have
to know it before I take
data and display it in table. Could I get this size at least without
%
..?

sql:preparedStatement ...
 sql:query
  SELECT * FROM MYTABLE
 /sql:query
 % int i = 0; %
 sql:resultSet id=rsAction loop=true
  % i++; %
 /sql:resultSet
 % String size =  + i; %
 sql:query
  SELECT * FROM MYTABLE
 /sql:query
 html:select property=segment multiple=true size=%=size
%
  sql:resultSet id=rsAction loop=true
   % String id = rsAction.getString(1), value =
rsAction.getString(2); %
   html:option value=%=id %%=value%/html:option
  /sql:resultSet
 /html:select
/sql:preparedStatement

TIA,



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


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




File upload using struts on weblogic server

2001-11-16 Thread Rahul Chaudhary

Hi,

Using struts when i do a file upload operation the weblogic server creates a 
temporary file for that and stores it on the server.Is there a parameter 
from where the code can fetch that temp. directory path.?

Rgds

Rahul


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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




Struts + WebSphere ..... Missing configuration resource for path /WEB-INF/struts-config.xml

2001-11-16 Thread jpablo


Hi, I'm have an we app developed on visual age + websphere test
environment finished. Now I need to port this app to a production
server running websphere 3.5.2 but when I try to run a .do action I
get the following error:

Original Error:
Error Message: Failed to load target servlet [action]
Error Code: 500
Target Servlet: action
Error Stack: 

Root Error-1: Missing configuration resource for path /WEB-INF/struts-config.xml
javax.servlet.UnavailableException: Missing configuration resource for path 
/WEB-INF/struts-config.xml 
 at org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1261) 

The document root of my web app is:
  /opt/IBMWebAS/hosts/default_host/cuida2/
I have the struts-config.xml in
  /opt/IBMWebAS/hosts/default_host/cuida2/WEB-INF/strust-config.xml
The ResouceProperties file is in the application ClassPath.

What can be wrong? Any tip will be really appreciated.

--
Juan Pablo Villaverde
Tec. en Infraestructura de Redes
Soluciones Punto Com S.A. 
http://www.spcom.com.ar



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




new release of StrutsTestCase

2001-11-16 Thread Deryl Seale

Hello, all.

There is a new release of StrutsTestCase at SourceForge:

http://strutstestcase.sourceforge.net

This release contains the following:

1) Fix for problem searching for forward declarations.  Previously,
the global forwards were searched first, and then forwards local to a
particular mapping were searched last.  Now the order is reversed,
in order to make sure that local forward declarations are preferred
over global forwards with the same name.

2) Added ability to specify an alternate configuration file.
ActionServlet looks for /WEB-INF/struts-config.xml, but now you can
specify another file in any directory.

thanks.
--Deryl






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




Use Request Attribute in message tag

2001-11-16 Thread Rooms, Christoph

Hi, 

I'm using Struts 1.0.

I want to put a localized message on the error.jsp. Therefor when I have an
error in my action, I will fill up an attribute in the request with the
locale key. And then use this tag in my error.jsp ...


bean:message key=%=request.getAttribute(errorMessage%)/


But ... It doesn't work ... 

Anyone knows how do this ?

Thanks! 

Christoph Rooms




Rooms, Christoph.vcf
Description: Binary data

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


Re: Book for the beginner

2001-11-16 Thread Vic Cekvenich



Vic Cekvenich wrote:

 1st Struts book w/ 25 chapters on Struts  should ship in 2 weeks. 
 (It covers the class topics found on baseBeans.com list of topics, plus 
 content syndication and a few more topics I can't think of now).
 You will be able to pre-order some time next week at www.basebeans.com 
 (because of  we are rushing to meet the need). Pre-order let's me know 
 how many to order for print. It is based on beta 1.1 release and the 
 class I am teaching on Struts. Cost might be on the higher end.
 
 Vic
 
 PS: Hands on public training:
 San Diego is already booked for training in Feb. Dallas Dec. 2 has 14 
 seats sold, and some remaining.  To keep in the loop on training 
 cities/dates, sign up at:
 http://www.basebeans.com:8081/mailman/listinfo/mvc-programmers
 We are thinking of adding following cities to training:
 Houston, Chicago, NJ, Amsterdam
 And sample apps soon. Maybe on SourceForge for full database sample 
 apps w/master detail drill down and CRUD.
 
 
 Mihails Gulajevs wrote:
 
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hello all,

 I am a newbie with Struts technology. Does anyone know the best book
 for new developers? I have found a lot of, but I have a limited time
 to build up the struts-enabled web application.

 Thanks in advance,
 Mihails Gulajevs
 -BEGIN PGP SIGNATURE-
 Version: PGPfreeware 6.0.2i

 iQA/AwUBO/TdRo3AfpLTCnW4EQIUPQCfYvyDwHN1WoJZSCaOlumMMGQoc/EAoKTo
 fHuNPokWaVGkByCiY9+1XpmL
 =VBCe
 -END PGP SIGNATURE-


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




Question Regarding Cookies

2001-11-16 Thread Juan Alvarado

Hello:

I am using the following code to handle some cookies in a page:

%
Cookie[] cookies = request.getCookies();
pageContext.setAttribute(cookies, cookies);
%
logic:iterate id=fav name=cookies scope=page
bean:write name=fav property=value /br
/logic:iterate

What I'd like to know is if it is possible to lose the scriptlet above and
replace it with some struts specific tag and still keep the basic
functionality of the code.

Thanks in advance from a struts beginner.

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


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




RE: Question Regarding Cookies

2001-11-16 Thread MacKellar, Kimberly

Could you do the following?

bean:cookie id=cookies name=.. multiple=true/

logic:iterate id=fav name=cookies scope=page
bean:write name=fav property=value /br
/logic:iterate


Kimberly MacKellar

-Original Message-
From: Juan Alvarado [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 3:35 PM
To: Struts
Subject: Question Regarding Cookies


Hello:

I am using the following code to handle some cookies in a page:

%
Cookie[] cookies = request.getCookies();
pageContext.setAttribute(cookies, cookies);
%
logic:iterate id=fav name=cookies scope=page
bean:write name=fav property=value /br
/logic:iterate

What I'd like to know is if it is possible to lose the scriptlet above and
replace it with some struts specific tag and still keep the basic
functionality of the code.

Thanks in advance from a struts beginner.

**
Juan Alvarado
Internet Developer -- Manduca Management
(786)552-0504
[EMAIL PROTECTED]
AOL Instant Messenger: [EMAIL PROTECTED]


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




Help with jsp:include tag

2001-11-16 Thread Trever M. Shick

I'd like to use an action/action form to handle a JSP include, can this be
done...?


I'd like to do the following..


...
jsp:include page=/view-calendar.do flush=true/
...

My view-calendar.do will either choose:
month.jsp
daily.jsp
week.jsp

for it's view.

However, when I try to use this, it tells me that the response has already
been committed.  I understand the mechanics behind it all, but I don't know
Struts well enough to work around this.

I could probably do this via the template tags, but I don't want to use them
as I'm still working on learning the others...  I have enough darned tags in
my brain.


Trever

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




RE: Use Request Attribute in message tag

2001-11-16 Thread MacKellar, Kimberly

Is it because of the typo?

bean:message key=%=request.getAttribute(errorMessage)%/

Kimberly MacKellar

-Original Message-
From: Rooms, Christoph [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 9:03 AM
To: 'Struts Users Mailing List'
Subject: Use Request Attribute in message tag


Hi, 

I'm using Struts 1.0.

I want to put a localized message on the error.jsp. Therefor when I have an
error in my action, I will fill up an attribute in the request with the
locale key. And then use this tag in my error.jsp ...


bean:message key=%=request.getAttribute(errorMessage%)/


But ... It doesn't work ... 

Anyone knows how do this ?

Thanks! 

Christoph Rooms


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




RE: Use Request Attribute in message tag

2001-11-16 Thread Matt Raible

Or try:

bean:message key=%=request.getAttribute('errorMessage')%/


--- MacKellar, Kimberly [EMAIL PROTECTED] wrote:
 Is it because of the typo?
 
 bean:message key=%=request.getAttribute(errorMessage)%/
 
 Kimberly MacKellar
 
 -Original Message-
 From: Rooms, Christoph [mailto:[EMAIL PROTECTED]]
 Sent: Friday, November 16, 2001 9:03 AM
 To: 'Struts Users Mailing List'
 Subject: Use Request Attribute in message tag
 
 
 Hi, 
 
 I'm using Struts 1.0.
 
 I want to put a localized message on the error.jsp. Therefor when I have an
 error in my action, I will fill up an attribute in the request with the
 locale key. And then use this tag in my error.jsp ...
 
 
 bean:message key=%=request.getAttribute(errorMessage%)/
 
 
 But ... It doesn't work ... 
 
 Anyone knows how do this ?
 
 Thanks! 
 
 Christoph Rooms
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Find the one for you at Yahoo! Personals
http://personals.yahoo.com

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




RE: links to javascript with index variables

2001-11-16 Thread Prengaman.Karen

Rob,

I did something similar today.  I went through a lot of the same steps as
you and here is what I finally came up with (using your code):

logic:iterate id=el name=reallySimpleForm property=names indexId=i
bean:define id=url1 value=javascript:subForm(document.forms[0],'del','
/
bean:define id=url2 value='); /
Name: bean:write name=el/ html:link href=%=
url1+i+url2bean:message key=link.delete//html:linkBR
/logic:iterate

I'm not sure if this is the best solution, but it's working.

-Karen

-Original Message-
From: Rob Breeds [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 3:53 PM
To: Struts Users Mailing List
Subject: Re: links to javascript with index variables


I then tried this, using a scriptlet to create the javascript first:

% String tryit = javascript:subForm(document.forms[0],'del','+i+');;
%
Name: bean:write name=el/ html:link href=%= tryit %bean:message
key=link.delete//html:link

and that works too!

Now can someone clever please share with me how to do this elegantly
without reverting to scriptlets?

Thanks!

Rob



 

Rob

Breeds/UK/IBM@   To: Struts Users Mailing List
[EMAIL PROTECTED]  
IBMGBcc:

 Subject: Re: links to
javascript with index variables

15/11/2001

23:47

Please respond

to Struts

Users Mailing

List

 

 





And then I tried it without struts tags:

A HREF=javascript:subForm(document.forms[0],'del','%= i.toString()
%');try this/A

and it works! Why doesn't it work when the same code is put into the Struts
html:link href attribute ?

Rob




Rob
Breeds/UK/IBM@   To: Struts Users Mailing
List [EMAIL PROTECTED]
IBMGBcc:
 Subject: Re: links to
javascript with index variables
15/11/2001
23:39
Please respond
to Struts
Users Mailing
List







I tried this:

logic:iterate id=el name=reallySimpleForm property=names indexId
=i
Name: bean:write name=el/ html:link href
=javascript:subForm(document.forms[0],'del','%= i.toString()
%');bean:message key=link.delete//html:linkBR
/logic:iterate

but that just generates links of:
javascript:subForm(document.forms[0],'del','%= i.toString() %');

instead of javascript:subForm(document.forms[0],'del','0');

How can I get scripting variables inside the html:link href attribute?

Thanks

Rob




Rob
Breeds/UK/IBM@   To: Struts Users Mailing
List [EMAIL PROTECTED]
IBMGBcc:
 Subject: links to javascript
with index variables
15/11/2001
22:58
Please respond
to Struts
Users Mailing
List






In my ActionForm I have a collection of names which is added to
dynamically. If I want to give each name its own delete link I'm doing this
with iterate:

logic:iterate id=el name=reallySimpleForm property=names
Name: bean:write name=el/ html:link href
=javascript:subForm(document.forms[0],'del');bean:message key
=link.delete//html:linkBR
/logic:iterate

(where subForm is a JavaScript function to submit the form, and set an
action, of 'del' in this case)

but how do I add an index value into the javascript call for the link? To
generate something like:

html:link href=javascript:subForm(document.forms[0],'del', 0) (last param
being the index)
html:link href=javascript:subForm(document.forms[0],'del', 1)
html:link href=javascript:subForm(document.forms[0],'del', 2)
.
.
.

Is the only way to do this using scriptlets?

Thanks

Rob Breeds




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





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

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