RE: weird Orion 1.4.4 JSP bug

2000-12-15 Thread Joe Walnes

As well as what Scott pointed out,

This is invalid:

webwork:param name="name" value=webwork:property name="$user"/ /

... as custom tags cannot contain other custom tags within attributes.

Try something like:

webwork:param name="name" value="%= something %" /

(Scriptlets are allowed inside attributes - also, remember quotes).



And...

You may have problems with this:

 !-- webwork:include page="/request.jsp" --

...as JSP will still interpret the tag... the result will just be in HTML 
comments. In order to stop JSP ignoring this tag, try:

 %-- webwork:include page="/request.jsp" --%



-Joe Walnes

At 17:03 15/12/2000 +1100, you wrote:
AFAIK you cannot close a tag with parameters:

/webwork:isnotnull name="$name"

Try without the parameter
-Original Message-
From: Hristo Stoyanov [mailto:[EMAIL PROTECTED]]
Sent: Friday, 15 December 2000 11:51
To: Orion-Interest
Subject: weird Orion 1.4.4 JSP bug


Hi-,
It looks like The Orion 1.4.4 code generator
for jsps has an error. First, here is the JSP itsel
and below is the error message
=JSP page=
%@ taglib uri="webwork" prefix="webwork" %

!-- webwork:include page="/request.jsp" --

webwork:notexists name="$name"
 webwork:isnotnull name="$name"
 webwork:include page="/template/standard/text.jsp"
 
 webwork:param name="label" value="User
name:"/
 webwork:param name="name"
value=webwork:property name="$user"/ /
 /webwork:include

 webwork:include
page="/template/standard/password.jsp" 
 webwork:param name="label"
value="Password:"/
 webwork:param name="name"  value=""/
 webwork:param name="size"  value="10"/
 webwork:param name="maxlength" value="15"/
 /webwork:include
 /webwork:isnotnull name="$name"
/webwork:notexists





Error message==
Error parsing JSP page /webapp/login.jsp

Syntax error in source/login_content.jsp.java:44:
'while' expected.
 }
 ^
/login_content.jsp.java:45: 'catch' without 'try'.
 catch(Exception __jspE2)
 ^
/login_content.jsp.java:57: 'try' without 'catch' or
'finally'.
}
  ^
/login_content.jsp.java:57: '}' expected.
}
  ^
4 errors



__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/





RE: weird Orion 1.4.4 JSP bug

2000-12-14 Thread Scott Farquhar

AFAIK you cannot close a tag with parameters:

/webwork:isnotnull name="$name"

Try without the parameter
-Original Message-
From: Hristo Stoyanov [mailto:[EMAIL PROTECTED]]
Sent: Friday, 15 December 2000 11:51
To: Orion-Interest
Subject: weird Orion 1.4.4 JSP bug


Hi-,
It looks like The Orion 1.4.4 code generator
for jsps has an error. First, here is the JSP itsel
and below is the error message
=JSP page=
%@ taglib uri="webwork" prefix="webwork" %

!-- webwork:include page="/request.jsp" --

webwork:notexists name="$name"
webwork:isnotnull name="$name"
webwork:include page="/template/standard/text.jsp"

 webwork:param name="label"value="User
name:"/
 webwork:param name="name" 
value=webwork:property name="$user"/ /
/webwork:include

webwork:include
page="/template/standard/password.jsp" 
 webwork:param name="label"
value="Password:"/
 webwork:param name="name" value=""/
 webwork:param name="size" value="10"/
 webwork:param name="maxlength"value="15"/
/webwork:include
/webwork:isnotnull name="$name"
/webwork:notexists





Error message==
Error parsing JSP page /webapp/login.jsp

Syntax error in source/login_content.jsp.java:44:
'while' expected.
}
 ^
/login_content.jsp.java:45: 'catch' without 'try'.
catch(Exception __jspE2)
^
/login_content.jsp.java:57: 'try' without 'catch' or
'finally'.
}
 ^
/login_content.jsp.java:57: '}' expected.
}
 ^
4 errors



__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/