Meaningless Drivel is fun!*
The moose likes JSP and the fly likes passing request parameters as dynamic Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

passing request parameters as dynamic

yekkala krishna
Ranch Hand

Joined: Mar 04, 2007
Posts: 105
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

Joined: Oct 26, 2010
Posts: 199
    
    1

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

Joined: Mar 04, 2007
Posts: 105
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

Joined: Jan 10, 2002
Posts: 61103
    
  66

You should be using the EL, not obsolete Java scriptlets. In which case the syntax would be: ${param.classname}


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sai Hegde
security forum advocate
Ranch Hand

Joined: Oct 26, 2010
Posts: 199
    
    1

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

Joined: Mar 04, 2007
Posts: 105
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

Joined: Jan 10, 2002
Posts: 61103
    
  66

As you reposted this question, this one is now closed.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing request parameters as dynamic