Re: Problem With Forwarding to a non-HTML file

2002-01-30 Thread Thierry Cools

try something like this; it will open the pdf viewer in your browser



public class ShowDocumentAction extends BasicAction {
public ActionForward perform(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException {

HttpSession session = request.getSession();
try {
Object object = session.getAttribute("BlobObject");
if (object != null) {
DocumentDetailModel detailModel =
(DocumentDetailModel)object;

ByteArrayOutputStream baos = new ByteArrayOutputStream();
Document document = new Document();

PdfWriter.getInstance(document, baos);// Using the
library of Bruno Lowagie  to convert xml to PDF

Parser parser =
ParserFactory.makeParser("org.apache.xerces.parsers.SAXParser");
parser.setDocumentHandler(new SAXiTextHandler(document));

ByteArrayInputStream stream = new
ByteArrayInputStream(detailModel.getDetail());  // this is an array of byte
InputSource inputSource = new InputSource(stream);
parser.parse(inputSource);

response.setContentType("application/pdf");
response.setContentLength(baos.size());
ServletOutputStream out = response.getOutputStream();
baos.writeTo(out);
out.flush();
}
}
catch (Exception ex) {
}
return "";
}
}

Best regards,
Thierry

- Original Message -
From: "Duncan Harris" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 30, 2002 10:18 PM
Subject: Re: Problem With Forwarding to a non-HTML file


> [EMAIL PROTECTED] (Mark Woon) wrote:
>
> > Sorry, I guess I should also have added that PDF files are ocassionally
> > generated on the fly., in which case there's really nothing to redirect
or
> > forward to.  Is there anything I can do in these situations?
>
> The Inland Revenue site in the UK does this, if you fancy filling
> in a dummy tax return to see how it works... :-)
> http://www.inlandrevenue.gov.uk/
> If you are interested you must go to the Self assessment then after
> creating a new forms log-in, select download and print locally.
>
> When I used to do CGI I used to do things with the extra path
> to fool the browser:  /cgi-bin/genpdf.exe/docname.pdf
> I think maybe something similar is possible with servlets.
>
> Duncan Harris
> ~~~
> Hartford, Cheshire, U.K., Tel: 07968 060418
> Looking for STRUTS contract work in the U.K.
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




struts-user@jakarta.apache.org

2001-09-14 Thread Thierry Cools



Hi, after a long absence, I'm back again in the struts 
world ;-)
 
I have the following problem, I'd like to add an image on 
my page, where the name of this image is stored in the database ( not the image 
itself, just the pathlocation and the name);
So I've a form bean with a 'getImagePath()' method that 
returns a String.
 
But the name & property attributes in the img tag are 
already reserved for multiple parameters, 
so, the question is, how can I get my Image coming from my 
get method, without using scriptlets and all that stuff ?
 
Thanks for your help,
Thierry  
 
  


Re: radio buttion checked

2001-04-18 Thread Thierry Cools



This is done by checking the value of your radio tag and the value returned 
by your getter method.
 
e.g if you have
 
  
 
if the getXxx method returns "2" the second radio button will be 
selected.
 
Thierry 
 
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Sundaram 
  Ramasamy 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, April 18, 2001 3:24 
  PM
  Subject: radio buttion checked
  Hello.How do I define the following radio button using 
  htlm:radio tag. I don'tfind the checked attributeIn  html:radio 
  tag.Thank 
  & regardssundaram


Re: Dreamweaver ThirdPartyTags for HTML taglib?

2001-04-03 Thread Thierry Cools



Well it is exactly the way the translators are working, it translates 
struts-tags into HTML tags.
The version I wrote was for the 0.5 version but make it works with the 1.0 
version you should only replace the 
 
If you need any further help don't hesitate to contact me.
 
Thierry  
Thierry Cools Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Bill 
  Bunting 
  To: Gavin Hughes 
  Cc: [EMAIL PROTECTED] 
  
  Sent: Wednesday, April 04, 2001 3:30 
  AM
  Subject: Re: Dreamweaver ThirdPartyTags 
  for HTML taglib?
  Unfortunately, I jumped the gun.  I 
  quickly realized that the Dreamweaver ThirdPartyTags only allows you to 
  substitute an icon in place of a tag and can not render HTML elements as I 
  first thought it might.  I found the alternatives posted to the 
  list too intensive, "workaround", or complex for my needs right now.  I 
  will wait  a year or so and hope that Dreamweaver improves its support 
  for custom tags (to include some sort of translation from custom tags to HTML 
  elements for display and graphical editing -- just enough so you could 
  visualize the design)I am also considering not using the Struts HTML 
  tags (if possible) and still use Struts but w/ standard HTML form input 
  elements in some cases.I really want to turn the site over to the 
  graphic artist and web designer after the software engineers finish their 
  part.  Unfortunately, if we use Struts we will not be able to do so as 
  easily!  ...and that puts us back into the days of servlet programming 
  pre JSP where only the engineers will figure it out.  Why do the artists 
  need to learn a new syntax?... they already know HTML and know how to leave 
  the JSP tags alone.   Acknowledged, there are plenty of web 
  designers who could do the job, but I want the team to be able to visualize 
  what they are working on using good tools that abstract the detail so they can 
  concentrate on the graphic design and layout.  Sure, we could also design 
  the site artwork first by creating an HTML storyboard and then convert to 
  struts taglibs, but at some point maintenance and/or "facelift" will be an 
  issue. Any thoughts anyone?Below was the most promising of the 
  replies:==Hi ,Several 
  weeks ago, I sent an email to this list describing an extension 
  forDreamweaver UltraDev that allows for the creation of JSPs with custom 
  taglibraries in UltraDev's development environment. I expressed our 
  intentionto release the extension through jakarta if there was interest. 
  After thedecision was made to donate the code to the taglibs project, 
  Macromediareleased UltraDev 4, incorporating many bug fixes in their SDK. 
  I tookthese past couple weeks to optimize the extension for UltraDev 4 and 
  therevised SDK, to increase the stability and feature set of the 
  extension. Itis now ready for an initial examination.As stated in 
  its documentation, the extension is not commercial code to beused 
  immediately for creating webapps; rather it is part of aninvestigation 
  into the current and potential state of tool support for theauthoring of 
  JSPs with custom tag libraries. As a foundation for thisinvestigation, the 
  extension is intended to have its limitations explored,and be built 
  upon.The Custom Tag Library Extension for UltraDev (CTLX) can be 
  downloaded here:http://www.shokker.com/ctlx/ctlx.zip.Inside the zip file is the 
  documentation (ctlxmanual.html). The docincludes detailed information for 
  installing the extension, as well as atutorial to guide you through the 
  process of creating a JSP with customtags using the extension. For a quick 
  start, I recommend following the"Installing the Extension" section, and 
  then running the tutorial.With your consent, I'd like to donate CTLX 
  to the taglibs project.Dan MandellSun Microsystems- 
  Original Message -From: <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>Sent: Thursday, March 29, 2001 
  8:28 PMSubject: RE: [PROPOSAL] adding "tools" directory to 
  taglibs> I worked for Allaire, now work for Macromedia. I am an 
  UltraDev newbie,but> I've been to the MM Exchange center. Are these 
  extensions availablethere?>> Scott Stirling>> 
  - Original Message -> From: "Daniel Jonathan Mandell" 
  <[EMAIL PROTECTED]>> To: <[EMAIL PROTECTED]>> Sent: Thursday, March 29, 
  2001 4:55 AM> Subject: [PROPOSAL] adding "tools" directory to 
  taglibs>>> > Hi all,> >> > A few 
  weeks ago I submitted CTLX, an extension for authoring JSPs with> > 
  custom tags in UltraDev, to the taglibs project. One of the issues 
  with> > commiting any utility or tool for tag libraries to the 
  project

Re: Running Struts in ATG

2001-04-03 Thread Thierry Cools



I had the same problem when I tried sometimes ago to use ATG as a 
web-tier.
And unfortunately it was not the only one (e.g : No automatic 
converson of non-String attributes).
 
I finally gave up and continued to use Tomcat as a servlet engine and used 
ATG only as a application server.
 
Thierry
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  McAllister, Michael P. 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Tuesday, April 03, 2001 8:50 
  PM
  Subject: Running Struts in ATG
  I've tried running the sample application that comes with 
  Struts in ATG.The submit and reset button does not show up on the logon 
  page.  Is there aproblem running Struts in ATG?Mike 
  McAllisterSoftware Engineer425-288-7343[EMAIL PROTECTED]


Re: can't get struts working w/ orion ...

2001-03-07 Thread Thierry Cools



Follow the instructions below and it should work
 
- Original Message -From: "Ate Douma" 
<[EMAIL PROTECTED]>To: "Orion-Interest" 
<[EMAIL PROTECTED]>Sent: 
Friday, December 15, 2000 20:19Subject: Re: Struts 1.0 - Anyone Do 
It?> Ok, once more: Deploying the stuts 1.0 pre-release example 
web application> on Orion in (more or less) five steps> (based on 
Orion 1.3.8 and jakarta-struts-src-20001209.zip on W2k, jdk1.3):>> 
1. build the struts example web application (or retrieve it from 
thenightly> build distribution)> 1.1. 
extract the struts src distribution in a temporary directory> 
([struts])> 1.2. build struts distribution by 
executing"[struts]\jakarta-struts\ant> dist" (using 
[struts]\jakata-struts\build.xml)> 2. modify the web application 
archive> 
[struts]\dist\struts\webapps\struts-example.war:> 
2.1. extract struts-example.war in a clean temporary 
directory([temp])> 2.2. open 
[temp]\WEB-INF\lib\struts.jar and extract> 
org\apache\struts\resources\struts-config_1_0.dtd 
to[temp]\WEB-INF\classes\> creating file> 
[temp]\WEB-INF\classes\org\apache\struts\resources\struts-config_1_0.dtd> 
2.3 delete the above file from struts.jar and save struts.jar in> 
[temp]\WEB-INF\lib\> 2.4 jar (or zip) the 
contents of [temp]\ in a new web application> archive 
[temp]\struts-example.war (don't forget keeping the folder names)> 3. 
create a struts.ear file by:> 3.1. create file 
[temp]\META-INF\application.xml containing the> 
following:> 
> 
> J2EE 
Application 1.2//EN"> "http://java.sun.com/j2ee/dtds/application_1_2.dtd">> 
>   
struts>   
> 
>   
struts-example.war>   
/struts-example> 
>   
> 
> 3.2 jar (or zip) 
[temp]\META-INF\application.xml and> [temp]\struts-examples.war into a 
new enterprise application archive> [temp]\struts.ear (using folder 
names)> 4. deploy the example web application on 
orion> 4.1. extract orion1.3.8.zip in some 
directory ([orion])> 4.2. copy the struts.ear 
file into [orion]/application> 4.3. modify 
[orion]\config\server.xml by adding the following element> under (nested 
within) the  
element:>   
> 4.4. modify 
[orion]\config\default-web-site.xml by adding thefollowing> element 
under (nested within) the  
element:>   
> 
root="/struts-example" />> 5. run the example web 
application>     5.1. startup orion by executing 
"java -jar orion.jar" within the> [orion]\ 
directory> 5.2. access the example web 
application from a browser using url:> http://localhost/struts-example>> 
Ate Douma
Regards,
Thierry
 
Thierry 
Cools Senior Java Developer S1 Brussels Kleine 
Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 200 
43 82 Email : [EMAIL PROTECTED] 


  - Original Message - 
  From: 
  Alan Yackel 

  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, March 08, 2001 7:53 
  AM
  Subject: Re: can't get struts working w/ 
  orion ...
  Yeah, same here.  I noticed that when I use tomcat I get 
  this message: Resolving to alternate 
  DTD'jar:file:/usr/local/jakarta-tomcat/webapps/struts-upload/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'But 
  when I use orion it says this: Resolving to 
  alternate 
  DTD'jndi:/usr/local/orion/lib/struts.jar/org/apache/struts/resources/struts-config_1_0.dtd'    
  End event threw exceptionThe difference is it says 'jar:file:/' in 
  tomcat and 'jndi"/' in orion.  Anyoneknow why this is?Alan 
  YackelChristian Billen wrote:> I had the same problem with 
  Orion 1.4.7 and Struts 1.0beta (today's build),> here's how I got it to 
  work:>> You have to remove all the tlds from 
  WEB-INF/lib/struts.jar that are under> org.apache.struts.resources and 
  put them under> WEB-INF/classes/org/apache/struts/resources.  
  Don't just copy them, they> have to disapear from your 
  struts.jar>> Took care of my issue, a bit annoying we have to do 
  this but looks more like> a bug in Orion than in Struts.  Any 
  comments on this?>> Christian>> > -Original 
  Message-> > From: G.L. Grobe [mailto:[EMAIL PROTECTED]]> 
  > Sent: Wednesday, March 07, 2001 2:59 PM> > To: [EMAIL PROTECTED]> 
  > Subject: can't get struts working w/ orion ...> >> 
  >> > After reading this, could it be that I don't have my 
  ActionServlet> > installed.> > I thought I'd be able to 
  just test the taglibs in a very simple> > configuration.> 
  > Just

Re: simple forward/redirect

2001-03-06 Thread Thierry Cools



Yes that's what we did, using a simple

BasicAction class extending ActionBase that always return 
mapping.findForward("success") in the perform 
method.
Thierry
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Matthias Bauer 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, March 06, 2001 11:48 
  AM
  Subject: simple forward/redirect
  Hi everybody!There was a discussion about not calling 
  jsp pages directly, but to always gothrough an action instead. I agree 
  that this makes a lot of sense it quite a fewcases.Now my stupid 
  question is: What do I have to enter in struts-config.xml in orderto do a 
  simple forward or redirect e. g. from logon.do to logon.jsp?Normally I 
  would write something like this:> > 
  >    
  type="login.LogonAction"> 
  > But I don't need 
  to do something special in the action LogonAction beforediplaying 
  logon.jsp. So how do I come around this? Write a dummy action whichalways 
  returns success and use it in each of these cases?Thanks a 
  lot,  --- Matthias


Re: Dreamweaver TagLib

2001-03-05 Thread Thierry Cools
Title: RE: Dreamweaver TagLib



For all people interrested in the alpha version, you can download it at 
this address
 
http://www.husted.com/about/struts/
 
Thierry
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Tony 
  Baity 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, March 05, 2001 5:31 
PM
  Subject: RE: Dreamweaver TagLib
  
  I would also be interested in an alpha of the Dreamweaver 
  extensions for Struts. 
  -Original Message- From: Ted 
  Husted [mailto:[EMAIL PROTECTED]] 
  Sent: Sunday, March 04, 2001 8:29 AM To: [EMAIL PROTECTED] 
  Subject: Re: Dreamweaver TagLib 
  I picked it up from another posting, and to be honest, I'm not 
  sure how to use it either ;0 
  I'm working on an extensions of my own now. Let me know if 
  you're interested in an alpha. This let's you 
  use  Struts tags within Dreamweaver as if they 
  were standard HTML tags. 
  Dreamweaver doesn't seem to read TLD's directly. It has its 
  own extension system -- that also works with 
  ColdFusion, ASP, and whatever else. 
  Martin Duffy wrote: > 
  > I guess that this may be off topic 
  but. > > I saw the 
  DreamWeaver Struts taglib(?) on Ted Husted's site. Are there any 
  > instructions for using it? It looks to me like it is 
  some sort of > pre-processor? I do not understand 
  how to use it. I thought that taglibs > were 
  TLD's? > > Thanks 
  > > Martin 



Re: Dreamweaver TagLib

2001-03-04 Thread Thierry Cools



Hi Martin,
 
Actually, it is more a tag translator than a tag lib.
This means that every time you'll type a struts tag in the editor it will 
be translated in visual mode.
To use it, simply copy the .htm file in the 
%ULTRADEV_HOME%\configuration\translator directory.
 
Please keep in mind, that it was a prototype developed for the 0.5 
version and it will need some modifications for the1.0 version.
 
Thierry 
Thierry Cools Senior Java Developer 
S1 Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe 
Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Martin 
  Duffy 
  To: [EMAIL PROTECTED] 
  
  Sent: Saturday, March 03, 2001 8:33 
  AM
  Subject: Dreamweaver TagLib
  I guess that this may be off topic but.I saw the 
  DreamWeaver Struts taglib(?) on Ted Husted's site. Are there 
  anyinstructions for using it? It looks to me like it is some sort 
  ofpre-processor? I do not understand how to use it. I thought that 
  taglibswere 
TLD's?ThanksMartin


Re: Has any one used struts and log4j successfully?

2001-02-28 Thread Thierry Cools



What's your problem actually ? I tried to use Log4 in my project using 
struts as well and I didn't get any, I just out my 'log4j.properties' in 
the classpath and put some 'Category' variables in my code like this
 
public class ListBillerAction extends ActionBase 
{      private static Category cat = 
Category.getInstance("Main.Biller"); 
  public ActionForward perform(ActionServlet 
servlet,   
ActionMapping 
mapping,   
ActionForm 
form,   
HttpServletRequest 
request,   
HttpServletResponse response) {
 
    ListBillerSearchCriteriaForm criteriaForm = 
(ListBillerSearchCriteriaForm) form;    BillerSearcher 
billerSearcher;    Screen dataScreen = null;
 
  if (buttonPressed(request, 
"search"))  {    if 
(cat.isInfoEnabled()) 
cat.info("!! Button Search has been pressed !!");
 
 
 
 
And it works great for me !
 
Hope it helps,
Thierry
 
Thierry Cools Senior Java Developer 
S1 Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe 
Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Sundar 
  @eSaravana 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, February 27, 2001 8:01 
  PM
  Subject: Has any one used struts and 
  log4j successfully?
  Has anyone used log4j with struts? I have used log4j before, 
  but I am new tostruts. So, I am just looking for a short cut. If you 
  have,could you pleasesend me some code fragments to start off.I 
  would really appreciate 
it.Cheers.!Sundar


Re: :80 in URL of Links generated in example app

2001-02-26 Thread Thierry Cools



Sorry, I did'nt know you it was possible to servletexec with Apache, we're 
learning every day ;-) 
But is the 80 port, not the default port for Apache ? 
So the address Localhost:80 should work, am I wrong ?
Thierry 
Cools Senior Java Developer S1 Brussels Kleine 
Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 200 
43 82 Email : [EMAIL PROTECTED] 


  - Original Message - 
  From: 
  Robert 
  Taylor 
  To: [EMAIL PROTECTED] 
  ; Thierry 
  Cools 
  Sent: Monday, February 26, 2001 12:08 
  PM
  Subject: RE: :80 in URL of Links 
  generated in example app
  
  Hmmm. 
  I'm using Struts with ServletExec3.1 and Apache on Win98 without any problems 
  so far. 
  
-Original Message-----From: Thierry Cools 
[mailto:[EMAIL PROTECTED]]Sent: Monday, February 26, 2001 5:54 
AMTo: [EMAIL PROTECTED]Subject: 
Re: :80 in URL of Links generated in example app
I don't really understand you question, are trying to use 
struts with apache ?
You have to know that struts will not work on the Apache 
server, you'll have to use Tomcat instead.
 
The default port for Tomcat is 8080, so that you will have 
to type  e.g. : http://localhost:8080/struts-example
if you want to make it work on the 80 port you will have 
to change the server.xml file and change the value of the "port" 
parameter.
 
Hope it helps.
Thierry
 
Thierry 
Cools Senior Java Developer S1 Brussels Kleine 
Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 
200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Rick Smith 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, February 26, 2001 5:00 
  AM
  Subject: :80 in URL of Links 
  generated in example app
  I've been going over the example application and 
  can't for the life ofme find where the :80 is appended to the URL when 
  going through Apache.When the starting URL is http://localhost/struts-example 
  the page comesup with :80 added after localhost. When I click on a 
  link with :80 in itI end up back at the logon page. If I remove the 
  :80 the link takes meto the correct page. I've spent some time looking 
  through the code andconfig files and haven't found anything to explain 
  either how to get ridof the :80 or how to make the app work with :80. 
  If someone could pointme in the direction of the doc or code that is 
  related to this orenlighten me in some way I would appreciate it. 
  Thanks. Rick


Re: :80 in URL of Links generated in example app

2001-02-26 Thread Thierry Cools



I don't really understand you question, are trying to use 
struts with apache ?
You have to know that struts will not work on the Apache 
server, you'll have to use Tomcat instead.
 
The default port for Tomcat is 8080, so that you will have to 
type  e.g. : http://localhost:8080/struts-example
if you want to make it work on the 80 port you will have to 
change the server.xml file and change the value of the "port" 
parameter.
 
Hope it helps.
Thierry
 
Thierry 
Cools Senior Java Developer S1 Brussels Kleine 
Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 200 
43 82 Email : [EMAIL PROTECTED] 


  - Original Message - 
  From: 
  Rick 
  Smith 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, February 26, 2001 5:00 
  AM
  Subject: :80 in URL of Links generated in 
  example app
  I've been going over 
  the example application and can't for the life ofme find where the :80 is 
  appended to the URL when going through Apache.When the starting URL is http://localhost/struts-example the 
  page comesup with :80 added after localhost. When I click on a link with 
  :80 in itI end up back at the logon page. If I remove the :80 the link 
  takes meto the correct page. I've spent some time looking through the code 
  andconfig files and haven't found anything to explain either how to get 
  ridof the :80 or how to make the app work with :80. If someone could 
  pointme in the direction of the doc or code that is related to this 
  orenlighten me in some way I would appreciate it. Thanks. 
Rick


Re: setting docBase in JBuilder to run/debug

2001-02-23 Thread Thierry Cools



Yes I have  the same problem as you, I posted a message in the 
newsgroup, but I didn't get a correct answer for the moment.
I'll let you know, as soon I'll receive a working answer.
 
Thierry
Thierry Cools Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, February 23, 2001 9:34 
  AM
  Subject: setting docBase in JBuilder to 
  run/debug
  Hello,it's only slightly related to Struts, 
  but I hope to find a JBuilder user who canhelp mewith the  
  following problem:I use JBuilder 4 Enterprise Trial with Tomcat 3.2 
  and Struts. If I want to runthe application,the Tomcat docBase is 
  always set to D:\ instead of D:\TOMCAT.The same problem occured with 
  the tomcat.home / install setting but could besolvedby setting the 
  correct path to the JVM via the -D.. parameter.The project properties 
  for docBase etc. are set correctly.Here's the related output from 
  JBuilder:Setting 
  home to D:\Starting tomcat. Check logs/tomcat.log for error 
  messagesContext log: path="" Adding context path=""  
  docBase="D:\"Context log: path="/vip-gallery" Adding context 
  path="/vip-gallery"docBase="D:\"Starting tomcat install="d:\tomcat\" 
  home="D:\"classPath="C:\Programme\JBuilder4\tomcat\lib\webserver.jar;C:\Programme\JBuilder4\tomcat\lib\jasper.jar;C:\Programme\JBuilder4\tomcat\lib\xml.jar;C:\Programme\JBuilder4\lib\servlet.jar;D:\tomcat\vipshop\classes;C:\Programme\Oracle\JDeveloper3.2\myclasses\struts.jar;C:\Programme\JBuilder4\lib\webserverglue.jar;D:\tomcat\webapps\vip-gallery\WEB-INF\classes;C:\Programme\Oracle\JDeveloper3.2\myclasses\struts.jar;C:\Programme\JBuilder4\lib\servlet.jar;D:\tomcat\vipshop\classes;C:\Programme\JBuilder4\lib\jbuilder.jar;C:\Programme\JBuilder4\lib\help.jar;C:\Programme\JBuilder4\lib\gnuregexp.jar;C:\Programme\JBuilder4\jdk1.3\demo\jfc\Java2D\Java2Demo.jar;C:\Programme\JBuilder4\jdk1.3\jre\lib\i18n.jar;C:\Programme\JBuilder4\jdk1.3\jre\lib\jaws.jar;C:\Programme\JBuilder4\jdk1.3\jre\lib\rt.jar;C:\Programme\JBuilder4\jdk1.3\jre\lib\sunrsasign.jar;C:\Programme\JBuilder4\jdk1.3\lib\dt.jar;C:\Programme\JBuilder4\jdk1.3\lib\tools.jar;C:\Programme\Oracle\JDeveloper3.2\java1.2;C:\Programme\Oracle\JDeveloper 
  3.2\java1.2\jre;C:\Programme\Oracle\JDeveloper3.2\java1.2\lib"JSP 
  Servlet 
  Started...Do 
  you have a suggestion how to set the docBase 
  correctly?RegardsMichael


Re: IBM Websphere and other app server

2001-02-18 Thread Thierry Cools



I think that the question is not what app server you will use, but well 
which servlet engine you want to use.
 
As far as I know, Web sphere is not the best app server that exist on the 
market (it doesn't support the EJB 1.1 specifications).
 
Personnaly, I've used Tomcat, Weblogic and Dynamo ATG 5.0, and if you want 
to use struts I think that the best choice is Tomcat + BAS( Borland Application 
Server), on the other hand if you want a solution App server + servlet engine, I 
think that Weblogic 6.0 is a good choice.
 
Forget ATG.
 
Thierry.
 
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Sudheendra 
  Hebbagilu 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, February 15, 2001 4:21 
  PM
  Subject: IBM Websphere and other app 
  server
  Hi All,I don't know whether this is off topic or not. But 
  here is the problem.I really want to use struts for the next project. And 
  now I am decidingwhich app server.My boss wants to use IBM WebSphere. 
  I don't know how good it is.The application we are going to develop is not 
  that complex, and not missioncritical. It will be hosted on Sun 
  Solaris, developed on Windows NT , postgresql asback end, and Apache web 
  server.For sure we want to use STRUTS, no matter what app 
  server.For a small to medium scale project, which is not mission 
  critical, what isthe best app server to use along with Struts, considering 
  ease-of-use,portability/scalability/performance/stability and of course 
  cost.We are not going to use EJB, just simple beans.Any 
  info/input will be greatly appreciated.Thanks in 
advanceSudhi


ATG web-tier

2001-02-09 Thread Thierry Cools



Hi, are there some people that already try to deploy the struts-example on 
ATG
 
I tried this afternoon, but I ran into problems like 
 
"No match was found for method "setLocale(java.lang.String)"
 
I assume that this is a bug in ATG, this kind of bug could be solved more 
or less easily in struts, but I don't want to spend to much time to finaly see 
that is almost impossible to make it run on this server.
 
Thanks for your help,
Thierry
 
 
Thierry Cools Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 



Redirect problem

2001-02-08 Thread Thierry Cools



Hi, I tried today the last nightly build of struts and test it on Weblogic 
6.0
Everything seems to work fine now, except one last problem with the 
"RedirectTag", actually the code put in the ActionServlet class
 
  path = request.getContextPath() + 
path;  response.sendRedirect(response.encodeRedirectURL(path));
 
works fine because of the "request.getContextPath()" call, but this is not 
implemented in the Redirect tag and make Weblogic fails when using this 
tag.
 
Could you please solve this last problem, so that Struts could work without 
any changes in Weblogic 6.0
 
Thanks,
Thierry
 
Thierry Cools Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 



Re: Using custom tags

2001-02-08 Thread Thierry Cools
Title: Using custom tags




Hi, 
before I evaluated UltraDev, I spent some time with HomeSite 4.5.
It's true that it seems to be easier than UltraDev, but the last one is 
more powerful.
I think that the power of Ultradev is to offer translators that will 
directly recognize the tags in WYSIWYG mode and I didn't see such an option in 
Homesite.
So you will be able to put some wizards (like they do for JSP tags) for the 
struts library, but you'll never see the tags in the design mode.
 
Regards,
Thierry
 
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Dinu Jose 
  
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, February 08, 2001 1:49 
  PM
  Subject: Using custom tags
  
  Hello, 
  Could you please help me in find the 
  following: 
   source code containing the textarea custom 
  tags 
  Thanks in advance Dinu 


Re: Using custom tags

2001-02-08 Thread Thierry Cools
Title: Using custom tags




it is in
 
jakarta-struts/src/share/org/apache/struts/taglib/form/TextareaTag.java
 
 
 
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Dinu Jose 
  
  To: '[EMAIL PROTECTED]' 
  
  Sent: Thursday, February 08, 2001 1:49 
  PM
  Subject: Using custom tags
  
  Hello, 
  Could you please help me in find the 
  following: 
   source code containing the textarea custom 
  tags 
  Thanks in advance Dinu 


Re: Tomcat problem

2001-02-05 Thread Thierry Cools




Hi Craig,
yes you're the Tomcat specialist I was looking for ;-)
 
To answer you're question, yes, Struts is working fine under the 
environement I use, and what you told me is very strange, because I put the 
struts library in the classpath just before starting Tomcat and put my jar file 
containing my classes in the root lib of Tomcat and it works ( the reason I do 
that is that otherwise I receive a class not found exception when Tomcat deploys 
my war file).
 
But ok, that not really the problem, I thing that the problem is more to 
make Tomcat work with Application Servers, Does someone know what are the exact 
system properties (Java -D) to make Tomcat works with Weblogic for example 

 
I already use the 
-Djava.naming.factory.initial="weblogic.jndi.WLInitialContextFactory" and 
-Djava.naming.provider.url="t3://localhost:7001" properties, but those seems not 
to be enough to make it works. and the only way, for now, is to put my jar 
file in the classpath.
 
Thanks for your help,
Thierry
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Craig R. McClanahan 
  To: [EMAIL PROTECTED] 
  
  Sent: Monday, February 05, 2001 8:56 
  PM
  Subject: Re: Tomcat problem
  Thierry Cools wrote: 
  

Hi,well this not really a struts problem, 
but as there are a lot of Tomcat specialists in this mailing list ( at least 
one ;-) ), I'm sure I'll get an answer.  
So my problem is : I currently 
busy to evaluate the use of different application servers and web servers, 
e.g I tried to communicate between Tomcat and Weblogic app server or Tomcat 
and ATG( another app server), I both case it works, but the problem is that 
in both case I have to manually add the jar file containing the client 
classes ( home, stubs, ...).in my classpath, however 
the jar file is under the web-inf/lib directory. So the question is, I tought that Tomcat automatically adds all jar 
files under the web-inf/lib directory, and if it is the case why do I have 
to add them in the classpath to avoid class not found 
exceptions. Thanks for your help,Thierry P.S. I'm using Tomcat 
3.2.1   Thierry Cools 
Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED]
  I wonder who that Tomcat specialist might be?  :-) 
  Tomcat 3.2.1 does indeed put JAR files under /WEB-INF/lib into the class 
  path visible to a web application's class loader.  In fact, for Struts to 
  work correctly under Tomcat, the classes *must not* be visible on the system 
  classpath, or installed as a system extension in $JAVA_HOME/jre/lib/ext. 
  Were you able to get the Struts example application to work "out of the 
  box"? 
  Craig   


Tomcat problem

2001-02-05 Thread Thierry Cools



Hi, 
well this not really a struts problem, but as there are a lot 
of Tomcat specialists in this mailing list ( at least one ;-) ), I'm sure I'll 
get an answer.
So my problem is :
 
I currently busy to evaluate the use of different application 
servers and web servers, e.g I tried to communicate between Tomcat and 
Weblogic app server or Tomcat and ATG( another app server), I both case it 
works, but the problem is that in both case I have to manually add the jar file 
containing the client classes ( home, stubs, ...).
in my classpath, however the jar file is 
under the web-inf/lib directory.
 
So the question is, I tought that Tomcat automatically adds 
all jar files under the web-inf/lib directory, and if it is the case why do I 
have to add them in the classpath to avoid class not found exceptions. 

 
Thanks for your help,
Thierry
 
P.S. I'm using Tomcat 3.2.1
 
Thierry Cools Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 



Re: Struts and Weblogic 6.0

2001-01-23 Thread Thierry Cools



Hi,
 
There is already a XML parser included in the weblogic.jar file, so 
you don't have to add any other library in it.
 
Personally, I didn't have to change anything in the classpath to make it 
work, the only thing I had to do is to copy the the struts. jar file under the 
WEB-INF/lib directory in my War file.
 
One last thing, is, don't put the struts library in your classpath, it gave 
me a lot of problems.
 
Thierry
 
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, January 24, 2001 4:41 
  AM
  Subject: RE: Struts and Weblogic 
6.0
  
  This 
  is the functionality in 5.1 as well... must be a WL "feature" :)  The 
  classpath does seem to get included for a *.war, but then there are other 
  issues (see my other post).
   
  Do 
  you have Struts 1.0 working on WL6? If so, then what is your configuration? 
  i.e. what XML parser do you use? can you do a 
   
  wlconfig > config.txt
   
  and 
  attach the file (so I can see the contents and order of your WL 
  classpath)?
   
  Thanks!!!
   
  -Bob
   
   
  
-Original Message-From: Duffey, Kevin 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 
10:01 PMTo: '[EMAIL PROTECTED]'Subject: 
RE: Struts and Weblogic 6.0
In 
regards to WL6, although this may not fix anyones particular problems, we 
noticed one thing with the beta version we have. Anyting in the /WEB-INF/lib 
dir does not automatically become part of the classpath. I assume this is 
(or was) a bug with WL6. It works fine in Orion App Server. As per the spec, 
the WEB-INF/lib and WEB-INF/classes dirs get included as part of the 
classpath automatically, as does the vendor specific /lib dir (if they have 
it) and I think the /jdk-dir/ext does too?
 
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, 
  January 23, 2001 12:34 PMTo: 
  [EMAIL PROTECTED]Subject: RE: Struts and Weblogic 
  6.0
  After seeing the talk about the API changes, I just downloaded 
  the latest nightly build (01-23 binary version) and tried to deploy the 
  example application to WebLogic 5.1 but it failed miserably with all kinds 
  of XML related errors. I also tried to run the example app on JRun, but 
  this failed as well (but with minor errors when JSP compiling- related to 
  passing a string into the setLocale(), setFilter() perhaps also due to XML 
  parsing?)
   
  Anyway, Struts 0.5 works for me on WL5.1 now on both of my 
  development PCs so I am going to have to use this for now since I don't 
  have time to figure out how to make the 1.0 build work. Hopefully this is 
  as simple as suggested in the previous emails (I looked back a few weeks 
  at the various threads). Or better yet, maybe my problem is just with my 
  XML parser (I am using jaxp1.0.1).
   
  If anyone has successfully deployed the Struts v1.0 example 
  application on WL5.1 please let me know... I may experiment some more 
  with this next week.
   
   
  Thanks,
  Bob
  
    -----Original Message-From: Thierry Cools 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 23, 2001 
10:58 AMTo: [EMAIL PROTECTED]Subject: 
Re: Struts and Weblogic 6.0
Hi,
I'm currently buzy to migrate an application working on Tomcat to 
Weblogic 6.0
 
The problems with the PropertyMessageRessource class is not yet 
solved, but Craig confirmed me some days ago that he was working on 
it.
Anyway, even if that problem still exist, it is possible 
to use Struts with webLogic 6.0, by doing the small modifications 
in MessageRessourceFactory ( it must be Serializable and  de 
setPrintWriter must initialize the printWriter to null ).
 
Otherwise I didn't had others problems ( I don't really know about 
the datasource problem, since I'm using an EJB implementation). except 
for small context path problems.
 
Thierry
 
Thierry Cools Senior Java Developer 
S1 Brussels Kleine Kloosterstraat, 23 1932 st. 
Stevens-Woluwe Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 


  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, January 23, 2001 
  4:31 PM
  Subject: Struts and Weblogic 
  6.0
  Memo from Nic Hobbs of 
  PricewaterhouseCoopers Start of message 
 

Re: Struts and Weblogic 6.0

2001-01-23 Thread Thierry Cools



Hi,
I'm currently buzy to migrate an application working on Tomcat to Weblogic 
6.0
 
The problems with the PropertyMessageRessource class is not yet solved, but 
Craig confirmed me some days ago that he was working on it.
Anyway, even if that problem still exist, it is possible to use Struts 
with webLogic 6.0, by doing the small modifications 
in MessageRessourceFactory ( it must be Serializable and  de 
setPrintWriter must initialize the printWriter to null ).
 
Otherwise I didn't had others problems ( I don't really know about the 
datasource problem, since I'm using an EJB implementation). except for small 
context path problems.
 
Thierry
 
Thierry Cools Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, January 23, 2001 4:31 
  PM
  Subject: Struts and Weblogic 6.0
  Memo from Nic Hobbs of 
  PricewaterhouseCoopers Start of message text 
  Hi All,I know there have been many threads 
  over the last few months concerning Weblogic5.1 and Struts and also WLS 
  6.0, particularly with respect to the exampleapplication.Could 
  someone let me know what the situation is with this now? I.e. Is there 
  anintention to make the example app work on WLS 6.0 and are there any 
  aspects ofstruts that will not work on WLS 6.0 as a result of the 
  serialization issues(and where are we with these too!). What is the 
  situation with the change of theproperties to use XML, properties files 
  and database for storinginternationalised strings?Any information 
  would be gratefully received as we are currently evaluatingusing struts 
  but Weblogic has already been chosen as the target 
  platform.TIA,Nic- End of message 
  text The principal place of business of 
  PricewaterhouseCoopers and its associatepartnerships is 1 Embankment 
  Place, London WC2N 6NN where lists of thepartners' names are available for 
  inspection. All partners in the associatepartnerships are authorised to 
  conduct business as agents of, and allcontracts for services to clients 
  are with, PricewaterhouseCoopers. The UKfirm of PricewaterhouseCoopers is 
  authorised by the Institute of CharteredAccountants in England and Wales 
  to carry on investment business.PricewaterhouseCoopers is a member of the 
  world-widePricewaterhouseCoopers 
  organisation.The 
  information transmitted is intended only for the person or entity to 
  whichit is addressed and may contain confidential and/or privileged 
  material.  Anyreview, retransmission, dissemination or other use of, 
  or taking of any actionin reliance upon, this information by persons or 
  entities other than theintended recipient is prohibited.   If 
  you received this in error, pleasecontact the sender and delete the 
  material from any computer.


PropertyRessource problem on WebLogic 6.0

2001-01-12 Thread Thierry Cools



Hi,
 
As I already told in other messages, I try to move my application from a 
Tomcat server to Weblogic 6.0.
 
I know already about all serialization problems in Weblogic and made the 
modications in the Message Ressources classes to make it work and it was 
working.
 
Yesterday, I read the mail from Craig, telling that modications were 
made in struts so this problem was now solved.
I deployed the example war file in Weblogic, and ... miracle it 
started without any problem (at least the first page and registration 
one, Craig told that there was a problem due to the datasource, but 
that's not an issue for me).
So, I changed the struts library in my application, and ... I received a 
nice :
 
<12-janv.-01 15:02:29 GMT+01:00>   
<[WebAppServletContext(1644923,ebpp_beans)] Could not deserialize context 
attribute    java.io.NotSerializableException: 
org.apache.struts.util.PropertyMessageResourcesFactory.
 
So my question is, what has changed in the example application to make 
it work (I didn't see the difference).
 
Could someone help me, so that I can use the last struts library without 
modifications in it. 
 
Thanks,
Thierry
 
Thierry Cools Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 



Re: Strange problem using Weblogic 6.0

2001-01-11 Thread Thierry Cools



If you are interested, I found a way to avoid the problem, it doesn't solve 
it, but at least it allows me to continue to migrate my application from Tomcat 
to Weblogic.
The solution is to have a 'weblogic.xml' file in the same directory as 
the web.xml one, in this this file you can use the following parameter
 
  
URLRewritingEnabled    
false 
 
in the  section
Here is the link for the documentation of this Xml file.
 
http://e-docs.bea.com/wls/docs60/programming/weblogic_xml.html
 
As I said, this solution does not really solve the problem but is a 
workaround.
 
I already post the problem in the Weblogic newsgroup, but no answer yet, as 
soon as I receive a real solution I will let you know.
 
Thierry
 
 
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Zhiyong Li 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, January 11, 2001 7:11 
  PM
  Subject: RE: Strange problem using 
  Weblogic 6.0
  I had the same problem. Is there a work around from either 
  Struts orWebLogic (any WebLogic people out there)?Thx,Zhiyong 
  -Original Message-From: Craig R. McClanahan 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, January 11, 2001 1:03 
  PMTo: [EMAIL PROTECTED]Subject: 
  Re: Strange problem using Weblogic 6.0Thierry Cools 
  wrote:>  Hi Craig, Thanks for your explanations, but the 
  problem is different,maybe I> was not very clear in my first mail. 
  The problem is that, as you cansee in> the adress link, Weblogic 
  add '/' characters in the jsessionid and theservlet> engine doesn't 
  seems to be able to recognize that the session id isnot a part> of 
  the context path, so that the context path contains the realcontext path 
  +> the session id, the result of this is that the application can 
  notaccess all> following links because of this. I hope it was more 
  clear this time.Thanks> for your help,Thierry> Thierry 
  CoolsThis looks like a bug in the way WebLogic is doing URL 
  rewriting.The session id is required (by the servlet spec) to be 
  passed as a*path*parameter, not a *query* parameter.  According 
  to the RFC for URL syntax(Ibelieve it's 2396, but don't have it 
  available at the moment to check),theoverall syntax goes like 
  this:    
  scheme://host:port/resource-path;path-parameters?query-parametersin 
  other words, if I start with a URL like this:    http://myhost/myapp/logon.do?name=valueI 
  should end up with a URL like this:    http://myhost/myapp/logon.do;jsessionid=12345?name=value(which 
  is what Tomcat and every other container I've tested does).  Itlooks 
  tome like Weblogic is sticking the session id before the "/logon.do" 
  part,whichbasically screws up the resource-path part of your 
  URL.Craig


Re: Strange problem using Weblogic 6.0

2001-01-10 Thread Thierry Cools



Hi Craig,
 
Thanks for your explanations, but the problem is different, maybe I was not 
very clear in my first mail.
 
The problem is that, as you can see in the adress link, Weblogic add '/' 
characters in the jsessionid and the servlet engine doesn't seems to be able to 
recognize that the session id is not a part of the context path, so that the 
context path contains the real context path + the session id, the result of this 
is that the application can not access all following links because of 
this.
 
I hope it was more clear this time. 
 
Thanks for your help,
Thierry
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Craig R. McClanahan 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, January 10, 2001 6:39 
  PM
  Subject: Re: Strange problem using 
  Weblogic 6.0
  Thierry Cools wrote: 
  

Hi, I've a strange problem using weblogic 6.0, when I start for the 
first time my browser (IE or Netscape), and after that start my 
application,weblogic add the session id information in the adress bar, after 
that all my links are false. (Images & links to other pages) e.g. 
http://127.0.0.1:7001/ebpp_beans/enterLogonInformation.do;jsessionid=OlwYdOyUvn4izb1jzhih14cy8Vdz8fXakMh5dJN9LI2p5OpRzgYp|38225443033804101/-1408233741/7001/7002 becomes 
this after I clicked the anonymous login link. http://127.0.0.1:7001/ebpp_beans/enterLogonInformation.do;jsessionid=OlwYdOyUvn4izb1jzhih14cy8Vdz8fXakMh5dJN9LI2p5OpRzgYp|38225443033804101/-1408233741/7001/anonLogon.do Note 
that this appears only the fisrt time. Can anybody help me out ? Thanks 
    in advance.  Thierry  Thierry Cools 
Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED]
  I'm not sure quite what you are asking about ... do you mean that the 
  "jsessionid" entry disappears after the first link?  If so, that would be 
  normal behavior if you have cookies enabled in your browser.  Tomcat does 
  the same thing. 
  On the first transaction in a session, your servlet container has no idea 
  whether or your client supports cookies or not, so it sends the session 
  identifier both ways (as part of the URL, and as a cookie).  If the 
  session id comes back in as a cookie, the container says "aha, this user 
  supports cookies, so I don't need to do URL rewriting any more". 
  NOTE:  In order to support sessions without cookies, you must do URL 
  rewriting around all hyperlinks you generate, using 
      response.encodeURL("path-to-a-page"); 
  Struts will do this for you in the  and  
  tags. 
  Craig McClanahan   


Strange problem using Weblogic 6.0

2001-01-10 Thread Thierry Cools



Hi,
 
I've a strange problem using weblogic 6.0, when I start for the first time 
my browser (IE or Netscape), and after that start my application,
weblogic add the session id information in the adress bar, after that all 
my links are false. (Images & links to other pages)
 
e.g. http://127.0.0.1:7001/ebpp_beans/enterLogonInformation.do;jsessionid=OlwYdOyUvn4izb1jzhih14cy8Vdz8fXakMh5dJN9LI2p5OpRzgYp|38225443033804101/-1408233741/7001/7002
 
becomes this after I clicked the anonymous login link.
 
http://127.0.0.1:7001/ebpp_beans/enterLogonInformation.do;jsessionid=OlwYdOyUvn4izb1jzhih14cy8Vdz8fXakMh5dJN9LI2p5OpRzgYp|38225443033804101/-1408233741/7001/anonLogon.do
 
Note that this appears only the fisrt time.
 
Can anybody help me out ? Thanks in advance.
Thierry
Thierry Cools Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 



NullPointerException in new build

2001-01-08 Thread Thierry Cools



I've just downloaded the last nightly build of struts and I've have the 
following error when I try to save a subscription :
 
java.lang.NullPointerException	at 
org.apache.struts.util.BeanUtils.convert(BeanUtils.java, Compiled Code)	at 
org.apache.struts.util.PropertyUtils.setSimpleProperty(PropertyUtils.java, 
Compiled Code)	at 
org.apache.struts.util.PropertyUtils.setNestedProperty(PropertyUtils.java, 
Compiled Code)	at 
org.apache.struts.util.PropertyUtils.setProperty(PropertyUtils.java, Compiled 
Code)	at org.apache.struts.util.BeanUtils.populate(BeanUtils.java, Compiled 
Code)	at org.apache.struts.util.BeanUtils.populate(BeanUtils.java, Compiled 
Code)	at 
org.apache.struts.action.ActionServlet.processPopulate(ActionServlet.java:1803)	at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1414)	at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:480)	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)	at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)	at 
org.apache.tomcat.core.Handler.service(Handler.java:286)	at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)	at 
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)	at 
org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1590)	at 
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1433)	at 
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:480)	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)	at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)	at 
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)	at 
org.apache.tomcat.core.Handler.service(Handler.java:286)	at 
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)	at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)	at 
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)	at 
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)	at 
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled 
Code)	at 
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled 
Code)	at java.lang.Thread.run(Thread.java:479)
 
 
Note, that the subscription is well 
'saved'
I don't have this problem in with the 03/01/2001 
build.
 
Thierry Cools Senior Java Developer S1 
Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium 
Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 



Re: PROPOSAL: TAG.xml-file

2000-12-15 Thread Thierry Cools



The Tag.xml file is really a good idea, but, in my opinion, I think it 
should be better to try to integrate those translators & tags in 
the Ultradev product rather than Struts.
I don't know what you think about it, but I really think that Ultradev is 
the place where to put them.
 
Thierry
 
P.S. : Thanks for your support about the translator.
Thierry Cools Senior Java Developer 
S1 Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe 
Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Robert 
  Leland 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, December 15, 2000 3:44 
  PM
  Subject: PROPOSAL: TAG.xml-file 
  I also would propose starting the developmentof a 
  'TAG.xml-file ' fort Dreamweaver., so users can directlydesign using 
  'custom tags' as opposed totranslate existing 
pages.


Re: TAG-File for Dreamweaver

2000-11-17 Thread Thierry Cools



Hi,
 
here is the file and a small example based on the logon form 
of the struts before, this script is not perfect at all and needs a lot of 
improvements but I think it's a good start
script to evaluate the power of such scripts in 
Ultradev.
please, send any comments,suggestions, modifications to the 
script to improve it.
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Yuan Jun 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, November 17, 2000 11:19 
  AM
  Subject: RE: TAG-File for 
  Dreamweaver
  Hi, Cools,would you please post your file to the list? 
  i am very interesting in it.thanks in 
  advance.===Hi,the advantage 
  could be to reduce the develepment time, if the designer coulddirectly put 
  struts tags ( or any other visual custom tag ) into pages andsee the 
  result in WYSIWYG mode, another advantage could be that, if you haveto 
  change the layout of your page(s) you will not have to redo the 
  allreplacement procedure again.I hope it answered your 
  question.ThierryThierry CoolsSenior Java 
  DeveloperS1 BrusselsKleine Kloosterstraat, 231932 st. 
  Stevens-WoluweBelgiumTel : +32 2 200 43 82Email : [EMAIL PROTECTED]- 
  Original Message -From: piyush raj jainTo: [EMAIL PROTECTED]Sent: 
  Thursday, November 16, 2000 11:03 AMSubject: Re: TAG-File for 
  Dreamweaverhi CoolsSorry ..but just curiousnever 
  worked on dreamweaver ..how this is beneficiary in overall development 
  with struts.what we do is graphic desiner makes a prototypethen jsp 
  person edit it and transform the htmls to jsps.cheerspiyushThierry Cools wrote:> I 
  did something similar for Dreamweaver ultradev 1.0, I wrote a> 
  translator that cover almost all visual struts tags, it is not perfect> 
  yet but it works pretty well.If you're interrested, in the file ( it's> 
  a a javascript file ), just send me a mail. Thierry> Thierry 
  Cools>> Senior Java Developer> S1 Brussels> Kleine 
  Kloosterstraat, 23> 1932 st. Stevens-Woluwe> Belgium> Tel 
  : +32 2 200 43 82> Email : [EMAIL PROTECTED]>>  
  - Original Message ->  From: 
  Nikolaus Rumm>  To: [EMAIL PROTECTED]>  
  Sent: Friday, November 17, 2000 1:49 AM>  
  Subject: TAG-File for Dreamweaver>   
  Hello, has anyone yet made a TAG.xml-file that 
  describes>  the struts 0.5 standard tags 
  for use with Dreamweaver 3 ? If>  so, 
  could you please post it to me ?Hint: Dreamweaver 
  uses>  TAG.xml files to display 
  ustom-tags. Thx Nikolaus>
Title: Kent Tag Translator





 logon.jsp


Re: TAG-File for Dreamweaver

2000-11-17 Thread Thierry Cools



Hi, 
the advantage could be to reduce the develepment time, if the designer 
could directly put struts tags ( or any other visual custom tag ) into pages and 
see the result in WYSIWYG mode, another advantage could be that, if you 
have to change the layout of your page(s) you will not have to redo 
the all replacement procedure again.
I hope it answered your question. 
 
Thierry
 
Thierry 
Cools Senior Java Developer S1 Brussels Kleine 
Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : +32 2 200 
43 82 Email : [EMAIL PROTECTED] 


  - Original Message - 
  From: 
  piyush raj 
  jain 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, November 16, 2000 11:03 
  AM
  Subject: Re: TAG-File for 
  Dreamweaver
  hi CoolsSorry 
  ..but just curiousnever worked on dreamweaver ..how this is 
  beneficiary in overall development with struts.what we do is graphic 
  desiner makes a prototypethen jsp person edit it and transform the htmls 
  to jsps.cheerspiyushThierry Cools wrote:> I did 
  something similar for Dreamweaver ultradev 1.0, I wrote a> translator 
  that cover almost all visual struts tags, it is not perfect> yet but it 
  works pretty well.If you're interrested, in the file ( it's> a a 
  javascript file ), just send me a mail. Thierry> Thierry 
  Cools>> Senior Java Developer> S1 Brussels> Kleine 
  Kloosterstraat, 23> 1932 st. Stevens-Woluwe> Belgium> Tel 
  : +32 2 200 43 82> Email : [EMAIL PROTECTED]>>  
  - Original Message ->  From: 
  Nikolaus Rumm>  To: [EMAIL PROTECTED]>  
  Sent: Friday, November 17, 2000 1:49 AM>  
  Subject: TAG-File for Dreamweaver>   
  Hello, has anyone yet made a TAG.xml-file that 
  describes>  the struts 0.5 standard tags 
  for use with Dreamweaver 3 ? If>  so, 
  could you please post it to me ?Hint: Dreamweaver 
  uses>  TAG.xml files to display 
  ustom-tags. Thx Nikolaus>


Re: TAG-File for Dreamweaver

2000-11-16 Thread Thierry Cools



I did something similar for Dreamweaver ultradev 1.0, I wrote 
a translator that cover almost all visual struts tags, it is not perfect yet but 
it works pretty well.
If you're interrested, in the file ( it's a a javascript file 
), just send me a mail.
 
Thierry
Thierry Cools Senior Java Developer 
S1 Brussels Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe 
Belgium Tel : +32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  Nikolaus Rumm 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, November 17, 2000 1:49 
  AM
  Subject: TAG-File for Dreamweaver
  
  Hello,
   
  has anyone yet made a TAG.xml-file that describes 
  the struts 0.5 standard tags for use with Dreamweaver 3 ? If so, could you 
  please post it to me ?
  Hint: Dreamweaver uses TAG.xml files to display 
  ustom-tags.
   
  Thx
   
  Nikolaus


Design problems

2000-10-31 Thread Thierry Cools



Hi, 
 
I've a problem related with Struts, even if it is not a development 
problem.
We would like to develop JSP pages with the Struts tags, but the 
problem is that when we use those tags in a web designer tool, this 
guy is not able anymore to show the components in the forms as with normal 
form components. So the question is, does someone know a tool where it is 
possible to integrate user tags ( and so, struts tags ) so that we can 
still have a "draft" preview of the pages. By "draft", I mean that in place 
of the components we could have an image or even a text that will show that 
there is a component at this place.  
 
Thanks,
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 



Re: Support for ComboBox

2000-10-23 Thread Thierry Cools



It depends of how persistent are the data you want to put in you Combo., 
e.g. if you have to fill in a combo with countries, this will not change during 
your application so you could put it in the session or even in the application 
scope, but for data that have to change a lot it's maybe a good idea to put them 
in the request scope and so to fill the data in the ActionForm
Thierry Cools Senior Java Developer S1 Brussels 
Kleine Kloosterstraat, 23 1932 st. Stevens-Woluwe Belgium Tel : 
+32 2 200 43 82 Email : [EMAIL PROTECTED] 

  - Original Message - 
  From: 
  GThomas 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, October 24, 2000 5:39 
  AM
  Subject: Re: Support for ComboBox
  Again on the ComboBox, How should the arrays be passed to 
  the jsp page.I can think of a couple of ways to do it.1. Could be 
  passed through the session object.2. Could be instantiated as part of 
  the ActionForm.Could someone please throw some light on 
  this.Thanks.Pierre Métras wrote:> > Hi 
  Gigen> > > Is there an archive available for this list that 
  can be searched ?> >> http://archive.covalent.net> 
  > > I have a requirement wherein I need to populate a ComboBox from 
  a> > Database.Wanted to know if struts has any kind of support 
  available in> > order to achieve the same.> > Right 
  from the box, no.> You'll have to write a bean that reads your data 
  from the database and put> it in two arrays (one for values, other for 
  labels) or collections. Then,> you can use the  
  and  tags to create the> combobox and populate 
  the option from the arrays.> The main idea of struts is to separate 
  presentation (your combobox) from the> data, so the need for an 
  intermediate bean (the controller) to manage them.> > Pierre 
  Métras