AW: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Not bad ;-) Works like a charm.

> -Ursprüngliche Nachricht-
> Von: Antonio Petrelli [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 21. November 2007 16:27
> An: Struts Users Mailing List
> Betreff: Re: EL Statements are not evaluated in logic:equal tag
> 
> 2007/11/21, Peter Neu <[EMAIL PROTECTED]>:
> >
> > Yes that works but I need to declare much more code which seems a little
> > senseless
> 
> 
> 
> You are right only if you are using dyna-beans. Otherwise you can use a
> more
> complex expression:
> 
> 
> Antonio



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



AW: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Yes that works but I need to declare much more code which seems a little
senseless

--








--




-Pete


> -Ursprüngliche Nachricht-
> Von: Antonio Petrelli [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 21. November 2007 16:07
> An: Struts Users Mailing List
> Betreff: Re: EL Statements are not evaluated in logic:equal tag
> 
> 2007/11/21, Peter Neu <[EMAIL PROTECTED]>:
> > I have a problem with the evaluation of EL statement:
> >  
> 
> Did you try using  ?
> 
> Antonio
> 
> -
> 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]



AW: EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Hi, 

I saw many examples on the net with the normal logic:equal tag and the el
statement:
 -Ursprüngliche Nachricht-
> Von: Dave Newton [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 21. November 2007 15:45
> An: Struts Users Mailing List
> Betreff: Re: EL Statements are not evaluated in logic:equal tag
> 
> Are you using the EL taglib? ARe you running on a JSP
> 2.0 container?
> 
> d.
> 
> --- Peter Neu <[EMAIL PROTECTED]> wrote:
> 
> > Hello,
> >
> > I have a problem with the evaluation of EL
> > statement:
> >   > property="codeTal">
> >
> > When I use just jstl like this:
> > 
> > I get the value without any trouble. I use struts
> > 1.2.9
> >
> > Any help is much appreciated.
> >
> > Cheers,
> > Pete
> >
> >
> >
> >
> >
> >
> >
> -
> > 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]



EL Statements are not evaluated in logic:equal tag

2007-11-21 Thread Peter Neu
Hello,

I have a problem with the evaluation of EL statement:
 

When I use just jstl like this:

I get the value without any trouble. I use struts 1.2.9 

Any help is much appreciated.

Cheers,
Pete 






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



[OT] Window.location.hash & Struts & Firefox

2007-10-19 Thread Peter Neu
Hello,

 

does somebody know how to get the window.location.hash to work in Firefox. 

 

I need to dynamically route the user to the right spot in my app with a
session variable and this little 

Bit of JS. Works in IE but not in Fire Fox

 



window.location.hash = "#";



 

Using Fire Fox  2.0.0..

Cheers,

Pete 

 



AW: Good JScript lib for disabling browser toolbars and good integration with Struts?

2007-05-03 Thread Peter Neu
Hello,

I'm using Struts 1.x. Do you know how to disable the toolbars with dojo? Is
there a tutorial? I couldn't find anything on their website. 

Cheers,
Pete

> -Ursprüngliche Nachricht-
> Von: news [mailto:[EMAIL PROTECTED] Im Auftrag von Laurie Harper
> Gesendet: Donnerstag, 3. Mai 2007 22:48
> An: user@struts.apache.org
> Betreff: Re: Good JScript lib for disabling browser toolbars and good
> integration with Struts?
> 
> Peter Neu wrote:
> > does somebody know a good Java Script library which disables browser
> tool- &
> > navigations bars and right mouse clicks for browser windows? I need a
> > browser window for my app stripped of all basic browser components.
> >
> > Best way would be if Struts could already load the java script before
> the
> > user sees the first page.
> 
> You don't mention which Struts version you're using. Struts 2 provides
> some integration with Dojo (through the 'ajax' theme) which can probably
> do what you need as well as any library.
> 
> If you're not using S2, or want to use a different library, you should
> be able to do so equally as easily in Struts as any other web app
> environment; just include the appropriate 

Good JScript lib for disabling browser toolbars and good integration with Struts?

2007-05-03 Thread Peter Neu
Hello,

does somebody know a good Java Script library which disables browser tool- &
navigations bars and right mouse clicks for browser windows? I need a
browser window for my app stripped of all basic browser components. 

Best way would be if Struts could already load the java script before the
user sees the first page.


Cheers,
Pete 




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



AW: AW: AW: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Peter Neu
Good remarks. I will add the stuff. 

Parse position is something I don't use although the constructor requests
it.

Cheers,
Pete

> -Ursprüngliche Nachricht-
> Von: Lance [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 16. April 2007 12:10
> An: Struts Users Mailing List
> Betreff: Re: AW: AW: AW: HowTo Format Numbers in html:text tag?
> 
> Looks ok to me altho im not familiar with parse position
> 
> You might wanna allow blank too
> if (price != null && price.trim().length() != 0) {
> 
> And catch NumberFormatException / set an error
> 
> And setPriceDouble(null) in your forms reset() method
> 
> Peter Neu wrote:
> > OK so what I did is:
> >
> > --jsp---
> >> format="##"/>" />
> >
> > -> Value gets displayed with commas.
> >
> > --action-form-
> >
> > NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.GERMAN);
> > DecimalFormat df = (DecimalFormat) nf;
> > df.setDecimalSeparatorAlwaysShown(false);
> > df.applyPattern("#,###,###,###,###.#");
> >
> >
> > if (price != null) {
> > if (price.contains(".")) {
> > ActionError msg = new
> > ActionError("servlets.jsp.error.edit1");
> > errors.add("uploadErr", msg);
> > System.out.println("error");
> > } else {
> >   ParsePosition pp2  = new ParsePosition(0);
> > Number inNbr = df.parse(price, pp2);
> > setPriceDouble(inNbr.doubleValue());
> > }
> > }
> >
> > In my struts action form I check for null values and the copy the string
> > representation into a double value.
> >
> > Does that make sense?
> >
> >
> >
> >> -Ursprüngliche Nachricht-
> >> Von: Lance [mailto:[EMAIL PROTECTED]
> >> Gesendet: Montag, 16. April 2007 11:31
> >> An: Struts Users Mailing List
> >> Betreff: Re: AW: AW: HowTo Format Numbers in html:text tag?
> >>
> >> Your brute force approach does not use  tho?
> >> Also, I have a suspicion that struts will either throw an exception or
> >> set nulls for inputted numbers that contain commas, you might need to
> >> use Strings on your form and format / parse to numbers in your
> action(s).
> >>
> >> Peter Neu wrote:
> >>
> >>> But that's more code than the brute force approach:
> >>>
> >>>  >>> format="##"/>" />
> >>>
> >>> If have about 20-30 items. :o(
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>> -Ursprüngliche Nachricht-
> >>>> Von: Lance [mailto:[EMAIL PROTECTED]
> >>>> Gesendet: Montag, 16. April 2007 11:05
> >>>> An: Struts Users Mailing List
> >>>> Betreff: Re: AW: HowTo Format Numbers in html:text tag?
> >>>>
> >>>> You could combine with struts-el
> >>>>
> >>>> 
> >>>>  >>>> var="formattedNumber" />
> >>>>
> >>>> 
> >>>> 
> >>>>
> >>>> Peter Neu wrote:
> >>>>
> >>>>
> >>>>> That looks cool but I need to embed the value in the html:text field
> >>>>>
> >> so
> >>
> >>>> the
> >>>>
> >>>>
> >>>>> user is able to edit the value. That won't work with 2 tags. :o(
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>> -Ursprüngliche Nachricht-
> >>>>>> Von: Lance [mailto:[EMAIL PROTECTED]
> >>>>>> Gesendet: Montag, 16. April 2007 10:45
> >>>>>> An: Struts Users Mailing List
> >>>>>> Betreff: Re: HowTo Format Numbers in html:text tag?
> >>>>>>
> >>>>>> You could use  in JSTL
> >>>>>> http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf
> >>>>>> <http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf>
> >>>>>>
> >>>>>> Peter Neu wrote:
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hello,
> >>>>>>>
> >>>>>>> I n

AW: AW: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Peter Neu
OK so what I did is:

--jsp---
  " /> 

-> Value gets displayed with commas. 

--action-form-

NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.GERMAN);
DecimalFormat df = (DecimalFormat) nf;
df.setDecimalSeparatorAlwaysShown(false);
df.applyPattern("#,###,###,###,###.#");


if (price != null) {
if (price.contains(".")) {
ActionError msg = new
ActionError("servlets.jsp.error.edit1");
errors.add("uploadErr", msg);
System.out.println("error");
} else {
  ParsePosition pp2  = new ParsePosition(0);
Number inNbr = df.parse(price, pp2);
setPriceDouble(inNbr.doubleValue());
}
}

In my struts action form I check for null values and the copy the string
representation into a double value.

Does that make sense?


> -Ursprüngliche Nachricht-
> Von: Lance [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 16. April 2007 11:31
> An: Struts Users Mailing List
> Betreff: Re: AW: AW: HowTo Format Numbers in html:text tag?
> 
> Your brute force approach does not use  tho?
> Also, I have a suspicion that struts will either throw an exception or
> set nulls for inputted numbers that contain commas, you might need to
> use Strings on your form and format / parse to numbers in your action(s).
> 
> Peter Neu wrote:
> > But that's more code than the brute force approach:
> >
> >  > format="##"/>" />
> >
> > If have about 20-30 items. :o(
> >
> >
> >
> >
> >
> >> -Ursprüngliche Nachricht-
> >> Von: Lance [mailto:[EMAIL PROTECTED]
> >> Gesendet: Montag, 16. April 2007 11:05
> >> An: Struts Users Mailing List
> >> Betreff: Re: AW: HowTo Format Numbers in html:text tag?
> >>
> >> You could combine with struts-el
> >>
> >> 
> >>  >> var="formattedNumber" />
> >>
> >> 
> >> 
> >>
> >> Peter Neu wrote:
> >>
> >>> That looks cool but I need to embed the value in the html:text field
> so
> >>>
> >> the
> >>
> >>> user is able to edit the value. That won't work with 2 tags. :o(
> >>>
> >>>
> >>>
> >>>> -Ursprüngliche Nachricht-
> >>>> Von: Lance [mailto:[EMAIL PROTECTED]
> >>>> Gesendet: Montag, 16. April 2007 10:45
> >>>> An: Struts Users Mailing List
> >>>> Betreff: Re: HowTo Format Numbers in html:text tag?
> >>>>
> >>>> You could use  in JSTL
> >>>> http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf
> >>>> <http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf>
> >>>>
> >>>> Peter Neu wrote:
> >>>>
> >>>>
> >>>>> Hello,
> >>>>>
> >>>>> I need to format a number string in a html:text tag because the
> >>>>>
> >> default
> >>
> >>>>> value must be written with a comma sperator. e.g. 4,5 while the
> value
> >>>>>
> >> of
> >>
> >>>> my
> >>>>
> >>>>
> >>>>> value bean is in fact like this: 4.5.
> >>>>>
> >>>>> Normally I would use bean:message and the format attribute. But this
> >>>>>
> >>>>>
> >>>> does
> >>>>
> >>>>
> >>>>> not work in html:text.
> >>>>>
> >>>>> How can I do this?
> >>>>>
> >>>>>
> >>>>> Cheers,
> >>>>> Pete
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>> 
> -
> >>>>> 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]
> >
> >
> 
> 
> -
> 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]



AW: AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Peter Neu
But that's more code than the brute force approach: 

" />

If have about 20-30 items. :o(




> -Ursprüngliche Nachricht-
> Von: Lance [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 16. April 2007 11:05
> An: Struts Users Mailing List
> Betreff: Re: AW: HowTo Format Numbers in html:text tag?
> 
> You could combine with struts-el
> 
> 
>  var="formattedNumber" />
> 
> 
> 
> 
> Peter Neu wrote:
> > That looks cool but I need to embed the value in the html:text field so
> the
> > user is able to edit the value. That won't work with 2 tags. :o(
> >
> >
> >> -Ursprüngliche Nachricht-
> >> Von: Lance [mailto:[EMAIL PROTECTED]
> >> Gesendet: Montag, 16. April 2007 10:45
> >> An: Struts Users Mailing List
> >> Betreff: Re: HowTo Format Numbers in html:text tag?
> >>
> >> You could use  in JSTL
> >> http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf
> >> <http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf>
> >>
> >> Peter Neu wrote:
> >>
> >>> Hello,
> >>>
> >>> I need to format a number string in a html:text tag because the
> default
> >>> value must be written with a comma sperator. e.g. 4,5 while the value
> of
> >>>
> >> my
> >>
> >>> value bean is in fact like this: 4.5.
> >>>
> >>> Normally I would use bean:message and the format attribute. But this
> >>>
> >> does
> >>
> >>> not work in html:text.
> >>>
> >>> How can I do this?
> >>>
> >>>
> >>> Cheers,
> >>> Pete
> >>>
> >>>
> >>>
> >>>
> >>> -
> >>> 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]



AW: HowTo Format Numbers in html:text tag?

2007-04-16 Thread Peter Neu
That looks cool but I need to embed the value in the html:text field so the
user is able to edit the value. That won't work with 2 tags. :o(

> -Ursprüngliche Nachricht-
> Von: Lance [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 16. April 2007 10:45
> An: Struts Users Mailing List
> Betreff: Re: HowTo Format Numbers in html:text tag?
> 
> You could use  in JSTL
> http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf
> <http://bellsouthpwp.net/b/i/billsigg/jstl-quick-reference.pdf>
> 
> Peter Neu wrote:
> > Hello,
> >
> > I need to format a number string in a html:text tag because the default
> > value must be written with a comma sperator. e.g. 4,5 while the value of
> my
> > value bean is in fact like this: 4.5.
> >
> > Normally I would use bean:message and the format attribute. But this
> does
> > not work in html:text.
> >
> > How can I do this?
> >
> >
> > Cheers,
> > Pete
> >
> >
> >
> >
> > -
> > 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]



HowTo Format Numbers in html:text tag?

2007-04-16 Thread Peter Neu
Hello,

I need to format a number string in a html:text tag because the default
value must be written with a comma sperator. e.g. 4,5 while the value of my
value bean is in fact like this: 4.5.

Normally I would use bean:message and the format attribute. But this does
not work in html:text. 

How can I do this?


Cheers,
Pete 




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



AW: Howto Construct Editable Tree

2007-03-19 Thread Peter Neu
Sorry, I overlooked it. Thanks for the hint. 

-Pete

> -Ursprüngliche Nachricht-
> Von: Angelo zerr [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 19. März 2007 15:39
> An: Struts Users Mailing List
> Betreff: Re: Howto Construct Editable Tree
> 
> Hi pete,
> have you read
> http://jscontrolstags.sourceforge.net/controls/treeview/treeview.htmldocum
> entation
> ?
> 
> Regards Angelo
> 
> 
> 2007/3/19, Peter Neu <[EMAIL PROTECTED]>:
> >
> > Hi,
> >
> > I just deployed the jscontrolstags war. This looks good to me.
> >
> > Is there some more documentation on how set it up in your own app? :o)
> >
> > Cheers,
> > Pete
> >
> > > -Ursprüngliche Nachricht-
> > > Von: Angelo zerr [mailto:[EMAIL PROTECTED]
> > > Gesendet: Montag, 19. März 2007 15:19
> > > An: Struts Users Mailing List
> > > Betreff: Re: Howto Construct Editable Tree
> > >
> > > Hi,
> > > you can see http://jscontrolstags.sourceforge.net/ too. There is
> > treeview
> > > tag based on tafeltree (javascript treeview), prototype and
> > scriptaculous.
> > > You have demo at
> > > http://jscontrolstags.sourceforge.net/demo/treeview/treeview.html
> (AJAX
> > > doesn't works at sourceforge).
> > > You can drag/drop node, edit node (with or without AJAX), copy/paste
> > node.
> > >
> > > I have create a taglib which generate tafletree. If you have question
> > > about
> > > tafletree (javascript treeview) see at
> > > http://tafel.developpez.com/site/lang/en/index.php
> > >
> > > Regards Angelo
> > >
> > > 2007/3/19, Sarr, Nathan <[EMAIL PROTECTED]>:
> > > >
> > > > Hi Pete,
> > > >
> > > > You might want to try
> > > >
> > > > http://www.jenkov.com/prizetags/introduction.tmpl
> > > >
> > > > They have a tree tag that I have found very useful.
> > > >
> > > > Best,
> > > > -Nate
> > > >
> > > > -Original Message-
> > > > From: Peter Neu [mailto:[EMAIL PROTECTED]
> > > > Sent: Monday, March 19, 2007 9:43 AM
> > > > To: user@struts.apache.org
> > > > Subject: Howto Construct Editable Tree
> > > >
> > > > Hello,
> > > >
> > > > I have a hierarchically organized data object which I need to
> display.
> > > > The
> > > > user may edit some of its attributes. I figured it must be a tree
> like
> > > > structure with editable nodes.
> > > >
> > > > Is there an easy way to do this in Struts 1.x? I'm not very good at
> > > > writing
> > > > JavaScript code. :o(
> > > >
> > > > Has anybody done this before?
> > > >
> > > >
> > > > Cheers,
> > > > Pete
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 
> -
> > > > 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]



AW: Howto Construct Editable Tree

2007-03-19 Thread Peter Neu
Hi,

I just deployed the jscontrolstags war. This looks good to me. 

Is there some more documentation on how set it up in your own app? :o)

Cheers,
Pete

> -Ursprüngliche Nachricht-
> Von: Angelo zerr [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 19. März 2007 15:19
> An: Struts Users Mailing List
> Betreff: Re: Howto Construct Editable Tree
> 
> Hi,
> you can see http://jscontrolstags.sourceforge.net/ too. There is treeview
> tag based on tafeltree (javascript treeview), prototype and scriptaculous.
> You have demo at
> http://jscontrolstags.sourceforge.net/demo/treeview/treeview.html (AJAX
> doesn't works at sourceforge).
> You can drag/drop node, edit node (with or without AJAX), copy/paste node.
> 
> I have create a taglib which generate tafletree. If you have question
> about
> tafletree (javascript treeview) see at
> http://tafel.developpez.com/site/lang/en/index.php
> 
> Regards Angelo
> 
> 2007/3/19, Sarr, Nathan <[EMAIL PROTECTED]>:
> >
> > Hi Pete,
> >
> > You might want to try
> >
> > http://www.jenkov.com/prizetags/introduction.tmpl
> >
> > They have a tree tag that I have found very useful.
> >
> > Best,
> > -Nate
> >
> > -Original Message-
> > From: Peter Neu [mailto:[EMAIL PROTECTED]
> > Sent: Monday, March 19, 2007 9:43 AM
> > To: user@struts.apache.org
> > Subject: Howto Construct Editable Tree
> >
> > Hello,
> >
> > I have a hierarchically organized data object which I need to display.
> > The
> > user may edit some of its attributes. I figured it must be a tree like
> > structure with editable nodes.
> >
> > Is there an easy way to do this in Struts 1.x? I'm not very good at
> > writing
> > JavaScript code. :o(
> >
> > Has anybody done this before?
> >
> >
> > Cheers,
> > Pete
> >
> >
> >
> >
> >
> > -
> > 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]



AW: Howto Construct Editable Tree

2007-03-19 Thread Peter Neu
Hi,

Looks good - can you edit the nodes?

Cheers,
Pete

> -Ursprüngliche Nachricht-
> Von: Sarr, Nathan [mailto:[EMAIL PROTECTED]
> Gesendet: Montag, 19. März 2007 15:09
> An: Struts Users Mailing List
> Betreff: RE: Howto Construct Editable Tree
> 
> Hi Pete,
> 
> You might want to try
> 
> http://www.jenkov.com/prizetags/introduction.tmpl
> 
> They have a tree tag that I have found very useful.
> 
> Best,
> -Nate
> 
> -Original Message-
> From: Peter Neu [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 19, 2007 9:43 AM
> To: user@struts.apache.org
> Subject: Howto Construct Editable Tree
> 
> Hello,
> 
> I have a hierarchically organized data object which I need to display.
> The
> user may edit some of its attributes. I figured it must be a tree like
> structure with editable nodes.
> 
> Is there an easy way to do this in Struts 1.x? I'm not very good at
> writing
> JavaScript code. :o(
> 
> Has anybody done this before?
> 
> 
> Cheers,
> Pete
> 
> 
> 
> 
> 
> -
> 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]



Howto Construct Editable Tree

2007-03-19 Thread Peter Neu
Hello,

I have a hierarchically organized data object which I need to display. The
user may edit some of its attributes. I figured it must be a tree like
structure with editable nodes. 

Is there an easy way to do this in Struts 1.x? I'm not very good at writing
JavaScript code. :o(

Has anybody done this before?


Cheers,
Pete





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



AW: Timed Java Script Request & Struts?

2007-01-22 Thread Peter Neu
Hi Frank,

I just read your post. What would you suggest as a clean solution for the
backward problem? As suggested before the reload does not happen in all
browsers when the user hits the backward button So what to do?

Cheers,
Pete

> -Ursprüngliche Nachricht-
> Von: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 19. Januar 2007 17:50
> An: Struts Users Mailing List
> Cc: 'Struts Users Mailing List'
> Betreff: Re: Timed Java Script Request & Struts?
> 
> I'm not sure what your suggesting is architecturally a good idea, but
> that's for you to decide :)  I'm all about helping you make it happen
> regardless, so...
> 
> In addition to the options others have mentioned, another to consider is
> the AjaxParts Taglib (APT), a part of Java Web Parts (JWP):
> 
> http://javawebparts.sourceforge.net/
> 
> More specifically:
> 
> http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib
> /package-summary.html
> 
> This will allow you to fire an AJAX request on a timer, without having to
> write any Javascript.  It will work with Struts 1.x, 2.x, or any other
> (java-based) framework.
> 
> Frank
> 
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM/Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
> Author of "Practical Ajax Projects With Java Technology"
>  (2006, Apress, ISBN 1-59059-695-1)
> Java Web Parts - http://javawebparts.sourceforge.net
>  Supplying the wheel, so you don't have to reinvent it!
> 
> On Fri, January 19, 2007 9:09 am, Peter Neu wrote:
> > Hello,
> >
> >
> >
> > in one of my endless attempts to fight the evil browser backward button
> > mechanism I was thinging about this:
> >
> >
> >
> > Can I make a periodic java script (ajax)  request to determine when a
> user
> > hit the evil button and tries to work
> >
> > a page that is not current anymore? Say the user hit the back button and
> > now
> > resides on the "wrong" page
> >
> > I make a hidden ajax request and determine he is in the wrong pace. Then
> I
> > give him a notice and send him back
> >
> > to the right place.
> >
> >
> >
> > Is this possible? How would I make the periodic request?
> >
> >
> >
> > Cheers,
> >
> > Pete
> >
> >
> >
> >
> >
> >
> >
> >
> 
> 
> -
> 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]



AW: Timed Java Script Request & Struts?

2007-01-22 Thread Peter Neu
Hm, I think work flow issues are no a minor subject because it can
really corrupt the whole application if something goes wrong.

So another idea: why not enclose the whole html page with a 
div which has a onMouseOver Trigger in it? This way 
the user always triggers the callback handler. And when using
AJAX he will not notice.

Cheers,
Pete

> -Ursprüngliche Nachricht-
> Von: Dave Newton [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 19. Januar 2007 16:18
> An: Struts Users Mailing List
> Betreff: RE: Timed Java Script Request & Struts?
> 
> From: Peter Neu [mailto:[EMAIL PROTECTED]
> > So if there is no guaranteed reload of the page there is no
> > way to implement a timer? Meaning: I would have to test validity
> > prior to each submitted request. :o(
> 
> AFAIK, although if someone has a cross-browser solution I'd certainly
> like to hear about it.
> 
> This is really just a workflow thing, at least if you're just concerned
> about form submissions.
> 
> 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]



AW: Timed Java Script Request & Struts?

2007-01-19 Thread Peter Neu
I'm Using Struts 1.x. 

So if there is no guaranteed reload of the page there is no
way to implement a timer? Meaning: I would have to test validity
prior to each submitted request. :o( 

-Pete


> -Ursprüngliche Nachricht-
> Von: Musachy Barroso [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 19. Januar 2007 15:42
> An: Struts Users Mailing List
> Betreff: Re: Timed Java Script Request & Struts?
> 
> If you are using S2, you can also use Dojo's Timer:
> 
> http://dojotoolkit.org/api/#dojo.lang.timing.Timer
> 
> regards
> musachy
> 
> Peter Neu wrote:
> > Hello,
> >
> >
> >
> > in one of my endless attempts to fight the evil browser backward button
> > mechanism I was thinging about this:
> >
> >
> >
> > Can I make a periodic java script (ajax)  request to determine when a
> user
> > hit the evil button and tries to work
> >
> > a page that is not current anymore? Say the user hit the back button and
> now
> > resides on the "wrong" page
> >
> > I make a hidden ajax request and determine he is in the wrong pace. Then
> I
> > give him a notice and send him back
> >
> > to the right place.
> >
> >
> >
> > Is this possible? How would I make the periodic request?
> >
> >
> >
> > Cheers,
> >
> > Pete
> >
> >
> >
> >
> >
> >
> >
> >
> >
> 
> 
> -
> 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]



Timed Java Script Request & Struts?

2007-01-19 Thread Peter Neu
Hello,

 

in one of my endless attempts to fight the evil browser backward button
mechanism I was thinging about this:

 

Can I make a periodic java script (ajax)  request to determine when a user
hit the evil button and tries to work 

a page that is not current anymore? Say the user hit the back button and now
resides on the "wrong" page

I make a hidden ajax request and determine he is in the wrong pace. Then I
give him a notice and send him back

to the right place. 

 

Is this possible? How would I make the periodic request? 

 

Cheers,

Pete 

 

 

 



AW: AW: AW: [OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Peter Neu
*Argh* sometimes I'm just stupid. Yes, package name was wrong. 

I see this struts logging INFO for example:

01.09.2006 11:31:46 org.apache.struts.util.PropertyMessageResources 
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true





> -Ursprüngliche Nachricht-
> Von: Antonio Petrelli [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 1. September 2006 11:26
> An: Struts Users Mailing List
> Betreff: Re: AW: AW: [OT] Re: How to turn off logging info on struts
> startup?
> 
> Peter Neu ha scritto:
> > Hm, file looks now like this:
> >
> > log4j.rootLogger=ERROR, cons
> > log4j.appender.cons=org.apache.log4j.ConsoleAppender
> > log4j.logger.de.ktbl=DEBUG, cons, myAppender
> > log4j.additivity.de.ktbl=false
> > log4j.appender.myAppender=org.apache.log4j.RollingFileAppender
> > log4j.appender.myAppender.File=c:/nbw06-2.log
> > log4j.appender.myAppender.MaxBackupIndex=5
> > log4j.appender.myAppender.MaxFileSize=1MB
> > log4j.appender.cons.layout=org.apache.log4j.SimpleLayout
> > log4j.appender.myAppender.layout=org.apache.log4j.PatternLayout
> > log4j.appender.myAppender.layout.ConversionPattern= %n %-5p [%d{dd.MM.yy
> > HH:mm:ss}] - %m
> >
> >
> > Struts Initialization log output still appears.
> 
> All logs or only from ERROR level and above?
> 
> > Other output from app is gone. Log file stays empty.
> >
> 
> Sounds strange. Are you sure you are using "de.ktbl" package in your
> application? And do you call the logger this way?
> 
> Logger logger = Logger.getLogger(MyApplicationClass.class);
> 
> 
> 
> -
> 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]



AW: AW: [OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Peter Neu
Hm, file looks now like this:

log4j.rootLogger=ERROR, cons
log4j.appender.cons=org.apache.log4j.ConsoleAppender
log4j.logger.de.ktbl=DEBUG, cons, myAppender
log4j.additivity.de.ktbl=false
log4j.appender.myAppender=org.apache.log4j.RollingFileAppender
log4j.appender.myAppender.File=c:/nbw06-2.log
log4j.appender.myAppender.MaxBackupIndex=5
log4j.appender.myAppender.MaxFileSize=1MB
log4j.appender.cons.layout=org.apache.log4j.SimpleLayout
log4j.appender.myAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.myAppender.layout.ConversionPattern= %n %-5p [%d{dd.MM.yy
HH:mm:ss}] - %m


Struts Initialization log output still appears. Other output from app is
gone. Log file stays empty. 



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



AW: [OT] Re: How to turn off logging info on struts startup?

2006-09-01 Thread Peter Neu
That's it: 

log4j.rootLogger=INFO, cons
log4j.logger.de.ktbl=, myAppender
log4j.appender.cons=org.apache.log4j.ConsoleAppender
log4j.appender.myAppender=org.apache.log4j.RollingFileAppender
log4j.appender.myAppender.File=/usr/local/log/nbw06.log

#create max. 5 BackUp Files
log4j.appender.myAppender.MaxBackupIndex=5

#max File Size 1MB
log4j.appender.myAppender.MaxFileSize=1MB

#the root logger's layout
log4j.appender.cons.layout=org.apache.log4j.SimpleLayout
log4j.appender.myAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.myAppender.layout.ConversionPattern= %n %-5p [%d{dd.MM.yy
HH:mm:ss}] - %m




> -Ursprüngliche Nachricht-
> Von: Antonio Petrelli [mailto:[EMAIL PROTECTED]
> Gesendet: Freitag, 1. September 2006 09:34
> An: Struts Users Mailing List
> Betreff: [OT] Re: How to turn off logging info on struts startup?
> 
> Peter Neu ha scritto:
> > Hello,
> >
> >
> >
> > how can I turn off the logging info struts gives me when it starts up? I
> > mean this stuff:
> > I use log4J as Logging Framework.
> 
> Can you post your log4j.properties?
> 
> -
> 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]



How to turn off logging info on struts startup?

2006-09-01 Thread Peter Neu
Hello,

 

how can I turn off the logging info struts gives me when it starts up? I
mean this stuff:

 

01.09.2006 09:02:44 org.apache.struts.tiles.TilesRequestProcessor
initDefinitionsMapping

INFO: Tiles definition factory found for request processor ''.

01.09.2006 09:02:47 org.apache.struts.util.PropertyMessageResources 

INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings',
returnNull=true

01.09.2006 09:02:47 org.apache.struts.util.PropertyMessageResources 

...

 

 

I use log4J as Logging Framework. 

 

Cheers,

Pete

 

 



How to produce valid HTML output with the html:tags

2006-04-27 Thread Peter Neu
Hello,

in an effort to clean up my site I try to do everything by the W3C standard.

I threw out all design tables and other useless crap but now one problem
remains and it's related to Struts. All  tags generate a tag
which is not closed. Like this: 

 

Because the tag is not closed the w3c validator says it's not valid. What
can I do to make it valid?

Cheers,
Pete





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



Problem with defining dynamical structurs with tiles

2006-03-26 Thread Peter Neu
Hello,

I got this scenario where I have a basic layout (header, nav-bar, body,
info, footer).

What I need to do is insert dynamically a tiles compenent in a jsp document
a few levels lower than the main document. 

The main document is siteLayout.jsp the body is entry.jsp. How can I insert
in entry.jsp. Dynamically tiles tags? 

I need to do something like this: 

entry.jsp--

Case 1 :  
Case 2 :  

-tiles-config.xml








 
  
  
  



Cheers,
Peter



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



Using HTTP Client in Struts to send xml and show rendered document

2006-02-15 Thread Peter . Neu
Hello,

I have this use case that I want to send an xml document from my struts apps
to another application for rendering. This (non-strus)application does then
just send an response with attachment header. I'm just not so sure how to do
this in the request/response model of Struts. Can someone help me out?

cheers,
Pete

-- 
DSL-Aktion wegen großer Nachfrage bis 28.2.2006 verlängert:
GMX DSL-Flatrate 1 Jahr kostenlos* http://www.gmx.net/de/go/dsl

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



Re: Tooltips in Struts

2005-03-01 Thread Peter . Neu
No what I have is an application which is no means
intuitive and I need to make some explanations in order
to make the workflow more understandable. I need the explenations
to be part of elements like lists and buttons.

Regards,

Peter

> Yes, sort of.  If you simply want little yellow popups when your mouse 
> hovers over an image, use the "title" attribute for that image.  You can
> do 
> the same for just about anything else, but it may require being creative 
> with some div tags and such.
> 
> 
> 
> --
> James Mitchell
> Software Engineer / Open Source Evangelist
> EdgeTech, Inc.
> 678.910.8017
> AIM: jmitchtx
> 
> - Original Message - 
> From: <[EMAIL PROTECTED]>
> To: 
> Sent: Tuesday, March 01, 2005 3:09 AM
> Subject: Tooltips in Struts
> 
> 
> > Hello,
> >
> > is there a simple way to include tooltips in a web-application
> > with Struts?
> >
> > Regards,
> >
> > Peter
> >
> > -- 
> > Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
> > GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail
> >
> > -
> > 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]
> 

-- 
DSL Komplett von GMX +++ Supergünstig und stressfrei einsteigen!
AKTION "Kein Einrichtungspreis" nutzen: http://www.gmx.net/de/go/dsl

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



Tooltips in Struts

2005-03-01 Thread Peter . Neu
Hello,

is there a simple way to include tooltips in a web-application 
with Struts?

Regards,

Peter

-- 
Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail

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



Re: not working after Validation errors?

2005-02-21 Thread Peter Neu
Ok overlooked the main problem in that case :(
Jeff Beal schrieb:
I think you misunderstood the original problem.  Here's the sequence of 
events that David *wants* to happen:

 1) ActionForm gets pre-populated with intial values and/or values from 
database
 2) User makes changes to the form that cause validation errors
 3) The user sees their mistakes, hits "reset"
 4) The user sees the original values from step 1

Whether you use request- or session-scoped ActionForms, the step 1 
values are overwritten in step 2.  Session-scoped ActionForms would 
actually be worse, because the step 1 values may be gone for the 
duration of the session.  With request-scoped beans, they can at least 
hit the "back" button and refresh (depending on other details of the 
appplication).

-- Jeff
Peter Neu wrote:
Change scope="request" to scope="session" in order to remember!
Jeff Beal schrieb:
The  tag makes no attempt at "remembering" the original 
values of the ActionForm itself, it just includes an HTML input 
element of type 'reset'.  All this does is to remove user edits from 
the current page.  IOTW, the behavior you are describing is exactly 
as expected.

-- Jeff

-
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: not working after Validation errors?

2005-02-21 Thread Peter Neu
Change scope="request" to scope="session" in order to remember!
Jeff Beal schrieb:
The  tag makes no attempt at "remembering" the original 
values of the ActionForm itself, it just includes an HTML input element 
of type 'reset'.  All this does is to remove user edits from the current 
page.  IOTW, the behavior you are describing is exactly as expected.

-- Jeff
David Kennedy wrote:
Hi folks,
Three days until iteration deadline, and I have a frustrating bug! 
It's almost textbook - I have a simple logon page (username/password) 
which includes a  button which works nicely ... unless I 
press 'submit' with known bad input and come back to the form with 
Validation errors.

In that case the user can clearly see their input is somehow bad, 
thanks to the message, but when I click 'reset' this time, it does 
nothing? The fields continue to show the bad values.

I've only been using Struts a few days, and this feels like a FAQ, but 
I've not found an answer anywhere. I've a notion the values it's 
resetting too are actually the bad ones still held in the dyna bean, 
but I'm not sure how to correct that.

Any ideas? Please? What is the obvious thing I'm missing?
Gory details; tomcat 5.5.4, struts 1.2.4, jdk1.5.0, red hat 7.2:
struts-config.xml:
==
  




  
...

  
  

validation.xml:
===

  

  

  
  

  

  

logon.jsp:
==
  
...
  

  
...
  

-
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: Displaying mulitpage results -> Néstor

2005-02-20 Thread Peter Neu
Hello Néstor,
I'm quite happy using your taglib. I got only one problem:
How can I get an index for the rows which are created.
In Struts you would have something like this:
 
There I could easily tell  which row some data belongs
to by usign the index above. How can I do the same thing
in Datagrid?
cheers,
Peter
Néstor Boscán schrieb:
Hi Antony
1) Expose two more variables to access first page and last page ( like
nextUrlVar). 

You can use the pages variable and get the first and last page elements to
get the first page and the last page. But It may be interesting to put two
aditional variables.
2) A way to specify the maximum number of page links on the page. For
example if a query returns 500 records and the page size is 10 instead of
showing 50 page links, limit them to a certain number.
With the pages variable you can use the data anyway you like. You can show
all of them or limit the number of pages shown to a specific number. 

Any new features that you can come up is always welcomed.
Regards,
Néstor Boscán
-Mensaje original-
De: Antony Joseph [mailto:[EMAIL PROTECTED] 
Enviado el: Sábado, 19 de Febrero de 2005 02:37 p.m.
Para: Struts Users Mailing List
Asunto: RE: Displaying mulitpage results

Hi Nestor,
Thanks for putting together the datagrid library. Please see if you can add
these two features in a future release of the library:
1) Expose two more variables to access first page and last page ( like
nextUrlVar). 
2) A way to specify the maximum number of page links on the page. For
example if a query returns 500 records and the page size is 10 instead of
showing 50 page links, limit them to a certain number.

Currently to provide these features I am using scriplets.  


- Original Message -
From: "Néstor Boscán" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" 
Subject: RE: Displaying mulitpage results
Date: Sat, 19 Feb 2005 13:43:16 -0400

Hi Antony
You can't use JSP tags inside the columns. You could use HTML buttons 
and input fields with JSTL expressions.

Regards,
Néstor Boscán
-Mensaje original-
De: Peter Neu [mailto:[EMAIL PROTECTED] Enviado el: Sábado, 19 de 
Febrero de 2005 01:18 p.m.
Para: Struts Users Mailing List
Asunto: Re: Displaying mulitpage results

Hello Antony,
the datagrid-tags were exactly what I was looking for. The one 
question which I have is how can I use Struts tags inside the columns? 
I really need some buttons and input fields.

cheers,
Peter

Antony Joseph schrieb:
Check out the datagrid library at
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.htm
l
If all you are looking for is pagination, sorting and ordering from 
the
database this is a good fit.  It does not have all the bells and 
whistles displaytag has, but is a simple and clean implementation.

The biggest issue I have with the stock displaytag is, you have to 
stick
the whole query result somewhere (generally in the users session) to 
do pagination. A very bad idea in my opinion.

See https://workeffort.dev.java.net for an application usage example 
of datagrid library. Got tired of spamming you all with my company 
website, so I moved the application to java.net :-)

- Original Message -
From: "Peter Neu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Subject: Displaying mulitpage results
Date: Sat, 19 Feb 2005 11:11:27 +0100

Hello everybody,
in my struts application I used to display a table of query results 
on one page. Now the results are becoming way too much to display 
them on one page. What is the best way to implement a mulitpage 
result view?
The problem is I have multi-step workflow and I don't want to 
confuse the user too much.

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


Antony Joseph
Available for consulting
http://www.logicden.com
-
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]


Antony Joseph
Available for consulting
http://www.logicden.com
--
___
Find what you are looking for with the Lycos Yellow Pages
http://r.lycos.com/r/yp_emailfooter/http://yellowpages.lycos.com/default.asp
?SRC=lycos10
-
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 u

Re: Displaying mulitpage results

2005-02-19 Thread Peter Neu
Hello Antony,
the datagrid-tags were exactly what I was looking for. The one question 
which I have is how can I use Struts tags inside the columns? I really 
need some buttons and input fields.

cheers,
Peter

Antony Joseph schrieb:
Check out the datagrid library at 
http://jakarta.apache.org/taglibs/sandbox/doc/datagrid-doc/intro.html
If all you are looking for is pagination, sorting and ordering from the 
database this is a good fit.  It does not have all the bells and whistles 
displaytag has, but is a simple and clean implementation.
The biggest issue I have with the stock displaytag is, you have to stick the 
whole query result somewhere (generally in the users session) to do pagination. 
A very bad idea in my opinion.
See https://workeffort.dev.java.net for an application usage example of 
datagrid library. Got tired of spamming you all with my company website, so I 
moved the application to java.net :-)
- Original Message -
From: "Peter Neu" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Subject: Displaying mulitpage results
Date: Sat, 19 Feb 2005 11:11:27 +0100

Hello everybody,
in my struts application I used to display a table of query results 
on one page. Now the results are becoming way too much to display 
them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.

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


Antony Joseph
Available for consulting
http://www.logicden.com
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Displaying mulitpage results

2005-02-19 Thread Peter Neu
OK, your are right this is too much work. I tried to use the display tag 
in my application. But there is an error thrown:

Failed to load or instantiate TagExtraInfo class: 
org.displaytag.tags.TableTagExtraInfo

I used Tomcat 5.27 and the 1.2 display-tag. Did you encounter this
problem as well?
Regards,
Peter
Bing Qiao schrieb:
As far as I know, you may do the paging using . But
then you need to build the traversing and sorting functions youself.
Regards
bq
On Sat, 19 Feb 2005 11:51:13 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:
Ok, I will check this out. This a non-struts-project right?
Is there also an option only using struts?
Bing Qiao schrieb:
hi Peter,
Have you tried displaytag before?
On Sat, 19 Feb 2005 11:11:27 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:

Hello everybody,
in my struts application I used to display a table of query results on
one page. Now the results are becoming way too much to display them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.
Best Regards,
Peter
-
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: Displaying mulitpage results

2005-02-19 Thread Peter Neu
Ok, I will check this out. This a non-struts-project right?
Is there also an option only using struts?
Bing Qiao schrieb:
hi Peter,
Have you tried displaytag before?
On Sat, 19 Feb 2005 11:11:27 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:
Hello everybody,
in my struts application I used to display a table of query results on
one page. Now the results are becoming way too much to display them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.
Best Regards,
Peter
-
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]


Displaying mulitpage results

2005-02-19 Thread Peter Neu
Hello everybody,
in my struts application I used to display a table of query results on 
one page. Now the results are becoming way too much to display them on
one page. What is the best way to implement a mulitpage result view?
The problem is I have multi-step workflow and I don't want to confuse
the user too much.

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


Re: Deployment Problem -

2004-12-29 Thread Peter Neu
Thanks. With the "page" parameter it works perfect!
Yes, I will try to upgrade to 1.2 in the near future the
problem is : the software is due in two weeks and I still
got some other problems to worry about.
Anyway, anything special to think of when doing the upgrade?

Jim Barrows schrieb:

-Original Message-----
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29, 2004 10:05 AM
To: Struts Users Mailing List
Subject: Re: Deployment Problem -
Allright. Now I get it!
The only problem is in Struts 1.1 (which I wrote the 
application in) the 
parameter "action" does not exist in the  tag.
What can I do in this case?

Upgrade? :)
Page I think will do roughly the same thing.

Peter
Jim Barrows schrieb:
-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29, 2004 9:43 AM
To: Struts Users Mailing List
Subject: Re: Deployment Problem -
Hello Jim,
well, I got a logical name mapped to it:

   input="/WEB-INF/JSP/struts.jsp"
   name="postHvForm"
   scope="session"
   validate="true"
   type="de.ktbl.servlets.PostHv">
   
  contextRelative="true"/>
  

When I simply invoke it with "postHv.html" ( html refers to .do )
in the browser I get to the right page. The think with 
"/hv/postHv.html" 
was simply just a workaround. I think I don't understand

Problem is your tag won't work.  It's looking for a global 
forward named "/hv/postHv.html" to give a url to, according 
to the documentation.  The forward in the above example is a 
local forward and only visible to the action, not a JSP page.

If you want  to 
redirect to the above action the you need:
  which is exactly 
what I use, only the action is differnt :)


the problem.
Regards,
Peter
Jim Barrows schrieb:

-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29, 2004 6:32 AM
To: Struts Users Mailing List
Subject: Deployment Problem - 

Hello ,
I developed my application in an IDE which simulated
that the application was in the top folder. When I deploy
my application now it is an subfolder.
The problem is: The redirects don't work anymore!
If do it in simple HTML :

I can get an clean forward. The same with redirect tag:


Sounds like what you're doing is not getting the context 
into the URL.  This is supposed to happen automtically.

In the case above, this shouul not work.  The javadocs say 
this about the forward:

forward
protected java.lang.String forward
  The logical forward name from which to retrieve the 
redirect URI.

So you need to have a forward name, not a url here.  The 
url the forward referes to should not have the context in it.

just returns an exception: java.net.MalformedURLException
Do I have to change all the URL's in the application from
 to  or is there an easier
way to do this?
Best Regards,
Peter

-

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]


-
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: Deployment Problem -

2004-12-29 Thread Peter Neu
Allright. Now I get it!
The only problem is in Struts 1.1 (which I wrote the application in) the 
parameter "action" does not exist in the  tag.
What can I do in this case?

Peter
Jim Barrows schrieb:

-Original Message-----
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29, 2004 9:43 AM
To: Struts Users Mailing List
Subject: Re: Deployment Problem -
Hello Jim,
well, I got a logical name mapped to it:
 
input="/WEB-INF/JSP/struts.jsp"
name="postHvForm"
scope="session"
validate="true"
type="de.ktbl.servlets.PostHv">

   contextRelative="true"/>
   

When I simply invoke it with "postHv.html" ( html refers to .do )
in the browser I get to the right page. The think with 
"/hv/postHv.html" 
was simply just a workaround. I think I don't understand

Problem is your tag won't work.  It's looking for a global forward named 
"/hv/postHv.html" to give a url to, according to the documentation.  The 
forward in the above example is a local forward and only visible to the action, not a JSP 
page.
If you want  to redirect to the 
above action the you need:
  which is exactly what I use, only the 
action is differnt :)


the problem.
Regards,
Peter
Jim Barrows schrieb:
-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29, 2004 6:32 AM
To: Struts Users Mailing List
Subject: Deployment Problem - 

Hello ,
I developed my application in an IDE which simulated
that the application was in the top folder. When I deploy
my application now it is an subfolder.
The problem is: The redirects don't work anymore!
If do it in simple HTML :

I can get an clean forward. The same with redirect tag:


Sounds like what you're doing is not getting the context 
into the URL.  This is supposed to happen automtically.
In the case above, this shouul not work.  The javadocs say 
this about the forward:
forward
protected java.lang.String forward
   The logical forward name from which to retrieve the 
redirect URI.
So you need to have a forward name, not a url here.  The 
url the forward referes to should not have the context in it.

just returns an exception: java.net.MalformedURLException
Do I have to change all the URL's in the application from
 to  or is there an easier
way to do this?
Best Regards,
Peter

-
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: Deployment Problem -

2004-12-29 Thread Peter Neu
Hello Jim,
well, I got a logical name mapped to it:
 
input="/WEB-INF/JSP/struts.jsp"
name="postHvForm"
scope="session"
validate="true"
type="de.ktbl.servlets.PostHv">

   contextRelative="true"/>
   

When I simply invoke it with "postHv.html" ( html refers to .do )
in the browser I get to the right page. The think with "/hv/postHv.html" 
was simply just a workaround. I think I don't understand
the problem.

Regards,
Peter
Jim Barrows schrieb:
-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 29, 2004 6:32 AM
To: Struts Users Mailing List
Subject: Deployment Problem - 

Hello ,
I developed my application in an IDE which simulated
that the application was in the top folder. When I deploy
my application now it is an subfolder.
The problem is: The redirects don't work anymore!
If do it in simple HTML :

I can get an clean forward. The same with redirect tag:


Sounds like what you're doing is not getting the context into the URL.  This is 
supposed to happen automtically.
In the case above, this shouul not work.  The javadocs say this about the 
forward:
forward
protected java.lang.String forward
The logical forward name from which to retrieve the redirect URI.
So you need to have a forward name, not a url here.  The url the forward 
referes to should not have the context in it.

just returns an exception: java.net.MalformedURLException
Do I have to change all the URL's in the application from
 to  or is there an easier
way to do this?
Best Regards,
Peter
-
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]


Deployment Problem -

2004-12-29 Thread Peter Neu
Hello ,
I developed my application in an IDE which simulated
that the application was in the top folder. When I deploy
my application now it is an subfolder.
The problem is: The redirects don't work anymore!
If do it in simple HTML :

I can get an clean forward. The same with redirect tag:

just returns an exception: java.net.MalformedURLException
Do I have to change all the URL's in the application from
 to  or is there an easier
way to do this?
Best Regards,
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Unable to delete Object form Session scope - help needed

2004-12-29 Thread Peter Neu
Hello Badu,
you were right. The problem was that the code got way to
complicated. The source of the "funny" behaviour was that
I didn't clear the HashMap on the first page after I forwarded
to the next one. That resulted in a ping-pong game meaning
that everything I deleted on page two wasn't really gone
because there was still a copy in the memory of page one.
Anyway I followed you advice and got rid of the unnecessary
code. Thanks for the help.
Regards,
Peter
Radu Badita schrieb:
Hi Peter,
I think you gave far too less information for someone to really be
able to help you with this problem.
However I do have an observation about your code: I suppose that the
"userSelection" HashMap is first retrieved from session, then modified
(by removing something). You don't need to remove it from session and
the put it back, as the modifications you make on an object you
retrieve from session are "live" on the session object.
I suggest you to try to keep your code simple and check if you are
really removing what you think you are removing from your session
HashMap (and not from somewhere else).
On Mon, 27 Dec 2004 21:50:14 +0100, Peter Neu <[EMAIL PROTECTED]> wrote:
Hello all,
I have a problem with an object(A hash map with wrapper objects) which I
have put in the session scope on Page 1. On page 2 I modify it and
delete some of the wrapper objects from the hash map. Aftwards I put the
modified hash map back into the sessions scope.
Code:
--
HashMap  userSelection.remove(this.wertPosition);
request.getSession().removeAttribute("hashMap2");
request.getSession().setAttribute("hashMap2", userSelection);
--
When I return to page 1 to add new wrapper objects and switch to page 2
the "deleted" objects reapear again altough I explicitly deleted them
form the session scope.
What is wrong there? I simply don't understand it.
The pages are configured to work in the session mode.
Regards ,
Peter
-
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]


Unable to delete Object form Session scope - help needed

2004-12-27 Thread Peter Neu
Hello all,
I have a problem with an object(A hash map with wrapper objects) which I 
have put in the session scope on Page 1. On page 2 I modify it and 
delete some of the wrapper objects from the hash map. Aftwards I put the
modified hash map back into the sessions scope.

Code:
--
HashMap  userSelection.remove(this.wertPosition); 
request.getSession().removeAttribute("hashMap2");
request.getSession().setAttribute("hashMap2", userSelection);
--

When I return to page 1 to add new wrapper objects and switch to page 2 
the "deleted" objects reapear again altough I explicitly deleted them 
form the session scope.

What is wrong there? I simply don't understand it.
The pages are configured to work in the session mode.
Regards ,
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with

2004-12-27 Thread Peter Neu
Hello all,
I got a problem using a HashMap with the .
This code works when I use a LinkedList but I can't get
it to work with a HashMap. Can somebody tell what I have
to do to make it work with a HashMap?




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


Problem with and HashMap

2004-12-23 Thread Peter Neu
Hello all,
I have a problem with the  tag. I need to iterate over a
HashMap which stores wrapper objects(which include the actual data).
A wrapper class has for example one attribute "velocity". As far
as I know the only way to access such a HashMap is this method:
 


 
Is there any way to get the "velocity" attribute out of the wrapper class?
Regards,
Peter
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Handling Transcation Errors

2004-12-19 Thread Peter Neu
Hello everybody,
I was wondering what is the best way to cope with transaction errors in a
Struts application. I use JDBC to connect to the database. When I try to do
an insert-transaction it looks like the code below the message (sample 
form the Sun Tutorial).

My question is: what should I do when an update query fails
and the client has to submit the query again?
I'm using a Servlet Container (Tomcat 5.0.27) and no EJB's.
Best Regards,
Peter
public void ship (String productId, String orderId, int 
quantity) {

  try {
 con.setAutoCommit(false);
 updateOrderItem(productId, orderId);
 updateInventory(productId, quantity);
 con.commit();
  } catch (Exception ex) {
  try {
 con.rollback();
 throw new  Exception("Transaction failed: " +
ex.getMessage());
  } catch (SQLException sqx) {
  throw new  Exception("Rollback failed: " +
 sqx.getMessage());
  }
  }
} 


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


Re: Problem with Tomcat 5.5

2004-11-19 Thread Peter Neu
Hello Bryan,
this is what I did in the first place. Any chance that my changes
didn't have any effect?
Peter.
unless you download the compat package it will not run under jre less than 1.5/5
--b
On Thu, 18 Nov 2004 09:59:01 -0600, Vic <[EMAIL PROTECTED]> wrote:
 

5.5 needs JDK1.5 Afaik.
.V

Peter Neu wrote:
   

Hello everybody,
I just switched to Tomcat 5.5 while still using the old JDK 1.4.2_04 .
The Struts Version
I use is 1.1. When I run my application on the new Tomcat I get this
error :
Error instantiating servlet class org.apache.struts.action.ActionServlet
Can anybody tell what I can change in order to run my application on
Tomcat 5.5 ?
Regards,
Peter
 

-
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: URL Customization

2004-11-19 Thread Peter Neu
No, couldn't find it there. But I suppose if  I put my application.xml
there it will serve the same purpose, right ?

it's in conf/Catalina/localhost/ROOT.xml
but this is probably OT by now :-)
 

-Original Message-----
From: Peter Neu [mailto:[EMAIL PROTECTED] 
Sent: 19 November 2004 09:47
To: Struts Users Mailing List
Subject: Re: URL Customization

Do you know where to find this entry in Tomcat 5.x  ? Could 
not find it 
in server.xml.
Just looked for it but could no find it...

Peter.
Richard schrieb:
   

Thanks to all. I think I can go with just transfering my 
 

webapp to the
   

ROOT folder. I have asked on the Tomcat User Mailing list  just to
confirm it. Thanks again.
On Fri, 19 Nov 2004 09:25:07 -, Simon Matic Langford
<[EMAIL PROTECTED]> wrote:
 

AFAIK the only way is to change you web container config to 
   

ensure your
   

webapp is in the root context, ie in Tomcat 4.1:
in the server.xml

if you point docBase to the directory your war unpacked to, then it
should
work fine. I don't know how it works for other containers...
simon 


  

   

-Original Message-
From: Richard [mailto:[EMAIL PROTECTED]
Sent: Freitag, 19. November 2004 04:42
To: Struts Users Mailing List
Subject: Re: URL Customization
Well for one thing my boss wants it removed.
On Thu, 18 Nov 2004 09:02:40 -0500, Jeff Beal
<[EMAIL PROTECTED]> wrote:


 

Why?
Richard wrote:
  

   

I need to remove the webapp specific part / names on my


 

application.


 

For example
http://mydomain.com/mywebapp/index.jsp
and
http://mydomain.com/mywebapp/serverpages/add-record.rr
I need the user to just see http://mydomain.com/ on 
 

their browser.
   



 

  

   

---
 

--
   



 

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]
   


-
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: URL Customization

2004-11-19 Thread Peter Neu
Do you know where to find this entry in Tomcat 5.x  ? Could not find it 
in server.xml.
Just looked for it but could no find it...

Peter.
Richard schrieb:
Thanks to all. I think I can go with just transfering my webapp to the
ROOT folder. I have asked on the Tomcat User Mailing list  just to
confirm it. Thanks again.
On Fri, 19 Nov 2004 09:25:07 -, Simon Matic Langford
<[EMAIL PROTECTED]> wrote:
 

AFAIK the only way is to change you web container config to ensure your
webapp is in the root context, ie in Tomcat 4.1:
in the server.xml
 
if you point docBase to the directory your war unpacked to, then it
should
work fine. I don't know how it works for other containers...
simon 


   

-Original Message-
From: Richard [mailto:[EMAIL PROTECTED]
Sent: Freitag, 19. November 2004 04:42
To: Struts Users Mailing List
Subject: Re: URL Customization
Well for one thing my boss wants it removed.
On Thu, 18 Nov 2004 09:02:40 -0500, Jeff Beal
<[EMAIL PROTECTED]> wrote:
 

Why?
Richard wrote:
   

I need to remove the webapp specific part / names on my
 

application.
 

For example
http://mydomain.com/mywebapp/index.jsp
and
http://mydomain.com/mywebapp/serverpages/add-record.rr
I need the user to just see http://mydomain.com/ on their browser.
 

   

-
 

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: AW: Problem with Tomcat 5.5

2004-11-18 Thread Peter Neu
Hello Andreas,
Tomcat 5.5 runs with some minor modification also with 1.4 ( I used also 
1.5 on another machine
with the same error ).
Next question how can I find out what classloader I use ? 

Peter
Hi Peter!
In http://apache.mirror.netmonic.com/jakarta/tomcat-5/v5.5.4/README.html the
developers claim that Tomcat 5.5 requires the JRE 5.0. We didn't have the
problem you found when we tested tomcat 5.5. Which classloader are you
using?
Andreas
-Ursprüngliche Nachricht-
Von: Peter Neu [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 18. November 2004 16:52
An: Struts Users Mailing List
Betreff: Problem with Tomcat 5.5
Hello everybody,
I just switched to Tomcat 5.5 while still using the old JDK 1.4.2_04 .
The Struts Version
I use is 1.1. When I run my application on the new Tomcat I get this error :
Error instantiating servlet class org.apache.struts.action.ActionServlet
Can anybody tell what I can change in order to run my application on
Tomcat 5.5 ?
Regards,
Peter
-
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]


Problem with Tomcat 5.5

2004-11-18 Thread Peter Neu
Hello everybody,
I just switched to Tomcat 5.5 while still using the old JDK 1.4.2_04 . 
The Struts Version
I use is 1.1. When I run my application on the new Tomcat I get this error :

Error instantiating servlet class org.apache.struts.action.ActionServlet
Can anybody tell what I can change in order to run my application on 
Tomcat 5.5 ?

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


Re: Hiding Url File Parameters

2004-11-10 Thread Peter Neu
I'm just trying to hide all the technical details from the user. Nobody
should attempt to bookmark a page using the Action.do
even if it's technically not  possible (when using a filter).
Regards,
Peter
Daniel Perry schrieb:
What exactly is it that you're trying to stop people accessing/doing?
Daniel.
 

-Original Message-----
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: 10 November 2004 14:24
To: Struts Users Mailing List
Subject: Re: Hiding Url File Parameters
OK. Then I will have rely on the filter mechanism
defined in the web.xml.
Regards,
Peter
   

In short no.
To execute a struts action, the browser MUST make an HTTP request.  This
request MUST specify an object (in HTTP context) to retrieve.
 

There is no
   

way to fully hide this url.  It can appear to be achieved using
 

a frameset
   

with one frame 100%x100% - only the frameset url is shown in the browser.
You can also not use .do - set the servlet mapping to anything
 

you want - i
   

believe that you can even use .html as the extension.
Whatever you do will only be effective at hiding it from people
 

in general -
   

anyone who knows about HTTP (eg hackers) can manually make the
 

requests and
   

get round this, so really there is no advantage to hiding the url in the
first place.
Daniel.


 

-Original Message-----
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 19:02
To: Struts Users Mailing List
Subject: Re: Hiding Url File Parameters
Thanks that definitely solved the problem.
Is there also a way to get rid of the Action.do  ?
Regards,
Swen

Daniel Perry schrieb:

   

Yep,
Change your code to:
nextPage = mapping.findForward("struts");
and change the forward to:

Note if you dont want a lot of mess in WEB-INF, put them in a
 

folder ie jsps
   

and use /WEB-INF/jsps/struts.jsp
Hope that helps,
Daniel.


 

-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 17:55
To: Struts Users Mailing List
Subject: Re: Hiding Url File Parameters
OK.  I tried this :
nextPage = new ActionForward(mapping.findForward("struts").getPath(),
false);   // set the flag to false
and put the JSP's into the WEB-INF folder.
When I tried to call the ActionClass the following error occured :
java.lang.IllegalArgumentException: Path struts.jsp does not
start with a "/" character
org.apache.struts.action.RequestProcessor.doForward(RequestProcess
or.java:1062)
org.apache.struts.action.RequestProcessor.processForwardConfig(Req
uestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor
.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.j
   

ava:1482)
   

org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Here is the definition of the Action which is explicitly called
and which causes the error:

  
 
Do you have any idea what I did wrong ?
Regards,
Peter


Daniel Perry schrieb:


   

So you have an action, which forwards to a jsp page, and you

 

dont want the

   

users to see the blah.jsp?
Just set redirect to false.  This causes it to forward the request
internally without sending a browser redirect.  The jsp will be

 

processed,

   

and return the result to the browser, but as far as the browser

 

is concerned

   

it will look like its come from the action.
One method of 'hiding' jsps is to put them in the WEB-INF

 

directory, and use

   

forwards (not redirects) as this way the client CANNOT
 

access the jsps
   

directly.
Daniel.



 

-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 16:41
To: Struts Users Mailing List
Subject: Re: Hiding Url File Parameters
Hello Joe,
the value of the redirect flag is true  since I cannot forward when
it is set to false. I thought this was the regular way to forward

   

from one jsp-page to another.


 

Isn't there any other option how I can do the forward and
keep the file-name of the jsp-page out of the URL ?
Best Regards,
Peter

Joe Germuska schrieb:



   

At 4:03 PM +0100 11/9/04, Peter Neu wrote:



 

Hello,
How can I manipulate the URL-Mapping in the
web.xml /struts-config.xml in order to hide
the filenames when I use the ActionForward in an ActionServlet?
Currently the URL displays all the files which I forward to.
Before I posted this message I looked through the mail archieve
but I only found some suggestions using JScript which I would like
to keep out of my application as much as possible.


   

Are you returning an ActionForward which has a 'true' value f

Re: Hiding Url File Parameters

2004-11-10 Thread Peter Neu
OK. Then I will have rely on the filter mechanism
defined in the web.xml.
Regards,
Peter
In short no.
To execute a struts action, the browser MUST make an HTTP request.  This
request MUST specify an object (in HTTP context) to retrieve.  There is no
way to fully hide this url.  It can appear to be achieved using a frameset
with one frame 100%x100% - only the frameset url is shown in the browser.
You can also not use .do - set the servlet mapping to anything you want - i
believe that you can even use .html as the extension.
Whatever you do will only be effective at hiding it from people in general -
anyone who knows about HTTP (eg hackers) can manually make the requests and
get round this, so really there is no advantage to hiding the url in the
first place.
Daniel.

 

-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 19:02
To: Struts Users Mailing List
Subject: Re: Hiding Url File Parameters
Thanks that definitely solved the problem.
Is there also a way to get rid of the Action.do  ?
Regards,
Swen

Daniel Perry schrieb:
   

Yep,
Change your code to:
nextPage = mapping.findForward("struts");
and change the forward to:

Note if you dont want a lot of mess in WEB-INF, put them in a
 

folder ie jsps
   

and use /WEB-INF/jsps/struts.jsp
Hope that helps,
Daniel.

 

-Original Message-----
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 17:55
To: Struts Users Mailing List
Subject: Re: Hiding Url File Parameters
OK.  I tried this :
nextPage = new ActionForward(mapping.findForward("struts").getPath(),
false);   // set the flag to false
and put the JSP's into the WEB-INF folder.
When I tried to call the ActionClass the following error occured :
java.lang.IllegalArgumentException: Path struts.jsp does not
start with a "/" character
org.apache.struts.action.RequestProcessor.doForward(RequestProcess
or.java:1062)
org.apache.struts.action.RequestProcessor.processForwardConfig(Req
uestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor
.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Here is the definition of the Action which is explicitly called
and which causes the error:

   
  
Do you have any idea what I did wrong ?
Regards,
Peter


Daniel Perry schrieb:

   

So you have an action, which forwards to a jsp page, and you
 

dont want the
   

users to see the blah.jsp?
Just set redirect to false.  This causes it to forward the request
internally without sending a browser redirect.  The jsp will be
 

processed,
   

and return the result to the browser, but as far as the browser
 

is concerned
   

it will look like its come from the action.
One method of 'hiding' jsps is to put them in the WEB-INF
 

directory, and use
   

forwards (not redirects) as this way the client CANNOT access the jsps
directly.
Daniel.


     

-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 16:41
To: Struts Users Mailing List
Subject: Re: Hiding Url File Parameters
Hello Joe,
the value of the redirect flag is true  since I cannot forward when
it is set to false. I thought this was the regular way to forward
   

from one jsp-page to another.

 

Isn't there any other option how I can do the forward and
keep the file-name of the jsp-page out of the URL ?
Best Regards,
Peter

Joe Germuska schrieb:


   

At 4:03 PM +0100 11/9/04, Peter Neu wrote:


 

Hello,
How can I manipulate the URL-Mapping in the
web.xml /struts-config.xml in order to hide
the filenames when I use the ActionForward in an ActionServlet?
Currently the URL displays all the files which I forward to.
Before I posted this message I looked through the mail archieve
but I only found some suggestions using JScript which I would like
to keep out of my application as much as possible.

   

Are you returning an ActionForward which has a 'true' value for its
redirect property?  In this case, the answer is "no."
Otherwise, you could have a Struts action read the file from the
filesystem and write the bytes to the response.  This would hide the
true file name.
Joe


 

-
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-mai

Re: Hiding Url File Parameters

2004-11-09 Thread Peter Neu
Thanks that definitely solved the problem.
Is there also a way to get rid of the Action.do  ?
Regards,
Swen

Daniel Perry schrieb:
Yep,
Change your code to:
nextPage = mapping.findForward("struts");
and change the forward to:

Note if you dont want a lot of mess in WEB-INF, put them in a folder ie jsps
and use /WEB-INF/jsps/struts.jsp
Hope that helps,
Daniel.
 

-Original Message-----
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 17:55
To: Struts Users Mailing List
Subject: Re: Hiding Url File Parameters
OK.  I tried this :
nextPage = new ActionForward(mapping.findForward("struts").getPath(),
false);   // set the flag to false
and put the JSP's into the WEB-INF folder.
When I tried to call the ActionClass the following error occured :
java.lang.IllegalArgumentException: Path struts.jsp does not
start with a "/" character
org.apache.struts.action.RequestProcessor.doForward(RequestProcess
or.java:1062)
org.apache.struts.action.RequestProcessor.processForwardConfig(Req
uestProcessor.java:455)
org.apache.struts.action.RequestProcessor.process(RequestProcessor
.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Here is the definition of the Action which is explicitly called
and which causes the error:


   
Do you have any idea what I did wrong ?
Regards,
Peter


Daniel Perry schrieb:
   

So you have an action, which forwards to a jsp page, and you
 

dont want the
   

users to see the blah.jsp?
Just set redirect to false.  This causes it to forward the request
internally without sending a browser redirect.  The jsp will be
 

processed,
   

and return the result to the browser, but as far as the browser
 

is concerned
   

it will look like its come from the action.
One method of 'hiding' jsps is to put them in the WEB-INF
 

directory, and use
   

forwards (not redirects) as this way the client CANNOT access the jsps
directly.
Daniel.

     

-Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 16:41
To: Struts Users Mailing List
Subject: Re: Hiding Url File Parameters
Hello Joe,
the value of the redirect flag is true  since I cannot forward when
it is set to false. I thought this was the regular way to forward
   

from one jsp-page to another.
 

Isn't there any other option how I can do the forward and
keep the file-name of the jsp-page out of the URL ?
Best Regards,
Peter

Joe Germuska schrieb:

   

At 4:03 PM +0100 11/9/04, Peter Neu wrote:

 

Hello,
How can I manipulate the URL-Mapping in the
web.xml /struts-config.xml in order to hide
the filenames when I use the ActionForward in an ActionServlet?
Currently the URL displays all the files which I forward to.
Before I posted this message I looked through the mail archieve
but I only found some suggestions using JScript which I would like
to keep out of my application as much as possible.
   

Are you returning an ActionForward which has a 'true' value for its
redirect property?  In this case, the answer is "no."
Otherwise, you could have a Struts action read the file from the
filesystem and write the bytes to the response.  This would hide the
true file name.
Joe

 

-
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: Hiding Url File Parameters

2004-11-09 Thread Peter Neu
OK.  I tried this :
nextPage = new ActionForward(mapping.findForward("struts").getPath(), 
false);   // set the flag to false

and put the JSP's into the WEB-INF folder.
When I tried to call the ActionClass the following error occured :
java.lang.IllegalArgumentException: Path struts.jsp does not start with a "/" 
character

org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1062)

org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)

org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Here is the definition of the Action which is explicitly called and which causes the error: 



   
Do you have any idea what I did wrong ?
Regards, 

Peter


Daniel Perry schrieb:
So you have an action, which forwards to a jsp page, and you dont want the
users to see the blah.jsp?
Just set redirect to false.  This causes it to forward the request
internally without sending a browser redirect.  The jsp will be processed,
and return the result to the browser, but as far as the browser is concerned
it will look like its come from the action.
One method of 'hiding' jsps is to put them in the WEB-INF directory, and use
forwards (not redirects) as this way the client CANNOT access the jsps
directly.
Daniel.
 

-----Original Message-
From: Peter Neu [mailto:[EMAIL PROTECTED]
Sent: 09 November 2004 16:41
To: Struts Users Mailing List
Subject: Re: Hiding Url File Parameters
Hello Joe,
the value of the redirect flag is true  since I cannot forward when
it is set to false. I thought this was the regular way to forward
from one jsp-page to another.
Isn't there any other option how I can do the forward and
keep the file-name of the jsp-page out of the URL ?
Best Regards,
Peter

Joe Germuska schrieb:
   

At 4:03 PM +0100 11/9/04, Peter Neu wrote:
 

Hello,
How can I manipulate the URL-Mapping in the
web.xml /struts-config.xml in order to hide
the filenames when I use the ActionForward in an ActionServlet?
Currently the URL displays all the files which I forward to.
Before I posted this message I looked through the mail archieve
but I only found some suggestions using JScript which I would like
to keep out of my application as much as possible.
   

Are you returning an ActionForward which has a 'true' value for its
redirect property?  In this case, the answer is "no."
Otherwise, you could have a Struts action read the file from the
filesystem and write the bytes to the response.  This would hide the
true file name.
Joe
 

-
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: Hiding Url File Parameters

2004-11-09 Thread Peter Neu
Hello Joe,
the value of the redirect flag is true  since I cannot forward when
it is set to false. I thought this was the regular way to forward
from one jsp-page to another.
Isn't there any other option how I can do the forward and
keep the file-name of the jsp-page out of the URL ?
Best Regards,
Peter

Joe Germuska schrieb:
At 4:03 PM +0100 11/9/04, Peter Neu wrote:
Hello,
How can I manipulate the URL-Mapping in the
web.xml /struts-config.xml in order to hide
the filenames when I use the ActionForward in an ActionServlet?
Currently the URL displays all the files which I forward to.
Before I posted this message I looked through the mail archieve
but I only found some suggestions using JScript which I would like
to keep out of my application as much as possible.

Are you returning an ActionForward which has a 'true' value for its 
redirect property?  In this case, the answer is "no."

Otherwise, you could have a Struts action read the file from the 
filesystem and write the bytes to the response.  This would hide the 
true file name.

Joe

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


Hiding Url File Parameters

2004-11-09 Thread Peter Neu
Hello,
How can I manipulate the URL-Mapping in the
web.xml /struts-config.xml in order to hide
the filenames when I use the ActionForward in an ActionServlet?
Currently the URL displays all the files which I forward to.
Before I posted this message I looked through the mail archieve
but I only found some suggestions using JScript which I would like
to keep out of my application as much as possible.
A short code snippet would be really helpful.
Best Regards,
Peter





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