File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Invalid property in <set> Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Invalid property in <set>" Watch "Invalid property in <set>" New topic
Author

Invalid property in <set>

Raihan Jamal
Ranch Hand

Joined: Mar 23, 2010
Posts: 85
I added this line to change the response header in JSP .. I am getting error like this..





And this is the below jsp code where I added that line.



Any suggestions will be appreciated..
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

That would imply that the "response" object had a method named "setAccess-Control-Allow-Origin()". Obviously this isn't a valid Java method name so it can't be the right thing to do.
Raihan Jamal
Ranch Hand

Joined: Mar 23, 2010
Posts: 85
@Paul Clapham, so what should I do.. what will be the actual line instead of that.. I think m writing some property name wrong.. so that's why I am getting that error..
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

What should you do? I have no idea. Why don't you start by explaining what that code was supposed to do?
Raihan Jamal
Ranch Hand

Joined: Mar 23, 2010
Posts: 85
@Paul Clapham, I am just trying to change the response header using JSP. As I am accessing URL on different domain and I am working locally.. as I have to get the response back from that server. So that's why I was trying to change the response header. Any idea how can I do this thing..
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

When you say you want to "change the response header" does that mean you want to set the value of a response header?

I also don't understand this:
As I am accessing URL on different domain and I am working locally.. as I have to get the response back from that server"
It sort of sounds like you expect to send a request to one server and find the response coming back from a different server, but even so you're using your JSP to send the response, so that doesn't seem to apply to anything here.
Raihan Jamal
Ranch Hand

Joined: Mar 23, 2010
Posts: 85
@Paul Clapham, yes that's what I want to do..
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 16483
    
    2

Sorry, I was editing my post when you replied. Basically the reason you gave for wanting to set the response header didn't make any sense to me.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Invalid property in <set>
 
Similar Threads
JPA select query using Google App engine
Question on JForums Database space
Getting null pointer exception while updating GWT grid record
White spaces are required between publicId and systemId.
Need help for Displaying in jsp