One question with regard to using jsp files as included content:

I'm having a requirement to include files with more or less simple html
content. That's in order to make editing easier for other users. I
currently keep some html content in files which I reference by a
database id. 
So a view jsp file is taking some content directly from the database and
some by including a file with a name like content[ID].jsp

But because I need session tracking and the possibility exists that i
have url links in the included content from time to time, I decided to
have jsp include files instead of html. 
Otherwise I couldn't use encodeURL to add session ids for browsers that
disallow cookies.

Actually it's unlikely that I'd use "more" Java than this encodeURL() so
I would consider using some other technique to do it, if I knew another
way. The only thing I could think of would be a filter servlet to encode
the urls of those include html files on-the-fly.

Any better or easier ideas?

Michael



> -----Original Message-----
> From: Justin L. Spies [mailto:[EMAIL PROTECTED]] 
> Sent: Montag, 30. Dezember 2002 21:34
> To: 'Tomcat Users List'; [EMAIL PROTECTED]
> Subject: RE: reducing tomcat & jasper memory footprint
> 
> 
> Julian,
> I would have to agree that creating a JSP per article is a bit 
> much.  How did you or your group arrive at using this 
> solution?  The other possible solutions I have seen would 
> include a single JSP that pulls the data from a database or 
> creating XML files that are 
> formatted with XSLT instead of JSP's  Is the system doing some 
> processing that requires one page or article or requires JSP 


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

Reply via email to