Bookmark Topic Watch Topic
  • New Topic

passing request parameters as dynamic

 
yekkala krishna
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

In my jsp if i pass request parameters as static its working fine but when i pass as dynamic its giving error.



following is the error what i am getting:
org.apache.jasper.JasperException: /WEB-INF/views/mapToolInformation.jsp(211,260) equal symbol expected

Could anybody please suggest what can i do to solve this?

regards,
rama krishna.Y
 
Sai Hegde
security forum advocate
Ranch Hand
Posts: 212
1
Android Flex Google App Engine
  • Mark post as helpful
  • send pies
  • Report post to moderator
Since you say its working fine for a static variable, try printing the value of the dropdown to the screen to see if the value is being picked up...
Can you supply an id attribute to the select tag and test if it works?
 
yekkala krishna
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Hedge,
Good to see your reply.
In my application its giving error due to syntax error in the url for this it seems: com.smarts.launch.class=<%=request.getParameter("classname")%>.
so i can't able to get that value.
could you suggest please what changes i need to do for the above syntax.

regards,
rama
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65119
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
You should be using the EL, not obsolete Java scriptlets. In which case the syntax would be: ${param.classname}
 
Sai Hegde
security forum advocate
Ranch Hand
Posts: 212
1
Android Flex Google App Engine
  • Mark post as helpful
  • send pies
  • Report post to moderator
Exactly, scriptlets are obsolete... But just in case you needed just a page running... you can have an onChange attribute calling a JS function to set the attribute value... Not the best way of doing it though...
 
yekkala krishna
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi Bear,
As you said i passed parameters in the below syntax:


But its giving same error like org.apache.jasper.JasperException: /WEB-INF/views/mapToolInformation.jsp(211,258) equal symbol expected

could you please check is there any syntax error in the above at onclick attribute value.
thanks in advance.
regards,
rama
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65119
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
As you reposted this question, this one is now closed.
 
    Bookmark Topic Watch Topic
  • New Topic