Forum Moderators: phranque

Message Too Old, No Replies

Using script tags to add dynamic content to a page

I have 1000s of static pages that need login status

         

psycray

8:01 pm on Apr 29, 2006 (gmt 0)

10+ Year Member



I what to add a user's login status to 1000s of static html pages.

My idea is to have each html page call a small servlet (cgi app.) that checks the user's session to see if they are logged in. I will call the servlet with a <script src="MyServlet"> tag.

My hope is to use Apache to do most of the work when servering up the static pages and Tomcat very little. This will help me run the site on a smaller box and will let me scale better if I start to get some traffic.

Does this sound like a good plan for handling a lot of taffic without a lot of hardware?

Is there a flaw in my thinking or am I setting myself up for something unforeseen problem?

My client is convinced he will have tens of thousands of hits a day and I would like to be ready should that actually materialize.

tedster

7:36 pm on May 1, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'm not very familiar with servlets, but if you introduce any content with a <script> tag, search engines do not index it, so take that factor into your considerations. Since these pages all need log-in to be seen, I assume search engine indexing is not important or even desired.

From the little bit I do know, your approach sounds OK to me. The less actual server activity the better.