First, "Books" here is link text, not "title"; title is an attribute of anchor
("a" tag), and you're not using one in this example.

I agree and undestand this.

<li><a href='../informuser.jsp'>Books</a></li>

This is just an example link.I am still building the functionality of all 
links.As I continue to work, I will be making these changes accordingly.

now coming back to topic,let says that I have

<a href='/books' name="books">Books</a>

How can I pull out name value here ?

request.getparameter is giving me null here.

and other thing I can think of is

<a href='/books'>Books</a>

and point the call towards books.jsp and then use request.getGetRequestURL() 
and then strip the last part of the URL and then use that as navigational 
info.That would be be my first level, and then do similar thing for second 
level with check that at each level  that session id remains the same in all 
cases.

With regard to refactoring, yes I have many things in my plate which requires 
refactoring,but at least let my site's skeleton be up and running  and I 
understand clearly the nuts and bolts of building the site.

Does my thoughts makes sense or do we have some better solutions with pure 
jsp/servlets/jstl with TC without using any plugin?

I know this is quite of the easier task as developer I should be doing but 
again it will take sometime for my to come to speed with self coaching.

- Kiran





On 12/29/2011 3:44 AM, Hassan Schroeder wrote:
On Wed, Dec 28, 2011 at 2:02 PM, Kiran Badi<ki...@poonam.org>  wrote:

<li><a href='../informuser.jsp'>Books</a></li>

All these static title which are part of my home page and are base level
links.I need to pull *Books* between a tags  and stick it in navigational
bar.
First, "Books" here is link text, not "title"; title is an attribute of anchor
("a" tag), and you're not using one in this example.

Other than DB calls is there any other way out.How about using link name
attribute and sticking it navigational bar ?
Using it how? How are you going to map an attribute of a piece of
static markup to a URL?

Of course, you could also use meaningful links, e.g.

   <a href='/books'>Books</a>

instead of

   <a href='../informuser.jsp'>Books</a>

But you still have refactoring to do  :-)



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to