java - Reference a passed in parameter in JQuery JSP -


I am trying to refer to a parameter in JQuery with Java code even so far away from me :

Java:

  Hashmapped  

JSP:

  int i = $ ("# minumumAge") Val (); Var dateOffset = (24 * 60 * 60 * 1000) * i;  

However, I can not get the minimum egg value in the i variable. Please tell me what is the correct syntax?

Try:

  & lt;% int minAge = ( Integer) request.getAttribute ("minumumAge"); & Gt%; Var I = & lt;% = minAge%>; Var dateOffset = (24 * 60 * 60 * 1000) * i;  

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -