File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Big RequestParameters from JSP.

 
Lucky J Verma
Ranch Hand
Posts: 278
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hi all
I have a display table in my jsp. In this table one column is clickable and clicking this sends 2 request parameters (ReasonsText and account)to my spring controller.
And i am creating links using Decoratros.
But there could be cases when first request paramter(reasonsText) can be extra large.It fails in that case .Is there any alternative to that?
I tried finding something in my database tables which i could use in place of reasonsText(like reason ID) but i use group by on reasonsText so i couldnot use id.

Please suggest.




Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64178
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to ask Spring questions in the Spring forum. I have moved this post there for you.
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remember that request URL with parameters have a length limitation. Typically it is better to have that submitted through a form, I would think. So that it ends up in the body of the request instead of as a request parameter. Or you can limit the amount of text the user can type in so that it doesn't reach the request parameter limitation.

Mark
 
Lucky J Verma
Ranch Hand
Posts: 278
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi Mark ,
Thanks for help.
Can you please give me an example on how to send data to @RequestBody for <display:table> column?
Adding it in form and then i use Will it automatically go to @RequestBody and not @RequestParam
. And data is sent in
string.
Also i tried sneding POST data -by adding hidden fields to display:column and no which is not working .Since variables contain duplicated comma separated values
and no hint of what value was user-selected.
Furthur research taught me ts limitation of sending POST values.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic