Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

passing request parameters as dynamic

 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
security forum advocate
Posts: 236
1
Android Flex Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 236
1
Android Flex Google App Engine
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
As you reposted this question, this one is now closed.
 
An elephant? An actual elephant. Into the apartment. How is the floor still here. Hold this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic