Set JSP timeout in struts 1 app with multipart/form-data form

2010-10-03 Thread Oscar
Hi to all, i have a question about a situation that i have in my
application. It's in Struts 1.1 . Basically, i have a multipart/form-data
form in the jsp that contains 2 elements: a html:file control and a
html:submit button . This form will be used to upload MS Access database
file up to 800mb to extract it's data and pass it to Oracle. When i tried
for first time, i selected the file and press the button. I monitored the
request using Firebug extension on firefox and i saw when it sends the file
into the request, but after a while the browser resets the connection
(request)  maybe because the request takes too long.

And that happens when i test it locally, but imagine in production, probably
the upload will take more time depending of the connection, so i wanna ask
you Struts User mail list members, if somebody knows how to specify
something like the "request timeout" to avoit the browser to reset the
request.

Thanks in advance.


-- 
Oscar Calderón
SCJP 6  


Re: Excluding Fields From JSON Serialization via Annoations

2010-10-03 Thread Johannes Geppert

you can use the JSON Annotion above the field you want to exclude.

@JSON(serialize=false)
public List getXxx() {}


Johannes



DartmanX wrote:
> 
> I have a class called BorderPoint with about 5 fields (including an id
> field
> and two ManyToOne hibernate fields).
> 
> When I return the JSON, there is a large collection of BorderPoints (often
> over 1000). I'd like to exclude everything but two float fields from the
> JSON serialization, if only to make the returned JSON a bit smaller.
> 
> I also need to do it via annotations.
> 
> So, assuming the BorderPoint class has the following code snippet, how do
> I
> exclude this field?
> 
> private int id;
> 
> public int getId() {}
> 
> public void setIt(int id) {}
> 
> Thanks,
> Jason
> 
> 


-
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://old.nabble.com/Excluding-Fields-From-JSON-Serialization-via-Annoations-tp29871613p29873234.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Excluding Fields From JSON Serialization via Annoations

2010-10-03 Thread Jason Ferguson
I have a class called BorderPoint with about 5 fields (including an id field
and two ManyToOne hibernate fields).

When I return the JSON, there is a large collection of BorderPoints (often
over 1000). I'd like to exclude everything but two float fields from the
JSON serialization, if only to make the returned JSON a bit smaller.

I also need to do it via annotations.

So, assuming the BorderPoint class has the following code snippet, how do I
exclude this field?

private int id;

public int getId() {}

public void setIt(int id) {}

Thanks,
Jason