Re: [OS-webwork] Addition

2002-11-13 Thread Mike Cannon-Brookes
Erik, The smart way to do this is abstract the business logic from that particular page. For example, create a 'Pager' object that stores the start and max items per page. Then you can have pager.getNextStart(), pager.getLastStart(), pager.getEnd(), pager.getMax() etc. Your action only needs on

Re: [OS-webwork] Re: the names of the three new tags

2002-11-13 Thread Bill Burton
Hello, boxed wrote: How about just 'out' for print? To go along with out.println etc. Yes, as this aligns better with JSTL. The syntax of should probably be the same or a superset of . I know that out is the name in JSTL but I personally feel that this is an argument against using that nam

Re: [OS-webwork] Addition

2002-11-13 Thread Erik Beeson
I like this idea. Thanks. It seems like paging it something that might be worth adding to ww somewhere? Just a thought. In other news, I think I fixed the IncludeTag bug. Now if I can just get cvs working through ssh on this windows box, I'll be in business. Been up for too long though, going to s

Re: [OS-webwork] Addition

2002-11-13 Thread boxed
> I return a very, very long list and would like to be able to page through > it. I have a startIndex and count. The link to the next page should be > startIndex=(startIndex+count); Since the business end was getting the list > in the first place, this indexing stuff seemed like it belonged on the

Re: [OS-webwork] Addition

2002-11-13 Thread Tim Dwelle
I'm a firm believer in keeping business logic out of your presentation tier... but even to me... this seems like an appropriate place to use a JSP scriptlet. -Tim. Quoting Erik Beeson <[EMAIL PROTECTED]>: > I return a very, very long list and would like to be able to page > through > it. I ha

Re: [OS-webwork] Addition

2002-11-13 Thread Erik Beeson
I return a very, very long list and would like to be able to page through it. I have a startIndex and count. The link to the next page should be startIndex=(startIndex+count); Since the business end was getting the list in the first place, this indexing stuff seemed like it belonged on the view end

Re: [OS-webwork] Addition

2002-11-13 Thread Maurice Parker
Erik Beeson wrote: I have and action that has two getters that return ints. Is there a way for my view to render the sum of them? Currently I use a bean that has a method int sum(int x, int y) { return x+y; }. Is there a better way? Nope. You're doing it the right way. I'm not sure what you

[OS-webwork] Addition

2002-11-13 Thread Erik Beeson
I have and action that has two getters that return ints. Is there a way for my view to render the sum of them? Currently I use a bean that has a method int sum(int x, int y) { return x+y; }. Is there a better way? --Erik --- This sf.net email