RE: Error-page in web.xml

2001-07-10 Thread Norman Timmler

that's a interesting point. any experieence about orion-server?

-Original Message-
From: Ryan Cornia [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 4:49 PM
To: [EMAIL PROTECTED]
Subject: Error-page in web.xml


I'm hoping someone can help me understand this better. In web.xml, I have
the following entries -

java.lang.Exception
/errorpage.jsp

   
javax.servlet.ServletException
/errorpagesrvlt.jsp


>From my understanding, anytime an Exception, or ServletException occurs in
my application, it will call either errorpage.jsp or errorpagesrvlt.jsp. Is
that correct? Does it matter if the exception occurs in a JSP or a servlet?

This seems to work in Tomcat, but with SilverStream, I don't get taken to
the error page, but get the SilverStream generate error message.

In my errorpage.jsp I have -

<%@ page language="Java" isErrorPage="true"%>


is that right?

Thanks for any insite, this is driving me crazy.
Ryan





RE: How to use ? - please help

2001-07-06 Thread Norman Timmler

this should work fine:

window.open("","lookup","minimize=no,maximize=no,status=no,heig
ht=300,width=400,left=500,top=380,scrollbars=yes");

if the user has cookies activated no sessionid is added to the url. it is
stored in a cookie.

norman

-Original Message-
From: Adriano Labate [mailto:[EMAIL PROTECTED]]On Behalf Of Alan Inser
Sent: Friday, July 06, 2001 12:10 PM
To: '[EMAIL PROTECTED]'
Subject: RE: How to use ? - please help


Thank you, it works and

var myPath = "";

gives: "/myapp/listcodes.do"

Unfortunately it does not solve my problem. I would like to find a way to
open a separate window with

window.open("/listCodes.do","lookup","minimize=no,maximize=no,status=no,heig
ht=300,width=400,left=500,top=380,scrollbars=yes")

that calls the server with the url ("/listCodes.do") and get a list of codes
in the separate window named "lookup".

It looks simple, but in the action class associated to the path
"/listCodes", when I get the session I don't find any User object in it,
looks like I got a different session.

I tried to call instead

"/listCodes.do;jsessionid=" + <%=request.getRequestedSessionId()%>

passing the current session ID to the server with the path, but no way.

If someone has already created a separate window typically for displaying
codes lists, please could you help?
Thanks.


-Original Message-
From: Norman Timmler [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 11:14 AM
To: [EMAIL PROTECTED]
Subject: AW: How to use ? - please help


could look like this:

window.open("", "WindowName",
"resizable=no,scrollbars=no,width=300,height=300";

you just can assign the rewrite value to a javascript variable like this:

myPath = "";

hope this helps,
norman

-Ursprüngliche Nachricht-
Von: Adriano Labate [mailto:[EMAIL PROTECTED]]Im Auftrag von Alan Inser
Gesendet: Freitag, 6. Juli 2001 09:42
An: '[EMAIL PROTECTED]'
Betreff: How to use ? - please help


Please could someone tell me how to use  tag?

I think it is maybe the solution to create an encoded url to use with a
"window.open()" javascript command.

I would like to create a hidden input field or a javascript variable with
its value as the result of the tag .

Thanks.


-Original Message-
From: Alan Inser [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 4:17 PM
To: Struts Users (E-mail)
Subject: Lookup window: session lost !


Hi,

In my app I open a popup window when the user want to see a list of codes
associated with its current attribute field, i.e "zipcode - city" will
display a list of zipcodes and cities.

Debugging the action class that will display the popup window's content, I
noted that I have lost my session and got a new one.

I open my lookup window with the javascript command:

window.open("/listCodes.do?attribute=city", "lookup", "minimize=no, ...
etc")

Do I have to pass something more in order to stay with the same session?

Thanks for any suggestions.
Adriano Labate




AW: How to use ? - please help

2001-07-06 Thread Norman Timmler

could look like this:

window.open("", "WindowName",
"resizable=no,scrollbars=no,width=300,height=300";

you just can assign the rewrite value to a javascript variable like this:

myPath = "";

hope this helps,
norman

-Ursprüngliche Nachricht-
Von: Adriano Labate [mailto:[EMAIL PROTECTED]]Im Auftrag von Alan Inser
Gesendet: Freitag, 6. Juli 2001 09:42
An: '[EMAIL PROTECTED]'
Betreff: How to use ? - please help


Please could someone tell me how to use  tag?

I think it is maybe the solution to create an encoded url to use with a
"window.open()" javascript command.

I would like to create a hidden input field or a javascript variable with
its value as the result of the tag .

Thanks.


-Original Message-
From: Alan Inser [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 4:17 PM
To: Struts Users (E-mail)
Subject: Lookup window: session lost !


Hi,

In my app I open a popup window when the user want to see a list of codes
associated with its current attribute field, i.e "zipcode - city" will
display a list of zipcodes and cities.

Debugging the action class that will display the popup window's content, I
noted that I have lost my session and got a new one.

I open my lookup window with the javascript command:

window.open("/listCodes.do?attribute=city", "lookup", "minimize=no, ...
etc")

Do I have to pass something more in order to stay with the same session?

Thanks for any suggestions.
Adriano Labate




AW: Orion and Struts

2001-07-06 Thread Norman Timmler

hi nicky,

we are deploying struts under orion 1.5.2. i never run the example, but
everything works fine with our own application.

i think that won't help you a lot, but it is a hint that there no major
faults merging this software.

norman

-Ursprungliche Nachricht-
Von: Nicky Eshkenazi [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 5. Juli 2001 21:29
An: [EMAIL PROTECTED]
Betreff: Orion and Struts


Has anybody able to run Struts on the top of Orion 1.5.2.
I am new to Struts and was trying to take a look at it, but wasn't able to
run the struts-examples.war...

I get the following error when http://localhost/struts-example is called.


500 Internal Server Error
javax.servlet.jsp.JspException: Missing message for key index.title
 at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:242)

 at /index.jsp._jspService(/index.jsp.java:52) (JSP page line 8)
 at com.orionserver[Orion/1.5.2 (build
10460)].http.OrionHttpJspPage.service(Unknown Source)
 at com.evermind[Orion/1.5.2 (build 10460)]._ah._rad(Unknown Source)
 at com.evermind[Orion/1.5.2 (build
10460)].server.http.JSPServlet.service(Unknown Source)
 at com.evermind[Orion/1.5.2 (build 10460)]._cxb._abe(Unknown Source)
 at com.evermind[Orion/1.5.2 (build 10460)]._cxb._uec(Unknown Source)
 at com.evermind[Orion/1.5.2 (build 10460)]._io._twc(Unknown Source)
 at com.evermind[Orion/1.5.2 (build 10460)]._io._gc(Unknown Source)
 at com.evermind[Orion/1.5.2 (build 10460)]._if.run(Unknown Source)
---

This error is documented on the struts web-site for Orion until 1.0.3 and si
related to the ServletContext.getResource() calls , and I am running 1.5.2.
Is this still an issue here as well. I don't know if this is an Orion issue
or a Struts one. I was able to deploy and run the struts-documentation.war
succesfully, so I woul d guess that app server is doing the job.


Any ideas??

thanks,
Nicky




AW: proposal: splitting struts mailing list

2001-07-03 Thread Norman Timmler


what features should this service have?
perhaps i can spend some time to develop one or modify an existing.

please propose some.

norman

-Ursprungliche Nachricht-
Von: Ted Husted [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 3. Juli 2001 18:22
An: [EMAIL PROTECTED]
Betreff: Re: proposal: splitting struts mailing list


Struts is free, user-supported software and we depend on the advanced
users to help the beginners. A few of us have write access to the Struts
repository, but most of the end-user support, patches, and new
contributions must come from the user community if Struts is to continue
to grow. 

Right now, Jakarta can offer us a mailing list for the end-users and a
mailing list to discuss new Struts development. If other support
services are going to be offered, like newsgroups or bulletin boards or
list digests, we would need someone to step up and volunteer the
resources and energy to make those services work. 

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/


Norman Timmler wrote:
> 
> hi,
> 
> the daily mails in this mailinglist incrased a lot past the last month.
> what do you think about to split the mailinglist into two. eg. into a
> beginner and advanced one.
> 
> perhaps this could fit everybodys needs.
> 
> norman
> 
> . . . . . . . . . . . . . . . . . . . . . . . . .
> 
> Norman Timmler
> application developer
> 
> neteye GmbH
> Alsterchaussee 3
> 20149 Hamburg
> Tel +49-(0)40 85 40 26 -40
> Fax +49-(0)40 85 40 26 -10
> [EMAIL PROTECTED]
> http://neteye.de




AW: simple question

2001-07-03 Thread Norman Timmler

you can compare a property to an int value, but you have to quote it:




-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]Im Auftrag
von gdelgado
Gesendet: Dienstag, 3. Juli 2001 21:27
An: [EMAIL PROTECTED]
Betreff:  simple question


> can I use the tag 

in other words can i use an int ?

how about a boolean?

thanks in advance.

Gus





proposal: splitting struts mailing list

2001-07-02 Thread Norman Timmler

hi,

the daily mails in this mailinglist incrased a lot past the last month.
what do you think about to split the mailinglist into two. eg. into a
beginner and advanced one.

perhaps this could fit everybodys needs.

norman

. . . . . . . . . . . . . . . . . . . . . . . . .

Norman Timmler
application developer

neteye GmbH
Alsterchaussee 3
20149 Hamburg
Tel +49-(0)40 85 40 26 -40
Fax +49-(0)40 85 40 26 -10
[EMAIL PROTECTED]
http://neteye.de





Re: unable to programmatically perform a submit

2001-06-21 Thread Norman Timmler

hi michelle,

could you please post the specific part of your source-code from your
browser.
this would help to resolve your problem.

thanks.
norman

- Original Message -
From: "Michelle Popovits" <[EMAIL PROTECTED]>
To: "Norman Timmler" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, June 21, 2001 4:23 PM
Subject: Re: unable to programmatically perform a submit


> Yes, I am referencing 0 and 1 because I am running both forms on the same
> page (simultaneously).
> The 0 is for the struts form and the 1 is for the non-struts form.
> I can programmatically, submit no problem on the non-struts form but not
on
> the struts form.
>
> The struts form tag in the generated html looks like this:
>
>  action="/LAPS1/VirtualClassroomWAR/editPersonalInfo.do" id="form1">
>
> the non-struts form looks like this:
>
> 
>
> Because I can submit the second form using the index 1, this means that
the
> page recognizes that there is something in position 0, but that it seems
> that it has somehow been rendered in such a way that it can't be
> programmatically submitted using javascript.
>
> I have also tried using the form name instead of the index and the results
> are the same.
> What has struts done to my form to make it not work?  I don't know....
>
> Has anyone else out there been able to make this work?
>
> Thanks,
> Michelle
>
>
> - Original Message -
> From: "Norman Timmler" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>; "Michelle Popovits"
> <[EMAIL PROTECTED]>
> Sent: Thursday, June 21, 2001 4:55 AM
> Subject: Re: unable to programmatically perform a submit
>
>
> > hi michelle,
> >
> > i see a main difference between your struts version and your non-struts
> > version. on the struts version you have forms[0] referencing your form
and
> > on the second one you have forms[1].
> > the secure way to talk to forms by JavaScript is to reference the form
by
> > name.
> >
> > document.formName.submit();
> >
> > or
> >
> > document.formName.elementName.value = "something";
> >
> > hope this will help you.
> > norman
> >
> > - Original Message -
> > From: "Michelle Popovits" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, June 20, 2001 11:19 PM
> > Subject: unable to programmatically perform a submit
> >
> >
> > Hi,
> >
> > I am trying to get an image map working that does a submit.
> > The image map itself works.
> > However, when I click on the image area it complains when trying to
> execute
> > the submit.
> >
> > Error:  object doesn't support this property or method.
> >
> > I have tried just performing a submit without the event assignment, like
> so:
> > 
> >> OnClick="document.forms[0].submit();">
> > 
> >
> >
> > This works in my non-struts form version.
> >
> >
> > Here is the html output:
> >
> > 
> >>
>
OnClick="document.forms[0].event.value='SELECT_COURSE';document.forms[0].sub
> > mit();">
> > 
> >
> >  > usemap="#MyMap">
> >
> > struts version
> >
> > 
> > 
> >  > type="com.bmo.ifl.laps.forms.PersonalInfoForm">
> > 
> > 
> >>
>
OnClick="document.forms[0].event.value='SELECT_COURSE';document.forms[0].sub
> > mit();">
> > 
> >
> >  > border="0" />
> > ...
> > 
> >
> > 
> >
> >
> >
> > non-struts version - this works
> >
> > 
> > 
> >> OnClick="document.forms[1].event.value='SELECT_COURSE';f1.submit();">
> > 
> >
> >
> >  > BORDER="0" >
> > 
> >
> > 
> >
> > I don't believe the image map is the problem.
> > I think that there is just some reason why it will not except a submit()
> > programmatically.
> >
> > Thanks,
> > Michelle
> >
>




Re: unable to programmatically perform a submit

2001-06-21 Thread Norman Timmler

hi michelle,

i see a main difference between your struts version and your non-struts
version. on the struts version you have forms[0] referencing your form and
on the second one you have forms[1].
the secure way to talk to forms by JavaScript is to reference the form by
name.

document.formName.submit();

or

document.formName.elementName.value = "something";

hope this will help you.
norman

- Original Message -
From: "Michelle Popovits" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 11:19 PM
Subject: unable to programmatically perform a submit


Hi,

I am trying to get an image map working that does a submit.
The image map itself works.
However, when I click on the image area it complains when trying to execute
the submit.

Error:  object doesn't support this property or method.

I have tried just performing a submit without the event assignment, like so:

  



This works in my non-struts form version.


Here is the html output:


  




struts version






  



...






non-struts version - this works



  








I don't believe the image map is the problem.
I think that there is just some reason why it will not except a submit()
programmatically.

Thanks,
Michelle





Re: help with checkbox

2001-06-20 Thread Norman Timmler

alex,

the first problem:
try this code in your submit button:


the second problem:
are you using struts framework? if so, how is this prozess handled. exactly,
is the checked attribute of the checkbox putted by struts?

norman

- Original Message -
From: "Alex Colic" <[EMAIL PROTECTED]>
To: "Struts" <[EMAIL PROTECTED]>
Sent: Wednesday, June 20, 2001 5:30 PM
Subject: help with checkbox


> Hi, I am hoping someone can point me in the right direction.
>
> First, I have a checkbox that regardless of if the user checks it or not I
> need it to be set to true. Can someone suggest a way via JavaScript or
> otherwise to set this checkbox to true.
>
> Second, for the same checkbox, if I do not set its value and then go a few
> pages forward I have a status page that displays  the value of the
checkbox.
> If I have not checked the box the value is false, if I then go back a few
> pages and then check the box and go to forward to the status page again it
> is shown as checked but, if I go back and uncheck the box and then go
> forward it is still shown as checked.
>
> Any ideas what is up.
>
> Thanks
>
> Alex
>




Re: dynamically disable text field

2001-06-19 Thread Norman Timmler

hi michelle,

try this:








hope this helps.
norman


- Original Message -
From: "Michelle Popovits" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 4:17 PM
Subject: dynamically disable text field


Hi,

I would like to dynamically disable a text field based on a boolean
property.
I have tried the following but it does not work.

"/>


Any idea how to make this work?

Thanks,
Michelle