Help with Tags JSP
Under WEB-INF/tags directory there is a file called select.tag.
I viewed the filed and found there are some lines of java codes wrapped within the
My question is: why use "!" after the
Object bean = jspContext.findAttribute(beanName);
Method m = bean.getClass().getMethod(methodName, null);
result = m.invoke(bean, null).toString();
<%? Why not directly use <%.... %>>
Please check this link
s referred to as a declaration block.
it can also be written in xml syntax...for example
the following is a comment
String user_name = new String();
the following is an expression
Say for example, you have a string and it contains a user's name "John Smith" and you want to print it...you can write
<%= name %> instead or typing <% out.println( name ); %>