Struts tag external resource?

2004-02-17 Thread Bjørn T Johansen
I need to configure my IDE with an external link, as well as local, to the tld tag files, so I was just wondering which URI I can use for the external resource files? Regards, BTJ - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Positional problem?

2003-12-05 Thread Bjørn T Johansen
; if ( fName == ofield.name ) { oForm.elements[i+1].focus(); break; } else { continue; } } } Cheers, Bjørn T Johansen wrote: Does anyone have any examples? My

Re: Positional problem?

2003-12-04 Thread Bjørn T Johansen
(); break; } else { continue; } } } Cheers, Bjørn T Johansen wrote: Does anyone have any examples? My javascript knowledge isn't where it should be yet BTJ On Wed, 2003-12-03 at 14:49, John Smart wrote: We

Positional problem?

2003-12-03 Thread Bjørn T Johansen
I have a number of jsp pages that are longer than one page and if I am at the bottom of a page and submit the page, I get back at the top of the page. Is there a way to get back, after the submit, to the place you were before the submit? Regards, BTJ

Re: Positional problem?

2003-12-03 Thread Bjørn T Johansen
is redisplayed. Bjørn T Johansen wrote: I have a number of jsp pages that are longer than one page and if I am at the bottom of a page and submit the page, I get back at the top of the page. Is there a way to get back, after the submit, to the place you were before the submit? Regards

Re: This code works in Tomcat Sun One 7 Appsvr but not WLS 8.1

2003-11-07 Thread Bjørn T Johansen
This is a bug in WLS 8.1 which is going to be fixed in SP 2.. Meanwhile a patch is available from BEA... BTJ On Fri, 2003-11-07 at 13:37, Joshua White wrote: Has anyone else had a problem with the bean:define tag? This is a little frustrating! Any help would be appreciated.

RE: Workaround for IE streamer bug?

2003-10-31 Thread Bjørn T Johansen
Ok, now I have tried adding a dummy=.pdf on the url, but it still tells me that it is downloading a file of Filetype = Adobe Acrobat Control for ActiveX and ask me to open og save file. If I then choose open, IE always ask me which application to use, even if it just told me that the filetype was

Workaround for IE streamer bug?

2003-10-30 Thread Bjørn T Johansen
I have a little problem. I am using the following code to stream pdf files to the browser..: fis = new FileInputStream(filename); byte[] buf = new byte[fis.available()]; response.setHeader(Content-Disposition, inline;filename= + filename + ;);

Shouldn't this work? html:select property=errorLogTypeID onchange=document.forms[\logFortrykkForm\].submit()

2003-10-30 Thread Bjørn T Johansen
I have a form named logFortrykkForm and I trying to submit the form using the onchange event on a combo box but when I choose something from the box, nothing happens. Isn't this enough..: html:select property=errorLogTypeID onchange=document.forms[logFortrykkForm].submit() --- --- /html:select

Re: Shouldn't this work? html:select property=errorLogTypeIDonchange=document.forms[\logFortrykkForm\].submit()

2003-10-30 Thread Bjørn T Johansen
Yes, I did some trying back and forth and discovered that... :) But now I have another problem. I found another article that said that I could not use this event and at the same time have a submit button.. And that looks to be correct? But when I need the submit button to submit the rest of the

Re: Workaround for IE streamer bug?

2003-10-30 Thread Bjørn T Johansen
Bueno Webdeveloper Pleno Fone: +55 (34) 3231-1073 Solution WEB - Soluções Para Internet! www.solutionweb.com.br Bjørn T Johansen [EMAIL PROTECTED] 10/30/2003 07:05 AM Please respond to Struts Users Mailing List To: Struts Users Mailing List [EMAIL PROTECTED

RE: Workaround for IE streamer bug?

2003-10-30 Thread Bjørn T Johansen
somewhere to end the pdf requesting URL with a .pdf (something like http://servername/xyz/something.do?your-param=xyzdummy=.pdf) -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 12:59 PM To: Struts Users Mailing List Subject

RE: Workaround for IE streamer bug?

2003-10-30 Thread Bjørn T Johansen
Ok, I have a small hole at the moment in my Javascript knowledge; I have just started using js :( BTJ On Thu, 2003-10-30 at 19:41, Prabhat Kumar (IT) wrote: JavaScript? -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Thursday, October 30, 2003 1:36 PM

RE: Workaround for IE streamer bug?

2003-10-30 Thread Bjørn T Johansen
As far as I can tell, this is the exact same code that I am using and this doesn't work on my IE (or at work) Are there any settings I can change on IE? BTJ On Thu, 2003-10-30 at 21:16, Nicholson, Robb wrote: PDF files work OK for us. It displays right in Explorer (with the plug-in from

[OT] Javascript window.open and Macintosh?

2003-10-01 Thread Bjørn T Johansen
I am using the following code in my html page: window.open(/index.jsp,,status,scrollbars,resizable=yes) to remove the menubar and basically strip the window with all browser features. This works like a charm on windows/linux platform and all the browsers but trying to open this page on mac using

Access to the form bean from jsp?

2003-09-27 Thread Bjørn T Johansen
I need to access the form from my jsp page, but I can't seem to find a way to do this.. I need a name of the form to access but what is the name of the form instance that Struts generate? If I have a form named LoginForm does Struts make an instance called loginForm or does it choose a random name

Re: Access to the form bean from jsp?

2003-09-27 Thread Bjørn T Johansen
Yes, you are absolutely correct; it uses the name I defined in struts-config, I should have known... Thanks :) BTJ On Sat, 2003-09-27 at 19:11, Anders Hermansen wrote: * Bjørn T Johansen ([EMAIL PROTECTED]) wrote: I need to access the form from my jsp page, but I can't seem to find

Streaming pdf and also updating the webpage?

2003-09-20 Thread Bjørn T Johansen
I have a page where the user can download (using the response object) pdf-files and that's working ok.. But I also would like to update the webpage after the user has submited the page to my action, can this be done? (since I can't use return(mapping.findForward(OK)) Regards, BTJ

RE: Slow file upload?

2003-09-16 Thread Bjørn T Johansen
Nope On Tue, 2003-09-16 at 08:48, Mohd Amin Mohd Din wrote: Hmm, just checking, are you doing any processing other than just simply storing the file. -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 16, 2003 12:51 PM To: Struts

RE: Slow file upload?

2003-09-16 Thread Bjørn T Johansen
I just tried this from another PC running Windows and IE, and then the upload took less than a second.. Is this a bug in Mozilla or? BTJ On Tue, 2003-09-16 at 15:58, Kurt Post wrote: If you are running on a Windows box, I would try using IE instead of Mozilla for your timing tests. On

html:file and accept?

2003-09-16 Thread Bjørn T Johansen
I am trying to set accept = application/pdf, so that only pdf files can be uploaded, but this doesn't work.. Do I need to do something else as well? BTJ

java.lang.ArrayIndexOutOfBoundsException

2003-09-15 Thread Bjørn T Johansen
I have a jsp page that is using nested:iterate to show a list of records, based on some input on the same page. The first time I press the submit button to get the records, everything works like it should. But if I try to get the records one more time, I get this exception:

Re: java.lang.ArrayIndexOutOfBoundsException

2003-09-15 Thread Bjørn T Johansen
Well, the problem seems to be that I initialized the array too much... Thx... BTJ On Mon, 2003-09-15 at 19:30, Adam Hardy wrote: The exception is occurring when the struts preprocessor tries to populate your form bean with request parameters. I expect you have indexed properties and you

Slow file upload?

2003-09-15 Thread Bjørn T Johansen
I am testing file upload using Struts and FormFile but the upload seems really slow. Uploading a 1,5MB file takes about 15-20 sec. and I am running both the server and the browser on the same PC. Is this normal or should the upload be faster? BTJ

Re: Slow file upload?

2003-09-15 Thread Bjørn T Johansen
On Tue, 2003-09-16 at 04:12, Robert Leland wrote: Bjørn T Johansen wrote: I am testing file upload using Struts and FormFile but the upload seems really slow. Uploading a 1,5MB file takes about 15-20 sec. and I am running both the server and the browser on the same PC. Is this normal

RE: Slow file upload?

2003-09-15 Thread Bjørn T Johansen
On Tue, 2003-09-16 at 05:53, Daniel Washusen wrote: Yes, I am using Struts 1.1 and the default upload in commons-fileupload. The hw I am running on is a 2.4GHz PC with 1GB memory, with at least half of it free.. The browser I tried the upload with was Mozilla.. BTJ I'm running a P4

Re: Slow file upload?

2003-09-15 Thread Bjørn T Johansen
On Tue, 2003-09-16 at 06:19, Robert Leland wrote: Bjørn T Johansen wrote: On Tue, 2003-09-16 at 04:12, Robert Leland wrote: Bjørn T Johansen wrote: I am testing file upload using Struts and FormFile but the upload seems really slow. Uploading a 1,5MB file takes about 15

Problem with logic:equal?

2003-09-14 Thread Bjørn T Johansen
I have this code in my jsp page: logic:iterate id=elem name=annList tr logic:equal name=elem property=status value=0 td class=text bean:write name=elem property=annCreated //td td class=text bean:write name=elem

Re: Problem with logic:equal is actually a problem with bean:define and Weblogic 8.1

2003-09-14 Thread Bjørn T Johansen
? BTJ On Sun, 2003-09-14 at 13:46, Bjørn T Johansen wrote: I have this code in my jsp page: logic:iterate id=elem name=annList tr logic:equal name=elem property=status value=0 td class=text bean:write name=elem property=annCreated

Exxception in Tomcat.....

2003-09-11 Thread Bjørn T Johansen
should worry about or? My app is working even if I get these... Regards, BTJ -- --- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED] Havleik Consulting Phone : +47 67 54 15

Strange filter problem?

2003-09-10 Thread Bjørn T Johansen
Hi.. I am trying to write my very first filter running on Tomcat, but when I include the definition of the filter in my web.xml file, I get this exeption..: org.apache.jasper.JasperException: File /tags/struts-logic not found at

Re: Strange filter problem?

2003-09-10 Thread Bjørn T Johansen
Yes, you are absolutely correct; I had the filter def after the servlet def... Thx... BTJ On Thu, 2003-09-11 at 00:25, Mike Deegan wrote: Ensure u have the web.xml file in the right order of elements as per the appropriate DTD And the right DTD for that matter ... Plus I'm not sure if

Re: Icon?

2003-09-09 Thread Bjørn T Johansen
] -- --- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED] Havleik Consulting Phone : +47 67 54 15 17 Conradisvei 4 Fax : +47 67 54 13 91 N-1338 Sandvika Cellular : +47 926 93 298 http://www.havleik.no

RE: Icon?

2003-09-09 Thread Bjørn T Johansen
Oki, thanks.. It seems I've been doing it right with one of my methods, but I need to use an icon in size 16x16 and not 32x32... BTJ On Tue, 2003-09-09 at 08:20, Ramesh Kannery wrote: search for favicon in google, u may get the answer!! -Original Message- From: Bjørn T Johansen

Icon?

2003-09-07 Thread Bjørn T Johansen
I am trying to customize the icon my webapp is using by adding icon small-icon path-to-icon /small-icon /icon in my web.xml file, but nothing happens. What am I overlooking? Regards, BTJ

log4j:WARN No appenders could be found for logger...

2003-08-22 Thread Bjørn T Johansen
-- --- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED] Havleik Consulting Phone : +47 67 54 15 17 Conradisvei 4 Fax : +47 67 54 13 91 N-1338 Sandvika Cellular : +47 926 93 298 http://www.havleik.no

Next/Previous buttons?

2003-08-14 Thread Bjørn T Johansen
-- --- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED] Havleik Consulting Phone : +47 67 54 15 17 Conradisvei 4 Fax : +47 67 54 13 91 N-1338 Sandvika Cellular : +47 926 93 298 http://www.havleik.no

Back and forward?

2003-08-01 Thread Bjørn T Johansen
-- --- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED] Havleik Consulting Phone : +47 67 54 15 17 Conradisvei 4 Fax : +47 67 54 13 91 N-1338 Sandvika Cellular : +47 926 93 298 http://www.havleik.no

Re: RE : Automatic redirect in jsp page?

2003-06-27 Thread Bjørn T Johansen
Yes, I do... But I am using ActionForward someplaces and I need this feature in those pages... Thanks.. BTJ On Fri, 2003-06-27 at 14:51, Franck Lefebure wrote: Hi, Something like logic:present name=sessionObjectjsp:forward page=index.jsp/logic:present But you should do also this check in

Automatic redirect in jsp page?

2003-06-26 Thread Bjørn T Johansen
Is it possible to check for an session object in a jsp page and if it doesn't exist, automatic redirect to an action? Regards, BTJ -- --- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED

Selecting a row in nested:iterate?

2003-06-25 Thread Bjørn T Johansen
I display x rows from a table using nested:iterate and I need to select one row from these rows (and know which was selected in my Action), how can I do this? Regards, BTJ -- --- Bjørn T Johansen (BSc

RE: DispatchAction?

2003-06-18 Thread Bjørn T Johansen
--- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED] Havleik Consulting Phone : +47 67 54 15 17 Conradisvei 4 Fax : +47 67 54 13 91 N-1338 Sandvika Cellular : +47 926

RE: Checkbox problem?

2003-06-11 Thread Bjørn T Johansen
setting the value of your checkboxes to true. The second action is the one that actually processes the user input gathered by the form. Hope this clarifies things. Steve -Original Message- From: Bjørn T Johansen [mailto:[EMAIL PROTECTED] Sent: June 10, 2003 12:38 PM

RE: Checkbox problem?

2003-06-10 Thread Bjørn T Johansen
the checkbox if it was set to true in the reset method. Are there any solutions/work around for this? Regards, BTJ --- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED

Re: Checkbox problem?

2003-06-10 Thread Bjørn T Johansen
before the posted data is used to populate the form. Write your own reset() method where you set the boolean fields to false. -- --- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED

Re: Checkbox problem?

2003-06-10 Thread Bjørn T Johansen
method and the page has been rendered (and the submit button has been pressed), or is it something I am missing? BTJ On Tue, 2003-06-10 at 20:28, James Mitchell wrote: On Tuesday 10 June 2003 14:11, Bjørn T Johansen wrote: You are missing my point! If I just could set the checkbox value

StrutsMenu 1.2?

2003-06-09 Thread Bjørn T Johansen
I need some kind of dynamic generation of menu items in my webapp, is StrutsMenu the way to go or should I look into something else, or implement it myself? Regards, BTJ -- --- Bjørn T Johansen (BSc

Using reporting tools in Struts?

2003-05-30 Thread Bjørn T Johansen
? Regards, BTJ -- --- Bjørn T Johansen --- The stickers on the side of the box said Supported Platforms: Windows 98

Logging and log4j?

2003-02-10 Thread Bjørn T Johansen
I was just wondering what is the pro's and con's for using Commons-Logging contra log4j? Regards, BTJ --- The stickers on the side of the box said Supported Platforms: Windows 98, Windows NT 4.0,

Why doesn't the application resource file get loaded?

2003-01-30 Thread Bjørn T Johansen
-- --- Bjørn T Johansen (BSc,MNIF) Executive Manager [EMAIL PROTECTED] Havleik Consulting Phone : +47 67 54 15 17 Conradisvei 4 Fax : +47 67 54 13 91 N-1338 Sandvika Cellular : +47 913 32 280 http://www.havleik.no

Re: Why doesn't the application resource file get loaded?

2003-01-30 Thread Bjørn T Johansen
. That seemed to fix my problem. You might also try jarring up all your class files and putting it in /WEB-INF/lib instead. David From: Bjørn T Johansen [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Why doesn't the application