Re: Multiple Result in one Page

2008-04-06 Thread Frans Thamura
take a look of this

http://farm3.static.flickr.com/2018/2394469980_a9984272d8.jpg?v=0

this is our current approach, a s2 action for form, and another action for
value

i use the ExtJS, and run well here :)

thx to the ExtJs GUI Designer team

but i am seeking another cool stuff that beter.


Frans

On Mon, Apr 7, 2008 at 10:08 AM, Jeromy Evans <
[EMAIL PROTECTED]> wrote:

> I'm not completely sure what you mean but two things come to mind:
> - the s:action tag is useful for pages that need to be assembled using the
> results from multiple actions.  If each each outputs a component of the
> view, you can uses Tiles or Sitemesh to assemble a page on the server-side
> that invokes numerous actions.  You can then reuse the components and design
> actions around each data model instead of each page.
> - as you're using ExtJS, you can use the same pattern as described above,
> but invoke each action XHR.  The page can be assembled via ExtJS on the
> client-side with your actions returning data or html fragments as
> appropriate.
>
>
>


Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
Sorry guys, my mistake.
I don't know how, but the "theme" attribute of s:checkBox was "item", then I
changed to "simple" (:

Jeromy it works! The generated checkBox has value!
Tanks for your help.
Tanks also Wes!


2008/4/7, Márcio Gurgel <[EMAIL PROTECTED]>:
>
> Jeromy,
>
> I tried as you said, but now I have the following exception:
>
> 01:02:36,640  WARN OgnlValueStack:46 - Could not find property
> [templateDir]
> 01:02:36,640  WARN OgnlValueStack:46 - Could not find property
> [templateDir]
> 01:02:36,640  WARN OgnlValueStack:46 - Could not find property
> [#attr.templateDir]
> 01:02:36,656  WARN OgnlValueStack:46 - Could not find property
> [templateDir]
> 01:02:36,656  WARN OgnlValueStack:46 - Could not find property
> [templateDir]
> 01:02:36,671  WARN OgnlValueStack:46 - Could not find property
> [#attr.templateDir]
> 01:02:36,718 ERROR FreemarkerTemplateEngine:24 - Could not load template
> /template/item/checkbox
> 01:02:36,765 ERROR UIBean:28 - error when rendering
> java.io.FileNotFoundException: Template /template/item/checkbox.ftl not
> found.
>
> Tanks for your attention!
>
>
>
> 2008/4/7, Jeromy Evans <[EMAIL PROTECTED]>:
> >
> > In addition to Wes' comment, as you're using display:table and have used
> > the uid attribute, the current row of the table is placed into the
> > PageContext.
> >
> > You can access the page context in OGNL via #attr, so your expression
> > becomes this:
> >
> >  > fieldValue="%{#attr.item.id}" theme="simple"
> > onclick="confirmAllChecked()" />
> >
> >
> > Wes Wannemacher wrote:
> >
> > > Your problem isn't OGNL in parameters, you are using EL in your
> > > examples. By default, EL expressions are disabled, but you could
> > > easily
> > > switch your expressions to OGNL. I'm guessing that if you use '%'
> > > instead of '$' it will probably work. If your action has a getItem(),
> > > and the returned object has a getId(), then %{item.id} should work,
> > > and
> > > if the %{ and } may not even be necessary.
> > > ${ triggers EL expression parsing, but this is done by the app server,
> > > if the TLD specifies that the attribute accepts EL (which struts tags
> > > do
> > > not by default, unless you change the TLD which isn't advisable).
> > > %{ forces OGNL expression. OGNL expression evaluation happens within
> > > the
> > > tag's code, so the app server knows nothing about this step. Thus, the
> > > TLD file's directives have nothing to do with this parsing. Many of
> > > the
> > > Struts 2 tag's attributes will attempt to parse parameters as OGNL by
> > > default, but %{ will force parsing.
> > >
> > > -Wes
> > >
> > >
> > > On Sun, 2008-04-06 at 21:19 -0300, Márcio Gurgel wrote:
> > >
> > >
> > > > Hi all,
> > > >
> > > > I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
> > > > I was setting a value in a checkbox like this:
> > > >  inside a displayTag iterator.
> > > >
> > > > I read this link https://issues.apache.org/struts/browse/WW-2107 and
> > > > understood the situation.
> > > > But, is there another way to set a value in my checkBox?
> > > >
> > > >  > > > name="listUsuPesquisa"
> > > > list="listUsuPesquisa" export="false" class="list" pagesize="15"
> > > > uid="item">
> > > >
> > > > 
> > > >  > > > fieldValue="${
> > > > item.id}" theme="simple" onclick="confirmAllChecked()" />
> > > > 
> > > >
> > > > *Exception*
> > > > According to TLD or attribute directive in tag file, attribute
> > > > fieldValue
> > > > does not accept any expressions
> > > >
> > > > Tanks a lot!
> > > > Have a nice week!
> > > >
> > > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>


Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
Jeromy,

I tried as you said, but now I have the following exception:

01:02:36,640  WARN OgnlValueStack:46 - Could not find property [templateDir]
01:02:36,640  WARN OgnlValueStack:46 - Could not find property [templateDir]
01:02:36,640  WARN OgnlValueStack:46 - Could not find property
[#attr.templateDir]
01:02:36,656  WARN OgnlValueStack:46 - Could not find property [templateDir]
01:02:36,656  WARN OgnlValueStack:46 - Could not find property [templateDir]
01:02:36,671  WARN OgnlValueStack:46 - Could not find property
[#attr.templateDir]
01:02:36,718 ERROR FreemarkerTemplateEngine:24 - Could not load template
/template/item/checkbox
01:02:36,765 ERROR UIBean:28 - error when rendering
java.io.FileNotFoundException: Template /template/item/checkbox.ftl not
found.

Tanks for your attention!



2008/4/7, Jeromy Evans <[EMAIL PROTECTED]>:
>
> In addition to Wes' comment, as you're using display:table and have used
> the uid attribute, the current row of the table is placed into the
> PageContext.
>
> You can access the page context in OGNL via #attr, so your expression
> becomes this:
>
>  fieldValue="%{#attr.item.id}" theme="simple" onclick="confirmAllChecked()"
> />
>
>
> Wes Wannemacher wrote:
>
> > Your problem isn't OGNL in parameters, you are using EL in your
> > examples. By default, EL expressions are disabled, but you could easily
> > switch your expressions to OGNL. I'm guessing that if you use '%'
> > instead of '$' it will probably work. If your action has a getItem(),
> > and the returned object has a getId(), then %{item.id} should work, and
> > if the %{ and } may not even be necessary.
> > ${ triggers EL expression parsing, but this is done by the app server,
> > if the TLD specifies that the attribute accepts EL (which struts tags do
> > not by default, unless you change the TLD which isn't advisable).
> > %{ forces OGNL expression. OGNL expression evaluation happens within the
> > tag's code, so the app server knows nothing about this step. Thus, the
> > TLD file's directives have nothing to do with this parsing. Many of the
> > Struts 2 tag's attributes will attempt to parse parameters as OGNL by
> > default, but %{ will force parsing.
> >
> > -Wes
> >
> >
> > On Sun, 2008-04-06 at 21:19 -0300, Márcio Gurgel wrote:
> >
> >
> > > Hi all,
> > >
> > > I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
> > > I was setting a value in a checkbox like this:
> > >  inside a displayTag iterator.
> > >
> > > I read this link https://issues.apache.org/struts/browse/WW-2107 and
> > > understood the situation.
> > > But, is there another way to set a value in my checkBox?
> > >
> > >  > > name="listUsuPesquisa"
> > > list="listUsuPesquisa" export="false" class="list" pagesize="15"
> > > uid="item">
> > >
> > > 
> > >  > > fieldValue="${
> > > item.id}" theme="simple" onclick="confirmAllChecked()" />
> > > 
> > >
> > > *Exception*
> > > According to TLD or attribute directive in tag file, attribute
> > > fieldValue
> > > does not accept any expressions
> > >
> > > Tanks a lot!
> > > Have a nice week!
> > >
> > >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Jeromy Evans
In addition to Wes' comment, as you're using display:table and have used 
the uid attribute, the current row of the table is placed into the 
PageContext.


You can access the page context in OGNL via #attr, so your expression 
becomes this:





Wes Wannemacher wrote:

Your problem isn't OGNL in parameters, you are using EL in your
examples. By default, EL expressions are disabled, but you could easily
switch your expressions to OGNL. I'm guessing that if you use '%'
instead of '$' it will probably work. If your action has a getItem(),
and the returned object has a getId(), then %{item.id} should work, and
if the %{ and } may not even be necessary. 


${ triggers EL expression parsing, but this is done by the app server,
if the TLD specifies that the attribute accepts EL (which struts tags do
not by default, unless you change the TLD which isn't advisable). 


%{ forces OGNL expression. OGNL expression evaluation happens within the
tag's code, so the app server knows nothing about this step. Thus, the
TLD file's directives have nothing to do with this parsing. Many of the
Struts 2 tag's attributes will attempt to parse parameters as OGNL by
default, but %{ will force parsing.

-Wes


On Sun, 2008-04-06 at 21:19 -0300, Márcio Gurgel wrote:
  

Hi all,

I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
I was setting a value in a checkbox like this:
 inside a displayTag iterator.

I read this link https://issues.apache.org/struts/browse/WW-2107 and
understood the situation.
But, is there another way to set a value in my checkBox?







*Exception*
According to TLD or attribute directive in tag file, attribute fieldValue
does not accept any expressions

Tanks a lot!
Have a nice week!




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
Hi all!

Wes, tanks for your explanation, it was helpful.
I tryed to use %{  -  %{item.id}   inside my display:table, but it still
doesn't work.
The iterated object is a bean, the attribute "cd" has a getCd()

Folow the generated html:





2008/4/6, Wes Wannemacher <[EMAIL PROTECTED]>:
>
> Your problem isn't OGNL in parameters, you are using EL in your
> examples. By default, EL expressions are disabled, but you could easily
> switch your expressions to OGNL. I'm guessing that if you use '%'
> instead of '$' it will probably work. If your action has a getItem(),
> and the returned object has a getId(), then %{item.id} should work, and
> if the %{ and } may not even be necessary.
>
> ${ triggers EL expression parsing, but this is done by the app server,
> if the TLD specifies that the attribute accepts EL (which struts tags do
> not by default, unless you change the TLD which isn't advisable).
>
> %{ forces OGNL expression. OGNL expression evaluation happens within the
> tag's code, so the app server knows nothing about this step. Thus, the
> TLD file's directives have nothing to do with this parsing. Many of the
> Struts 2 tag's attributes will attempt to parse parameters as OGNL by
> default, but %{ will force parsing.
>
> -Wes
>
>
>
> On Sun, 2008-04-06 at 21:19 -0300, Márcio Gurgel wrote:
> > Hi all,
> >
> > I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
> > I was setting a value in a checkbox like this:
> >  inside a displayTag iterator.
> >
> > I read this link https://issues.apache.org/struts/browse/WW-2107 and
> > understood the situation.
> > But, is there another way to set a value in my checkBox?
> >
> >  name="listUsuPesquisa"
> > list="listUsuPesquisa" export="false" class="list" pagesize="15"
> uid="item">
> >
> > 
> >  fieldValue="${
> > item.id}" theme="simple" onclick="confirmAllChecked()" />
> > 
> >
> > *Exception*
> > According to TLD or attribute directive in tag file, attribute
> fieldValue
> > does not accept any expressions
> >
> > Tanks a lot!
> > Have a nice week!
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: Multiple Result in one Page

2008-04-06 Thread Jeromy Evans

I'm not completely sure what you mean but two things come to mind:
- the s:action tag is useful for pages that need to be assembled using 
the results from multiple actions.  If each each outputs a component of 
the view, you can uses Tiles or Sitemesh to assemble a page on the 
server-side that invokes numerous actions.  You can then reuse the 
components and design actions around each data model instead of each page.
- as you're using ExtJS, you can use the same pattern as described 
above, but invoke each action XHR.  The page can be assembled via ExtJS 
on the client-side with your actions returning data or html fragments as 
appropriate.


Frans Thamura wrote:

hi all,

I am try to develop a web apps using Struts2, and the presentation we use
ExtJS.

in ExtJS, we have a form that represent 1 table, and several grid, around
2-3 table grids.

so, in my mind the grid = one result...

after trying several model, i see that every form or table grid need 1
result

in my case above, we need 3-4 result

for me, creating 4 results for 1 page is an annoying job and make my
struts.xml become blowup and dirty.

any idea guys?

F

  



No virus found in this incoming message.
Checked by AVG. 
Version: 7.5.519 / Virus Database: 269.22.7/1361 - Release Date: 5/04/2008 7:53 AM
  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] What do you code today?

2008-04-06 Thread Wes Wannemacher
I've been quiet on this one, but since I finally had a breakthrough
today, I feel like talking about it :)

I started a pet project that I've been toying around in my head for a
while. As a parent, I coach a few elementary and junior high sports. It
is a volunteer thing, and if offered pay, I would refuse it (the schools
need the money more than I do). The biggest complaint that parents have
though is that they feel like we don't provide enough information, etc.
Sometimes I want to tell the parents that complain to shove it :), but
as a parent myself, I feel the same way about teachers, so I try to do a
better job each season. Since I setup a wordpress/phpBB site a while
back (which I haven't been too diligent about updating), I thought about
doing something similar. Having dealt once with wordpress/phpBB, I have
vowed to never do it again. 

In an attempt to "eat-my-own-dog-food," I decided to do this all from
scratch with s2 and friends. So, I'm creating a site that is centered
around managing a team. The goal is to make a resource for parents and
fans to discuss the teams and athletes. It will mostly be a knock-off of
other blogs and forums, but it will provide some extra functionality for
whichever sport is being managed. So, stats, pictures and videos can be
uploaded. A schedule can be viewed (and managed by coaches). Coaches can
blog about the various events (matches, tournaments, etc.). And, users
can post in a forum (polls, regular forums). 

The fun part - The site is struts 2.1.?-SNAPSHOT based using Maven,
Spring, Hibernate (JPA), SiteMesh, Acegi, and Prototype/JQuery (haven't
decided yet). I'm using the codebehind plugin and other than acegi, I've
hardly written any configuration at all! It's wonderful. The
breakthrough I had was that I've created something like 40 entities so
far and just began work on s2 actions. I was crossing my fingers that my
generic dao, codebehind and spring autowire would allow me to code by
convention and that things would work properly. Imagine my surprise when
I had my first action working in less than a few hours! When I'm done, I
may yank the guts out and post an integrated blog/forum project to
sourceforge as an example of s2/spring/sitemesh/jpa with hints of AJAX,
but that's a ways out...

-Wes


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] What do you code today?

2008-04-06 Thread Jeromy Evans


I've been working on a system for a law firm that allows them to quickly 
generate legal documents.  Users complete a Q&A process and a PDF pops 
out at the end. The logic is more sophisticated than it sounds though.  
It's now evolved into a records management system and document 
management system as once generated as document have a particular 
life-cycle or legal purpose.  The system plugs into the Alfresco ECMS 
which is an impressive little open source project.


We originally started with Struts 2.0.1.  Some of the challenges have 
been managing the massive increase in scope and the view and workflow 
tailoring requested by every new corporate client.  At my last count 
this application had over 100 actions in struts.xml.
Lessons learned: I've been scared-for-life and won't ever use FOP again 
(http://xmlgraphics.apache.org/fop/).


My pet project involves data mining and analysis.  I've been using 
Struts2.1 as a SOA framework where the actions output a response as 
json, xml, an html fragment or html page depending on how it was 
requested. Struts does an excellent job at that. The RIA is build upon 
YUI.  The biggest challenge with this project is dealing with large 
datasets.  Every operation hits a bottleneck, from javascript being too 
slow to the servers having insufficient [insert any resource].  It's a 
constant juggle between optimzing algorithms and reoganizing resources.


I have new appreciation for what Sergey Brin & Larry Page achieved in 
the years before they had money or resources.

Lessons learned: Don't bite off more than you can chew


Ted Husted wrote:

While outward facing web application get the most publicity, I know
that most of us are heads-down on internally-facing applications
designed for fellow employees to use over the corporate intranet.

I'm trying to put together a list of the typical types of applications
that  enterprise developer write in real life. For example, my last
project involved a system to track drafting, granting, monitoring, and
enforcing water permits administered by a government agency. We would
create an initial record for a permit, and then add child records to
track progress through the workflow, and also update the master record
along the way. For management, a key item here is a tracking report,
which we exported to Word (using a third-party tool) for better
formatting. For engineers, a key item was a flexible search system to
quickly find a master or child record. Other interesting features are
workflows where one task leads to another. When we completed one task
(child record), the next is often implied, and so we had a workflow
that would default the next task to work on when a current task was
closed. Another interesting requirement was that sometimes master
items were merged under another uber-master-item, becoming, in effect,
child items themselves. In most cases, the application simply exposed
business models that we designed into the database, so the application
has little business logic of its own. Most of the workflows were
designed to find, list, edit, or view one database entity or the
other.

So, if anyone else is up for sharing, I'd be interested in hearing
what sort of things other people are doing these days. (If your not
comfortable posting the list, feel free to mail me direct.)

-Ted.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Ognl expressions in Struts 2.1

2008-04-06 Thread Wes Wannemacher
Your problem isn't OGNL in parameters, you are using EL in your
examples. By default, EL expressions are disabled, but you could easily
switch your expressions to OGNL. I'm guessing that if you use '%'
instead of '$' it will probably work. If your action has a getItem(),
and the returned object has a getId(), then %{item.id} should work, and
if the %{ and } may not even be necessary. 

${ triggers EL expression parsing, but this is done by the app server,
if the TLD specifies that the attribute accepts EL (which struts tags do
not by default, unless you change the TLD which isn't advisable). 

%{ forces OGNL expression. OGNL expression evaluation happens within the
tag's code, so the app server knows nothing about this step. Thus, the
TLD file's directives have nothing to do with this parsing. Many of the
Struts 2 tag's attributes will attempt to parse parameters as OGNL by
default, but %{ will force parsing.

-Wes


On Sun, 2008-04-06 at 21:19 -0300, Márcio Gurgel wrote:
> Hi all,
> 
> I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
> I was setting a value in a checkbox like this:
>  inside a displayTag iterator.
> 
> I read this link https://issues.apache.org/struts/browse/WW-2107 and
> understood the situation.
> But, is there another way to set a value in my checkBox?
> 
>  list="listUsuPesquisa" export="false" class="list" pagesize="15" uid="item">
> 
> 
> 
> 
> 
> *Exception*
> According to TLD or attribute directive in tag file, attribute fieldValue
> does not accept any expressions
> 
> Tanks a lot!
> Have a nice week!


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ognl expressions in Struts 2.1

2008-04-06 Thread Márcio Gurgel
Hi all,

I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
I was setting a value in a checkbox like this:
 inside a displayTag iterator.

I read this link https://issues.apache.org/struts/browse/WW-2107 and
understood the situation.
But, is there another way to set a value in my checkBox?







*Exception*
According to TLD or attribute directive in tag file, attribute fieldValue
does not accept any expressions

Tanks a lot!
Have a nice week!


Re: Url-Parameters only set once

2008-04-06 Thread Marc Ende

Hello Dave,

I've found a solution for that. The spring-action was standard-scoped 
and in cause of that it didn't accept the

id parameter a second time.

I think it's a little bit strange that it's impossible to set an 
property again when it's done before.


Marc




Dave Newton schrieb:

--- Marc Ende <[EMAIL PROTECTED]> wrote:
  

I've got a list with several items which are linked to a details-action.
If I klick on an item after the restart of the webapp a link like
http://.../details.action?id=123
is called. Everything is fine. I can see the correct details site.
When I go back and klick on another item (with another id)
the old id is called from the database and shown.



Without any further info it's hard to say what the problem might be.

Actions are instantiated per-request, unless you've mis-configured a
Spring-defined action.

Depending on how you're creating the links (and how your application is laid
out) you may be getting URL parameters you're not expecting in your link;
 has an "includeParams" attribute you might want to look at.

I'm sure there are more possibilities, but we might need more info in order
to help.

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] What do you code today?

2008-04-06 Thread Martin Gainty
Agreed!

O/T
I'm writing a small text-processor search utility and came across this
interesting TestCase
using StringTokenizer I want to see if I can use a delimiter only when that
delimiter is embedded in the discovered string
referencing the StringTokenizer JavaDoc from MIT
http://tns-www.lcs.mit.edu/manuals/java-api-old/java.util.StringTokenizer.ht
ml

so if I find all McCLANAHAN.. this TestCase works as McCLANAHAN characters
are  alphabetic and non-whitespace

The whitespace characters do'nt work though and trip up StringTokenizer as
in this example

delimiter="'";  //as in single tickmark

find all occurences of O'Halloran

I wonder if there is a workaround so Irish names will not trip up whitespace
delimiters???
Erin Go Bragh!
Martin-
- Original Message -
From: "Al Sutton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Sunday, April 06, 2008 3:36 AM
Subject: Re: [OT] What do you code today?


> It's a port from a combination of S1.3, actions, and servlets, so it's
been
> a big jump.
>
> There aren't that many hurdles once you're familiar with the S2 way of
doing
> things. S2 has made life a lot easier, the UI codebase a lot smaller, and
is
> generally a good move.
>
> - Original Message -
> From: "Martin Gainty" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" 
> Sent: Sunday, April 06, 2008 4:54 AM
> Subject: Re: [OT] What do you code today?
>
>
> > Al-
> >
> > Any pointers you can share on porting ?
> >
> > M-
> > - Original Message -
> > From: "Al Sutton" <[EMAIL PROTECTED]>
> > To: "Struts Users Mailing List" 
> > Sent: Saturday, April 05, 2008 2:51 AM
> > Subject: Re: [OT] What do you code today?
> >
> >
> >> http://www.enterprise-password-safe.com/
> >>
> >> At the moment the code is under a major overhaul to use S2.1 (yes, 2.1)
> > and
> >> add some new features, hence my big interest in 2.1 :).
> >>
> >> Al.
> >>
> >> - Original Message -
> >> From: "Ted Husted" <[EMAIL PROTECTED]>
> >> To: "Struts Users Mailing List" 
> >> Sent: Friday, April 04, 2008 12:14 PM
> >> Subject: [OT] What do you code today?
> >>
> >>
> >> > While outward facing web application get the most publicity, I know
> >> > that most of us are heads-down on internally-facing applications
> >> > designed for fellow employees to use over the corporate intranet.
> >> >
> >> > I'm trying to put together a list of the typical types of
applications
> >> > that  enterprise developer write in real life. For example, my last
> >> > project involved a system to track drafting, granting, monitoring,
and
> >> > enforcing water permits administered by a government agency. We would
> >> > create an initial record for a permit, and then add child records to
> >> > track progress through the workflow, and also update the master
record
> >> > along the way. For management, a key item here is a tracking report,
> >> > which we exported to Word (using a third-party tool) for better
> >> > formatting. For engineers, a key item was a flexible search system to
> >> > quickly find a master or child record. Other interesting features are
> >> > workflows where one task leads to another. When we completed one task
> >> > (child record), the next is often implied, and so we had a workflow
> >> > that would default the next task to work on when a current task was
> >> > closed. Another interesting requirement was that sometimes master
> >> > items were merged under another uber-master-item, becoming, in
effect,
> >> > child items themselves. In most cases, the application simply exposed
> >> > business models that we designed into the database, so the
application
> >> > has little business logic of its own. Most of the workflows were
> >> > designed to find, list, edit, or view one database entity or the
> >> > other.
> >> >
> >> > So, if anyone else is up for sharing, I'd be interested in hearing
> >> > what sort of things other people are doing these days. (If your not
> >> > comfortable posting the list, feel free to mail me direct.)
> >> >
> >> > -Ted.
> >> >
> >> > -
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail: [EMAIL PROTECTED]
> >> >
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [S2] Menu Tag Library struts-config.xml problem.

2008-04-06 Thread sassien

oh, I thought it was talking about upgrading from struts 1.x to 2.x using
struts-menu...
All right then, I'll try to follow the "using struts menu outside of Struts"
docmentation...
thanks, sassien


Laurie Harper wrote:
> 
> That's talking about upgrading from 1.x to 2.x of Struts Menu isn't it? 
> I had a quick look at their Getting Started docs, and I think you would 
> want to follow the "Using Struts Menu outside of Struts" documentation. 
> The only thing I see that's Struts 1 specific is the plug-in 
> configuration in struts-config.xml (a configuration file that is not 
> used in Struts 2).
> 
> L.
> 

-- 
View this message in context: 
http://www.nabble.com/-S2--Menu-Tag-Library-struts-config.xml-problem.-tp16447334p16525932.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Url-Parameters only set once

2008-04-06 Thread Dave Newton
--- Marc Ende <[EMAIL PROTECTED]> wrote:
> I've got a list with several items which are linked to a details-action.
> If I klick on an item after the restart of the webapp a link like
> http://.../details.action?id=123
> is called. Everything is fine. I can see the correct details site.
> When I go back and klick on another item (with another id)
> the old id is called from the database and shown.

Without any further info it's hard to say what the problem might be.

Actions are instantiated per-request, unless you've mis-configured a
Spring-defined action.

Depending on how you're creating the links (and how your application is laid
out) you may be getting URL parameters you're not expecting in your link;
 has an "includeParams" attribute you might want to look at.

I'm sure there are more possibilities, but we might need more info in order
to help.

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Multiple Result in one Page

2008-04-06 Thread Frans Thamura
hi all,

I am try to develop a web apps using Struts2, and the presentation we use
ExtJS.

in ExtJS, we have a form that represent 1 table, and several grid, around
2-3 table grids.

so, in my mind the grid = one result...

after trying several model, i see that every form or table grid need 1
result

in my case above, we need 3-4 result

for me, creating 4 results for 1 page is an annoying job and make my
struts.xml become blowup and dirty.

any idea guys?

F


Url-Parameters only set once

2008-04-06 Thread Marc Ende

Hi,

I've got a list with several items which are linked to a details-action.
If I klick on an item after the restart of the webapp a link like
http://.../details.action?id=123
is called. Everything is fine. I can see the correct details site.
When I go back and klick on another item (with another id)
the old id is called from the database and shown.

Within the action I've declared an
private String id;
with the getters and setters.
The logic (retrieval data from the database) is done in the execute
method.

Is there any caching or do I have to set id manually to null?
Or do I have to do the processing in the prepare-method?

Thanks for your help

Marc

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



The requested resource (/struts2-blank-2.0.11.1/emsitem/index.jsp) is not available.

2008-04-06 Thread ghan_java

hi , i tried to add new jsp  in struts2-blank application, iand i have
configer it into  sturts.xml 
but it's 





/emsitem/emsList.jsp



/emsitem/editItem.jsp





but when i try run these jsp on server , it not responded me ..

-- 
View this message in context: 
http://www.nabble.com/The-requested-resource-%28-struts2-blank-2.0.11.1-emsitem-index.jsp%29-is-not-available.-tp16521956p16521956.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] What do you code today?

2008-04-06 Thread Al Sutton
It's a port from a combination of S1.3, actions, and servlets, so it's been 
a big jump.


There aren't that many hurdles once you're familiar with the S2 way of doing 
things. S2 has made life a lot easier, the UI codebase a lot smaller, and is 
generally a good move.


- Original Message - 
From: "Martin Gainty" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Sunday, April 06, 2008 4:54 AM
Subject: Re: [OT] What do you code today?



Al-

Any pointers you can share on porting ?

M-
- Original Message -
From: "Al Sutton" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Saturday, April 05, 2008 2:51 AM
Subject: Re: [OT] What do you code today?



http://www.enterprise-password-safe.com/

At the moment the code is under a major overhaul to use S2.1 (yes, 2.1)

and

add some new features, hence my big interest in 2.1 :).

Al.

- Original Message -
From: "Ted Husted" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Friday, April 04, 2008 12:14 PM
Subject: [OT] What do you code today?


> While outward facing web application get the most publicity, I know
> that most of us are heads-down on internally-facing applications
> designed for fellow employees to use over the corporate intranet.
>
> I'm trying to put together a list of the typical types of applications
> that  enterprise developer write in real life. For example, my last
> project involved a system to track drafting, granting, monitoring, and
> enforcing water permits administered by a government agency. We would
> create an initial record for a permit, and then add child records to
> track progress through the workflow, and also update the master record
> along the way. For management, a key item here is a tracking report,
> which we exported to Word (using a third-party tool) for better
> formatting. For engineers, a key item was a flexible search system to
> quickly find a master or child record. Other interesting features are
> workflows where one task leads to another. When we completed one task
> (child record), the next is often implied, and so we had a workflow
> that would default the next task to work on when a current task was
> closed. Another interesting requirement was that sometimes master
> items were merged under another uber-master-item, becoming, in effect,
> child items themselves. In most cases, the application simply exposed
> business models that we designed into the database, so the application
> has little business logic of its own. Most of the workflows were
> designed to find, list, edit, or view one database entity or the
> other.
>
> So, if anyone else is up for sharing, I'd be interested in hearing
> what sort of things other people are doing these days. (If your not
> comfortable posting the list, feel free to mail me direct.)
>
> -Ted.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Re: Struts2 and tag

2008-04-06 Thread Gabriel Belingueres
Seems you missed to add the Apache Commons Lang library jar file.

I have projects running with displaytag 1.1.1 and commons-lang 2.3.
(Don't know if the last 2.4 version work though.)

Gabriel

2008/4/5, Dave Newton <[EMAIL PROTECTED]>:
> --- aum strut <[EMAIL PROTECTED]> wrote:
> > here is the exception which i am facing
> >
> > java.lang.NoClassDefFoundError: *org/apache/commons/lang/UnhandledException
> > *
>
> So what does that exception tell you?
>
> (I have very limited internet access today, so I can't look up the
> requirements for displaytag. but do you have all the required libraries for
> it?)
>
> Dave
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]