Hello. First of all i must say that im a noob with .jsp programming, so pleas be indulgent :) ..

String somepage = "client.jsp";
<%@ include file="menu.jsp" %> // this works
//How to add variable somepage in file=
<%@ include file="somepage" %>

Thanks !

Recommended Answers

All 2 Replies

Try this, although I am not sure since I have never used the "include" tag like this: <%@ include file="<%= somepage%>" %>

No this doesnt works but thank you anyway. Im just a little confused-isnt there anybody who had such problem :) ..

Anybody else ... Thanks!

Nice greatings.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.