top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

JSP read value from ActionForm

+1 vote
313 views

May I know how to read a parameter value in JSP page for the following situation please?

(1) Struts2Action.java
... String list_size = list.size(); ...
getter/setter for list_size

(2) result.jsp

Is there a simple way to assign Struts2Action.list_size to s:select.size filed in the result.jsp file?

posted Jul 4, 2013 by anonymous

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+2 votes

In my front end, i am allowing user to create and save multiple number of entries to a table at the same time.

For now i am sending this input to Java class in form of string which i am creating at the time of save. But if table size is very very big(eg. 400-500 entries), then creating string is a time taking process.
Is the any other solution for this?

+1 vote

I need to integrate struts 2 with my classic web application based on servlet.

How do I tell struts 2 intercept only requests coming from specific folder like com.mysite.app.xx.yy where I will placing all struts related source files?

Here is the link what I started at stackoverflow,

http://stackoverflow.com/questions/30056132/integrating-classic-jsp-servlet-3-0-based-web-application-with-struts-2?noredirect=1#comment48258124_30056132

Please see if someone can throw some light on my issue.

...