Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 29th, 2005, 06:48 AM
devi1005 devi1005 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2005
Posts: 26 devi1005 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 31 m 25 sec
Reputation Power: 0
passing variables from wml to jsp not working

hi guys

im tryin to send over just one variable from teh wml to jsp

im sure i have done it right, buti keep getting an internal error 500

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: 18 in the jsp file: /srch2.jsp
Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\_\org\apache\jsp\srch2_jsp.java:65: incompatible types
found : java.lang.String[]
required: java.lang.String
Subject=request.getParameterValues("srch");
^
1 error


thats the error, i cant seem to find whats worng with this line!
**********************************************
my full jsp code is:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">


<%@ page language="java" contentType="text/vnd.wap.wml"%>

<%! String Subject; %>


<wml/>

<card id="srch" title="Search">

<p>
<% Subject=request.getParameterValues("srch");

out.println("<br/>Search is"+Subject);

%>
</p>
</card>
</wml>
**********************************************
this is the 5th time ive tried to just send a variable over but it keeps coming up with teh same error on my brwoser and simulator! plase help! thank you xx

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > passing variables from wml to jsp not working


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway