File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes String[] error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply locked New topic

String[] error

kishani liyanage
Ranch Hand

Joined: Dec 08, 2003
Posts: 40
Please give me a solution to this error!
Generated servlet error:
C:\jakarta-tomcat-3.2.4\work\Standalone\localhost\examples\testkish\showDetails$ Incompatible type for declaration. Can't convert java.lang.String to java.lang.String[].
String[] selectedItems = request.getParameter("ItemID");
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63869

This is a continuation of the question that you asked earlier. Please re-read the answers to that question (your answer is already there), and continue any discussion there.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: String[] error
It's not a secret anymore!