• Post Reply 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

do not get JSON data back (using JSONPlugin)

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have problems with the JSONPlugin. I want to retrieve JSON from an Action but I only get back a comma seperated list.
So somehow the converting into JSON does not work. Unfortunately I cannot figure it out why...

Here are the relevant code snippets:

JSP (jQuery ajax call to get the data for the autocomplete function):


The ajax call itself works fine, but the first alert(msg) does not show the returned data in JSON format but as mentioned simply comma seperated.

struts.xml



What may go wrong here?

Greetings oetzi

EDIT: Although this is not a jQuery forum maybe anyone knows why
data: "productPart="+$(this).val(),
(within the ajax call) does not provide the expected value within my Action.
$(this).val() shows the expected value during an alert() and getter/setter for productPart are also available.
 
Manuel Oetzi
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has no one any idea?
 
This will take every ounce of my mental strength! All for a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic