How to get all request parameters
Hi This is probably a stupid question, but how do I get all the parameters from the request with their value? I need some output like: parameter_1 = output_1 parameter_2 = output_2 etc. I know I can access a certain value with param.key - but a collection of all keys? Best regards, Eric -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: How to get all request parameters
On Thu, 23 Jan 2003 [EMAIL PROTECTED] wrote: This is probably a stupid question, but how do I get all the parameters from the request with their value? I need some output like: parameter_1 = output_1 parameter_2 = output_2 I know I can access a certain value with param.key - but a collection of all keys ... is just ${param}, a Map of all request parameters (with single values). -- Shawn Bayern JSTL in Action http://www.manning.com/bayern -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: FW: BUg in forEach tag of JSTL
Vishal, Many people in this community are willing to help you, but there are a few things you should know that will make it easier to get the support you are looking for. 1. Send questions to the proper alias Please post your questions/comments related to jakarta-taglibs to [EMAIL PROTECTED] 2. Provide pertinent information - Clear description of the problem - What specific error do you get - What version of the taglib and what platform - Sample code that shows the problem Also, in the case of 'standard', it is always a good idea to first try to run the standard-examples webapp that ships with the release. -- Pierre Pier Fumagalli wrote: Not acked. Pier -- Forwarded Message From: [EMAIL PROTECTED] Date: Thu, 23 Jan 2003 12:36:05 +0530 To: [EMAIL PROTECTED] [EMAIL PROTECTED] Subject: BUg in forEach tag of JSTL Hi, i am using Standard1.0 library in my project. i have included both (jstl.jar standard.jar) jar files in my applications WEB-INF directory.. but when i use 'forEach' tag in myh jsp.. it gives compile time error.. Also when i use 'Out' tag..it is not showing any output on the screen .. (its not showing any compiletime/ runtime error) Please let me know if there is any solution to these bugs.ASAP regards, vishal -- End of Forwarded Message -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
JSTL expression evaluation fails under load
[Does this list require subscription in order to post? Most other Jakarta lists don't.] I'm getting erratic behavior from JSTL tags under Tomcat 4.1.12. When under load, sometimes expressions fail to evaluate. This exception is produced: javax.servlet.ServletException: javax.servlet.jsp.JspException: An error occurred while evaluating custom action attribute test with value ${threadTool.player.moderator}: An error occurred while getting property player from an instance of class com.maxis.tso.community.tool.ThreadTool (java.lang.NullPointerException) at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex tImpl.java:494) at org.apache.jsp.mb_posts_jsp._jspService(mb_posts_jsp.java:776) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) It results in the page half-loading. Simply refreshing the page works. The expression is valid! There is a threadTool.getPlayer().isModerator(). I don't believe this behavior occurred under Tomcat 4.0.6. Unfortunately I can't seem to get any of the deeper exceptions - that's as deep as the stack trace reports. Does anyone have any idea what might be wrong, or how to go about diagnosing the error? Thanks in advance, Jeff Schnitzer [EMAIL PROTECTED] The Sims Online -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: How to get all request parameters
Since this is the taglibs list... table tr td colspan=2h2Request Parameters/h2/td /tr tr thParameter Name/th thValues/th /tr c:forEach var=entry items=${param} tr tdc:out value=${entry.key} //td td ul c:forEach var=value items=${entry.value} lic:out value=${value} //li /c:forEach /ul /td /tr /c:forEach /table -Drew -Original Message- From: Zhao Cheng [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 23, 2003 10:05 AM To: Tag Libraries Users List Subject: Re: How to get all request parameters call a function to get all parameter names then for each parameter name, make function call to retrieve its value(s) At 04:43 PM 1/23/2003 +0100, you wrote: Hi This is probably a stupid question, but how do I get all the parameters from the request with their value? I need some output like: parameter_1 = output_1 parameter_2 = output_2 etc. I know I can access a certain value with param.key - but a collection of all keys? Best regards, Eric -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]