RE: html input elements don't work

2002-05-02 Thread Shirin Fathima

No, I'm not getting any errors on the console.

> --
> From: Vikram Goyal01
> Reply To: Struts Users Mailing List
> Sent: Friday, May 03, 2002 12:42 PM
> To:   Struts Users Mailing List
> Subject:  RE: html input elements don't work
> 
> You are not getting any errors on the console?
> 
> V
> 
> -Original Message-
> From: Shirin Fathima [mailto:[EMAIL PROTECTED]]
> Sent: Friday, May 03, 2002 12:42 PM
> To: Struts Users Mailing List
> Subject: RE: html input elements don't work
> 
> 
> I'm using the struts framework...and the View is a simple jsp page.
> What I found is that the tags aren't being recognised. 
> 
> > --
> > From:   [EMAIL PROTECTED]
> > Reply To:   Struts Users Mailing List
> > Sent:   Friday, May 03, 2002 1:36 PM
> > To: Struts Users Mailing List
> > Subject:Re:html input elements don't work
> > 
> > Are you just working with struts, or Jsp??
> > 
> > Shirin Fathima  (3/05/2002  8:05):
> > >Hi,
> > >
> > >The following simple code isn't working,
> > >
> > >  
> > >Input: 
> > >
> > >   
> > >
> > >   In the sense that, the text box and the button don't appear when I
> > call
> > >the Jsp page. Can somebody tell me what may be the problem? Guys, I'm a
> > >novice with struts.
> > >
> > >Thanks,
> > > Shirin
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > 
> > >For additional commands, e-mail:
> > 
> > >
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> > 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html input elements don't work

2002-05-02 Thread Vikram Goyal01

You are not getting any errors on the console?

V

-Original Message-
From: Shirin Fathima [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 12:42 PM
To: Struts Users Mailing List
Subject: RE: html input elements don't work


I'm using the struts framework...and the View is a simple jsp page.
What I found is that the tags aren't being recognised. 

> --
> From: [EMAIL PROTECTED]
> Reply To: Struts Users Mailing List
> Sent: Friday, May 03, 2002 1:36 PM
> To:   Struts Users Mailing List
> Subject:  Re:html input elements don't work
> 
> Are you just working with struts, or Jsp??
> 
> Shirin Fathima  (3/05/2002  8:05):
> >Hi,
> >
> >The following simple code isn't working,
> >
> >  
> >Input: 
> >
> >   
> >
> >   In the sense that, the text box and the button don't appear when I
> call
> >the Jsp page. Can somebody tell me what may be the problem? Guys, I'm a
> >novice with struts.
> >
> >Thanks,
> > Shirin
> >
> >
> >--
> >To unsubscribe, e-mail:
> 
> >For additional commands, e-mail:
> 
> >
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: html input elements don't work

2002-05-02 Thread Shirin Fathima

I'm using the struts framework...and the View is a simple jsp page.
What I found is that the tags aren't being recognised. 

> --
> From: [EMAIL PROTECTED]
> Reply To: Struts Users Mailing List
> Sent: Friday, May 03, 2002 1:36 PM
> To:   Struts Users Mailing List
> Subject:  Re:html input elements don't work
> 
> Are you just working with struts, or Jsp??
> 
> Shirin Fathima  (3/05/2002  8:05):
> >Hi,
> >
> >The following simple code isn't working,
> >
> >  
> >Input: 
> >
> >   
> >
> >   In the sense that, the text box and the button don't appear when I
> call
> >the Jsp page. Can somebody tell me what may be the problem? Guys, I'm a
> >novice with struts.
> >
> >Thanks,
> > Shirin
> >
> >
> >--
> >To unsubscribe, e-mail:
> 
> >For additional commands, e-mail:
> 
> >
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: html input elements don't work

2002-05-02 Thread Arron Bates

You'll need to specify the bean name which is defined in the 
struts-config.xml file for your "createText" action.

Example...


You may also want to put in the ".do" on the end of your action name.

Example...


...just a little thing.


Arron.


Shirin Fathima wrote:

>Hi,
>
>The following simple code isn't working,
>
>  
>Input: 
>
>   
>
>   In the sense that, the text box and the button don't appear when I call
>the Jsp page. Can somebody tell me what may be the problem? Guys, I'm a
>novice with struts.
>
>Thanks,
> Shirin
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re:html input elements don't work

2002-05-02 Thread waldemar . cleenewerck

Are you just working with struts, or Jsp??

Shirin Fathima  (3/05/2002  8:05):
>Hi,
>
>The following simple code isn't working,
>
>  
>Input: 
>
>   
>
>   In the sense that, the text box and the button don't appear when I call
>the Jsp page. Can somebody tell me what may be the problem? Guys, I'm a
>novice with struts.
>
>Thanks,
> Shirin
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




html input elements don't work

2002-05-02 Thread Shirin Fathima

Hi,

The following simple code isn't working,

  
Input: 

   

   In the sense that, the text box and the button don't appear when I call
the Jsp page. Can somebody tell me what may be the problem? Guys, I'm a
novice with struts.

Thanks,
 Shirin


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Changing Content Type

2002-05-02 Thread Jesse Alexander (KADA 12)

Sorry,

no way to do what you want. That is the only way to work with html...

Alexander

-Original Message-
From: Graham Lounder [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 30. April 2002 17:18
To: [EMAIL PROTECTED]
Subject: OT: Changing Content Type


Sorry, this is a little off topic.  Is there any way to change your content type mid 
way through a reponse?  What I want to do is generate a dynamic html page, but I want 
to change content type and put a dynamically generated jpeg image in the page.  Is 
this possible?  

Right now I'm having to make an image tag which points to a seperate servlet which 
generates the image.  I'm trying to make a tag out of my code and it would help if I 
could put the html and image generation code together in the same request.  Any ideas 
if this is even possible?

Graham

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




DynaActionForm reset vs ActionForm reset

2002-05-02 Thread Paulsen, Jay

Hello,

I just started playing with DynaActionForms and have noticed that the reset
method resets all properties to their initial values.  This is different
from the ActionForm where the reset method did nothing.  In the past I've
usually redirected to an action to redisplay a form that was submitted but
was found to be in error.  Using a subclass of ActionForm without the reset
method overridden allows for the form contents to be displayed across a
sendRedirect.  When I substitute the ActionForm subclass with a
DynaActionForm, the contents are reset and there are no request parameters
to repopulate it since a sendRedirect was used.  This results in an empty
form for the user.

So I figure I have two options -
1) don't do a sendRedirect - do a forward instead
2) Subclass DynaActionForm and override reset to do nothing (hack)

My questions ...

Was I doing something bad (or ignorant) by not overriding the reset method
on my old ActionForm sub classes?

How do you handle errors - do you just forward to the page to redisplay the
form?  I was doing a sendRedirect to avoid the reload/refresh problem.
What's the best way to avoid the refresh/reload problem?   

If I choose option 2 above - am I asking for trouble?


Any comments are greatly appreciated.

-Jay








--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: You suck! No, You suck!

2002-05-02 Thread James Mitchell

I'll drink to that.



> -Original Message-
> From: Wes Bramhall [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 12:28 PM
> To: 'Struts Users Mailing List'
> Subject: RE: You suck! No, You suck!
> 
> 
> I almost didn't come to work today because it seemed so much like 
> yesterday
> was tomorrow.
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, May 02, 2002 9:57 AM
> To: Struts Users Mailing List
> Subject: Re: You suck! No, You suck!
> 
> 
> 
> 
> On Thu, 2 May 2002, Arron Bates wrote:
> 
> > Date: Thu, 02 May 2002 17:01:25 +1000
> > From: Arron Bates <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > Subject: Re: You suck! No, You suck!
> >
> > The funniest thing about this discussion is that tomorrow it will all 
> > amount to a pointless waste of energy.
> 
> It's going to be worse than that -- tomorrow is Friday (right Mark? :-).
> 
> > Arron.
> 
> Craig
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: You suck! No, You suck!

2002-05-02 Thread Wes Bramhall

I almost didn't come to work today because it seemed so much like yesterday
was tomorrow.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 02, 2002 9:57 AM
To: Struts Users Mailing List
Subject: Re: You suck! No, You suck!




On Thu, 2 May 2002, Arron Bates wrote:

> Date: Thu, 02 May 2002 17:01:25 +1000
> From: Arron Bates <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: You suck! No, You suck!
>
> The funniest thing about this discussion is that tomorrow it will all 
> amount to a pointless waste of energy.

It's going to be worse than that -- tomorrow is Friday (right Mark? :-).

> Arron.

Craig


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Confusion with Filter: please help

2002-05-02 Thread Parmar, Dipakkumar


--- WEB.xml

  
  
CheckSignOnFilter
com.cgmp.ccm.web.logon.CheckSignOnFilter


   signon_url
   logon.do


   signon_forward
   index.jsp

  
  
CheckSignOnFilter
*.do
  

-- Filter Class
public class CheckSignOnFilter implements Filter {

private FilterConfig config = null;
private String signOnURL = null;
private String signOnForward = null;
private static int count=0;


public void init(FilterConfig filterConfig) throws ServletException {
this.config = filterConfig;
signOnURL = config.getInitParameter(Constants.SIGNON_URL);
signOnForward = config.getInitParameter(Constants.SIGNON_FORWARD);
}

public FilterConfig getFilterConfig() {
return config;
}


public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain)
throws IOException, ServletException {

HttpServletRequest httpRequest = (HttpServletRequest) request;
String requestURI = httpRequest.getRequestURI();

// get everything after context root
int firstSlash = requestURI.indexOf("/", 1);
String targetURL = null;
if ( firstSlash != -1 )
targetURL = requestURI.substring(firstSlash+1,
requestURI.length());


// check if targetURL is logon URL, If yes just proceed
if ( targetURL != null && (targetURL.startsWith(signOnForward) ||
targetURL.startsWith(signOnURL))) {
chain.doFilter(request, response);
return;
}

// check if the user is signed on
boolean signedOn = false;
String signedOnString =
(String)httpRequest.getSession().getAttribute(Constants.SIGNED_ON_USER_SESSI
ON_KEY);
if ( signedOnString != null && signedOnString.equals("true")) {
chain.doFilter(request, response);
return;
}

// forward to logon page
if ( signOnForward != null ) {
logger.debug("(new)CheckSignOnFilter:Forward to
page(signOnForward):" + signOnForward);
config.getServletContext().getRequestDispatcher("/" +
signOnForward).forward(request, response);

return;
} else {
chain.doFilter(request, response);
}
}

public void destroy() {
config = null;
}
}

Deepak

-Original Message-
From: vivek shrivastava [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 8:57 PM
To: [EMAIL PROTECTED]
Subject: Confusion with Filter: please help


hi,

I am trying to write my first web application. I am writing a filter to make
sure that a valid user is logged in before accessing a page.

I have a welcome page in application’s root directory. All other pages are
under “web-inf” directory.  From my welcome page user can login using
“login.jsp” page or can create a valid user account using “create_user,jsp”
page.

Since I am using filter to make sure that a valid user is logged in before
accessing a page.

How do I make sure that my filter does not try to catch my “login.jsp” or
“create_user.jsp” page? Since user is on right track. He/she is either
trying access login page or trying to create one account so there is no need
to redirect them to login page.

Do I have to “hard code" the name of these two pages to make sure that
filter does not try to redirect my request to login page again?

Is there any other way to solve this situation? Like url pattern matching in
struts-config.xml or web.xml file or something like that.

This all may sound stupid but being new to java and struts I am confuse.
Please do help me.

Thanks



_
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Confusion with Filter: please help

2002-05-02 Thread Wittke Marcus-r32643

Rather than hardcoding the URLs in your filter class, you can define them as
filter parameters in the web.xml filter configuration:

Example:

   
 loginFilter
 loginFilter
 your.filter.package.LoginFilter
 
   loginPage
   /yourwebapp/login.jsp
 
 
   loginAction
   /yourwebapp/login.do
 
   

You can then read them in the filter's init method:

public void init(FilterConfig config) {
this.loginPageUrl   = config.getInitParameter("loginPage");
this.loginActionUrl = config.getInitParameter("loginAction");
}

Regards,
Marcus

-Original Message-
From: vivek shrivastava [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 7:57 PM
To: [EMAIL PROTECTED]
Subject: Confusion with Filter: please help


hi,

I am trying to write my first web application. I am writing a filter to make

sure that a valid user is logged in before accessing a page.

I have a welcome page in application's root directory. All other pages are 
under "web-inf" directory.  From my welcome page user can login using 
"login.jsp" page or can create a valid user account using "create_user,jsp" 
page.

Since I am using filter to make sure that a valid user is logged in before 
accessing a page.

How do I make sure that my filter does not try to catch my "login.jsp" or 
"create_user.jsp" page? Since user is on right track. He/she is either 
trying access login page or trying to create one account so there is no need

to redirect them to login page.

Do I have to "hard code" the name of these two pages to make sure that 
filter does not try to redirect my request to login page again?

Is there any other way to solve this situation? Like url pattern matching in

struts-config.xml or web.xml file or something like that.

This all may sound stupid but being new to java and struts I am confuse. 
Please do help me.

Thanks



_
Join the world's largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Confusion with Filter: please help

2002-05-02 Thread vivek shrivastava

hi,

I am trying to write my first web application. I am writing a filter to make 
sure that a valid user is logged in before accessing a page.

I have a welcome page in application’s root directory. All other pages are 
under “web-inf” directory.  From my welcome page user can login using 
“login.jsp” page or can create a valid user account using “create_user,jsp” 
page.

Since I am using filter to make sure that a valid user is logged in before 
accessing a page.

How do I make sure that my filter does not try to catch my “login.jsp” or 
“create_user.jsp” page? Since user is on right track. He/she is either 
trying access login page or trying to create one account so there is no need 
to redirect them to login page.

Do I have to “hard code" the name of these two pages to make sure that 
filter does not try to redirect my request to login page again?

Is there any other way to solve this situation? Like url pattern matching in 
struts-config.xml or web.xml file or something like that.

This all may sound stupid but being new to java and struts I am confuse. 
Please do help me.

Thanks



_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: JSR 52 and standard taglibs

2002-05-02 Thread Craig R. McClanahan



On Thu, 2 May 2002 [EMAIL PROTECTED] wrote:

> Date: Thu, 2 May 2002 18:46:10 -0400
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: JSR 52 and standard taglibs
>
>
>
>
> As some of you may be following, the jstl spec (jsr052) went to a proposed
> final draft status a couple weeks ago.
>
> Anyone have thoughts on how long it may be until final ballot? Then
> after that, how long before the final spec is published?
>

The final version of the spec (along with the reference implementation and
the TCK) was just submitted -- it should show up on the May 7 ballot to
the JCP executive committee.  The voting period is two weeks, and (if
approved, which seems very likely) the final version will be available
publicly immediately thereafter.

If you're just itching to know what the final version of the tags will
look like, keep your eye on the most recent bugfixes in the "standard" tag
library of the jakarta-taglibs project - this source code is the basis for
the RI.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




JSR 52 and standard taglibs

2002-05-02 Thread Kevin . Bedell




As some of you may be following, the jstl spec (jsr052) went to a proposed
final draft status a couple weeks ago.

Anyone have thoughts on how long it may be until final ballot? Then after that, how 
long before the final spec is published?


---
This e-mail message (including attachments, if any) is intended for the use
of the individual or entity to which it is addressed and may contain
information that is privileged, proprietary , confidential and exempt from
disclosure.  If you are not the intended recipient, you are notified that
any dissemination, distribution or copying of this communication is
strictly prohibited.  If you have received this communication in error,
please notify the sender and erase this e-mail message immediately.
---


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XMLC Article on the Serverside

2002-05-02 Thread Dan Cancro

Could you elaborate on the particular ways "power and flexibility of
standard implementation approaches" must be sacrificed by using something
other than jsp's.  I think you're talking about being able to enter
scriptlets in emergencies.  Could you describe the particular cases when you
could not do something in an alternative presentation language that you can
with a jsp scriptlet?


Thanks,
Dan

> -Original Message-
> From: Robert Williams [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 2:17 PM
> To: Struts Users Mailing List
> Subject: Re: XMLC Article on the Serverside
> 
> 
> I have been looking at a lot different approaches for 
> developing web pages
> (and/or other formats).  The one thing the "anti-JSP" folks 
> seem to have in
> common is that they find it too difficult for non-technical 
> designers to
> deal with the tag format, and what appears to be complex 
> concepts like Java
> Beans or data objects.  The various alternatives are always 
> trying to make
> the front end development easier.  In some respects I agree, but that
> doesn't mean you should give up the power and flexibility of standard
> implementation approaches.  There is a lot of power with JSP 
> for those who
> want to use it and I don't want to give up this flexibility 
> to use it when I
> need to.
> 
> Taglibs help some, along with frameworks such as Struts.  
> However, there are
> few web page development environments (I have only found one 
> good one -
> Dreamweaver UltraDev) that does a reasonable job of assisting with the
> development of web pages using custom Taglibs.  This is 
> possible with the
> extension provided in the common/taglibs section of this web site.
> 
> I feel one area this group should be working on is the 
> development of tools
> to ease the front end development.  I like the tiles concept 
> and will use
> it, but does this make the front end development too 
> abstract?  The Struts
> folks have done a good job of making the server side 
> development environment
> well organized.  Any thoughts on working more on the front 
> end so we can get
> designers to use this technology and so we can easily support 
> XML as easily
> as we support HTML?  The basics are in place as I have not 
> seen anything is
> other environments that is not here and I think the Struts 
> environment is
> better on the server side than most.
> 
> Thoughts?
> 
> bob
> - Original Message -
> From: "Dan Cancro" <[EMAIL PROTECTED]>
> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
> Sent: Thursday, May 02, 2002 3:36 PM
> Subject: RE: XMLC Article on the Serverside
> 
> 
> > Thanks,
> >
> > So to wrap up this thread, I think this summarizes the 
> article's points:
> >
> > XMLC
> > -generates a file from a source file
> > -requires engineer and designer to use a common set of id names
> >
> >
> >
> > > -Original Message-
> > > From: Pedone, Tim [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 02, 2002 12:47 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: XMLC Article on the Serverside
> > >
> > >
> > > Here's an article comparing Velocity and XMLC.  It points out
> > > some of the
> > > short comings of XMLC so it is somewhat relavent.  Of course
> > > you can use
> > > Velocity with Struts too.
> > >
> > > http://jakarta.apache.org/velocity/casestudy2.html
> > >
> > > -Original Message-
> > > From: Dan Cancro [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, May 02, 2002 11:36 AM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: FW: XMLC Article on the Serverside
> > >
> > >
> > > I thought the Struts users on this list might be interested
> > > in this article
> > > about XMLC vs. JSP.
> > >
> > > It's pretty pro-XMLC.  I couldn't find any contrary opinions
> > > in the Struts
> > > archive.  Does anyone know some disadvantages of XMLC 
> compared to JSP?
> > >
> > > Thanks,
> > > Dan
> > >
> > >
> > >
> > >
> > > http://www.theserverside.com/resources/article.jsp?l=XMLCvsJSP
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> >
> > --
> > To unsubscribe, e-mail:
> 
> > For additional commands, e-mail:
> 
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: formatting test in prepopulated form

2002-05-02 Thread Bill Page

what about 2 getters and setters.  one the deals in pig latin and one that
deals in english that has to translate on a get (maybe you don't need the
set).

bp

> -Original Message-
> From: Becky Moyer [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 5:20 PM
> To: [EMAIL PROTECTED]
> Subject: formatting test in prepopulated form
> 
> 
> Hi all...
>Can't find anything about this anywhere, thought i'd ask...
> 
>   I am storing a piece of data in a special format.  So, for 
> a bizarre 
> example, I store a name in pig latin in the database.  When I 
> display the 
> name, I want it to show up formatted properly.  Trouble is, 
> this is in a 
> form, and i want to format it inside a struts html:text box.
> 
> So in the database I store the name as "onjhae ithsmae".  I 
> populate my form 
> with the value name="onjhae ithsmae".  I have a custom tag 
> that if I do 
> something like this
>  property="name"/>
> 
> will print out "John Smith".
> 
> Problem is when I want the user to be able to edit their name 
> in a form, and 
> I want to prepopulate the form, I end up with a dilemma.  I 
> want to keep the 
> name in pig latin in my form, and only want to display it in 
> English.  
> They'll enter it in English, but I'll translate it back to 
> pig latin in the 
> validate method or the action.  So if I already have
> , how do I use my 
> tag to format 
> the text?  I don't think I can even do
> 
> 
>   
> <%=myform.getName()%>
>   
> 
> 
> 
> I'm using Struts 1.0.  Is there a way to do this, or do I 
> have to do all 
> sorts of weird conversion back and forth???
> 
> Any suggestions greatly appreciated.
> Thanks!!!
> Becky
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




formatting test in prepopulated form

2002-05-02 Thread Becky Moyer

Hi all...
   Can't find anything about this anywhere, thought i'd ask...

  I am storing a piece of data in a special format.  So, for a bizarre 
example, I store a name in pig latin in the database.  When I display the 
name, I want it to show up formatted properly.  Trouble is, this is in a 
form, and i want to format it inside a struts html:text box.

So in the database I store the name as "onjhae ithsmae".  I populate my form 
with the value name="onjhae ithsmae".  I have a custom tag that if I do 
something like this


will print out "John Smith".

Problem is when I want the user to be able to edit their name in a form, and 
I want to prepopulate the form, I end up with a dilemma.  I want to keep the 
name in pig latin in my form, and only want to display it in English.  
They'll enter it in English, but I'll translate it back to pig latin in the 
validate method or the action.  So if I already have
, how do I use my tag to format 
the text?  I don't think I can even do


  
<%=myform.getName()%>
  



I'm using Struts 1.0.  Is there a way to do this, or do I have to do all 
sorts of weird conversion back and forth???

Any suggestions greatly appreciated.
Thanks!!!
Becky

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: XMLC Article on the Serverside

2002-05-02 Thread Robert Williams

I have been looking at a lot different approaches for developing web pages
(and/or other formats).  The one thing the "anti-JSP" folks seem to have in
common is that they find it too difficult for non-technical designers to
deal with the tag format, and what appears to be complex concepts like Java
Beans or data objects.  The various alternatives are always trying to make
the front end development easier.  In some respects I agree, but that
doesn't mean you should give up the power and flexibility of standard
implementation approaches.  There is a lot of power with JSP for those who
want to use it and I don't want to give up this flexibility to use it when I
need to.

Taglibs help some, along with frameworks such as Struts.  However, there are
few web page development environments (I have only found one good one -
Dreamweaver UltraDev) that does a reasonable job of assisting with the
development of web pages using custom Taglibs.  This is possible with the
extension provided in the common/taglibs section of this web site.

I feel one area this group should be working on is the development of tools
to ease the front end development.  I like the tiles concept and will use
it, but does this make the front end development too abstract?  The Struts
folks have done a good job of making the server side development environment
well organized.  Any thoughts on working more on the front end so we can get
designers to use this technology and so we can easily support XML as easily
as we support HTML?  The basics are in place as I have not seen anything is
other environments that is not here and I think the Struts environment is
better on the server side than most.

Thoughts?

bob
- Original Message -
From: "Dan Cancro" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 3:36 PM
Subject: RE: XMLC Article on the Serverside


> Thanks,
>
> So to wrap up this thread, I think this summarizes the article's points:
>
> XMLC
> -generates a file from a source file
> -requires engineer and designer to use a common set of id names
>
>
>
> > -Original Message-
> > From: Pedone, Tim [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 02, 2002 12:47 PM
> > To: 'Struts Users Mailing List'
> > Subject: RE: XMLC Article on the Serverside
> >
> >
> > Here's an article comparing Velocity and XMLC.  It points out
> > some of the
> > short comings of XMLC so it is somewhat relavent.  Of course
> > you can use
> > Velocity with Struts too.
> >
> > http://jakarta.apache.org/velocity/casestudy2.html
> >
> > -Original Message-
> > From: Dan Cancro [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, May 02, 2002 11:36 AM
> > To: '[EMAIL PROTECTED]'
> > Subject: FW: XMLC Article on the Serverside
> >
> >
> > I thought the Struts users on this list might be interested
> > in this article
> > about XMLC vs. JSP.
> >
> > It's pretty pro-XMLC.  I couldn't find any contrary opinions
> > in the Struts
> > archive.  Does anyone know some disadvantages of XMLC compared to JSP?
> >
> > Thanks,
> > Dan
> >
> >
> >
> >
> > http://www.theserverside.com/resources/article.jsp?l=XMLCvsJSP
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to deploy Struts-using app to Tomcat 4 from Forte?

2002-05-02 Thread Dennis Doubleday

I got that error because I was using JDK 1.4.0 but not the special LE
edition of Tomcat 4.0.3 that works with JDK 1.4.0. Is that your case?

> -Original Message-
> From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] 
> Sent: Thursday, May 02, 2002 4:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to deploy Struts-using app to Tomcat 4 from Forte?


> javax.servlet.ServletException: Parsing error processing 
> resource path /WEB-INF/struts-config.xml
>   at
> org.apache.struts.action.ActionServlet.initMapping(ActionServl
> et.java:1337)
>   at 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tiles template header and title

2002-05-02 Thread Filipe Mateus

I tried it, and it works perfectly!  Now I understand the power of 
 and 
Thank you!

On Thu, 2 May 2002 17:08:09 +0200
"Enrique Rodriguez" <[EMAIL PROTECTED]> wrote:

> This is what i will do:
> 
> When i call to the master definition from an ACtion y set the Title as
> attribute in the request and then int the header.jsp, i write it.
> 
> Very easy.
> 
> HTH.
> 
> Enrique.
> 
> _
> Enrique Rodriguez Lasterra
> 
> > -Mensaje original-
> > De: Filipe Mateus [mailto:[EMAIL PROTECTED]]
> > Enviado el: jueves, 02 de mayo de 2002 16:47
> > Para: [EMAIL PROTECTED]
> > Asunto: Tiles template header and title
> >
> >
> > I have this definition file:
> >
> > 
> >
> > 
> > 
> > 
> > 
> > 
> > 
> > ...
> > 
> >
> > I would like header.jsp to know the title attribute so it can
> > render it.  I was hoping doing something like this in header.jsp::
> >
> > 
> >
> > But obviously, the title attribute is not known.
> >
> > How can I pass the title attribute to header.jsp ?
> >
> > Thank you.
> >
> >
> > **
> > Financiere Banque Nationale et NBCN n'assument
> > aucune responsabilite quant a la confidentialite et l'integrite du
> > present courriel en raison des risques d'interception inherents
> > a l'Internet. Pour cette raison, toute opinion exprimee au terme
> > des presentes ne reflete pas necessairement celle de
> > Financiere Banque Nationale et de NBCN.
> > **
> > Due to the security risks involved in sending information over the
> > Internet, National Bank Financial  and NBCN cannot be held responsible
> > for ensuring the confidentiality and integrity of the present
> > e-mail. For this
> > reason, the opinions expressed herein do not necessarily reflect those of
> > National Bank Financial and NBCN.
> > **
> >
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 


**
Financiere Banque Nationale et NBCN n'assument
aucune responsabilite quant a la confidentialite et l'integrite du
present courriel en raison des risques d'interception inherents 
a l'Internet. Pour cette raison, toute opinion exprimee au terme 
des presentes ne reflete pas necessairement celle de 
Financiere Banque Nationale et de NBCN.
**
Due to the security risks involved in sending information over the
Internet, National Bank Financial  and NBCN cannot be held responsible 
for ensuring the confidentiality and integrity of the present e-mail. For this 
reason, the opinions expressed herein do not necessarily reflect those of 
National Bank Financial and NBCN.
**


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to deploy Struts-using app to Tomcat 4 from Forte?

2002-05-02 Thread @Basebeans.com

Subject: Re: How to deploy Struts-using app to Tomcat 4 from Forte?
From: "Jeff" <[EMAIL PROTECTED]>
 ===
Well, it looks like Tomcat didn't like struts-example.war either. I tried to
install it the same way:

http://host.domain.com:8080/manager/install?path=/&war=jar:file:/home/moi/ex
periment/struts-example.war!/

(the "host" container in server.xml defines /home/moi/experiment as the
appbase)

Launching the app with http://host.domain.com:8080/ produced the MailReader
Demonstration Application index page (index.jsp), but attempting to follow
any of the three links on the page caused an error.

/editRegistration.do?action=Create produces:

javax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xml
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1337)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:539)
root cause:
java.lang.IllegalArgumentException: java.lang.ClassCastException@aadcc6
at org.apache.struts.digester.Digester.startElement(Digester.java:531)
at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1214)
at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1806)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1182)
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
at org.apache.struts.digester.Digester.parse(Digester.java:755)
at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at org.apache.catalina.cor

RE: XMLC Article on the Serverside

2002-05-02 Thread Dan Cancro

Thanks,

So to wrap up this thread, I think this summarizes the article's points:

XMLC
-generates a file from a source file
-requires engineer and designer to use a common set of id names



> -Original Message-
> From: Pedone, Tim [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 12:47 PM
> To: 'Struts Users Mailing List'
> Subject: RE: XMLC Article on the Serverside
> 
> 
> Here's an article comparing Velocity and XMLC.  It points out 
> some of the
> short comings of XMLC so it is somewhat relavent.  Of course 
> you can use
> Velocity with Struts too.
> 
> http://jakarta.apache.org/velocity/casestudy2.html
> 
> -Original Message-
> From: Dan Cancro [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 11:36 AM
> To: '[EMAIL PROTECTED]'
> Subject: FW: XMLC Article on the Serverside
> 
> 
> I thought the Struts users on this list might be interested 
> in this article
> about XMLC vs. JSP.
> 
> It's pretty pro-XMLC.  I couldn't find any contrary opinions 
> in the Struts
> archive.  Does anyone know some disadvantages of XMLC compared to JSP?
> 
> Thanks,
> Dan
> 
> 
> 
> 
> http://www.theserverside.com/resources/article.jsp?l=XMLCvsJSP
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Using Reset with Checkboxes

2002-05-02 Thread @Basebeans.com

Subject: Re: Using Reset with Checkboxes
From: Jose Quinteiro <[EMAIL PROTECTED]>
 ===
You should check for the checkbox parameter(s) in the request, and set 
it(them) to false if they are not present.

For example, if you have a form called "Foo" with a boolean property 
called "fubar" that is displayed a checkbox.

In reset you would:

public void reset( ActionMapping mapping,
javax.servlet.http.HttpServletRequest request )
{
if( request.getParameter("fubar") == null )
this.setFubar = false;
}

Ken Holzer wrote:
> Hi All,
> 
> I am trying to understand how and when to use the reset with checkboxes.
> 
> I have seen posting that say when using checkboxes on forms you must reset
> their value to false. When should this be done?
> 
> I have a form that contains several checkboxes that get checked when the
> form opens based on some database values (that all is working). But when I
> check or uncheck these and then submit the form how do I see the checkboxes
> current value?
> 
> Sorry if this is something that has already been answered, I searched the
> archive and did not see any specific responses, just to use reset.
> 
> Thanks,
> 
> Ken Holzer
> 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How to deploy Struts-using app to Tomcat 4 from Forte?

2002-05-02 Thread @Basebeans.com

Subject: Re: How to deploy Struts-using app to Tomcat 4 from Forte?
From: "Jeff" <[EMAIL PROTECTED]>
 ===
OK, I got Tomcat set up with a proper virtual host. Once again, the plain
index.html file works, but the moment I try to load anything mapped to *.do,
it complains (output follows)

Does it look familiar to anybody or suggest an obvious problem?

StandardHost[proto3.obfuscated.com]: Mapping request URI
'/admin/licensor/menu.do'
StandardHost[proto3.obfuscated.com]:  Mapped to context ''
action: init
StandardWrapperValve[action]: Allocate exception for servlet action
javax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xml
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1337)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
 at java.lang.Thread.run(Thread.java:539)
- Root Cause -
java.lang.IllegalArgumentException: java.lang.ClassCastException@17b2b2
 at org.apache.struts.digester.Digester.startElement(Digester.java:531)
 at
org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.java:329)
 at org.apache.xerces.parsers.SAXParser.startElement(SAXParser.java:1376)
 at
org.apache.xerces.validators.common.XMLValidator.callStartElement(XMLValidat
or.java:1214)
 at
org.apache.xerces.framework.XMLDocumentScanner.scanElement(XMLDocumentScanne
r.java:1806)
 at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDocumentScanner.java:1182)
 at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java:381)
 at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
 at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:316)
 at javax.xml.parsers.SAXParser.parse(SAXParser.java:91)
 at org.apache.struts.digester.Digester.parse(Digester.java:755)
 at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
 at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
 at javax.servlet.GenericServlet.init(GenericServlet.java:258)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
 at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalin

RE: XMLC Article on the Serverside

2002-05-02 Thread Jerome Jacobsen

The Wafer project on SourceForge is a project to compare 19 open source Java
web frameworks (including Struts, of course).  It is in it's alpha stage.

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/*checkout*/wafer/www/feature-
matrix2.html?rev=1.10

http://sourceforge.net/projects/wafer/

http://wafer.sourceforge.net/


-Original Message-
From: Pedone, Tim [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 3:47 PM
To: 'Struts Users Mailing List'
Subject: RE: XMLC Article on the Serverside


Here's an article comparing Velocity and XMLC.  It points out some of the
short comings of XMLC so it is somewhat relavent.  Of course you can use
Velocity with Struts too.

http://jakarta.apache.org/velocity/casestudy2.html

-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 11:36 AM
To: '[EMAIL PROTECTED]'
Subject: FW: XMLC Article on the Serverside


I thought the Struts users on this list might be interested in this article
about XMLC vs. JSP.

It's pretty pro-XMLC.  I couldn't find any contrary opinions in the Struts
archive.  Does anyone know some disadvantages of XMLC compared to JSP?

Thanks,
Dan




http://www.theserverside.com/resources/article.jsp?l=XMLCvsJSP


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XMLC Article on the Serverside

2002-05-02 Thread Pedone, Tim

Here's an article comparing Velocity and XMLC.  It points out some of the
short comings of XMLC so it is somewhat relavent.  Of course you can use
Velocity with Struts too.

http://jakarta.apache.org/velocity/casestudy2.html

-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 11:36 AM
To: '[EMAIL PROTECTED]'
Subject: FW: XMLC Article on the Serverside


I thought the Struts users on this list might be interested in this article
about XMLC vs. JSP.

It's pretty pro-XMLC.  I couldn't find any contrary opinions in the Struts
archive.  Does anyone know some disadvantages of XMLC compared to JSP?

Thanks,
Dan




http://www.theserverside.com/resources/article.jsp?l=XMLCvsJSP


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Using Reset with Checkboxes

2002-05-02 Thread Eddie Bush

You need to always reset them I believe.

Reason:
When your form submits, those checkboxes that are unchecked will not be sent
to the server as parameters.

This means you have no way to detect a user 'unchecking' a checked checkbox.

Solution:
Reset checkbox values to unchecked (false) and Struts will happily set the
ones the user did select to checked (true).  This way, you can accurately
determine which ones the user wants checked.  If you don't use this method,
you wind up not clearing a checked checkbox when the user says to.

HTH,

Eddie

- Original Message -
From: "Struts Newsgroup (@Basebeans.com)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 2:25 PM
Subject: Using Reset with Checkboxes


> Subject: Using Reset with Checkboxes
> From: "Ken Holzer" <[EMAIL PROTECTED]>
>  ===
> Hi All,
>
> I am trying to understand how and when to use the reset with checkboxes.
>
> I have seen posting that say when using checkboxes on forms you must reset
> their value to false. When should this be done?
>
> I have a form that contains several checkboxes that get checked when the
> form opens based on some database values (that all is working). But when I
> check or uncheck these and then submit the form how do I see the
checkboxes
> current value?
>
> Sorry if this is something that has already been answered, I searched the
> archive and did not see any specific responses, just to use reset.
>
> Thanks,
>
> Ken Holzer
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Sorry Letters

2002-05-02 Thread Joseph Barefoot

I think Mark is an independent consultant--does that mean you want to work
for him?  ;)

cheers,
Joe Barefoot

P.S. Smile--I promise it doesn't hurt.

> -Original Message-
> From: SUPRIYA MISRA [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 5:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Sorry Letters
>
>
> Did you really spent your time doing those forms - I would love
> to work for
> your company.
>
>
> >From: "Galbreath, Mark" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts (E-mail)" <[EMAIL PROTECTED]>
> >Subject: Sorry Letters
> >Date: Thu, 2 May 2002 07:29:52 -0400
> >
> >Okay, sorry I missed yesterday afternoon's "you suck fest" (the
> head of the
> >department for which I am consulting got summarily canned and we were in
> >temporary disarray).  To help try to get everybody to be friends again,
> >let's exchange greetings:
> >
> >Guys:
> >http://www.karmafarm.com/formletter.html
> >
> >Gals:
> >http://www.karmafarm.com/letter.html
> >
> >
> >St. Mark the Instigator
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
>
>
>
>
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Using Reset with Checkboxes

2002-05-02 Thread @Basebeans.com

Subject: Using Reset with Checkboxes
From: "Ken Holzer" <[EMAIL PROTECTED]>
 ===
Hi All,

I am trying to understand how and when to use the reset with checkboxes.

I have seen posting that say when using checkboxes on forms you must reset
their value to false. When should this be done?

I have a form that contains several checkboxes that get checked when the
form opens based on some database values (that all is working). But when I
check or uncheck these and then submit the form how do I see the checkboxes
current value?

Sorry if this is something that has already been answered, I searched the
archive and did not see any specific responses, just to use reset.

Thanks,

Ken Holzer



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Redirect related question

2002-05-02 Thread Nelson, Laird

A question on HTTP 302 redirects and, somewhat indirectly, Struts:

We have a situation where one of our Actions needs to send a redirect
(HttpServletResponse.SC_MOVED_TEMPORARILY) to the client.  It is a
requirement that the incoming request parameters, whether they be GET or
POST, be sent along back to the client as part of this redirect.

Is this something that HTTP permits?  I couldn't find a statement one way or
the other in the RFC that says that a client has to respect the Location:
header, or that, if it does, it has to respect any URL parameters that come
with it, whether they be attached to the URL in query string format or
present as POST parameters.

More generally, is there a Struts mechanism I should be aware of for
redirecting to a URL with an arbitrary set of URL parameters?  Or am I
limited to supplying these by hand?

Cheers,
Laird

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: XMLC Article on the Serverside

2002-05-02 Thread Galbreath, Mark

Jason Hunter covers XMLC pretty thoroughly in chapter 17 of "Java Servlet
Programming, 2d ed."  I've only scanned it, but it looks like a balanced
treatment, even though Jason believes JSPs are from the devil.

Mark

-Original Message-
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 2:36 PM
To: '[EMAIL PROTECTED]'
Subject: FW: XMLC Article on the Serverside


I thought the Struts users on this list might be interested in this article
about XMLC vs. JSP.

It's pretty pro-XMLC.  I couldn't find any contrary opinions in the Struts
archive.  Does anyone know some disadvantages of XMLC compared to JSP?

Thanks,
Dan




http://www.theserverside.com/resources/article.jsp?l=XMLCvsJSP


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




FW: XMLC Article on the Serverside

2002-05-02 Thread Dan Cancro

I thought the Struts users on this list might be interested in this article
about XMLC vs. JSP.

It's pretty pro-XMLC.  I couldn't find any contrary opinions in the Struts
archive.  Does anyone know some disadvantages of XMLC compared to JSP?

Thanks,
Dan




http://www.theserverside.com/resources/article.jsp?l=XMLCvsJSP


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: You suck! No, You suck!

2002-05-02 Thread HERSHKOWITZ,PHIL (A-Sonoma,ex1)

Craig & All,

The fragment below from Craig is a great clear answer - and it came out of
Craig's knowledge, AND James's knowledge and Micael's stubbornness -
altogether a good team effort. How about a beer and a group hug :)

Regards,
Phil



> I don't know anything specific about Flash, so this is a repeat of an
> answer to this question from someone else that got lost in 
> the shuffle.
> 
> Background Issue - Things inside /WEB-INF are visible to your 
> application
> (i.e. you can do request dispatcher include and forward calls 
> with them)
> but not to your client.
> 
> Therefore - *IF* the Flash client tries to do a second HTTP 
> request to get
> the referenced file, it will fail.  I suspect this is probably what
> happens, but really don't have a clue.
> 
> The same thing will happen in a non-Flash scenario if your JSP page
> "/WEB-INF/mypage.jsp" contains a relative reference to an image in the
> same directory:
> 
>   
> 
> The image retrieval (done by the browser as a separate HTTP 
> request) will
> fail, because the absolute URL will be something like:
> 
>   http://www.mycompany.com/myapp/WEB-INF/logo.gif
> 
> and the container will disallow direct client access to the
> context-relative path "/WEB-INF/logo.gif".
> 
> Craig

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Table of Radio Buttons

2002-05-02 Thread Sandra Cann

There is an open source polling application built using Struts/Expresso at
www.jcorporate.com which might be something to look at.

--
Sandra

> -Original Message-
> From: Daniel Haynes [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 8:55 AM
> To: Struts-User
> Subject: Table of Radio Buttons
>
>
> Hi,
>
> I am attempting to create a (fairly) simple web app using struts.
> I need to
> create a table of questions with each question having radio
> buttons (a range
> of numeric values) so the user can input and submit their answers:
>
> question1o o o o o o o o
> question2o o o o o o o o
> ...
>
> My problem is that both the questions and the number of radio
> buttons needs
> to be dynamic (based on what is currently in the database). I can iterate
> through the questions and display them in the table but I am unsure how to
> 'marry' up the radio buttons, and then retrieve the data from the
> form when
> the user submits.
>
> Has anyone done anything similar to this ? Any example code or suggestions
> would be gratefully recieved. I have been looking at the 'Using Struts'
> article from the Athens Group 'Creating a Table of Radio Buttons' but am
> getting more confused... (ProcessStatus.DONE.getMnemonic() - what is this
> ??)
>
> Dan
>
> Daniel Haynes
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




How to deploy Struts-using app to Tomcat 4 from Forte?

2002-05-02 Thread @Basebeans.com

Subject: How to deploy Struts-using app to Tomcat 4 from Forte?
From: "Jeff" <[EMAIL PROTECTED]>
 ===
I've just made the rather cruel discovery that getting web applications that
use Struts to work on a real web server running Tomcat 4 (as opposed to
Forte's built in Tomcat 3.2) isn't quite as plug-and-play as I've gotten
used to (and spoiled by).

I exported a web app (that works fine in Forte) to a .war file
(adminapp.war), uploaded it to the server's webapps directory
(/usr/local/tomcat/webapps), installed it using Tomcat's "manager" servlet,
and went to the app's root (http://host.domain.com:8080/adminapp). The page,
index.html loaded fine, but I did make one disturbing observation... I'd
forgotten that trying to call the app directly would require prepending
/adminapp (the name of the warfile from which it was deployed) to the url,
so the link to the main menu (/admin/menu.do) became /admapp/admin/menu.do

Uh oh. I guess I'm going to have to set it up with AJP and drag Apache into
to it after all, even if it's just an experiment (as opposed to leaving
Apache ignorant of its existence and just going straight to Tomcat at port
8080). But wait, it gets worse...

The link to /admin/menu.do didn't work (I didn't expect it to), but neither
did a call to /adminapp/admin/menu.do.

It threw an Apache Tomcat 4.01/ 404 -- The requested resource
(/adminapp/admin/menu.do) is not available

The big question is, did it fail because Tomcat failed to associate *.do
with the Struts action servlet, or did it fail because Struts's
ActionServlet saw the path as /adminapp/admin/menu instead of the value from
struts-config.xml (/admin/menu). Do Struts config errors just show up in
Tomcat 4 as being indistinguishable from any other kind of Tomcat error
(like 404), or does Struts throw up error pages of its own to make it clear
that ActionServlet loaded fine, but gave up because it didn't know what it
was supposed to do?

Does anyone have any tips to make the deployment of a Struts-using app
developed entirely within Forte on a standalone web server running Tomcat 4
and Apache simple?

Also, I made another disturbing realization... if it IS possible to
autodeploy Struts-using apps via Forte-generated .warfile after all (and I
just missed some minor detail), what happens if TWO such apps get deployed
via .warfile into the same running instance of Tomcat?

Supposing the two apps deploy into the "first" and "second" subdirectories
of Tomcat's webapps directory, does Tomcat map "/first/*.do" to one instance
of ActionServlet that uses /first/WEB-INF/struts-config.xml as its config
file, and map "/second/*.do" to another instance of ActionServlet that uses
/second/WEB-INF/struts-config.xml as ITS config file? Or will the two simply
clobber each other?

If two or more Struts-using apps know nothing about each other and have
their own struts-config.xml files, do they simply HAVE to be launched in
separate instances of Tomcat?



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts running in WAS 4.0

2002-05-02 Thread Hertzel Karbasi - OPTinity eBusiness Solutions

It works fine with Xerces 1.2.1 (default version supported by WAS 4)
Hertzel
- Original Message -
From: "Chen, Paul (Consultant)" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 3:03 PM
Subject: Struts running in WAS 4.0


> Does anyone run Struts under WAS 4.0?  Is Xerces 3.2.1 works with Struts
in
> WAS 4.0?
>
> Paul
>
> -Original Message-
> From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 8:58 AM
> To: 'Struts Users Mailing List'
> Subject: RE: Bean Bug?
>
>
> Okay, I (finally) agree with you.  Thanks for the explanations.
>
> Mark
>
> -Original Message-
> From: Richard Yee [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 1:35 PM
> To: Struts Users Mailing List
> Subject: RE: Bean Bug?
>
>
> Mark,
> Regardless of how the number is formatted, there will always be a problem
> when handling currency amounts as floating numbers. Multiplication and
> division operations will introduce rounding errors. I have found that it
is
> best to store currency amounts as ints and then have code in the beans to
> format the values for display. This also can ease I18n issues when dealing
> with currencies that don't contain decimals.
>
> Regards,
>
> Richard
>
>
>
> At 06:22 AM 5/1/2002 -0400, you wrote:
> >I see your point, but aren't you incurring unnecessary formatting
overhead
> >in the presentation tier (to say nothing of ongoing maintenance)?  Any
> >Struts tag that writes to the presentation tier should take such
formatting
> >issues into consideration.  For example, the formatting tag that Chandras
> >suggests (or using java.text.NumberFormat in the action) look like good
> >solutions.
> >
> >Mark
> >
> >-Original Message-
> >From: Richard Yee [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, April 30, 2002 6:55 PM
> >
> >Mark,
> >In continuing with my last email. 1.00 would be stored as 100 in an int.

> >
> >-Richard
> >At 03:52 PM 4/30/2002 -0700, you wrote:
> > >Mark,
> > >To store decimal numbers or any currency for that matter as ints, you
> > >store the values as the smallest unit of currency.  For dollars, this
is
> > >0.01 or a cent. You then can avoid any round off errors when doing
> > >multiplication or division.
> > >
> > >Regards,
> > >
> > >Richard
> >
> >--
> >To unsubscribe, e-mail:
> 
> >For additional commands, e-mail:
> 
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: You suck! No, You suck!

2002-05-02 Thread Galbreath, Mark

Way ahead of you, Craig  The director of Java Development for the
company for whom I'm consulting got canned and the whole team is going to
happy hour after work today to celebrate.  I'll have a massive hangover
tomorrow morning.  ;-)

Mark

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 11:57 AM


On Thu, 2 May 2002, Arron Bates wrote:

> Date: Thu, 02 May 2002 17:01:25 +1000
> From: Arron Bates <[EMAIL PROTECTED]>
>
> The funniest thing about this discussion is that tomorrow it will all
> amount to a pointless waste of energy.

It's going to be worse than that -- tomorrow is Friday (right Mark? :-).

> Arron.

Craig

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: What about popolating a DynaActionForm ?

2002-05-02 Thread chuckcavaness

Are you sure that you just don't need to implement a 
toString() method for the object in the Array? Are they 
Strings or some type of JavaBean object?

Chuck
> That sounds like a bug.  Could you please submit a bug report to
>  with a simple example?
> 
> Craig
> 
> 
> On Thu, 2 May 2002, emmanuel.boudrant wrote:
> 
> > Date: Thu, 2 May 2002 11:02:25 +0200 (CEST)
> > From: emmanuel.boudrant <[EMAIL PROTECTED]>
> > Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: What about popolating a DynaActionForm ?
> >
> >
> > Hi,
> >
> > I've got a DynaActionForm with an Array, I receive correctly an Array in my 
> action but when I redisplay the form, the input tags used to display array's 
> elements (with tabindex="n") doesn't display every elements but display the 
> reference to the array ([Ljava.lang.String;@xx).
> >
> > Is it a bug, unfinished feature from Struts1.1b1 or a bad use of 
> DynaActionForm ?
> >
> > Thanx,
> > Emmanuel
> >
> >
> >
> > -
> > Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !
> >
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Table of Radio Buttons

2002-05-02 Thread Pedone, Tim

If you're using Struts 1.1, this may help:

http://www.mail-archive.com/struts-user%40jakarta.apache.org/msg29664.html

Tim

-Original Message-
From: Daniel Haynes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 5:55 AM
To: Struts-User
Subject: Table of Radio Buttons


Hi,

I am attempting to create a (fairly) simple web app using struts. I need to
create a table of questions with each question having radio buttons (a range
of numeric values) so the user can input and submit their answers:

question1o o o o o o o o
question2o o o o o o o o
...

My problem is that both the questions and the number of radio buttons needs
to be dynamic (based on what is currently in the database). I can iterate
through the questions and display them in the table but I am unsure how to
'marry' up the radio buttons, and then retrieve the data from the form when
the user submits.

Has anyone done anything similar to this ? Any example code or suggestions
would be gratefully recieved. I have been looking at the 'Using Struts'
article from the Athens Group 'Creating a Table of Radio Buttons' but am
getting more confused... (ProcessStatus.DONE.getMnemonic() - what is this
??)

Dan

Daniel Haynes


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Flash

2002-05-02 Thread Robert J. Sanford, Jr.

!!! GGGHH !!!

stop. just stop.

it's obvious to me at least that there are two
perspectives that are not going to be reconciled
here both of which are saying "you don't
understand."

to which i say "so what!"

i don't give a two bit pickle as to who started
it. i don't give a two bit pickle as to who is
right. i don't give a two bit pickle as to who
knows flash or who knows struts or who knows
java or who knows kevin bacon.

but i do care very deeply that my inbox is being
flooded by the inane, sophomoric ramblings of
people who care more about boosting their egos
by "proving" that the others in the discussion
are nits.

!!! JUST STOP !!!

don't even reply to this email. not even as a
joke. just stop. now.

!!! LEAAASEE !!!

thank you in advance for your kindness and mercy
in releasing me from my agony.

> -Original Message-
> From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 02, 2002 11:03 AM
> To: Struts Users Mailing List
> Subject: Flash
>
>
> This list is sometimes incredible.  I asked what to do about the
> fact that
> the includes for Flash arrays are not governed by the requirements in
> struts and that, consequently, they seemingly cannot be used
> inside WEB-INF
> on sturts.  A whole raft of people with limited knowledge and a lack of
> interest in reading what the question was jumped in and said really inane
> and useless things.  Craig finally answered the question and one other
> person offered some helpful thoughts.  Once again, and for the last time,
> the question was not about Flash, but about struts.  I recognize
> lots about
> Flash.  I write my Flash files with Java, for example, to get better
> results than you get from the Macromedia IDE.  I am not a newbie
> in either
> Flash or Java.  I am Sun certified in Java.  Not a big deal, but
> no newbie
> either.  I realize that I can rewrite the Flash array elements to include
> urls too, and I have done that.  Okay?  I should not get credit for being
> unclear when you have obviously made unwarranted assumptions about what I
> said without reading it.  At least Craig had no trouble at all reading it.
>
> That said, I do appreciate your response, which is a welcome relief from
> the usual nanonits that have responded to this inquiry with
> really backward
> ideas.  I mean that, I do.  I just am not in too good a mood after having
> to deal with the droids.  So, please forgive me that.
>
> Micael
>
> At 04:10 AM 5/2/02 -0500, you wrote:
> >Micael Padraig Og mac Grene wrote:
> >
> >>Mark,
> >>
> >>You don't get it either.  This is a STRUTS specific question.
> Thanks for
> >>trying to help, however.
> >
> >
> >If no one understands your question maybe you aren't asking it
> clearly. I
> >know Flash and to me it sounds like you're asking about Struts writing
> >directly into Flash like Generator. I haven't bothered to answer
> because I
> >thought it was some retarded newbie question like "can I use struts to
> >make my PHP faster?"
> >
> >
> >
> >--
> >To unsubscribe, e-mail:

>For additional commands, e-mail:

>



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Sorry Letters

2002-05-02 Thread Robert

I love it!

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, May 02, 2002 6:30 AM
To: Struts (E-mail)
Subject: Sorry Letters

Okay, sorry I missed yesterday afternoon's "you suck fest" (the head of
the
department for which I am consulting got summarily canned and we were in
temporary disarray).  To help try to get everybody to be friends again,
let's exchange greetings:

Guys:
http://www.karmafarm.com/formletter.html

Gals:
http://www.karmafarm.com/letter.html


St. Mark the Instigator

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tile and parameters use...

2002-05-02 Thread @Basebeans.com

Subject: Tile and parameters use...
From: "PitBull" <[EMAIL PROTECTED]>
 ===
Hi all,

I have the following situation:
<%@ taglib uri="/WEB-INF/conf/tiles.tld" prefix="tiles" %>


 
 


 
  ?? ??
  


I put "" because i need
"OBJECTSELECT" and "CHOICE" as parameters to manage two different contexts
inside the jsp "objectSrc.jsp".
e.g.: In the file objectSrc.jsp I have to do something like that:

do A


do B

 That not run.
Can anyone help me to solve this problem plz? Thanx

Pit




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Flash

2002-05-02 Thread Micael Padraig Og mac Grene

This list is sometimes incredible.  I asked what to do about the fact that 
the includes for Flash arrays are not governed by the requirements in 
struts and that, consequently, they seemingly cannot be used inside WEB-INF 
on sturts.  A whole raft of people with limited knowledge and a lack of 
interest in reading what the question was jumped in and said really inane 
and useless things.  Craig finally answered the question and one other 
person offered some helpful thoughts.  Once again, and for the last time, 
the question was not about Flash, but about struts.  I recognize lots about 
Flash.  I write my Flash files with Java, for example, to get better 
results than you get from the Macromedia IDE.  I am not a newbie in either 
Flash or Java.  I am Sun certified in Java.  Not a big deal, but no newbie 
either.  I realize that I can rewrite the Flash array elements to include 
urls too, and I have done that.  Okay?  I should not get credit for being 
unclear when you have obviously made unwarranted assumptions about what I 
said without reading it.  At least Craig had no trouble at all reading it.

That said, I do appreciate your response, which is a welcome relief from 
the usual nanonits that have responded to this inquiry with really backward 
ideas.  I mean that, I do.  I just am not in too good a mood after having 
to deal with the droids.  So, please forgive me that.

Micael

At 04:10 AM 5/2/02 -0500, you wrote:
>Micael Padraig Og mac Grene wrote:
>
>>Mark,
>>
>>You don't get it either.  This is a STRUTS specific question.  Thanks for 
>>trying to help, however.
>
>
>If no one understands your question maybe you aren't asking it clearly. I 
>know Flash and to me it sounds like you're asking about Struts writing 
>directly into Flash like Generator. I haven't bothered to answer because I 
>thought it was some retarded newbie question like "can I use struts to 
>make my PHP faster?"
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: What about popolating a DynaActionForm ?

2002-05-02 Thread Craig R. McClanahan

That sounds like a bug.  Could you please submit a bug report to
 with a simple example?

Craig


On Thu, 2 May 2002, emmanuel.boudrant wrote:

> Date: Thu, 2 May 2002 11:02:25 +0200 (CEST)
> From: emmanuel.boudrant <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: What about popolating a DynaActionForm ?
>
>
> Hi,
>
> I've got a DynaActionForm with an Array, I receive correctly an Array in my action 
>but when I redisplay the form, the input tags used to display array's elements (with 
>tabindex="n") doesn't display every elements but display the reference to the array 
>([Ljava.lang.String;@xx).
>
> Is it a bug, unfinished feature from Struts1.1b1 or a bad use of DynaActionForm ?
>
> Thanx,
> Emmanuel
>
>
>
> -
> Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: You suck! No, You suck!

2002-05-02 Thread Craig R. McClanahan



On Thu, 2 May 2002, Arron Bates wrote:

> Date: Thu, 02 May 2002 17:01:25 +1000
> From: Arron Bates <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: Re: You suck! No, You suck!
>
> The funniest thing about this discussion is that tomorrow it will all
> amount to a pointless waste of energy.

It's going to be worse than that -- tomorrow is Friday (right Mark? :-).

> Arron.

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How to access nested properties which may be null?

2002-05-02 Thread David . A . Ventimiglia

Thanks, Ajay!

-Original Message-
From: Ajay Chitre [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 01, 2002 10:43 PM
To: Struts Users Mailing List
Subject: RE: How to access nested properties which may be null?

David,

Here's a trick I learned by looking at one of Craig's sample JSPs.

In the getAuthorityLevel() method in User bean check if authorityLevel is
null.  If it is, return a new instance of it.  This should fix the problem
- I think.

For example;

In User.java:

public AuthorityLevel getAuthorityLevel () {

if (authorityLevel == null) {
authorityLevel = new AuthorityLevel();
}

return authorityLevel ;
}


Just an idea.  I am curious to find out how others are dealing with this
problem.

HTH!

>-- Original Message --
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>From: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: How to access nested properties which may be null?
>Date: Wed, 1 May 2002 16:41:02 -0700 
>
>
>That's sound design advice, and I certainly may end up doing that.  I guess
>right now I'm more interested in finding out if there's a Struts way to
do
>this, in order to understand all the facets of Struts better.
>
>Cheers,
>David
>
>-Original Message-
>From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] 
>Sent: Wednesday, May 01, 2002 3:55 PM
>To: [EMAIL PROTECTED]
>Subject: Re: How to access nested properties which may be null?
>
>Subject: Re: How to access nested properties which may be null?
>From: Vic Cekvenich <[EMAIL PROTECTED]>
> ===
>It might be that you are doing a bit more in JSP than you should.
>More should be done in the model. In action, you should check conditions.
>Vic
>
>[EMAIL PROTECTED] wrote:
>> Hello,
>> 
>>  
>> 
>> How do I use, say, the  tag to print out the value of a
nested
>> property, if there's a possibility that the parent of the nested property
>> may be Null?
>> 
>>  
>> 
>> I have a User bean with method getAuthorityLevel which returns an
instance
>> of the AuthorityLevel bean.  The AuthorityLevel bean then has a method
>> getName, which returns a string.  I have something like this in my JSP:
>> 
>>  
>> 
>> 
>> 
>>  
>> 
>> This works fine if the User bean in the "myUser" variable has an
>> AuthorityLevel, but if it does not then getAuthorityLevel returns Null,
>and
>> Struts then throws a NullPointerException.  Is there a simple way around
>> this?
>> 
>>  
>> 
>> Do the "Nested Tags" address this situation?
>> 
>>  
>> 
>> Thanks!
>> 
>> David
>> 
>>  
>> 
>> David A. Ventimiglia
>> 
>> Wells Fargo Private Client Services
>> 
>> (415) 396-0414 (work)
>> 
>>  
>> 
>> 
>
>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tiles template header and title

2002-05-02 Thread Eddie Bush

There are some excellent examples of tiles usage in struts-tiles.war.  I
highly recommend checking that out.  Not only will it answer the question
you have asked, but you will get additional insight into tiles that will
help you build better tiles applications.

Regards,

Eddie

- Original Message -
From: "Filipe Mateus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 9:46 AM
Subject: Tiles template header and title


> I have this definition file:
>
> 
>
> 
>   
>   
> 
> 
> 
> ...
> 
>
> I would like header.jsp to know the title attribute so it can render it.
I was hoping doing something like this in header.jsp::
>
> 
>
> But obviously, the title attribute is not known.
>
> How can I pass the title attribute to header.jsp ?
>
> Thank you.
>
>
> **
> Financiere Banque Nationale et NBCN n'assument
> aucune responsabilite quant a la confidentialite et l'integrite du
> present courriel en raison des risques d'interception inherents
> a l'Internet. Pour cette raison, toute opinion exprimee au terme
> des presentes ne reflete pas necessairement celle de
> Financiere Banque Nationale et de NBCN.
> **
> Due to the security risks involved in sending information over the
> Internet, National Bank Financial  and NBCN cannot be held responsible
> for ensuring the confidentiality and integrity of the present e-mail. For
this
> reason, the opinions expressed herein do not necessarily reflect those of
> National Bank Financial and NBCN.
> **
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tiles template header and title

2002-05-02 Thread Enrique Rodriguez

This is what i will do:

When i call to the master definition from an ACtion y set the Title as
attribute in the request and then int the header.jsp, i write it.

Very easy.

HTH.

Enrique.

_
Enrique Rodriguez Lasterra

> -Mensaje original-
> De: Filipe Mateus [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves, 02 de mayo de 2002 16:47
> Para: [EMAIL PROTECTED]
> Asunto: Tiles template header and title
>
>
> I have this definition file:
>
> 
>
>   
>   
>   
>   
>   
>   
> ...
> 
>
> I would like header.jsp to know the title attribute so it can
> render it.  I was hoping doing something like this in header.jsp::
>
> 
>
> But obviously, the title attribute is not known.
>
> How can I pass the title attribute to header.jsp ?
>
> Thank you.
>
>
> **
> Financiere Banque Nationale et NBCN n'assument
> aucune responsabilite quant a la confidentialite et l'integrite du
> present courriel en raison des risques d'interception inherents
> a l'Internet. Pour cette raison, toute opinion exprimee au terme
> des presentes ne reflete pas necessairement celle de
> Financiere Banque Nationale et de NBCN.
> **
> Due to the security risks involved in sending information over the
> Internet, National Bank Financial  and NBCN cannot be held responsible
> for ensuring the confidentiality and integrity of the present
> e-mail. For this
> reason, the opinions expressed herein do not necessarily reflect those of
> National Bank Financial and NBCN.
> **
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: some PDF stuff

2002-05-02 Thread Nekkalapudi, Viplava

Where can we get different HTML Header name+value information, 
so that we can set from JSP/Servlet whenever required.
Any ideas?

-Original Message-
From: Vincent Aumont [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 7:45 PM
To: Struts Users Mailing List
Subject: Re: some PDF stuff




> >  response.setHeader("Content-disposition","attachment; filename=" +
> filename);
>
>  I don't have a file name for the pdf I generate (may be I can have one).

Any name will do. It's the name the browser uses should your user decide to
save
the document to disk.

>  The Action class returns a NULL Action Forward.

Same here.

-Vincent.


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tiles template header and title

2002-05-02 Thread Filipe Mateus

I have this definition file:









...


I would like header.jsp to know the title attribute so it can render it.  I was hoping 
doing something like this in header.jsp::



But obviously, the title attribute is not known.

How can I pass the title attribute to header.jsp ?

Thank you.


**
Financiere Banque Nationale et NBCN n'assument
aucune responsabilite quant a la confidentialite et l'integrite du
present courriel en raison des risques d'interception inherents 
a l'Internet. Pour cette raison, toute opinion exprimee au terme 
des presentes ne reflete pas necessairement celle de 
Financiere Banque Nationale et de NBCN.
**
Due to the security risks involved in sending information over the
Internet, National Bank Financial  and NBCN cannot be held responsible 
for ensuring the confidentiality and integrity of the present e-mail. For this 
reason, the opinions expressed herein do not necessarily reflect those of 
National Bank Financial and NBCN.
**


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




ConvertUtilts.register(): where to call?

2002-05-02 Thread Remke Rutgers

Hi fellowstrutsers,

What is the best (logical, efficient, safe...) place to call
ConvertUtils.register() in a Struts Webapp?

Anyone?

Remke Rutgers - [EMAIL PROTECTED]
Technisch Consultant

Bright Alley  Knowledge & Learning B.V.
Media Park - Sumatralaan 45
Postbus 10 - 1200 JB Hilversum
web  www.brightalley.com
tel +31 35 6774000 / fax +31 35 6774355

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I pass an ActionForward's path into a button's onclick () h andler

2002-05-02 Thread lindsay . hamoudi

Thanks for the suggestions.  

Jim's idea is kind of what I'm doing now.  Although I'm using my own
makeshift isActionCancelled (request, mapping) method.  I keep track of the
last action's path (in the session) and when a 'cancel' parameter is present
in the request - I call the above method.  I can then verify that the
'cancel' relates to this action, by checking that the current action's path
(mapping.getPath()) is the same as the last action.  In my application, the
last action prior to displaying a form will always be the same action that
the form submits to.

This overcomes the problem of the 'cancel' parameter still being in the
request when it reaches the next action down the line.

Probably overly-complex, but it's working and more importantly - I can
understand why it's working!.  Now if only I could explain all these things
to the poor student who'll be taking over my project in September. :)  

Lindsay
 

 -Original Message-
From:   Jim Crossley [mailto:[EMAIL PROTECTED]] 
Sent:   02 May 2002 15:08
To: Struts Users Mailing List
Subject:Re: How do I pass an ActionForward's path into a button's
onclick () h andler

Or put this in your form:

  

And this in your Action:

  if (isCancelled(request))
return mapping.findForward("home");

-- Jim

"Galbreath, Mark" <[EMAIL PROTECTED]> writes:

> Try this:
> 
> 
> 
> Mark
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 1:26 PM
> 
> I have a form and it has a 'confirm' and a 'cancel' button.  The 'confirm'
> button submits to the Action class.  I'd like the 'cancel' button to
> redirect user to another Action, which has a global-forward named 'home'.
> 
> Here's what I'm attempting...
> 
>  onclick="javascript:location.href='';"/>
> 
> This does not work at all.
> 
> Does anyone know how I could do this?
> 
> Many thanks.
> 
> Lindsay

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: James Mitchell is Rude and Ignorant

2002-05-02 Thread John Nicholas

Micael Padraig Og mac Grene wrote:

> Mark,
>
> You don't get it either.  This is a STRUTS specific question.  Thanks 
> for trying to help, however. 


If no one understands your question maybe you aren't asking it clearly. 
I know Flash and to me it sounds like you're asking about Struts writing 
directly into Flash like Generator. I haven't bothered to answer because 
I thought it was some retarded newbie question like "can I use struts to 
make my PHP faster?"



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Q: JavaScrip with Struts HTML Tags

2002-05-02 Thread João Guilherme Del Valle

The html:select tag has the onclick attribute, not the html:form tag. And
you got to take care with the case, it´s "onclick" and not "onClick" (and I
wonder why this, against JLS and not like the other attributes)


 Joao Guilherme Del Valle
 [EMAIL PROTECTED]
 Visionnaire Informática SA
 http://www.visionnaire.com.br
 Tel/Fax: +55 41 373-7400 r: 221
 Curitiba / PR / Brasil
- Original Message -
From: "bjoern blum" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 11:07 AM
Subject: AW: Q: JavaScrip with Struts HTML Tags


> Sorry,
> But it still didn't work..
>
> Error code:
> org.apache.jasper.compiler.CompileException: /select.jsp(16,0) Attribute
> onclick invalid according to the specified TLD
>
> , not .
>
> 
> 
> Untitled Document
> 
> 
>
> 
>  onclick="document.SelectPPForm.submit()">
> 
> 
> 
> 
>  collection="pplist"
> property="ppid"
> labelProperty="ppid"
>
> />
> 
> 
> 
> 
> 
> 
> 
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Q: JavaScrip with Struts HTML Tags

2002-05-02 Thread bjoern blum

Sorry, 
But it still didn't work..

Error code:
org.apache.jasper.compiler.CompileException: /select.jsp(16,0) Attribute
onclick invalid according to the specified TLD

   , not .



Untitled Document












   








--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: How do I pass an ActionForward's path into a button's onclick () h andler

2002-05-02 Thread Jim Crossley

Or put this in your form:

  

And this in your Action:

  if (isCancelled(request))
return mapping.findForward("home");

-- Jim

"Galbreath, Mark" <[EMAIL PROTECTED]> writes:

> Try this:
> 
> 
> 
> Mark
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 01, 2002 1:26 PM
> 
> I have a form and it has a 'confirm' and a 'cancel' button.  The 'confirm'
> button submits to the Action class.  I'd like the 'cancel' button to
> redirect user to another Action, which has a global-forward named 'home'.
> 
> Here's what I'm attempting...
> 
>  onclick="javascript:location.href='';"/>
> 
> This does not work at all.
> 
> Does anyone know how I could do this?
> 
> Many thanks.
> 
> Lindsay

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Sorry Letters

2002-05-02 Thread Eddie Bush

... now that's good =)  Thanks for the post Mark - very entertaining!

... a little warped here and there, but entertaining none-the-less =)

Eddie

- Original Message -
From: "Galbreath, Mark" <[EMAIL PROTECTED]>
To: "Struts (E-mail)" <[EMAIL PROTECTED]>
Sent: Thursday, May 02, 2002 6:29 AM
Subject: Sorry Letters


> Okay, sorry I missed yesterday afternoon's "you suck fest" (the head of
the
> department for which I am consulting got summarily canned and we were in
> temporary disarray).  To help try to get everybody to be friends again,
> let's exchange greetings:
>
> Guys:
> http://www.karmafarm.com/formletter.html
>
> Gals:
> http://www.karmafarm.com/letter.html
>
>
> St. Mark the Instigator
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Q: JavaScrip with Struts HTML Tags

2002-05-02 Thread Galbreath, Mark

You have the onclick event handler in the wrong place; stick it in
, not .

Mark

-Original Message-
From: bjoern blum [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 9:14 AM

Hello I just tried to use the javascript eventhandler "onClick" in my
struts html:tag options. 
I want to submit my HTML-Form every time an element of my select tag has
been selected.  
The developer guide contains such methods. But the compiler throws an
error: 


org.apache.jasper.compiler.CompileException: /select.jsp(20,3) Attribute
onClick invalid according to the specified TLD
at
org.apache.jasper.compiler.TagBeginGenerator.validate(TagBeginGenerator.
java:180) 

My Code is:



 
  
   

   
  
  




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




AW: Q: JavaScrip with Struts HTML Tags

2002-05-02 Thread bjoern blum

Hello I just tried to use the javascript eventhandler "onClick" in my
struts html:tag options. 
I want to submit my HTML-Form every time an element of my select tag has
been selected.  
The developer guide contains such methods. But the compiler throws an
error: 


org.apache.jasper.compiler.CompileException: /select.jsp(20,3) Attribute
onClick invalid according to the specified TLD
at
org.apache.jasper.compiler.TagBeginGenerator.validate(TagBeginGenerator.
java:180) 

My Code is:



 
  
   

   
  
  



Hope, that somebody can help me in this issue. If it isn't possible to
use such method in the struts-tag. Can somebody show another way to
implement this feature? 
 
bjoern


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Struts running in WAS 4.0

2002-05-02 Thread Chen, Paul (Consultant)

Does anyone run Struts under WAS 4.0?  Is Xerces 3.2.1 works with Struts in
WAS 4.0?

Paul

-Original Message-
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 8:58 AM
To: 'Struts Users Mailing List'
Subject: RE: Bean Bug?


Okay, I (finally) agree with you.  Thanks for the explanations.

Mark

-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 1:35 PM
To: Struts Users Mailing List
Subject: RE: Bean Bug?


Mark,
Regardless of how the number is formatted, there will always be a problem 
when handling currency amounts as floating numbers. Multiplication and 
division operations will introduce rounding errors. I have found that it is 
best to store currency amounts as ints and then have code in the beans to 
format the values for display. This also can ease I18n issues when dealing 
with currencies that don't contain decimals.

Regards,

Richard



At 06:22 AM 5/1/2002 -0400, you wrote:
>I see your point, but aren't you incurring unnecessary formatting overhead
>in the presentation tier (to say nothing of ongoing maintenance)?  Any
>Struts tag that writes to the presentation tier should take such formatting
>issues into consideration.  For example, the formatting tag that Chandras
>suggests (or using java.text.NumberFormat in the action) look like good
>solutions.
>
>Mark
>
>-Original Message-
>From: Richard Yee [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 30, 2002 6:55 PM
>
>Mark,
>In continuing with my last email. 1.00 would be stored as 100 in an int.
>
>-Richard
>At 03:52 PM 4/30/2002 -0700, you wrote:
> >Mark,
> >To store decimal numbers or any currency for that matter as ints, you
> >store the values as the smallest unit of currency.  For dollars, this is
> >0.01 or a cent. You then can avoid any round off errors when doing
> >multiplication or division.
> >
> >Regards,
> >
> >Richard
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Bean Bug?

2002-05-02 Thread Galbreath, Mark

Okay, I (finally) agree with you.  Thanks for the explanations.

Mark

-Original Message-
From: Richard Yee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 1:35 PM
To: Struts Users Mailing List
Subject: RE: Bean Bug?


Mark,
Regardless of how the number is formatted, there will always be a problem 
when handling currency amounts as floating numbers. Multiplication and 
division operations will introduce rounding errors. I have found that it is 
best to store currency amounts as ints and then have code in the beans to 
format the values for display. This also can ease I18n issues when dealing 
with currencies that don't contain decimals.

Regards,

Richard



At 06:22 AM 5/1/2002 -0400, you wrote:
>I see your point, but aren't you incurring unnecessary formatting overhead
>in the presentation tier (to say nothing of ongoing maintenance)?  Any
>Struts tag that writes to the presentation tier should take such formatting
>issues into consideration.  For example, the formatting tag that Chandras
>suggests (or using java.text.NumberFormat in the action) look like good
>solutions.
>
>Mark
>
>-Original Message-
>From: Richard Yee [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, April 30, 2002 6:55 PM
>
>Mark,
>In continuing with my last email. 1.00 would be stored as 100 in an int.
>
>-Richard
>At 03:52 PM 4/30/2002 -0700, you wrote:
> >Mark,
> >To store decimal numbers or any currency for that matter as ints, you
> >store the values as the smallest unit of currency.  For dollars, this is
> >0.01 or a cent. You then can avoid any round off errors when doing
> >multiplication or division.
> >
> >Regards,
> >
> >Richard
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Table of Radio Buttons

2002-05-02 Thread Daniel Haynes

Hi,

I am attempting to create a (fairly) simple web app using struts. I need to
create a table of questions with each question having radio buttons (a range
of numeric values) so the user can input and submit their answers:

question1o o o o o o o o
question2o o o o o o o o
...

My problem is that both the questions and the number of radio buttons needs
to be dynamic (based on what is currently in the database). I can iterate
through the questions and display them in the table but I am unsure how to
'marry' up the radio buttons, and then retrieve the data from the form when
the user submits.

Has anyone done anything similar to this ? Any example code or suggestions
would be gratefully recieved. I have been looking at the 'Using Struts'
article from the Athens Group 'Creating a Table of Radio Buttons' but am
getting more confused... (ProcessStatus.DONE.getMnemonic() - what is this
??)

Dan

Daniel Haynes



Re: Sorry Letters

2002-05-02 Thread SUPRIYA MISRA

Did you really spent your time doing those forms - I would love to work for 
your company.


>From: "Galbreath, Mark" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts (E-mail)" <[EMAIL PROTECTED]>
>Subject: Sorry Letters
>Date: Thu, 2 May 2002 07:29:52 -0400
>
>Okay, sorry I missed yesterday afternoon's "you suck fest" (the head of the
>department for which I am consulting got summarily canned and we were in
>temporary disarray).  To help try to get everybody to be friends again,
>let's exchange greetings:
>
>Guys:
>http://www.karmafarm.com/formletter.html
>
>Gals:
>http://www.karmafarm.com/letter.html
>
>
>St. Mark the Instigator
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>
>




_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I pass an ActionForward's path into a button's onclick() h andler

2002-05-02 Thread Galbreath, Mark

Try this:



Mark

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 1:26 PM

I have a form and it has a 'confirm' and a 'cancel' button.  The 'confirm'
button submits to the Action class.  I'd like the 'cancel' button to
redirect user to another Action, which has a global-forward named 'home'.

Here's what I'm attempting...

';"/>

This does not work at all.

Does anyone know how I could do this?

Many thanks.

Lindsay

--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: James Mitchell is a kind and generous person

2002-05-02 Thread Galbreath, Mark

I haven't said a word about this thread, but thank you for discrediting your
own criticism.  Are you over 14?

Mark

-Original Message-
From: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 01, 2002 2:18 PM

The fact is that both of you typically shoot your mouths off before you 
understand the issues.  In this case, there is a struts issue and you both 
assumed that it was something else.  The issue is not joking, it is that 
you both are impossible puerile.

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Struts Tutorial

2002-05-02 Thread Marius Gabor

Gut gemacht!!!

Stephan Wiesner wrote:
> Hi, I'm writing a Struts tutorial. The actual version (30 pages at the
> moment) can be found
> 
> at:
> 
> http://rzserv2.fhnon.de/~lg002556/struts/
> 
> 
> 
> It is written in englisch. And intended as an easy, step by step
> introduction.
> 
> 
> 
> Stephan
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
> 




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Sorry Letters

2002-05-02 Thread Galbreath, Mark

Okay, sorry I missed yesterday afternoon's "you suck fest" (the head of the
department for which I am consulting got summarily canned and we were in
temporary disarray).  To help try to get everybody to be friends again,
let's exchange greetings:

Guys:
http://www.karmafarm.com/formletter.html

Gals:
http://www.karmafarm.com/letter.html


St. Mark the Instigator

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




struts sub application selection issue? - was Tiles & subapplications

2002-05-02 Thread Ian Tomey


Hi again,

Been tracing through the code to see what the issue is (and if I can
fix it quickly) and spotted the problem. I'm not sure if this is going
to be problem anywhere else.
quick recap of what is going on:

call action in the /refdata sub app
that returns a tiles-def reference, which points to a page
/standardLayout.jsp
the layout has reference to /refdata/showAllSchemes.do
the tiles insert tag (supposedly) gets the value and inserts it into
the layout page (by using pageContext.include in the tag )
- boom - invalid action mapping.

The reason this is failing is that struts is not picking up the sub
application during the include. we are doing include on
"/refdata/showAllSchemes.do". We hit the ActionServlet, which goes
through to RequestUtils.selectApplication to determine the app. *this is
where it goes horribly wrong*

// Acquire the path used to compute the sub-application
String matchPath = request.getServletPath();

This gets however not  "/refdata/showAllSchemes.do" but
"/standardLayout.jsp", so the selected application for mapping actions
is the root application! (it then looks for the action named
"/refdata/showAllSchemes" inside the default application config)

Is this the expected behaviour when doing an include?. Later on in the
RequestProcessor the correct uri is got from

path = (String) request.getAttribute(INCLUDE_SERVLET_PATH);
if (path == null) {
path = request.getServletPath();
}

The first call gets the correct path (/refdata/showAllSchemes.do) in
this case. Should this be done in RequestUtils.selectApplication as
well?

finally,
an obvious way to get around these problems in tiles is to refer to a
layout page in the sub application. unfortunately this means copying the
layout page into every sub application. Then as well we loose access to
the root application and have to copy the pages/action mappings into
every sub app as well... GRRR!

Ian



—--
Hi all,

Got a problem trying to move our app over to using tiles and its
probably specifically related to sub applications.

In this simple case, we have the default app and a sub app called
refdata. In the refdata config we have something along these lines:


  



  


and the tile def:


  
  


Now, when we do http://localhost/testapp/refdata/showAScheme.do the
showScheme.jsp displays, but the /refdata/showAllSchemes.do fails with
an invalid request. However, if I place

  

in the tiledef then the application list action in the default app
works fine.

Obviously tiles is working in default app space. Anybody got a patch
or
workaround for this problem?
Ian



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




[ANN] Struts Wizard v1.0 final for JBuilder

2002-05-02 Thread emmanuel.boudrant


 Hi everybody,
I just released StrutsWizard v1.0, this is an opentool for JBuilder IDE. This gallery 
wizard can create ActionForm, Action and fully JSP input page.
Update in 1.0 release:
   Work with Struts Console (JBuilder opentool mode) by James Holmes, now struts 
wizard update struts-config.xml via Struts Console.. 
   7 Types added in form properties creation (String, int, float, boolean...) 
   You can now choose the input tag type foreach properties. 
   You can now set the initializer foreach properties. 
   Class generation based on Borland JOT (Java Object Toolkit), so syntax errors are 
detected (and commented;). 

more info : http://www.mycgiserver.com/~eboudrant/

You can download it at : 
http://codecentral.borland.com/codecentral/ccweb.exe/listing?id=17849

Emmanuel.



-
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !



Q: inifite loop --> Why?

2002-05-02 Thread Björn Blum

Hello,
Everytime i want to initialize the select tag in my jsp. Tomcat or
rather struts produces an infinite loop.
It always executes the getPlanningperiodid - Method of the
PlanningPeriodHelper Class. As you see i have hardcoded the list, which
has to be used for the select tag. But the problem still stands.

Hope you can help me. Here's the code of my small jsp.

Thanx a lot for your help.

Bjoern

...
<%
  java.util.ArrayList pplist = new java.util.ArrayList();
  pplist.add(new
actions.helper.PlanningPeriodHelper("666","1234","5678"));
  pplist.add(new
actions.helper.PlanningPeriodHelper("777","1234","5678"));
  pageContext.setAttribute("pplist", pplist);
%>



Untitled Document












   






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




java.net.URL validating in form bean

2002-05-02 Thread Ric Searle

Hi,

I have a form where I want a user to enter a URL in a text box.  In the 
form's bean class I'm storing the URL as a java.net.URL.

Obviously, if a user enters something that isn't a valid URL then 
BeanUtils.populate throws a MalformedURLException.  I'd like to be able 
to catch this in the form's validate method and tell the user politely.  
How do I do this?

Thanks,

   Ric Searle
   Web Application Developer
   --
   Dialogue Communications Ltd
   http://www.dialogue.co.uk


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Initializing formBeans

2002-05-02 Thread Jon.Ridgway

Hi All,

This is the correct approach; but you can simplify things by writing a base
action class that your 'ReadUserAction' class extends. The base class might
look something like the one shown below. In this the setForm method uses the
entries from struts-config (mapping) to put the form in the correct scope,
using the correct key. This way you can change your struts-config without
having to change your code.

Hope this helps,

Jon Ridgway



package uk.co.upco.common.struts;
/*
 * (c) Copyright 2001 UPCO.
 * All Rights Reserved.
 */

import java.lang.reflect.InvocationTargetException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.apache.struts.action.Action;
import org.apache.struts.action.ActionMapping;
import org.apache.commons.beanutils.PropertyUtils;


/**
 * @version 1.0
 * @author  J Ridgway
 */
public class BaseAction extends Action
{
protected void copyProperties (Object destination, Object source)
throws ServletException
{
try
{
PropertyUtils.copyProperties (destination, source);
}
catch (InvocationTargetException e) 
{
Throwable t = e.getTargetException();
if (t == null) 
{
t = e;
}
throw new ServletException("populate", t);
} 
catch (Throwable t) 
{
throw new ServletException("populate", t);
}
}

protected void removeForm (ActionMapping mapping, 
HttpServletRequest request)
{
if ("session".equals(mapping.getScope()))
{
HttpSession session = request.getSession ();
session.removeAttribute(mapping.getName());
}
else
{
request.removeAttribute(mapping.getName());
}
}

protected void setForm (ActionMapping mapping, 
ActionForm form,
HttpServletRequest request)
{

if (mapping.getName() != null) 
{
if ("request".equals(mapping.getScope()))
{
request.setAttribute(mapping.getName(), form);
}
else
{
HttpSession session = request.getSession();
session.setAttribute(mapping.getName(), form);
}
}
}

}

-Original Message-
From: Thierry Ruiz [mailto:[EMAIL PROTECTED]] 
Sent: 02 May 2002 11:20
To: Struts Users Mailing List
Subject: Re: Initializing formBeans

At 09:25 AM 5/2/02 +0200, you wrote:
>Hi !
>
>I'm a newbie with struts and I cannot find the right way to do a simple
>thing like this :
>
>I would like to create an HTML form to modify the user information I
>recorded in my database.
>
>I didn't find how to initialize my form on a user-basis (the userId is
>stored in the session).
>
>Thanks
>
>Arnaud
>
>---
>Arnaud GADBY
>
>EILEO
>9ter rue Carnot
>94270 Le Kremlin Bicetre
>FRANCE

Hi Arnaud,

I guess that you're searching a way to initialise the form with the 
informations
of the existing user. I've been faced with something similar. Here is what 
I did :

The thing is that I haven't found a built-in way to pass the session 
(containing the user id)
to the form implementation, and the ActionForm.reset() method  that could 
have been
used to populate the form with user data is not called (If somedy knows 
why...).

So I created a specific Action in that goal. In the doPerfom method I 
create a new instance of the form
bean and populate it with the user informations (that is in your session I 
guess).
The key is that this new form instance should be set in your session with 
the same attibute name
defined in struts-config 


This Action is called by an 'edit user' link or button and forwards to the 
user form page.


Hope this help.

Thierry Ruiz
SchlumbergerSema.



--
To unsubscribe, e-mail:

For additional commands, e-mail:


The contents of this email are intended only for the named addressees and
may contain confidential and/or privileged material. If received in error
please contact UPCO on +44 (0) 113 201 0600 and then delete the entire
e-mail from your system. Unauthorised review, distribution, disclosure or
other use of this information could constitute a breach of confidence. Your
co-operation in this matter is greatly appreciated. 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Singleton vs ServletContext

2002-05-02 Thread Jose Galiana

Hi, Adam

Can you send me a copy of your code?

Thanks
Jose Galiana
Recursos en la Red, S.L.U

-Mensaje original-
De: Damien VIEL [mailto:[EMAIL PROTECTED]]
Enviado el: miércoles, 24 de abril de 2002 11:59
Para: Struts Users Mailing List
CC: [EMAIL PROTECTED]
Asunto: Re: Singleton vs ServletContext


Yes,
Please send me a copy

Thanks

Dams
[EMAIL PROTECTED]

- Original Message -
From: "Kipnis, Adam" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, April 23, 2002 7:37 PM
Subject: RE: Singleton vs ServletContext


> I wouldn't recommend Poolman since I have found it to be pretty
problematic.
> As for the Singleton vs Servlet approach, I think that's really up to
> personal preference. If you put your connection pool logic inside a
servlet
> and have that servlet load on startup, you're not really that much
different
> than a standard singleton. Since there are usually more uses for an
> application level service other than a connection pool (ie, a global level
> internal data caching system), I wrote a services manager as a servlet
that
> loads all the application level services, including connection pools, on
> start-up based on configuration files. If you like, I can send you a copy
of
> the servlet and associated connection pool.
>
> -Adam Kipnis
> [EMAIL PROTECTED]
>
>
> -Original Message-
> From: Damien VIEL [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 23, 2002 12:20 AM
> To: Struts Users Mailing List
> Subject: Singleton vs ServletContext
>
>
> Hi !!
>
> My question is about the best way to implement a JDBC ConnectionPool for
> Struts.
> I've heard that the one that is already in Struts is not a good choice.
> I've also read many mails about PoolMan.
> In Servlets & JSP book from Marty Hall, he speaks also about Singleton.
>
> What's the easiest way ?
> Has anybody a simple sample ?
>
> Thanks All.
>
> Best
>
> Dams
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: RE : Initializing formBeans

2002-05-02 Thread Vikram Goyal01

Hmm not sure why you want to do that..
If you are asking as to how step 2 takes place then this is how I do it..
In my definition of the form bean I have my value object as a parameter with the 
corresponding get and set methods. In my get method for the value object, I copy the 
form bean properties to the value object and in the set method, I copy the properties 
from the value object to the form bean. So in your action class that initialises the 
form bean, set your value object in the form bean. This should now give you the form 
bean that is associated with the page that user needs to modify.

HTH,
V

-Original Message-
From: Arnaud Gadby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 2:52 PM
To: 'Struts Users Mailing List'
Subject: RE : Initializing formBeans


The next question is : how is it possible to access the session from the
FormBean constructor ?

---
Arnaud GADBY   

EILEO
9ter rue Carnot
94270 Le Kremlin Bicetre
FRANCE

-Message d'origine-
De : Vikram Goyal01 [mailto:[EMAIL PROTECTED]] 
Envoyé : jeudi 2 mai 2002 11:13
À : Struts Users Mailing List
Objet : RE: Initializing formBeans

1. Create a value object that encapsulates the data once the user logs
in.
2. Create a form bean that captures this data from the value object.
3. Modify struts config to assocaite this form with the action on the
modify page.

I think thats it... 



-Original Message-
From: Arnaud Gadby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 12:55 PM
To: [EMAIL PROTECTED]
Subject: Initializing formBeans


Hi !

I'm a newbie with struts and I cannot find the right way to do a simple
thing like this :

I would like to create an HTML form to modify the user information I
recorded in my database.

I didn't find how to initialize my form on a user-basis (the userId is
stored in the session).

Thanks

Arnaud

---
Arnaud GADBY   

EILEO
9ter rue Carnot
94270 Le Kremlin Bicetre
FRANCE



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Initializing formBeans

2002-05-02 Thread Thierry Ruiz

At 09:25 AM 5/2/02 +0200, you wrote:
>Hi !
>
>I'm a newbie with struts and I cannot find the right way to do a simple
>thing like this :
>
>I would like to create an HTML form to modify the user information I
>recorded in my database.
>
>I didn't find how to initialize my form on a user-basis (the userId is
>stored in the session).
>
>Thanks
>
>Arnaud
>
>---
>Arnaud GADBY
>
>EILEO
>9ter rue Carnot
>94270 Le Kremlin Bicetre
>FRANCE

Hi Arnaud,

I guess that you're searching a way to initialise the form with the 
informations
of the existing user. I've been faced with something similar. Here is what 
I did :

The thing is that I haven't found a built-in way to pass the session 
(containing the user id)
to the form implementation, and the ActionForm.reset() method  that could 
have been
used to populate the form with user data is not called (If somedy knows 
why...).

So I created a specific Action in that goal. In the doPerfom method I 
create a new instance of the form
bean and populate it with the user informations (that is in your session I 
guess).
The key is that this new form instance should be set in your session with 
the same attibute name
defined in struts-config 


This Action is called by an 'edit user' link or button and forwards to the 
user form page.


Hope this help.

Thierry Ruiz
SchlumbergerSema.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tiles & sub applications

2002-05-02 Thread Ian Tomey


Hi all,

Got a problem trying to move our app over to using tiles and its
probably specifically related to sub applications.

In this simple case, we have the default app and a sub app called
refdata. In the refdata config we have something along these lines:


  



  


and the tile def:


  
  


Now, when we do http://localhost/testapp/refdata/showAScheme.do the
showScheme.jsp displays, but the /refdata/showAllSchemes.do fails with
an invalid request. However, if I place

  

in the tiledef then the application list action in the default app
works fine.

Obviously tiles is working in default app space. Anybody got a patch or
workaround for this problem?
Ian


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE : Initializing formBeans

2002-05-02 Thread Arnaud Gadby

The next question is : how is it possible to access the session from the
FormBean constructor ?

---
Arnaud GADBY   

EILEO
9ter rue Carnot
94270 Le Kremlin Bicetre
FRANCE

-Message d'origine-
De : Vikram Goyal01 [mailto:[EMAIL PROTECTED]] 
Envoyé : jeudi 2 mai 2002 11:13
À : Struts Users Mailing List
Objet : RE: Initializing formBeans

1. Create a value object that encapsulates the data once the user logs
in.
2. Create a form bean that captures this data from the value object.
3. Modify struts config to assocaite this form with the action on the
modify page.

I think thats it... 



-Original Message-
From: Arnaud Gadby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 12:55 PM
To: [EMAIL PROTECTED]
Subject: Initializing formBeans


Hi !

I'm a newbie with struts and I cannot find the right way to do a simple
thing like this :

I would like to create an HTML form to modify the user information I
recorded in my database.

I didn't find how to initialize my form on a user-basis (the userId is
stored in the session).

Thanks

Arnaud

---
Arnaud GADBY   

EILEO
9ter rue Carnot
94270 Le Kremlin Bicetre
FRANCE



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Q: Need help, by using select tag correctly

2002-05-02 Thread Björn Blum

Hi,
Thanx for your help. It works. 
But now there's another "funny" problem. Struts produces by pasing and
generating the select tag an infinite loop. 
It always calls the getter-method of planningperiodid in my helperclass,
although there are only two elements in my pplist.
Does anybody knows such behaviour?
Here's the select - tag in my jsp:
...

<%
List pplist = (List)request.getAttribute("pplist");
%>







  



...

Thanx for your help 

bjoern





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Initializing formBeans

2002-05-02 Thread Vikram Goyal01

1. Create a value object that encapsulates the data once the user logs in.
2. Create a form bean that captures this data from the value object.
3. Modify struts config to assocaite this form with the action on the modify page.

I think thats it... 



-Original Message-
From: Arnaud Gadby [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 02, 2002 12:55 PM
To: [EMAIL PROTECTED]
Subject: Initializing formBeans


Hi !

I'm a newbie with struts and I cannot find the right way to do a simple
thing like this :

I would like to create an HTML form to modify the user information I
recorded in my database.

I didn't find how to initialize my form on a user-basis (the userId is
stored in the session).

Thanks

Arnaud

---
Arnaud GADBY   

EILEO
9ter rue Carnot
94270 Le Kremlin Bicetre
FRANCE



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Iterating two lists

2002-05-02 Thread Ian Tomey


Yeah there are times when I could have done with this as well. What's
required really is a flag on the iterate tag named something like
loop="false" where the end tag code will move to the next item in the
iterator/array/whatever but just drop out of the end of the tag, not
repeat it. then you could do something like


   
   Struts list member  thinks  sucks
  


no, hold on that looks confusing. probably a better idea is to subclass
the iterate tag and set the flag in the constructor/reset and call it
something different, say nextitem...


   
   Struts list member  thinks  sucks
  


either way, its not going to take a lot of work... 

Ian



>>> [EMAIL PROTECTED] 05/01/02 09:10pm >>>
Say I have two lists, which are (in Java terms) independent.  Is it 
possible, using the Struts tags, to iterate and use nested properties
to 
iterate over them "in parallel", so the that I can refer to the the nth

item in both lists as the same time, or do I have to build a custom 
class that holds one item from each and combine the two lists into
one.

Thanks.
David Corbin


--
To unsubscribe, e-mail:  

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




What about popolating a DynaActionForm ?

2002-05-02 Thread emmanuel.boudrant


Hi,

I've got a DynaActionForm with an Array, I receive correctly an Array in my action but 
when I redisplay the form, the input tags used to display array's elements (with 
tabindex="n") doesn't display every elements but display the reference to the array 
([Ljava.lang.String;@xx).

Is it a bug, unfinished feature from Struts1.1b1 or a bad use of DynaActionForm ?

Thanx,
Emmanuel



-
Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !



AW: Need help, by using select tag correctly

2002-05-02 Thread Björn Blum

Hello,
and here is the code of the form bean (I forgot in the last mail). I
don't see any mistakes in my code. So I don't know why tomcat can't find
an gettermethod for the planningperiod - field..

.
package forms;

import actions.helper.*;

import org.apache.struts.action.ActionForm;

public class SelectPPForm extends ActionForm {

  protected String planningperiod;
  protected PlanningPeriodHelper selectedpp;


  public void setSelectedpp(PlanningPeriodHelper spp)
  {
this.selectedpp = spp;
  }

  public void setPlanningperiod(String sPP){
this.planningperiod = sPP;
  }

  public String getPlanningperiod(){
return this.planningperiod;
  }

  public PlanningPeriodHelper getSelectedpp()
  {
return this.selectedpp;
  }
}
...

...




 



 



But it acutally doesn't work...

Thanx for your help bjoern


 package
actions.helper;



public class PlanningPeriodHelper extends PlanningPeriod {

  private String planningperiodid;
  private String begindate;
  private String enddate;

  public PlanningPeriodHelper() {
  }
  public PlanningPeriodHelper(String ppid, String begindate, String
enddate)
  {
this.planningperiodid = ppid;
this.begindate = begindate;
this.enddate = enddate;
  }

  public void setPlanningperiodid(String ppid)
  {
this.planningperiodid = ppid;
  }

  public void setBegindate(String bd)
  {
this.begindate = bd;
  }

  public void setEeginddate(String ed)
  {
this.enddate = ed;
  }

  public String getPlanningperiodid()
  {
return super.getPlanningPeriodID();
  }

  public String getBegindate()
  {
return begindate;
  }
  public String getEnddate()
  {
return enddate;
  }

  public static List getAllPlanningperiods()
  {
Iterator _pps = PlanningPeriod.getPlanningPeriods().iterator();
List _pplist = new ArrayList();

while (_pps.hasNext())
{
  PlanningPeriod next = (PlanningPeriod)_pps.next();
  _pplist.add(new PlanningPeriodHelper(next.getPlanningPeriodID(),
   new
Long(next.getBeginDate()).toString(),
   new
Long(next.getEndDate()).toString()));
}
return _pplist;
  }
}

<-- end -->
<-- action class ->
public class InitSelectAction extends Action {

  public ActionForward perform (ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws
IOException, ServletException  {
List _pplist = PlanningPeriodHelper.getAllPlanningperiods();

request.setAttribute("pplist",_pplist);
request.setAttribute("begindate", new Long(1234).toString());
request.setAttribute("enddate", new Long(1235).toString());

return mapping.findForward("init");
 }

}
<-- end -->
<-- jsp -->



 
  
   
   
   
  
 
 
  
   <% out.print("Begin Date = " + request.getAttribute("begindate"));%>
  
 
 
  
   <% out.print("End Date = " + request.getAttribute("enddate"));%>
  
 
 
  
  
 




<-- end -->
<-- error code --->
javax.servlet.ServletException: No getter method available for property
planningperiodid for bean under name org.apache.struts.taglib.html.BEAN
 at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImp
l.java:452)
 at
org.apache.jsp._0002fselect_jsp._jspService(_0002fselect_jsp.java:218)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
..
root cause

javax.servlet.jsp.JspException: No getter method available for property
planningperiodid for bean under name org.apache.struts.taglib.html.BEAN
 at
org.apache.struts.taglib.html.SelectTag.doStartTag(SelectTag.java:304)
 at
org.apache.jsp._0002fselect_jsp._jspService(_0002fselect_jsp.java:115)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
..

<-- end -->

I hope you can help me. I'm at my wit's end.

many,many thanx

bjoern


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:


Initializing formBeans

2002-05-02 Thread Arnaud Gadby

Hi !

I'm a newbie with struts and I cannot find the right way to do a simple
thing like this :

I would like to create an HTML form to modify the user information I
recorded in my database.

I didn't find how to initialize my form on a user-basis (the userId is
stored in the session).

Thanks

Arnaud

---
Arnaud GADBY   

EILEO
9ter rue Carnot
94270 Le Kremlin Bicetre
FRANCE



--
To unsubscribe, e-mail:   
For additional commands, e-mail: