Re: Jasper DOM API

2002-12-03 Thread Tom Fennelly
Hi,

I'm also interested in this sort of functionality - I asked a similar 
question last week.

Is it on the roadmap or has any earlier voting process already rejected it 
as a viable feature?

If it hasn't already been rubished as a suggested feature, would I (or Udo) 
be out of order making an initial proposal/suggestion on how it might be 
implemented (to get the ball rolling so to speak!!)?  If this isn't 
appropriate - no prob!!

Regards,

T.

From: Udo Walker <[EMAIL PROTECTED]>
Reply-To: "Tomcat Developers List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Jasper DOM API
Date: Mon, 02 Dec 2002 15:15:23 +0100

Hi,

will there be a XML-DOM API in Jasper to access parsed JSP pages?

I found an internal structure of Node.Nodes but how can I access it with
the API?
I want to give the API a JSP filename and get back a DOM structure of
that JSP page or an error (line number and error message) if the JSP
couldn't be parsed correctly.

Is there something planed?

With regards,

Udo

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail


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



Re: Modify Jasper compiler input??? (tomcat 4.1.12)

2002-11-29 Thread Tom Fennelly
I'm very sorry - Tomcat version 4.1.12



From: "Tom Fennelly" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Developers List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Modify Jasper compiler input???
Date: Fri, 29 Nov 2002 08:31:23 +

Hi,

Being a newbie to this mailing list, I hope I don't upset anyone!!

What I'm trying to figure out is:
Are there any hooks in Jasper that would allow manipulation of its internal 
representation of the JSP page prior to compilation?

I.e modify compiler input.

Simple example:
=== Source JSP 

	
		Hello World!!
	

= JSP Compiler Input =
...some useragent eval code...
<% if(useragent == HTML) { %>
	
		
			Hello World!!
		
	
<% } else if(useragent == WML) { %>
	
		
			
Hello World!!
			
		
	
<% } %>
=

Having had a look at the code I don't see any mechanism to do this but 
maybe I'm looking in the wrong place.  I would have expected to see the 
likes of this in around org.apache.jasper.compiler.Compiler.generateJava(). 
 It parses the JSP to a org.apache.jasper.compiler.Node.Nodes model - this 
seems like the structure I'd need access to (???).

Perhaps this is Heresy in terms of JSP/Servlet spec conformance, I'm 
probably not informed enough.  Hope someone can help.

Regards,

Tom Fennelly.






_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


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



Modify Jasper compiler input???

2002-11-29 Thread Tom Fennelly
Hi,

Being a newbie to this mailing list, I hope I don't upset anyone!!

What I'm trying to figure out is:
Are there any hooks in Jasper that would allow manipulation of its internal 
representation of the JSP page prior to compilation?

I.e modify compiler input.

Simple example:
=== Source JSP 

	
		Hello World!!
	

= JSP Compiler Input =
...some useragent eval code...
<% if(useragent == HTML) { %>
	
		
			Hello World!!
		
	
<% } else if(useragent == WML) { %>
	
		
			
Hello World!!
			
		
	
<% } %>
=

Having had a look at the code I don't see any mechanism to do this but maybe 
I'm looking in the wrong place.  I would have expected to see the likes of 
this in around org.apache.jasper.compiler.Compiler.generateJava().  It 
parses the JSP to a org.apache.jasper.compiler.Node.Nodes model - this seems 
like the structure I'd need access to (???).

Perhaps this is Heresy in terms of JSP/Servlet spec conformance, I'm 
probably not informed enough.  Hope someone can help.

Regards,

Tom Fennelly.






_
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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