I’m making a project on Google App Engine and in one of my jsp files, I want to search an entry in my datastore. I normally do this search by clicking on a button on this jsp page, then I make the connection to datastore in a servlet and then I send the query results to jsp back . Well, I want to query datastore without clicking this button. When I load the page, I want to see the query results on my page. When I was using EL tag lib, I could do that by just typing <% %>, now I’m using jstl tag lib. So is there any way to do ? After using jstl tags, I’m not able to use EL tags.
Share
Create a servlet which performs the job in
doGet()method, forwards to a JSP which presents the result and just call the servlet’s URL instead of the JSP’s URL. It’s exactly the same as you would do in adoPost()when a form was submitted, but then without the need to pass/collect request parameters.See also:
Unrelated to the concrete problem, those
<% %>things ("scriptlets") have definitely nothing to do with EL. EL is those${}things.See also: