Creating a bean at run-time from xml-file.

2003-01-16 Thread Simon Kelly
Hi all,

Not too sure whether this is at all possible, but can you dynamically create
a new class during run-time from an xml-file?  I ask as this as I may have
some xml files that are not defined in a DTD/Schema but I would need to put
them into a bean.

Cheers

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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




Complete tutorial on Digester?

2003-01-16 Thread Simon Kelly
Hi,

Does any one know of a good, complete, tutorial on Digester and all it's
uses?  I've got a couple of small example based ones but they don't really
deal with the more complex xml structures or how to handle recursion within
xml.

Cheers

Simon

Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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




RE: The best way for learning struts (stupid question)

2003-01-16 Thread Jacob Hookom
If you want to do up a simple application that involves persisting data,
here is what you want to start out with (includes open source library
recommendations):

First you need to do RDD Analysis, which is Responsibility Driven
Design.That means, make a list of everything you want your
application to do, usually this is referred to as an FRD or MRD in some
circles (Functionality/Marketing Requirements Document).  Note,
sometimes the requirements documentation is proceeded by Use Cases or a
narrative of how a user interacts with the application.  Once you have
all your requirements listed, you, as a programmer, should start
grouping or assigning these requirements to hypothetical services or
layers.  Remember it is good to have lots of layers (well, not more than
5 or 6 in most cases).  Sometimes these steps are accompanied by
extensive FUDs (F***ed up diagrams) to help get your ideas down quickly
(including your site map of all the pages).

Once you have your requirements broken up to layers, start defining the
objects that will accomplish your application's goals.  I usually lay
out my whole application in interfaces before actually ever creating an
Object.  This will force you into the Bridge Pattern methodology along
with extensive uses of the Factory or Factory Method Pattern.  This is
the key for pluggable design.  You will need to think about things such
as how transactions will take place-- like what are the steps for
creating and validating a User.  Usually these flows are taken from Use
Cases or from FUDs.  Match each step with a service layer and an object
to take care of it.

Now for the gritty technical stuff.

Persistence:
If you have a RDBMS available to you, such as SQL Server or MySQL, then
the easiest route is OJB (don't let others tell you differently,
especially if you aren't a follower of Joe Celko, author of "SQL for
Smarties").  OJB is available at Jakarta's web site and works perfectly
with the concept of interfacing all of your business objects.  The neat
thing is that OJB will take care of all the SQL stuff for you.  Granted,
it will take a few days to get OJB setup, but the development process
goes VERY FAST once everything's setup.

Another option is storing data as XML.  Don't learn XML unless your boss
wants you to or if you get a kick out of learning other people's syntax.
There are a few libraries available to you such as Digester, Castor, and
Betwixt.  All three libraries will take care of automatically converting
your Java Objects into well formatted XML and visa versa.  I recommend
Betwixt for the beginner because everything is VERY simple.  It also
extends the Digester Libraries in reading XML and converting it to a
Java Object for use.  If you want to go hog wild with lots of
customizability, then check out Castor (www.castor.org).  I've used it
on a few projects and I'm quite happy with it.

The Fire Break
Now, back to layering...  As per my original email, we would want to
isolate the persistence layer, so put in an intermediate service layer
that acts like a curtain.  We can call this intermediate layer the Fire
Break.  The Fire Break hides your persistence layer from Struts so if
you end up changing the persistence layer, you don't have to change any
of your controller or view level code.  The Fire Break in itself can act
like a controller or container of services, not only for persisting
objects.  You could write up a Fire Break so it operated like such:

FireBreak fireBreak = FireBreak.getInstance(servletContext);
PersistenceService pServ = fireBreak.getPersistenceService();
pServ.store(myEmployeeObject);

By looking at the code, we've hid the persistence implementation via
interfaces so to the Struts Action, we don't know if we are storing
myEmployeeObject as XML or in a DB, we just know it was stored.  Of
course, you might want to setup some kind of transaction object where
you ask the PersistenceService for a transaction object to use, and then
do all of your persistence tasks, then commit them or roll them back to
assure the ACID properties.

NOTE:  If you are doing up something fast and gritty, then feel free to
throw the persistence layer calls in your Struts Actions, I will show an
example below of how to do this with OJB.

Controller (Struts):
If you did your job correctly above, your code in the Action's execute()
method should be less than 20 lines, possibly 10 lines:

// example without firebreak

public ActionForward execute(Blah blah blah)
{
 EmployeeForm empForm = (EmployeeForm) form;
 try 
 {
  PersistenceBroker pb = pbFactory.getPersistenceBroker();
  Employee empObject = new EmployeeObject();
  BeanUtils.copyProperties(empForm, empObject);
  pb.store(empObject);
 }
 catch (Exception e)
 {
// do exception handling
 }
 return mappings.findForward("success");
}

That's all there is to it if you have your EmployeeForm pre-validated
with the Validator libraries.  One thing t

RE: Complete tutorial on Digester?

2003-01-16 Thread Jacob Hookom
| -Original Message-
| From: Simon Kelly [mailto:[EMAIL PROTECTED]]
| Sent: Thursday, January 16, 2003 2:07 AM
| To: Struts Users Mailing List
| Subject: Complete tutorial on Digester?
| 
| Hi,
| 
| Does any one know of a good, complete, tutorial on Digester and all
it's
| uses?  I've got a couple of small example based ones but they don't
really
| deal with the more complex xml structures or how to handle recursion
| within
| xml.

JavaWorld (close enough)
http://www.javaworld.com/javaworld/jw-10-2002/jw-1025-opensourceprofile.
html

Recursion is handled by specifying leading "*/tagName" in your path
specifications.  I used it in my CacheFilter implementation that allows
you to setup trees of caches via the Composite Pattern.

// from my ServletCacheRuleSet extends RuleSetBase
public void addRuleInstances(Digester digester)
{   
digester.addObjectCreate("*/cache", "type",
CompositeServletCache.class);
digester.addSetProperties("*/cache");
digester.addSetNext("*/cache", "addServletCache");
}

// from my ServletCacheConfig (this.rules is a ServletCacheRuleSet)
public ServletCache createCache(InputSource inputSource) throws
IOException, SAXException
{
ServletCache cache = this.createCache();

Digester digester = new Digester();
this.rules.addRuleInstances(digester);
digester.push(cache);

digester.parse(inputSource);

return cache;
}

For more complex examples, check out Strut's source code, Craig or
whomever wrote all the configuration/setup procedures with Digester.

-Jacob Hookom

| 
| Cheers
| 
| Simon
| 
| Institut fuer
| Prozessdatenverarbeitung
| und Elektronik,
| Forschungszentrum Karlsruhe GmbH,
| Postfach 3640,
| D-76021 Karlsruhe,
| Germany.
| 
| Tel: (+49)/7247 82-4042
| E-mail : [EMAIL PROTECTED]
| 
| 
| --
| To unsubscribe, e-mail:   
| For additional commands, e-mail: 


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




Datagrid using struts

2003-01-16 Thread Harinath DP
Hi,

I need to implement Data grid using Struts. Can anybody guide me to how
about doing this? Do we have any taglib, which can do this?

-Hari



RE: How to let a user click a column header to sort data in a t ab le u sing struts?

2003-01-16 Thread Heligon Sandra
I did what you said but that still does not go, here the code of my page
JSP.
I would have forgotten something? 

<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>



<%-- Add a vertical scroll bar to the list --%>


<%-- List of ATM calls --%>


<%-- Title for the columns of the table --%>








 



 









initTable("table0");




I placed the file sortTable.js in the directory where I placed the JSP file.
How can I be certain that script is called? 

Thanks a lot in advance

-Original Message-
From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
Sent: 15 January 2003 22:31
To: Struts Users Mailing List
Subject: RE: How to let a user click a column header to sort data in a t
ab le u sing struts?




To resolve your problem, here is what you can do : write

 initTable("table0");

   after the tag "" of your table. The script only needs the 
contents of the table to be loaded. Putting the code on the onLoad event of 
the body make sure the script is executed after the whole page has been 
loaded, but putting this line of code instead, at the bottom of the page, 
works fine, I've just tested it.

Thomas

At 18:24 15/01/2003, you wrote:
>That seems indeed very simple but I will know if somebody uses it with the
>Tiles components.
>Because with these components we do not write "with the hand" JSP  pages
and
>more particularly the tag < body > attached to each page. The page is build
>with the content of the file tiles-def.xml.
>Moreover I do not understand exactly how does this work.
>And thus I do not see how to indicate the command
>onLoad='initTable("table0");' for init the table to sorting.
>This table can vary from one page to another, is it systematically
necessary
>to put the same id?
>where do I have to put the JS command onLoad within a Tiles application?
>
>Thanks in advance.
>
>-Original Message-
>From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
>Sent: 15 January 2003 15:09
>To: 'Struts Users Mailing List'
>Subject: RE: How to let a user click a column header to sort data in a
>tab le u sing struts?
>
>
>BOMBZ!! That's really cool.  It works in Mozilla too FYI.
>
>-Jacob
>
>| -Original Message-
>| From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
>| Sent: Wednesday, January 15, 2003 7:55 AM
>| To: Struts Users Mailing List
>| Subject: Re: How to let a user click a column header to sort data in a
>tab
>| le u sing struts?
>|
>|
>| Isn't it ? This is a friend of mine who has coded it, and it's working
>| well. Check out the attachement.
>|
>| Thomas
>|
>| At 14:40 15/01/2003 +0100, you wrote:
>| >2003. január 15. 14:39 dátummal Thomas CORNET ezt írtad:
>| > > Hello
>| > >
>| > > Do you need this sequence to be full JSP ?? Because JavaScript
>| librairies
>| > > exist to let you directly sort tables. Thus, no page reload is
>needed.
>| >
>| >Sounds interesting! Is it running on the popular browsers? Where can
>I
>| get
>| >this?
>| >
>| >Tib
>| >
>| >--
>| >To unsubscribe, e-mail:   | [EMAIL PROTECTED]>
>| >For additional commands, e-mail: | [EMAIL PROTECTED]>
>
>
>
>--
>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 let a user click a column header to sort data in a t ab le u sing struts?

2003-01-16 Thread Thomas CORNET

   This kind of HTML code works with me... What error(s) do your brower 
display ?



test




First Name
Last Name


John
Doe


Zinedine
Zidane


Andre
Agassi


Albert
Einstein




initTable("table0");



At 09:32 16/01/2003 +0100, you wrote:
I did what you said but that still does not go, here the code of my page
JSP.
I would have forgotten something?

<%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>


<%-- Add a vertical scroll bar to the list --%>
<%-- List of ATM calls --%> <%-- Title for the columns of the table --%>
I placed the file sortTable.js in the directory where I placed the JSP 
file. How can I be certain that script is called? Thanks a lot in advance 
-Original Message- From: Thomas CORNET [mailto:[EMAIL PROTECTED]] 
Sent: 15 January 2003 22:31 To: Struts Users Mailing List Subject: RE: How 
to let a user click a column header to sort data in a t ab le u sing 
struts? To resolve your problem, here is what you can do : write after the 
tag "" of your table. The script only needs the contents of the table to 
be loaded. Putting the code on the onLoad event of the body make sure the 
script is executed after the whole page has been loaded, but putting this 
line of code instead, at the bottom of the page, works fine, I've just 
tested it. Thomas At 18:24 15/01/2003, you wrote: >That seems indeed very 
simple but I will know if somebody uses it with the >Tiles 
components. >Because with these components we do not write "with the hand" 
JSP pages and >more particularly the tag < body > attached to each page. 
The page is build >with the content of the file tiles-def.xml. >Moreover I 
do not understand exactly how does this work. >And thus I do not see how 
to indicate the command >onLoad='initTable("table0");' for init the table 
to sorting. >This table can vary from one page to another, is it 
systematically necessary >to put the same id? >where do I have to put the 
JS command onLoad within a Tiles application? > >Thanks in 
advance. > >-Original Message- >From: Jacob Hookom 
[mailto:[EMAIL PROTECTED]] >Sent: 15 January 2003 15:09 >To: 'Struts Users 
Mailing List' >Subject: RE: How to let a user click a column header to 
sort data in a >tab le u sing struts? > > >BOMBZ!! That's really cool. It 
works in Mozilla too FYI. > >-Jacob > >| -Original Message- >| 
From: Thomas CORNET [mailto:[EMAIL PROTECTED]] >| Sent: Wednesday, 
January 15, 2003 7:55 AM >| To: Struts Users Mailing List >| Subject: Re: 
How to let a user click a column header to sort data in a >tab >| le u 
sing struts? >| >| >| Isn't it ? This is a friend of mine who has coded
it, and it's working >| well. Check out the attachement. >| >| 
Thomas >| >| At 14:40 15/01/2003 +0100, you wrote: >| >2003. január 15. 
14:39 dátummal Thomas CORNET ezt írtad: >| > > Hello >| > > >| > > Do you 
need this sequence to be full JSP ?? Because JavaScript >| 
librairies >| > > exist to let you directly sort tables. Thus, no page 
reload is >needed. >| > >| >Sounds interesting! Is it running on the 
popular browsers? Where can >I >| 
get >| >this? >| > >| >Tib >| > >| >-- >| >To unsubscribe, e-mail: | 
[EMAIL PROTECTED]> >| >For additional commands, e-mail: | 
[EMAIL PROTECTED]> > > > >-- >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: How to let a user click a column header to sort data in a t ab le u sing struts?

2003-01-16 Thread Heligon Sandra
I placed your code in my JSP page, I can view
the table but I didn't see the name of the column
(header name) and I can't sort the table.
Do you have an idea ?

-Original Message-
From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2003 09:46
To: Struts Users Mailing List
Subject: RE: How to let a user click a column header to sort data in a t
ab le u sing struts?



This kind of HTML code works with me... What error(s) do your brower 
display ?



 test


 
 
 First Name
 Last Name
 
 
 John
 Doe
 
 
 Zinedine
 Zidane
 
 
 Andre
 Agassi
 
 
 Albert
 Einstein
 
 

 
 initTable("table0");



At 09:32 16/01/2003 +0100, you wrote:
>I did what you said but that still does not go, here the code of my page
>JSP.
>I would have forgotten something?
>
><%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
>
>
><%-- Add a vertical scroll bar to the list --%>
><%-- List of ATM calls --%> <%-- Title for the columns of the table --%>
>I placed the file sortTable.js in the directory where I placed the JSP 
>file. How can I be certain that script is called? Thanks a lot in advance 
>-Original Message- From: Thomas CORNET [mailto:[EMAIL PROTECTED]] 
>Sent: 15 January 2003 22:31 To: Struts Users Mailing List Subject: RE: How 
>to let a user click a column header to sort data in a t ab le u sing 
>struts? To resolve your problem, here is what you can do : write after the 
>tag "" of your table. The script only needs the contents of the table to 
>be loaded. Putting the code on the onLoad event of the body make sure the 
>script is executed after the whole page has been loaded, but putting this 
>line of code instead, at the bottom of the page, works fine, I've just 
>tested it. Thomas At 18:24 15/01/2003, you wrote: >That seems indeed very 
>simple but I will know if somebody uses it with the >Tiles 
>components. >Because with these components we do not write "with the hand" 
>JSP pages and >more particularly the tag < body > attached to each page. 
>The page is build >with the content of the file tiles-def.xml. >Moreover I 
>do not understand exactly how does this work. >And thus I do not see how 
>to indicate the command >onLoad='initTable("table0");' for init the table 
>to sorting. >This table can vary from one page to another, is it 
>systematically necessary >to put the same id? >where do I have to put the 
>JS command onLoad within a Tiles application? > >Thanks in 
>advance. > >-Original Message- >From: Jacob Hookom 
>[mailto:[EMAIL PROTECTED]] >Sent: 15 January 2003 15:09 >To: 'Struts Users 
>Mailing List' >Subject: RE: How to let a user click a column header to 
>sort data in a >tab le u sing struts? > > >BOMBZ!! That's really cool. It 
>works in Mozilla too FYI. > >-Jacob > >| -Original Message- >| 
>From: Thomas CORNET [mailto:[EMAIL PROTECTED]] >| Sent: Wednesday, 
>January 15, 2003 7:55 AM >| To: Struts Users Mailing List >| Subject: Re: 
>How to let a user click a column header to sort data in a >tab >| le u 
>sing struts? >| >| >| Isn't it ? This is a friend of mine who has coded 
>it, and it's working >| well. Check out the attachement. >| >| 
>Thomas >| >| At 14:40 15/01/2003 +0100, you wrote: >| >2003. január 15. 
>14:39 dátummal Thomas CORNET ezt írtad: >| > > Hello >| > > >| > > Do you 
>need this sequence to be full JSP ?? Because JavaScript >| 
>librairies >| > > exist to let you directly sort tables. Thus, no page 
>reload is >needed. >| > >| >Sounds interesting! Is it running on the 
>popular browsers? Where can >I >| 
>get >| >this? >| > >| >Tib >| > >| >-- >| >To unsubscribe, e-mail: | 
>[EMAIL PROTECTED]> >| >For additional commands, e-mail: | 
>[EMAIL PROTECTED]> > > > >-- >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:


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




RE: How to let a user click a column header to sort data in a t ab le u sing struts?

2003-01-16 Thread Thomas CORNET

Try this...

At 10:21 16/01/2003 +0100, you wrote:

I placed your code in my JSP page, I can view
the table but I didn't see the name of the column
(header name) and I can't sort the table.
Do you have an idea ?

-Original Message-
From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2003 09:46
To: Struts Users Mailing List
Subject: RE: How to let a user click a column header to sort data in a t
ab le u sing struts?



This kind of HTML code works with me... What error(s) do your brower
display ?

First Name Last Name
John Doe
Zinedine Zidane
Andre Agassi
Albert Einstein


At 09:32 16/01/2003 +0100, you wrote:
>I did what you said but that still does not go, here the code of my page
>JSP.
>I would have forgotten something?
>
><%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
>
>
><%-- Add a vertical scroll bar to the list --%>
><%-- List of ATM calls --%> <%-- Title for the columns of the table --%>
>I placed the file sortTable.js in the directory where I placed the JSP
>file. How can I be certain that script is called? Thanks a lot in advance
>-Original Message- From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
>Sent: 15 January 2003 22:31 To: Struts Users Mailing List Subject: RE: How
>to let a user click a column header to sort data in a t ab le u sing
>struts? To resolve your problem, here is what you can do : write after the
>tag "" of your table. The script only needs the contents of the table to
>be loaded. Putting the code on the onLoad event of the body make sure the
>script is executed after the whole page has been loaded, but putting this
>line of code instead, at the bottom of the page, works fine, I've just
>tested it. Thomas At 18:24 15/01/2003, you wrote: >That seems indeed very
>simple but I will know if somebody uses it with the >Tiles
>components. >Because with these components we do not write "with the hand"
>JSP pages and >more particularly the tag < body > attached to each page.
>The page is build >with the content of the file tiles-def.xml. >Moreover I
>do not understand exactly how does this work. >And thus I do not see how
>to indicate the command >onLoad='initTable("table0");' for init the table
>to sorting. >This table can vary from one page to another, is it
>systematically necessary >to put the same id? >where do I have to put the
>JS command onLoad within a Tiles application? > >Thanks in
>advance. > >-Original Message- >From: Jacob Hookom
>[mailto:[EMAIL PROTECTED]] >Sent: 15 January 2003 15:09 >To: 'Struts Users
>Mailing List' >Subject: RE: How to let a user click a column header to
>sort data in a >tab le u sing struts? > > >BOMBZ!! That's really cool. It
>works in Mozilla too FYI. > >-Jacob > >| -Original Message- >|
>From: Thomas CORNET [mailto:[EMAIL PROTECTED]] >| Sent: Wednesday,
>January 15, 2003 7:55 AM >| To: Struts Users Mailing List >| Subject: Re:
>How to let a user click a column header to sort data in a >tab >| le u
>sing struts? >| >| >| Isn't it ? This is a friend of mine who has coded
>it, and it's working >| well. Check out the attachement. >| >|
>Thomas >| >| At 14:40 15/01/2003 +0100, you wrote: >| >2003. január 15.
>14:39 dátummal Thomas CORNET ezt írtad: >| > > Hello >| > > >| > > Do you
>need this sequence to be full JSP ?? Because JavaScript >|
>librairies >| > > exist to let you directly sort tables. Thus, no page
>reload is >needed. >| > >| >Sounds interesting! Is it running on the
>popular browsers? Where can >I >|
>get >| >this? >| > >| >Tib >| > >| >-- >| >To unsubscribe, e-mail: |
>[EMAIL PROTECTED]> >| >For additional commands, e-mail: |
>[EMAIL PROTECTED]> > > > >-- >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:


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





sort.zip
Description: Zip archive
--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Action without forward ?

2003-01-16 Thread Marcus Biel
Hi, I am using Struts 1.02 and got the following Problem:
I need to create a JSP where u can select to create a pdf or excel file.

The problem is, I didn't programm the Action to create the file, a
colleague did.
So I need some way to call his Servlet. I tried to map directly to it,
that did not work. So I wrote an Action that called a method to create
this pdf / excel file,
depending on the parameters given.

The problem is, that after this method there is no forward anymore, as
the control is given to the servlet
to create the file, and thats it. But the   
public ActionForward perform(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
{

needs some forward.
For the moment I wrote "return null" but imho thats no prober solution.

Maybe you got an idea.


thanks,

marcus

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




Re: How to let a user click a column header to sort data in a t ab le u sing struts?

2003-01-16 Thread Marcus Biel

Hi Sandra.
For each column header you need a link that gives the required
parameters to your Action.
You can add 1 static and one dynamic parameter.
If you need more dynamic parameters, you need to add a map.

Without map:
Column Name

With MapMap:
Column Name

And have a look at:
http://localhost:8080/struts-documentation/struts-html.html#link
http://localhost:8080/struts-exercise-taglib/html-link.jsp


hope this helps.

marcus

[EMAIL PROTECTED] schrieb:
> 
> I placed your code in my JSP page, I can view
> the table but I didn't see the name of the column
> (header name) and I can't sort the table.
> Do you have an idea ?
> 
> -Original Message-
> From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
> Sent: 16 January 2003 09:46
> To: Struts Users Mailing List
> Subject: RE: How to let a user click a column header to sort data in a t
> ab le u sing struts?
> 
> This kind of HTML code works with me... What error(s) do your brower
> display ?
> 
> 
> 
>  test
> 
> 
>   align=center bgcolor=black>
>  
>  First Name
>  Last Name
>  
>  
>  John
>  Doe
>  
>  
>  Zinedine
>  Zidane
>  
>  
>  Andre
>  Agassi
>  
>  
>  Albert
>  Einstein
>  
>  
> 
>  
>  initTable("table0");
> 
> 
> 
> At 09:32 16/01/2003 +0100, you wrote:
> >I did what you said but that still does not go, here the code of my page
> >JSP.
> >I would have forgotten something?
> >
> ><%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
> >
> >
> ><%-- Add a vertical scroll bar to the list --%>
> ><%-- List of ATM calls --%> <%-- Title for the columns of the table --%>
> >I placed the file sortTable.js in the directory where I placed the JSP
> >file. How can I be certain that script is called? Thanks a lot in advance
> >-Original Message- From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
> >Sent: 15 January 2003 22:31 To: Struts Users Mailing List Subject: RE: How
> >to let a user click a column header to sort data in a t ab le u sing
> >struts? To resolve your problem, here is what you can do : write after the
> >tag "" of your table. The script only needs the contents of the table to
> >be loaded. Putting the code on the onLoad event of the body make sure the
> >script is executed after the whole page has been loaded, but putting this
> >line of code instead, at the bottom of the page, works fine, I've just
> >tested it. Thomas At 18:24 15/01/2003, you wrote: >That seems indeed very
> >simple but I will know if somebody uses it with the >Tiles
> >components. >Because with these components we do not write "with the hand"
> >JSP pages and >more particularly the tag < body > attached to each page.
> >The page is build >with the content of the file tiles-def.xml. >Moreover I
> >do not understand exactly how does this work. >And thus I do not see how
> >to indicate the command >onLoad='initTable("table0");' for init the table
> >to sorting. >This table can vary from one page to another, is it
> >systematically necessary >to put the same id? >where do I have to put the
> >JS command onLoad within a Tiles application? > >Thanks in
> >advance. > >-Original Message- >From: Jacob Hookom
> >[mailto:[EMAIL PROTECTED]] >Sent: 15 January 2003 15:09 >To: 'Struts Users
> >Mailing List' >Subject: RE: How to let a user click a column header to
> >sort data in a >tab le u sing struts? > > >BOMBZ!! That's really cool. It
> >works in Mozilla too FYI. > >-Jacob > >| -Original Message- >|
> >From: Thomas CORNET [mailto:[EMAIL PROTECTED]] >| Sent: Wednesday,
> >January 15, 2003 7:55 AM >| To: Struts Users Mailing List >| Subject: Re:
> >How to let a user click a column header to sort data in a >tab >| le u
> >sing struts? >| >| >| Isn't it ? This is a friend of mine who has coded
> >it, and it's working >| well. Check out the attachement. >| >|
> >Thomas >| >| At 14:40 15/01/2003 +0100, you wrote: >| >2003. január 15.
> >14:39 dátummal Thomas CORNET ezt írtad: >| > > Hello >| > > >| > > Do you
> >need this sequence to be full JSP ?? Because JavaScript >|
> >librairies >| > > exist to let you directly sort tables. Thus, no page
> >reload is >needed. >| > >| >Sounds interesting! Is it running on the
> >popular browsers? Where can >I >|
> >get >| >this? >| > >| >Tib >| > >| >-- >| >To unsubscribe, e-mail: |
> >[EMAIL PROTECTED]> >| >For additional commands, e-mail: |
> >[EMAIL PROTECTED]> > > > >-- >To

Re: Action without forward ?

2003-01-16 Thread Nicolas De Loof

perform() method in any action MAY return an ActionForward, but CAN return
null if it has build the response for the client browser. This is commonly
used for PDF or Excel generation, where they're is no need for a JSP.

I don't understand why you cannot directly use the PDF-generator servlet, by
adding a dedicated mapping in your web.xml.

Nico.

> Hi, I am using Struts 1.02 and got the following Problem:
> I need to create a JSP where u can select to create a pdf or excel file.
>
> The problem is, I didn't programm the Action to create the file, a
> colleague did.
> So I need some way to call his Servlet. I tried to map directly to it,
> that did not work. So I wrote an Action that called a method to create
> this pdf / excel file,
> depending on the parameters given.
>
> The problem is, that after this method there is no forward anymore, as
> the control is given to the servlet
> to create the file, and thats it. But the
> public ActionForward perform(
> ActionMapping mapping,
> ActionForm form,
> HttpServletRequest request,
> HttpServletResponse response)
> {
>
> needs some forward.
> For the moment I wrote "return null" but imho thats no prober solution.
>
> Maybe you got an idea.
>
>
> thanks,
>
> marcus


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




How to set a parameter in an action

2003-01-16 Thread Oliver Kersten
Hi,
in my action-class I can get a parameter from the request by using the
method getParameter(String); from the class HttpServletRequest.
But now I want to set a parameter (not an attribute) in my action and then
make the forward so that another action can read this parameter.

I need it because normally the action gets the parameter by the URL. But in
this special case I have to send the parameter by an action.

ciao Oliver.


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




Re: How to set a parameter in an action

2003-01-16 Thread Nicolas De Loof
Servlet API doesn't allow you to write request attributes (parameters,
headers...)

You can try to forward to a new ActionForward object, build with the mapping
to your "another" action, adding needed parameter with GET syntax :
...
return new ActionForward( NEXT_ACTION_URL + "?param=" + paramValue );
(I'm not sure it will work...)


Another solution is to put param value in request and forward to a JSP that
will redirect browser to the NEXT_ACTION_URL with param added :

# in your action:
request.setAttribute("param", paramValue);
return new ActionForward( "redirect.jsp" );


# redirect.jsp :

  ">


document.forms[0].submit();



Nico.

> Hi,
> in my action-class I can get a parameter from the request by using the
> method getParameter(String); from the class HttpServletRequest.
> But now I want to set a parameter (not an attribute) in my action and then
> make the forward so that another action can read this parameter.
>
> I need it because normally the action gets the parameter by the URL. But
in
> this special case I have to send the parameter by an action.
>
> ciao Oliver.
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



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




Scriptlet not executed

2003-01-16 Thread Míguel Ángel Mulero Martínez
Hi all!
I’ve seen in a example of the Struts Documentation how to merge scriptlets
with tags. I’ve tried this:




But the code generated is:


So the <%=pos%> is not executed. I’ve tried a lot of things similar to this.
Someone could help me?

Thanks!
Miguel






RE: Scriptlet not executed

2003-01-16 Thread Harinath DP
Try this

onclick='<%= "marcaMaximoCheckbox(0,, " + pos + ")" %>'



-Original Message-
From: Míguel Ángel Mulero Martínez
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 4:27 PM
To: Lista Struts
Subject: Scriptlet not executed

Hi all!
I've seen in a example of the Struts Documentation how to merge scriptlets
with tags. I've tried this:


   


But the code generated is:


So the <%=pos%> is not executed. I've tried a lot of things similar to this.
Someone could help me?

Thanks!
Miguel





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




RE: Scriptlet not executed

2003-01-16 Thread Míguel Ángel Mulero Martínez
This works, thanks, I tried somithing like this before but didn't work. I
don't kwon why.

Thanks again!
Miguel

-Mensaje original-
De: Harinath DP [mailto:[EMAIL PROTECTED]]
Enviado el: jueves, 16 de enero de 2003 12:14
Para: Struts Users Mailing List
Asunto: RE: Scriptlet not executed

Try this

onclick='<%= "marcaMaximoCheckbox(0,, " + pos + ")" %>'



-Original Message-
From: Míguel Ángel Mulero Martínez
[mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 4:27 PM
To: Lista Struts
Subject: Scriptlet not executed

Hi all!
I've seen in a example of the Struts Documentation how to merge scriptlets
with tags. I've tried this:


   


But the code generated is:


So the <%=pos%> is not executed. I've tried a lot of things similar to this.
Someone could help me?

Thanks!
Miguel





--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: [OT] Not spam...I swear--

2003-01-16 Thread Mark Galbreath
You're having baby goats???  The imagination explodes

-Original Message-
From: James Mitchell [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 6:17 PM

P.S.  I case anyone is wonder..I AM KIDDING



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




RE: [OT] RE: Not spam...I swear--

2003-01-16 Thread Mark Galbreath
So much for your school's credentials

-Original Message-
From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 10:09 PM


I could send you my resume if you would like.  The CS program I'm in starts
you in Java your first year and emphasizes on design patterns and software
development.  The material is so up to date that the department even
requested Simon Chappell (very well


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


RE: Not spam...I swear--

2003-01-16 Thread Mark Galbreath
servlet-interest permits solicitations for jobs, but the requestor will get
flamed if it's not clear in the subject, like "[employment]," so subscribers
can filter it out.  And if you need to received a solicitation on a user
list, you have more problems than just unemployment

Mark

-Original Message-
From: Daniel Joshua [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 8:31 PM

... maybe there should be a "[EMAIL PROTECTED]" for this sort of
ads.

Regards,
Daniel



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




LookupDispatchAction, setting parameter?

2003-01-16 Thread Cook, Graham

Small problem, I am using the LookupDispatchAction to handle multple
actions, SAVE, DELETE etc. In my JSP page i have a 'submitAction' text
field. When the value of 'supplierNumber' has been entered the 'onchange'
event will set the 'submitAction' field to the value 'SEARCH' and then
submit the form. The LookupDispatchAction then uses this 'submitAction'
value to determin what action to take.

The problem I have is that the field doesn't seem to change value, anyone
got any ideas???


Heres is the JSP page:-

...
...
...
function setAction(target) {
document.forms[0].submitAction.value=target;
document.forms[0].submit();
}
...
...


...
...


...
...




" This message contains information that may be privileged or confidential and 
is the property of the Cap Gemini Ernst & Young Group. It is intended only for 
the person to whom it is addressed. If you are not the intended recipient, you 
are not authorized to read, print, retain, copy, disseminate, distribute, or use 
this message or any part thereof. If you receive this message in error, please 
notify the sender immediately and delete all copies of this message ".



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




Struts taglibs - Is data grid possible

2003-01-16 Thread Harinath DP
Hi,
 
I need to implement Data grid using Struts. Can anybody guide me to how
about doing this? Do we have any taglib, which can do this?
 
-Hari
 
 



RE: [OT] Not spam...I swear--

2003-01-16 Thread Mark Galbreath
H...that's about 3 cases of good beer per referral.  Okay, count me in!
For every candidate you glean from
http://www.lincolntech.com/locations/columbia.html I expect 3 cases of
respectable English ale or Irish stout.  I had another URL, but I can't find
the matchbook.

Mark

-Original Message-
From: Aileen Cardenas [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 5:44 PM

one of you has some friends and family out of work and it can't hurt for you
to ask them--if you refer the person to me who gets the contract, you
receive a $100 referral fee.



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




Comparing values of variables

2003-01-16 Thread Harinath DP
Is there a taglib in struts which would allow me to compare a value of a
variable with a value of another variable. I went thru struts docs and found
only constants can be compared with  tag

-Hari



RE: Struts taglibs - Is data grid possible

2003-01-16 Thread Mark Galbreath
What do you mean by "data grid?"  Are you talking about some kind of matrix
in an HTML table or AWT/Swing grid?

Mark

-Original Message-
From: Harinath DP [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 7:02 AM
To: Struts-User
Subject: Struts taglibs - Is data grid possible 


Hi,
 
I need to implement Data grid using Struts. Can anybody guide me to how
about doing this? Do we have any taglib, which can do this?
 
-Hari
 
 



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




RE: Not spam...I swear--

2003-01-16 Thread Mark Galbreath
Try Star Search

-Original Message-
From: Aileen Cardenas [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 5:44 PM

--just digging for TALENT!



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




RE: [OT][BEER] Not spam...I swear--

2003-01-16 Thread Andrew Hill
3 cases. Wow. How many in a case?

Over here 100 USD would buy you less than 20 glasses... :-(

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 January 2003 20:07
To: 'Struts Users Mailing List'
Subject: RE: [OT] Not spam...I swear--


H...that's about 3 cases of good beer per referral.  Okay, count me in!
For every candidate you glean from
http://www.lincolntech.com/locations/columbia.html I expect 3 cases of
respectable English ale or Irish stout.  I had another URL, but I can't find
the matchbook.

Mark

-Original Message-
From: Aileen Cardenas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 5:44 PM

one of you has some friends and family out of work and it can't hurt for you
to ask them--if you refer the person to me who gets the contract, you
receive a $100 referral fee.



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: changing ActionForm to be a Java interface

2003-01-16 Thread Dan Jacobs
Hi Craig,

Based on the oft misunderstood property of contravariance, I *do* 
conclude that form-beans should not be subtyped from Java Beans, for the 
reason that subtypes are never supposed to have fewer behaviors than 
their supertypes.  It's customary in good object-oriented design to use 
delegation rather than subclassing to use only a selected subset of 
behaviors from another kind of thing.  If Struts is saying that a 
form-bean should never act like a bean in such-and-such manners, then it 
follows that form-beans should not be beans.  This *is* an architecture 
issue.

I don't dispute the popularity of Struts, and I congratulate you on 
that.  But that's not grounds for justifying any and every aspect of its 
implementation approaches.  Windows 98 was popular too.  I think most of 
Struts is very well done, and I also think there's this specific problem 
with form-beans, long indicated by the persistent and ongoing level of 
misunderstanding surrounding them.

As for the beans introspector, you can still use that in your 
implementation if you want to go that route, and you can additionally 
ignore non-String beans properties, or any of a number of things like 
that to rein in misuse.  But as long as you call form-beans java-beans 
but intend somethimg more restrictive, there will be confusion.

A similar situation I ran into recently was one where a client 
implemented a ClassLoader solely for the purpose of being able to locate 
resources using a directory path.  But it wasn't actually able to load 
classes.  It was probably convenient to implement it as a subclass in 
order to inherit certain methods directly, but that didn't help when the 
next person actually attempted to use the thing as ClassLoader.

-- Dan

Craig R. McClanahan wrote:


On Wed, 15 Jan 2003, Dan Jacobs wrote:


Date: Wed, 15 Jan 2003 22:18:09 -0500
From: Dan Jacobs <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: changing ActionForm to be a Java interface

Hi Craig,

Well, I concede that this is not the sort of change to make for the 1.1
release.  But I still think that the underlying problem behind the
chronic misuse of form-beans is that they're described as beans, but
they're not really meant to be beans.  So I do still recommend
revisiting that aspect of the framework design.  What the framework
seems to intend here is a raw-form-data-holder with a little extra
support for validating raw form-data, etc.  What it's providing is a
please-dont-use-all-the-functionality-of-a-java-bean instead, and that's
confusing.



Just out of curiousity, how do you conclude that an ActionForm not a
JavaBean?  It follows all the requirements of the JavaBeans spec (it's a
*class*, not an interface; zero-args constructor; naming patterns for the
getters and setters; support for BeanInfo overrides if you really want to
use different method names).  In fact, standard form beans wouldn't work
at all if the implementation class's bean properties could not be
introspected correctly by javax.beans.Introspector.
   ^


But come on, this isn't a human factors issue, it's an architecture
issue.



Good luck succeeding with that attitude :-).  After being a key player in
the two most successful (measured in users) projects at Jakarta -- Struts
and Tomcat -- I can confidently assert that almost *everything* important
about a successful software project is a human factors issue.
Architectural purity is a primary concern only for architects (which is
obviously why you care about this).


If you imagine the possible causes of chronic and consistent
confusion in traditional building architecture, I'm sure you'll follow
the analogy back again.  I think Struts is a terrific idea, and I'd like
to see it improve.  I'd also like to use more of JPlates functionality
in Struts applications, but JPlates already works much better than JSPs,
so that'll do for now.



A couple of million downloads since its inception says we didn't do half
bad on the architecture of Struts -- at least from a user perspective :-).


Anyway, best of luck with the 1.1 release.



Thanks ... and good luck with JPlates as well.


-- Dan



Craig


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







RE: Struts taglibs - Is data grid possible

2003-01-16 Thread Harinath DP
Hi Mark,
I am trying to implement something like AWT/Swing grid (similar to DBGrid in
Visual Basic) where in number of rows can be increased by click of button or
when the rows are exhausted.

I need to present user with few rows (initially)  for him to do data entry
which can be captured in ActionForm for further processing by my business
tier

Hari

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 5:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts taglibs - Is data grid possible

What do you mean by "data grid?"  Are you talking about some kind of matrix
in an HTML table or AWT/Swing grid?

Mark

-Original Message-
From: Harinath DP [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 7:02 AM
To: Struts-User
Subject: Struts taglibs - Is data grid possible


Hi,

I need to implement Data grid using Struts. Can anybody guide me to how
about doing this? Do we have any taglib, which can do this?

-Hari





--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: changing ActionForm to be a Java interface

2003-01-16 Thread Sangeetha Nagarjunan

Hi,
Would you  please tell me where i coudl find sample code for :
validate() method?

Thanks
Regards
Sangeetha Nagarjunan
IT Solutions India Pvt. Ltd.
Bangalore
080 - 6655122 X 2119



   
  
Dan Jacobs 
  

jects.com> cc: 
  
   Subject: Re: changing ActionForm to be 
a Java interface   
01/16/03 05:47 
  
PM 
  
Please respond 
  
to "Struts Users   
  
Mailing List"  
  
   
  
   
  




Hi Craig,

Based on the oft misunderstood property of contravariance, I *do*
conclude that form-beans should not be subtyped from Java Beans, for the
reason that subtypes are never supposed to have fewer behaviors than
their supertypes.  It's customary in good object-oriented design to use
delegation rather than subclassing to use only a selected subset of
behaviors from another kind of thing.  If Struts is saying that a
form-bean should never act like a bean in such-and-such manners, then it
follows that form-beans should not be beans.  This *is* an architecture
issue.

I don't dispute the popularity of Struts, and I congratulate you on
that.  But that's not grounds for justifying any and every aspect of its
implementation approaches.  Windows 98 was popular too.  I think most of
Struts is very well done, and I also think there's this specific problem
with form-beans, long indicated by the persistent and ongoing level of
misunderstanding surrounding them.

As for the beans introspector, you can still use that in your
implementation if you want to go that route, and you can additionally
ignore non-String beans properties, or any of a number of things like
that to rein in misuse.  But as long as you call form-beans java-beans
but intend somethimg more restrictive, there will be confusion.

A similar situation I ran into recently was one where a client
implemented a ClassLoader solely for the purpose of being able to locate
resources using a directory path.  But it wasn't actually able to load
classes.  It was probably convenient to implement it as a subclass in
order to inherit certain methods directly, but that didn't help when the
next person actually attempted to use the thing as ClassLoader.

-- Dan

Craig R. McClanahan wrote:

>
>On Wed, 15 Jan 2003, Dan Jacobs wrote:
>
>>Date: Wed, 15 Jan 2003 22:18:09 -0500
>>From: Dan Jacobs <[EMAIL PROTECTED]>
>>Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>Subject: Re: changing ActionForm to be a Java interface
>>
>>Hi Craig,
>>
>>Well, I concede that this is not the sort of change to make for the 1.1
>>release.  But I still think that the underlying problem behind the
>>chronic misuse of form-beans is that they're described as beans, but
>>they're not really meant to be beans.  So I do still recommend
>>revisiting that aspect of the framework design.  What the framework
>>seems to intend here is a raw-form-data-holder with a little extra
>>support for validating raw form-data, etc.  What it's providing is a
>>please-dont-use-all-the-functionality-of-a-java-bean instead, and that's
>>confusing.
>>
>
>Just out of curiousity, how do you conclude that an ActionForm not a
>JavaBean?  It follows all the requirements of the JavaBeans spec (it's a
>*class*, not an interface; zero-args constructor; naming patterns for the
>getters and setters; support for BeanInfo overrides if you really want to
>use different method names).  In fact, standard form beans wouldn't work
>at all if the implementation class's bean properties could not be
>introspected correctly by javax.beans.Introspector.
>^
>
>>But come on, this isn't a human factors issue, it's an architecture
>>issue.
>>
>
>Good luck succeeding with that attitude :-).  After being a key player in
>the two most successful (measured in users) projects at Jakarta -- Struts
>and Tomcat -- I can confidently assert that almost *ev

RE: Struts taglibs - Is data grid possible

2003-01-16 Thread Mark Galbreath
I haven't done this stuff since Java 1.1 and AWT GridBagLayout, but it looks
like you may want to check out Chapter 10 of "John Zukowski's Definitive
Guide to Swing for Java 2" (Apress 1999).

Mark

-Original Message-
From: Harinath DP [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 7:18 AM


Hi Mark,
I am trying to implement something like AWT/Swing grid (similar to DBGrid in
Visual Basic) where in number of rows can be increased by click of button or
when the rows are exhausted.

I need to present user with few rows (initially)  for him to do data entry
which can be captured in ActionForm for further processing by my business
tier

Hari



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




RE: changing ActionForm to be a Java interface

2003-01-16 Thread Mark Galbreath
I believe you will find an example in the Struts example:

%STRUTS_HOME%/webapps/LogonForm.java

Mark

-Original Message-
From: Sangeetha Nagarjunan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 7:31 AM

Hi,
Would you  please tell me where i coudl find sample code for :
validate() method?



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




RE: changing ActionForm to be a Java interface

2003-01-16 Thread Mark Galbreath
Okay, I'll bite.  What is "contravariance?"

Mark

-Original Message-
From: Dan Jacobs [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 7:17 AM

Based on the oft misunderstood property of contravariance, I *do* 
conclude that form-beans should not be subtyped from Java Beans, for the 
reason that subtypes are never supposed to have fewer behaviors than 
their supertypes.  It's customary in good object-oriented design to use 
delegation rather than subclassing to use only a selected subset of 
behaviors from another kind of thing.  If Struts is saying that a 
form-bean should never act like a bean in such-and-such manners, then it 
follows that form-beans should not be beans.  This *is* an architecture 
issue.



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




Re: Action without forward ?

2003-01-16 Thread Marcus Biel
> I don't understand why you cannot directly use the PDF-generator servlet, by
> adding a dedicated mapping in your web.xml.
It needs to go through the request processor, to check if the user is
logged in
or not. 

> perform() method in any action MAY return an ActionForward, but CAN return
> null if it has build the response for the client browser. This is commonly
> used for PDF or Excel generation, where they're is no need for a JSP.

It writes the binary value(pdf) into the response.getOutputStream,
with content-Type "application/pdf" und with content-length set.
But in the browser nothing can be seen, even though the pdf that gets
created correctly,
and the browser is loading the pdf-plugin.


Any ideas ?

marcus



[EMAIL PROTECTED] schrieb:
> 
> perform() method in any action MAY return an ActionForward, but CAN return
> null if it has build the response for the client browser. This is commonly
> used for PDF or Excel generation, where they're is no need for a JSP.
> 
> I don't understand why you cannot directly use the PDF-generator servlet, by
> adding a dedicated mapping in your web.xml.
> 
> Nico.
> 
> > Hi, I am using Struts 1.02 and got the following Problem:
> > I need to create a JSP where u can select to create a pdf or excel file.
> >
> > The problem is, I didn't programm the Action to create the file, a
> > colleague did.
> > So I need some way to call his Servlet. I tried to map directly to it,
> > that did not work. So I wrote an Action that called a method to create
> > this pdf / excel file,
> > depending on the parameters given.
> >
> > The problem is, that after this method there is no forward anymore, as
> > the control is given to the servlet
> > to create the file, and thats it. But the
> > public ActionForward perform(
> > ActionMapping mapping,
> > ActionForm form,
> > HttpServletRequest request,
> > HttpServletResponse response)
> > {
> >
> > needs some forward.
> > For the moment I wrote "return null" but imho thats no prober solution.
> >
> > Maybe you got an idea.
> >
> >
> > thanks,
> >
> > marcus
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




Re: Action without forward ?

2003-01-16 Thread Nicolas De Loof

> It writes the binary value(pdf) into the response.getOutputStream,
> with content-Type "application/pdf" und with content-length set.
> But in the browser nothing can be seen, even though the pdf that gets
> created correctly,
> and the browser is loading the pdf-plugin.
>
>
> Any ideas ?
>
> marcus
>

I never set content-length when generating response (PDF or not). Perhaps
you have a mistake in length calculation and browser waits for EOF ? Try
without.

Nico.


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




Re: Comparing values of variables

2003-01-16 Thread Nicolas De Loof


> Is there a taglib in struts which would allow me to compare a value of a
> variable with a value of another variable. I went thru struts docs and
found
> only constants can be compared with  tag
>
> -Hari


Try this :



 ...



Nico.


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




RE: changing ActionForm to be a Java interface

2003-01-16 Thread Andrew Hill
Would you please stop hijacking other peoples threads to post unrelated
questions.
Its rather impolite.

-Original Message-
From: Sangeetha Nagarjunan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 16 January 2003 20:31
To: Struts Users Mailing List
Subject: Re: changing ActionForm to be a Java interface



Hi,
Would you  please tell me where i coudl find sample code for :
validate() method?

Thanks
Regards
Sangeetha Nagarjunan
IT Solutions India Pvt. Ltd.
Bangalore
080 - 6655122 X 2119




Dan Jacobs

jects.com> cc:
   Subject: Re: changing
ActionForm to be a Java interface
01/16/03 05:47
PM
Please respond
to "Struts Users
Mailing List"






Hi Craig,

Based on the oft misunderstood property of contravariance, I *do*
conclude that form-beans should not be subtyped from Java Beans, for the
reason that subtypes are never supposed to have fewer behaviors than
their supertypes.  It's customary in good object-oriented design to use
delegation rather than subclassing to use only a selected subset of
behaviors from another kind of thing.  If Struts is saying that a
form-bean should never act like a bean in such-and-such manners, then it
follows that form-beans should not be beans.  This *is* an architecture
issue.

I don't dispute the popularity of Struts, and I congratulate you on
that.  But that's not grounds for justifying any and every aspect of its
implementation approaches.  Windows 98 was popular too.  I think most of
Struts is very well done, and I also think there's this specific problem
with form-beans, long indicated by the persistent and ongoing level of
misunderstanding surrounding them.

As for the beans introspector, you can still use that in your
implementation if you want to go that route, and you can additionally
ignore non-String beans properties, or any of a number of things like
that to rein in misuse.  But as long as you call form-beans java-beans
but intend somethimg more restrictive, there will be confusion.

A similar situation I ran into recently was one where a client
implemented a ClassLoader solely for the purpose of being able to locate
resources using a directory path.  But it wasn't actually able to load
classes.  It was probably convenient to implement it as a subclass in
order to inherit certain methods directly, but that didn't help when the
next person actually attempted to use the thing as ClassLoader.

-- Dan

Craig R. McClanahan wrote:

>
>On Wed, 15 Jan 2003, Dan Jacobs wrote:
>
>>Date: Wed, 15 Jan 2003 22:18:09 -0500
>>From: Dan Jacobs <[EMAIL PROTECTED]>
>>Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>Subject: Re: changing ActionForm to be a Java interface
>>
>>Hi Craig,
>>
>>Well, I concede that this is not the sort of change to make for the 1.1
>>release.  But I still think that the underlying problem behind the
>>chronic misuse of form-beans is that they're described as beans, but
>>they're not really meant to be beans.  So I do still recommend
>>revisiting that aspect of the framework design.  What the framework
>>seems to intend here is a raw-form-data-holder with a little extra
>>support for validating raw form-data, etc.  What it's providing is a
>>please-dont-use-all-the-functionality-of-a-java-bean instead, and that's
>>confusing.
>>
>
>Just out of curiousity, how do you conclude that an ActionForm not a
>JavaBean?  It follows all the requirements of the JavaBeans spec (it's a
>*class*, not an interface; zero-args constructor; naming patterns for the
>getters and setters; support for BeanInfo overrides if you really want to
>use different method names).  In fact, standard form beans wouldn't work
>at all if the implementation class's bean properties could not be
>introspected correctly by javax.beans.Introspector.
>^
>
>>But come on, this isn't a human factors issue, it's an architecture
>>issue.
>>
>
>Good luck succeeding with that attitude :-).  After being a key player in
>the two most successful (measured in users) projects at Jakarta -- Struts
>and Tomcat -- I can confidently assert that almost *everything* important
>about a successful software project is a human factors issue.
>Architectural purity is a primary concern only for architects (which is
>obviously why you care about this).
>
>> If you imagine the possible causes of chronic and consistent
>>confusion in traditional building architecture, I'm sure you'll follow
>>the analogy back again.  I think Struts is a terrific idea, and I'd like
>>to see it improve.  I'd also like to use more of JPlates functionality
>>in Struts applications, but JPlates already works much better than JSPs,
>>so that'll do for now.
>>
>
>A couple of million downloads since its inception says we didn't do hal

Re: Action without forward ?

2003-01-16 Thread Marcus Biel
> I never set content-length when generating response (PDF or not). Perhaps
> you have a mistake in length calculation and browser waits for EOF ? Try
> without.

Nope. I know it works as it works without Struts.


[EMAIL PROTECTED] schrieb:
> 
> > It writes the binary value(pdf) into the response.getOutputStream,
> > with content-Type "application/pdf" und with content-length set.
> > But in the browser nothing can be seen, even though the pdf that gets
> > created correctly,
> > and the browser is loading the pdf-plugin.
> >
> >
> > Any ideas ?
> >
> > marcus
> >
> 
> I never set content-length when generating response (PDF or not). Perhaps
> you have a mistake in length calculation and browser waits for EOF ? Try
> without.
> 
> Nico.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




Re: Action without forward ?

2003-01-16 Thread Nicolas De Loof
> > I never set content-length when generating response (PDF or not).
Perhaps
> > you have a mistake in length calculation and browser waits for EOF ? Try
> > without.
>
> Nope. I know it works as it works without Struts.
>

So, why don't you just add a mapping in web.xml for your PDF-maker servlet ?

Nico.


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




Re: Action without forward ?

2003-01-16 Thread Marcus Biel
Because then I wouldnt have a request processor.

The rest of the application is written in struts and uses the request
processor to
check wether the user is logged in or not.

If not, he gets forwarded to the login page instead of creating a pdf.

marcus

[EMAIL PROTECTED] schrieb:
> 
> > > I never set content-length when generating response (PDF or not).
> Perhaps
> > > you have a mistake in length calculation and browser waits for EOF ? Try
> > > without.
> >
> > Nope. I know it works as it works without Struts.
> >
> 
> So, why don't you just add a mapping in web.xml for your PDF-maker servlet ?
> 
> Nico.
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 

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




RE: LookupDispatchAction, setting parameter?

2003-01-16 Thread Cook, Graham
UPDATE:

It works if I take out the buttons:-




Why is this? The value that is set in the JavaScript funtion seems to be
getting overridden by the input buttons. Is this someting to do with the
browser.??




-Original Message-
From: Cook, Graham [mailto:[EMAIL PROTECTED]]
Sent: 16 January 2003 11:59
To: Struts Users Mailing List
Subject: LookupDispatchAction, setting parameter?



Small problem, I am using the LookupDispatchAction to handle multple
actions, SAVE, DELETE etc. In my JSP page i have a 'submitAction' text
field. When the value of 'supplierNumber' has been entered the 'onchange'
event will set the 'submitAction' field to the value 'SEARCH' and then
submit the form. The LookupDispatchAction then uses this 'submitAction'
value to determin what action to take.

The problem I have is that the field doesn't seem to change value, anyone
got any ideas???


Heres is the JSP page:-

...
...
...
function setAction(target) {
document.forms[0].submitAction.value=target;
document.forms[0].submit();
}
...
...


...
...


...
...





" This message contains information that may be privileged or confidential
and 
is the property of the Cap Gemini Ernst & Young Group. It is intended only
for 
the person to whom it is addressed. If you are not the intended recipient,
you 
are not authorized to read, print, retain, copy, disseminate, distribute, or
use 
this message or any part thereof. If you receive this message in error,
please 
notify the sender immediately and delete all copies of this message ".




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Re: The best way for learning struts (stupid question)

2003-01-16 Thread V. Cekvenich
http://www.sdtimes.com/news/063/story2.htm
Tomcat has most market share (above) and  best support.
(Check out PostgreSQL and Eclipse).

Re: training:
I plan to do public training "Intermediate Struts" via the Internet, in 
about a month.
4 Sessions Saturdays at 10:15 for about an hour, giving  labs for  home 
work due for next week labs. The cost will be only to cover the cost of 
webex, and so that it is not FREE.
It will cover is Struts review, Tiles, Master/Detail, Multi Row Update, 
Option Selections, Development Process, CRUD testing, and how to develop 
very very fast,  etc.

I have done lots of public (and private training) Struts training (and 
won best training by JDJ) and am looking to showcase my training 
approach, so someone else can do this kind of an online training seminar 
next time so I can see other training aproaches(but I would like them to 
take the class first, or even contribute to it, and then maybe donate 
all back to Struts). If I sign up at least 20 people I will do it.

.V

(This is not intro to Struts, some pre-reqs for the class are at least 
some MVC, and some books such as "SQL for Smarties",  "Java Web Compoent 
Developer Certification" or at least "JSP Weekend Crash Course")

joni santoso wrote:


* The Servlet API -- foundation to every Java-based web application



It's probably worth throwing in "installing and configuring a servlet
container like Tomcat" at about this point.  Many of us have the 
luxury of
sysadmins who takt that task on, but it's a very useful skill to know how
to set Tomcat up on your development PC.


I wonder if Tomcat is used in real and critical application by major 
companies? What other servlet containers out there? I once played with 
orion.
=== 

Meriahkan Hari Valentine Anda dan Ikuti Lomba Desain Kartu Eletronik 
dengan Tema Valentine
Ikuti Polling Pemilihan Pemenang Lomba Desain Kartu Elektronik Natal dan 
Tahun Baru 2003 di http://kartu.plasa.com/lomba
KSI PlasaCom - Reuni Alumni STTTelkom 
http://www.plasa.com/belajar/reuni.html 
=== 




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




RE: How to let a user click a column header to sort data in a t ab le u sing struts?

2003-01-16 Thread Heligon Sandra
Hi Marcus,

I don't understand why you speak about a tag mailto:[EMAIL PROTECTED]]
Sent: 16 January 2003 10:37
To: [EMAIL PROTECTED]
Subject: Re: How to let a user click a column header to sort data in a t
ab le u sing struts?



Hi Sandra.
For each column header you need a link that gives the required
parameters to your Action.
You can add 1 static and one dynamic parameter.
If you need more dynamic parameters, you need to add a map.

Without map:
Column Name

With MapMap:
Column Name

And have a look at:
http://localhost:8080/struts-documentation/struts-html.html#link
http://localhost:8080/struts-exercise-taglib/html-link.jsp


hope this helps.

marcus

[EMAIL PROTECTED] schrieb:
> 
> I placed your code in my JSP page, I can view
> the table but I didn't see the name of the column
> (header name) and I can't sort the table.
> Do you have an idea ?
> 
> -Original Message-
> From: Thomas CORNET [mailto:[EMAIL PROTECTED]]
> Sent: 16 January 2003 09:46
> To: Struts Users Mailing List
> Subject: RE: How to let a user click a column header to sort data in a t
> ab le u sing struts?
> 
> This kind of HTML code works with me... What error(s) do your brower
> display ?
> 
> 
> 
>  test
> 
> 
>   align=center bgcolor=black>
>  
>  First Name
>  Last Name
>  
>  
>  John
>  Doe
>  
>  
>  Zinedine
>  Zidane
>  
>  
>  Andre
>  Agassi
>  
>  
>  Albert
>  Einstein
>  
>  
> 
>  
>  initTable("table0");
> 
> 
> 
> At 09:32 16/01/2003 +0100, you wrote:
> >I did what you said but that still does not go, here the code of my page
> >JSP.
> >I would have forgotten something?
> >
> ><%@ taglib uri="/WEB-INF/tld/struts-logic.tld" prefix="logic" %>
> >
> >
> ><%-- Add a vertical scroll bar to the list --%>
> ><%-- List of ATM calls --%> <%-- Title for the columns of the table --%>
> >I placed the file sortTable.js in the directory where I placed the JSP
> >file. How can I be certain that script is called? Thanks a lot in advance
> >-Original Message- From: Thomas CORNET
[mailto:[EMAIL PROTECTED]]
> >Sent: 15 January 2003 22:31 To: Struts Users Mailing List Subject: RE:
How
> >to let a user click a column header to sort data in a t ab le u sing
> >struts? To resolve your problem, here is what you can do : write after
the
> >tag "" of your table. The script only needs the contents of the table to
> >be loaded. Putting the code on the onLoad event of the body make sure the
> >script is executed after the whole page has been loaded, but putting this
> >line of code instead, at the bottom of the page, works fine, I've just
> >tested it. Thomas At 18:24 15/01/2003, you wrote: >That seems indeed very
> >simple but I will know if somebody uses it with the >Tiles
> >components. >Because with these components we do not write "with the
hand"
> >JSP pages and >more particularly the tag < body > attached to each page.
> >The page is build >with the content of the file tiles-def.xml. >Moreover
I
> >do not understand exactly how does this work. >And thus I do not see how
> >to indicate the command >onLoad='initTable("table0");' for init the table
> >to sorting. >This table can vary from one page to another, is it
> >systematically necessary >to put the same id? >where do I have to put the
> >JS command onLoad within a Tiles application? > >Thanks in
> >advance. > >-Original Message- >From: Jacob Hookom
> >[mailto:[EMAIL PROTECTED]] >Sent: 15 January 2003 15:09 >To: 'Struts
Users
> >Mailing List' >Subject: RE: How to let a user click a column header to
> >sort data in a >tab le u sing struts? > > >BOMBZ!! That's really cool. It
> >works in Mozilla too FYI. > >-Jacob > >| -Original Message- >|
> >From: Thomas CORNET [mailto:[EMAIL PROTECTED]] >| Sent: Wednesday,
> >January 15, 2003 7:55 AM >| To: Struts Users Mailing List >| Subject: Re:
> >How to let a user click a column header to sort data in a >tab >| le u
> >sing struts? >| >| >| Isn't it ? This is a friend of mine who has coded
> >it, and it's working >| well. Check out the attachement. >| >|
> >Thomas >| >| At 14:40 15/01/2003 +0100, you wrote: >| >2003. január 15.
> >14:39 dátummal Thomas CORNET ezt írtad: >| > > Hello >| > > >| > > Do you
> >need this sequence to be full JSP ?? Because JavaScript >|
> >librairies >| > > exist to let you directly sort tables. Thus, no page
> >reload is >needed. >| > >| >Sounds interestin

Digester getting recursive tag types.

2003-01-16 Thread Simon Kelly
Hi all,

I am trying to load a set of beans using the Digester.  One of the beans
(Menu) will contain beans of the same type within.  The basic layout of a
page follows with what I think is the correct way of dragging in recursive
tags (IE SubMenu is of type Menu).  Can anyone verify if this is even in the
right ball park?

Cheers

Simon.

PS
I can't run it yet cause I'm only part way through workig out how to extract
it all afterwards.

[File sample]

  



  
  


  
  
  

  
  



[Code]
public static ActionForm createWebPageForm(String webPageResourcePath) {
//Get the resource doc by webPageResourcePath
InputStream xmlStream =
this.getClass().getResourceAsStream(webPageResourcePath);

//Load FrontForm bean from the sitepage.xml config file.
Digester digester = new Digester();
digester.setValidating(false);

digester.setRules(new ExtendedBaseRules());

//Load digester with rules
digester.addObjectCreate("WebPage", WebPage.class);

digester.addObjectCreate("WebPage/Project", Project.class);
digester.addBeanPropertySetter("WebPage/Project/Title", "Title");
digester.addBeanPropertySetter("WebPage/Project/Image", "Image");
digester.addBeanPropertySetter("WebPage/Project/Icon", "Icon");
digester.addBeanPropertySetter("WebPage/Project/Version",
"Vesrion");
digester.addBeanPropertySetter("WebPage/Project/Date", "Date");
digester.addBeanPropertySetter("WebPage/Project/Home", "Home");
digester.addBeanPropertySetter("WebPage/Project/Address",
"Address");
digester.addSetNext("WebPage/Project", "addProject");

digester.addObjectCreate("WebPage/Menu", Meun.class);
digester.addBeanPropertySetter("WebPage/Meunu/*/Name", "Name");
digester.addBeanPropertySetter("WebPage/Menu/*/MenuItem",
"MenuItem");
digester.addBeanPropertySetter("WebPage/Menu/*/MenuReference",
"MenuReference");
digester.addObjectCreate("WebPage/Menu/*/SubMenu", "SubMenu",
Menu.class);
digester.addBeanPropertySetter("WebPage/Menu/*/SubMenu/Name",
"Name");
digester.addBeanPropertySetter("WebPage/Menu/*/SubMenu/MenuItem",
"MenuItem");

digester.addBeanPropertySetter("WebPage/Menu/*/SubMenu/MenuReference",
"MenuReference");
digester.addSetNext("WebPage/Menu/*/SubMenu", "addSubMenu");
digester.addSetNext("WebPage/Menu", "addMenu");

digester.addObjectCreate("WebPage/Frame", Frame.class);
digester.addSetNext("WebPage/Frame", "addFrame");

//Create the form from file
return (WebPage)digester.parse(xmlStream);
}
Institut fuer
Prozessdatenverarbeitung
und Elektronik,
Forschungszentrum Karlsruhe GmbH,
Postfach 3640,
D-76021 Karlsruhe,
Germany.

Tel: (+49)/7247 82-4042
E-mail : [EMAIL PROTECTED]


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




Re: How to let a user click a column header to sort data in a t ab le u sing struts?

2003-01-16 Thread Marcus Biel
Oh - so you want to sort at the client side.

Well then your in the wrong mailinglist! ;-)

I mean you asked how to do it in struts.
that's always on the server side.

Of course you can do that with java script,
but imho java script sucks! ;-)

marcus




[EMAIL PROTECTED] schrieb:
> 
> Hi Marcus,
> 
> I don't understand why you speak about a tag  page="/sortmyRecords.do?,
> the aim of the script sortTable.js, is to update the page at the client side
> no request
> is done to the server. Isn't it ?
> If we use an action to sort the list, a request is sent to the server and
> the web server
> send a new page. The server will be overloaded rapidly.

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




[OT] Re: Un Subscribe

2003-01-16 Thread Melissa L Kelley
On Thu, 16 Jan 2003, Simon Kelly wrote:

> I apriciate that pun was probibly not the correct word but
>
> "Nice, obscure reference to a song liric that was in a tune from 25 years
> ago, that most pesonages of an age beneath that of three score years would
> not perchance to have had the delectible pleasure of listening to on an old
> gramaphone "
>
> Seeemed a bit too long ;-)
>
>

Allusion was probably the more appropriate word you were looking for.

[...]
> >
> > You can check out any time you like, but you can never leave...
> >

Being under 30, the first thing that popped into my mind was Roach Motel,
but that is "roaches check in, but they don't check out."

So, my second guess will be Hotel California.




--> stu: www.stuology.net
It just no longer is plain simple safe fun
when it's the psycho chimp that has the ray gun

Stuology -- A million monkeys can't be wrong


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




Re: How to let a user click a column header to sort data in a t ab le u sing struts?

2003-01-16 Thread Gemes Tibor
2003. január 16. 14:55 dátummal Marcus Biel ezt írtad:

> I mean you asked how to do it in struts.
> that's always on the server side.

Maybe but in this thread there was a script which did this, so that's the 
reason it is discussed here.

> Of course you can do that with java script,
> but imho java script sucks! ;-)

Maybe, but sometimes it comes really handy.

Tib

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




setting dynamic values in a ActionForm when it creates

2003-01-16 Thread Carl-Jakob
Hi
 
 Im using a multibox and figured out that if "selecteditems" and "id"
has the same value the box is "checked". 
 


 
Since it also is selecteditems i get the values of the users choice on
submit I must use someForm.selecteditems as property.
 
What I need to know is how do i set dynamic values in selecteditems in
someForm before i use multibox in the JSPpage? Can I set values from the
session attribute when someForm creates? 
 



RE: Action without forward ?

2003-01-16 Thread pqin
My writer writes binaries to output stream.

Stmt is an Oracle BFILE, response is HttpServletResponse, length doesn't
matter.

InputStream in = null ;
BufferedInputStream bis = null ;
ServletOutputStream writer = null ;
 
try
{
stmt.openFile() ;
in = stmt.getBinaryStream() ;
bis = new BufferedInputStream(in) ;
int length ;
byte[] buf = new byte[512] ;
writer = response.getOutputStream() ;
response.setContentType("application/pdf") ;
while ((length=bis.read(buf))!= -1)
{
writer.write(buf) ;
}
}
finally
{
if (writer != null)
writer.close() ;
if (in != null)
in.close() ;
if (bis != null)
bis.close() ;
if (stmt != null)
stmt.closeFile() ;
}
}

In my Action class, I return null.

It works perfectly if Adobe Acrobat Reader is installed.


Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Marcus Biel [mailto:[EMAIL PROTECTED]] 
Sent: January 16, 2003 7:37 AM
To: [EMAIL PROTECTED]
Subject: Re: Action without forward ?

> I don't understand why you cannot directly use the PDF-generator servlet,
by
> adding a dedicated mapping in your web.xml.
It needs to go through the request processor, to check if the user is
logged in
or not. 

> perform() method in any action MAY return an ActionForward, but CAN return
> null if it has build the response for the client browser. This is commonly
> used for PDF or Excel generation, where they're is no need for a JSP.

It writes the binary value(pdf) into the response.getOutputStream,
with content-Type "application/pdf" und with content-length set.
But in the browser nothing can be seen, even though the pdf that gets
created correctly,
and the browser is loading the pdf-plugin.


Any ideas ?

marcus



[EMAIL PROTECTED] schrieb:
> 
> perform() method in any action MAY return an ActionForward, but CAN return
> null if it has build the response for the client browser. This is commonly
> used for PDF or Excel generation, where they're is no need for a JSP.
> 
> I don't understand why you cannot directly use the PDF-generator servlet,
by
> adding a dedicated mapping in your web.xml.
> 
> Nico.
> 
> > Hi, I am using Struts 1.02 and got the following Problem:
> > I need to create a JSP where u can select to create a pdf or excel file.
> >
> > The problem is, I didn't programm the Action to create the file, a
> > colleague did.
> > So I need some way to call his Servlet. I tried to map directly to it,
> > that did not work. So I wrote an Action that called a method to create
> > this pdf / excel file,
> > depending on the parameters given.
> >
> > The problem is, that after this method there is no forward anymore, as
> > the control is given to the servlet
> > to create the file, and thats it. But the
> > public ActionForward perform(
> > ActionMapping mapping,
> > ActionForm form,
> > HttpServletRequest request,
> > HttpServletResponse response)
> > {
> >
> > needs some forward.
> > For the moment I wrote "return null" but imho thats no prober solution.
> >
> > Maybe you got an idea.
> >
> >
> > thanks,
> >
> > marcus
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: [OT] RE: Not spam...I swear--

2003-01-16 Thread Chappell, Simon P
Lands' End is interested in hiring J2EE developers. I know of one opening, there may 
be more. The main benefit is you'd get to work with me! ;-)

>-Original Message-
>From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, January 15, 2003 7:33 PM
>To: 'Struts Users Mailing List'
>Subject: [OT] RE: Not spam...I swear--
>
>
>Yeah, it would be nice to have some job offers for new college 
>graduates
>from nationally accredited universities with lots of java programming
>experience especially those who have been developing in struts for
>over a year now ;-)
>
>| -Original Message-
>| From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
>| Sent: Wednesday, January 15, 2003 7:11 PM
>| To: Struts Users Mailing List
>| Subject: RE: Not spam...I swear--
>| 
>| +1
>| This is probably the best place to find Java web developers that
>actually
>| know what the hell they're doing.  A hidden bonus to recruiters
>looking
>| for talent here, IMO, is that they might glean some notions of what
>| quality developers are interested in, talk about, etc--they have to
>hang
>| out on the list to see responses (well, okay, they could just use a
>filter,
>| but they're *likely* to hang out here).  If more recruiters did that,
>I
>| might have to answer less questions in the vein of "What's a Tomcat?"
>the
>| next time I'm hunting for a new gig.
>| 
>| peace,
>| Joe
>| 
>| > -Original Message-
>| > From: Justin Ashworth [mailto:[EMAIL PROTECTED]]
>| > Sent: Wednesday, January 15, 2003 5:06 PM
>| > To: 'Struts Users Mailing List'
>| > Subject: RE: Not spam...I swear--
>| >
>| >
>| > At the risk of diverting all the flames of this thread to
>| > myself, I have
>| > to put in my 2 cents.  Before you read any further - no, I am not
>| > looking for a job.
>| >
>| > While a $100 referral fee isn't much at all, it shouldn't be
>| > about that.
>| > While YOU may be employed, if you have a friend who needs a job the
>| > money should be secondary.
>| >
>| > Give credit to Ms. Aileen for knowing where to find good Struts
>talent
>| > (see her original e-mail).  Many technical recruiters don't
>| > deserve that
>| > title and to see one actually go right to the source of the
>| > best Struts
>| > talent is, to me, quite impressive.  If more recruiters
>| > worked this way
>| > we would have fewer unqualified developers who get hired into
>| > positions
>| > that could've been ours, just because they have the right buzzwords
>on
>| > their resumes.
>| >
>| > If this was a general Java job opening that was crossposted
>| > to numerous
>| > lists or if the list was flooded with such posts, I would have a
>| > different opinion.
>| >
>| > Justin (donning my flame-retardant suit)
>| >
>| > > -Original Message-
>| > > From: Kukreja, Vijay [mailto:[EMAIL PROTECTED]]
>| > > Sent: Wednesday, January 15, 2003 7:49 PM
>| > > To: Struts Users Mailing List
>| > > Subject: RE: Not spam...I swear--
>| > >
>| > >
>| > > $100 referal fee.. hehe.. you must be out of your mind.
>| > >
>| > > -Original Message-
>| > > From: Aileen Cardenas [mailto:[EMAIL PROTECTED]]
>| > > Sent: Wednesday, January 15, 2003 2:44 PM
>| > > To: [EMAIL PROTECTED]
>| > > Subject: Not spam...I swear--
>| > >
>| > >
>| > > --just digging for TALENT!
>| > >
>| > > When I find the right person, I will unsubscribe--I promise!
>| > >
>| > > I HAD to ask the experts for referrals, you certainly can't
>| > > blame me for trying!  Anyhow, I am sure that one of you has
>| > > some friends and family out of work and it can't hurt for you
>| > > to ask them--if you refer the person to me who gets the
>| > > contract, you receive a $100 referral fee.
>| > >
>| > > It's a win-win-win!  Toll free 877-317-8700, or direct
>650-583-3600.
>| > >
>| > > Thanks for your help!
>| > > Ms. Aileen
>| > > Aileen Cardenas
>| > > Technical Recruiter
>| > > Apex Systems, Inc.
>| > > 1250 Bayhill Drive, Suite 101
>| > > San Bruno, CA  94066
>| > > 650-583-3600
>| > > 650-583-3668 Fax
>| > > www.apexsystemsinc.com
>| > >
>| > >
>| > > --
>| > > To unsubscribe, e-mail:
>| > >  [EMAIL PROTECTED]>
>| > > For
>| > > additional commands,
>| > > e-mail: 
>| > >
>| >
>| >
>| > --
>| > To unsubscribe, e-mail:
>| > 
>| > For additional commands, e-mail:
>| > 
>| >
>| >
>| 
>| --
>| To unsubscribe, e-mail:   | [EMAIL PROTECTED]>
>| For additional commands, e-mail: | [EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   
>[EMAIL PROTECTED]>
>For 
>additional commands, 
>e-mail: 
>
>

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




Controlling amount of log messages in Struts 1.1

2003-01-16 Thread John Fairbairn

Hi,

I'm using Struts 1.1-b2 within Websphere Studio Application Developer 4. I am getting 
an excessive amount of messages logged to my console such as:

0 [Thread-1] INFO util.PropertyMessageResources - Initializing, 
config='org.apache.struts.util.LocalStrings', returnNull=true

10 [Thread-1] INFO util.PropertyMessageResources - Initializing, 
config='org.apache.struts.action.ActionResources', returnNull=true

3265 [Thread-1] INFO util.PropertyMessageResources - Initializing, config='UIStrings', 
returnNull=true

I tried setting the debug param to 0 when configuring the ActionServlet with no 
success:



action

org.apache.struts.action.ActionServlet



application

UIStrings

 



config

/WEB-INF/conf/struts-config.xml





debug

0



2 



I'd like to have no log messages written to the console or any other files. 

Thanks,

John 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: Controlling amount of log messages in Struts 1.1

2003-01-16 Thread V. Cekvenich
Set up your log4.jproperties file to do that.

John Fairbairn wrote:

Hi,

I'm using Struts 1.1-b2 within Websphere Studio Application Developer 4. I am getting an excessive amount of messages logged to my console such as:

0 [Thread-1] INFO util.PropertyMessageResources - Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true

10 [Thread-1] INFO util.PropertyMessageResources - Initializing, config='org.apache.struts.action.ActionResources', returnNull=true

3265 [Thread-1] INFO util.PropertyMessageResources - Initializing, config='UIStrings', returnNull=true

I tried setting the debug param to 0 when configuring the ActionServlet with no success:



action

org.apache.struts.action.ActionServlet



application

UIStrings

 



config

/WEB-INF/conf/struts-config.xml





debug

0



2 



I'd like to have no log messages written to the console or any other files. 

Thanks,

John 



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now



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




RE: A Struts Haiku

2003-01-16 Thread keithBacon
isn't that 1 syllable short of the required 17? 
Keef
http://www.haikupolice.ja/violations.do


--- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> Jakarta Struts rules
> learn it, code it, live it
> .NET is evil
> 
> -Original Message-
> From: Mark Lepkowski [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, January 13, 2003 4:05 PM
> 
> model view control
> struts is good for this model
> simple it is not
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


=
~~
Search the archive:-
http://www.mail-archive.com/struts-user%40jakarta.apache.org/
~~
Keith Bacon - Looking for struts work - South-East UK.
phone UK 07960 011275

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




Re: Action without forward ?

2003-01-16 Thread Kris Schneider
Can't you just have the action that "fronts" the PDF servlet return a forward
that represents the path to that servlet?

web.xml:


  pdfServlet
  /pdf


You could also include a  element to ensure that clients
can't make direct requests to the PDF servlet.

struts-config.xml:


  


Quoting Marcus Biel <[EMAIL PROTECTED]>:

> Because then I wouldnt have a request processor.
> 
> The rest of the application is written in struts and uses the request
> processor to
> check wether the user is logged in or not.
> 
> If not, he gets forwarded to the login page instead of creating a pdf.
> 
> marcus
> 
> [EMAIL PROTECTED] schrieb:
> > 
> > > > I never set content-length when generating response (PDF or not).
> > Perhaps
> > > > you have a mistake in length calculation and browser waits for EOF ?
> Try
> > > > without.
> > >
> > > Nope. I know it works as it works without Struts.
> > >
> > 
> > So, why don't you just add a mapping in web.xml for your PDF-maker servlet
> ?
> > 
> > Nico.
> > 
> > --
> > To unsubscribe, e-mail:  
> 
> > For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


-- 
Kris Schneider 
D.O.Tech   

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




ActionForm defaults for primitive wrapper types

2003-01-16 Thread Steve M.
I noticed a change in the Struts 1.1-b3 release that
ActionForms which use primitive wrapper Objects for
their bean properties, default to the corresponding
primitive type defaults instead of null if the
HttpRequest contains any value for the property name,
including empty string.

Example:

when submitted to ActionForm:
Integer test = myActionForm.getTest();

struts 1.0.2: test = null
struts 1.1-b3: test = 0

In this case I cannot tell if a user entered 0 or
nothing.

It appears this is related to changes in the Commons
BeanUtils package. Is this the desired behavior going
forward?


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




[OT] RE: A Struts Haiku

2003-01-16 Thread Durham David Cntr 805CSS/SCBE
looks like he is right on with 5-7-5

http://www.dada.at/geoff/haiku/rules/


Over the line!!

Am I the only one that gives a shit about the rules?



> -Original Message-
> From: keithBacon [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 8:35 AM
> To: Struts Users Mailing List
> Subject: RE: A Struts Haiku
> 
> 
> isn't that 1 syllable short of the required 17? 
> Keef
> http://www.haikupolice.ja/violations.do
> 
> 
> --- Mark Galbreath <[EMAIL PROTECTED]> wrote:
> > Jakarta Struts rules
> > learn it, code it, live it
> > .NET is evil
> > 
> > -Original Message-
> > From: Mark Lepkowski [mailto:[EMAIL PROTECTED]] 
> > Sent: Monday, January 13, 2003 4:05 PM
> > 
> > model view control
> > struts is good for this model
> > simple it is not
> > 
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> 
> > For additional commands, e-mail: 
> 
> > 
> 
> 
> =
> ~~
> Search the archive:-
> http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> ~~
> Keith Bacon - Looking for struts work - South-East UK.
> phone UK 07960 011275
> 
> __
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




Re: Action without forward ?

2003-01-16 Thread Nicolas De Loof


> Can't you just have the action that "fronts" the PDF servlet return a
forward
> that represents the path to that servlet?
>
> web.xml:
>
> 
>   pdfServlet
>   /pdf
> 
>
> You could also include a  element to ensure that
clients
> can't make direct requests to the PDF servlet.
>

That was what I was thinking about, but I thought it would allow user to get
direct request to pdf-servlet. I never used  (nobody's
perfect ;-)), could you give us an example please ?

Nico.


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




Re: Re: questions about struts validator

2003-01-16 Thread Ying
>> This is the scenario that I was trying to figure out.
>> Suppose in the struts config file I've defined a form bean name
>"logonForm"
>> and an action named "/logon" which uses "logonForm". And suppose that
>> in validate.xml I've defined
>>   
>> 
>>...
>> 
>> 
>>...
>> 
>>   
>>
>
>The first form entry does not make sense. The name attribute in the form
>element should be the logical name you assigned to the form bean in the
>Struts config file and not the action name.

The first form entry is possible because of the ValidatorActionForm class.
from:

http://jakarta.apache.org/struts/api/org/apache/struts/validator/ValidatorActionForm.html

"This class extends ValidatorForm and provides basic field validation based on an XML 
file. The key passed into the validator is the action element's 'path' attribute from 
the struts-config.xml which should match the form element's name attribute in the 
validation.xml."

So - I have an action name logon, and form bean logonForm which extends
ValidatorActionForm.  Action logon uses logonForm. I am guessing that -
when the path of action is executed, the "logon" validation entry gets
executed (and ignores the "logonForm" entry?)...

There is probably something missing from my question (due to probably still
lack of understanding of this). I'll have to just play with it :)
Thanks for having patience..

>> When the user clicks on a button that triggers a form submit
>> via the logon action...  What validation takes place?
>>
>> Maybe my question should be:  When does validation for form bean
>> gets triggered?  Is it any time that an action uses it or?
>>
>
>Since I don't know what your action mapping entry looks like, I will make a
>couple of  assumptions in addition to what you have stated: validation is
>enabled and the form bean is in request scope.
>
>Suppose that a request arrives for the "/logon" action path. Struts will
>first look for an attribute in the request called "logonForm" (by default
>Struts stores your form bean as an attribute using the same name as the
>logical name you gave it). In this case, it will not find your form bean in
>the request. Struts will therefore create an instance of your form bean,
>store it in the request as an attribute under the name "logonForm", call the
>reset method on it, populate it with request parameters that match setters
>in your form bean and finally call the validate method on your form bean. If
>validation succeeds (the validate method returns null or an empty
>collection), Struts will then call the execute method on the associated
>Action object. Every time a request arrives for the "/logon" action path,
>this sequence will repeat.

Thanks for the explaination!

Ying


__
The NEW Netscape 7.0 browser is now available. Upgrade now! 
http://channels.netscape.com/ns/browsers/download.jsp 

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/

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




DynaValidatorActionForm

2003-01-16 Thread Francisco Gonçalves Rodrigues
Someone has used this class? I'm trying to do a validation with action path
/alarme assigned with form AlarmeForm.
If I swap "alarme" with "AlarmeForm" and swap "DynaValidatorActionForm" with
"DynaVAlidatorForm" works well.

Look:
-







mask
^\d{5}\d*$







-
Someone has any ideia? Sorry my English!

Francisco Gonçalves



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




Date format

2003-01-16 Thread Suresh Addagalla
Hi,

Please excuse me for the off-topic question, I need this urgently, so
posting it.

How can I get the current date format? (style: DateFormat.SHORT, locale:
Default)

I used:

SimpleDateFormat formatter = new SimpleDateFormat() ;
String format = formatter.toPattern() ;

It gives:

M/d/yy hh:mm a

But what I want is *only* the date part, excluding the time part of it.

Thanks,
Suresh


**Disclaimer** 
   
 
 Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' 
and 'confidential' and intended for use only by the individual or entity to which it 
is 
addressed. You are notified that any use, copying or dissemination of the information 
contained in the E-MAIL in any manner whatsoever is strictly prohibited.







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


Re: Action without forward ?

2003-01-16 Thread Kris Schneider
Sure:


  
Private
/pdf/*
  
  


The empty  element causes all client requests for the collected
resources to be denied (it's still legal to perform forwards or includes, however).

Quoting Nicolas De Loof <[EMAIL PROTECTED]>:

> 
> 
> > Can't you just have the action that "fronts" the PDF servlet return a
> forward
> > that represents the path to that servlet?
> >
> > web.xml:
> >
> > 
> >   pdfServlet
> >   /pdf
> > 
> >
> > You could also include a  element to ensure that
> clients
> > can't make direct requests to the PDF servlet.
> >
> 
> That was what I was thinking about, but I thought it would allow user to
> get
> direct request to pdf-servlet. I never used  (nobody's
> perfect ;-)), could you give us an example please ?
> 
> Nico.
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


-- 
Kris Schneider 
D.O.Tech   

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




numberFormat

2003-01-16 Thread Stephen . Chambers

All,

I know this has been asked several timed, but I could not find it in the
archives for some reason.

What is the proper format string to put into
ApplicationResources.properties to get



to produce   $3,456.00 from an integer?

Steve


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




Re: Date format

2003-01-16 Thread Mark Lepkowski
Date formatString myDate = new SimpleDateFormat("dd MMM ").format( new 
java.util.Date() );

comp.lang.java.programmer is a good news group for java language related questions.
  - Original Message - 
  From: Suresh Addagalla 
  To: [EMAIL PROTECTED] 
  Sent: Thursday, January 16, 2003 9:55 AM
  Subject: Date format


  Hi, 

  Please excuse me for the off-topic question, I need this urgently, so 
  posting it. 

  How can I get the current date format? (style: DateFormat.SHORT, locale: 
  Default) 

  I used: 

  SimpleDateFormat formatter = new SimpleDateFormat() ; 
  String format = formatter.toPattern() ; 

  It gives: 

  M/d/yy hh:mm a 

  But what I want is *only* the date part, excluding the time part of it. 

  Thanks, 
  Suresh 

   




RE: Date format

2003-01-16 Thread Mark Galbreath
Check out java.util.Calendar.  Particularly the constants.

Mark

-Original Message-
From: Suresh Addagalla [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 9:56 AM

How can I get the current date format? (style: DateFormat.SHORT, locale:
Default)



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




RE: [OT] RE: A Struts Haiku

2003-01-16 Thread Mark Galbreath
The First Rule of Haiku is, "You don't talk about Haiku"

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 9:45 AM

looks like he is right on with 5-7-5

http://www.dada.at/geoff/haiku/rules/


Over the line!!

Am I the only one that gives a shit about the rules?



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




[tiles] suggested importAttribute improvement

2003-01-16 Thread Graham Carlyle
I've started to use tiles recently and think its great way of enforcing 
consistency and reducing duplication across JSP pages. However the 
importAttribute tag doesn't feel right to me...

Rather than the importAttribute tag bringing all the parameterized 
variables into the page scope, how about a custom tag introducing just 
one named (or implicitly named) Map of the parameters?
This seems more consistent with the other JSP scoped attributes (page, 
request, session, application) as the tile parameters are just another 
scope.
To preserve backwards compatibility this tag could be named differently.

So rather than...

...


How about...

...


Admittedly this does make the tile more verbose, but it has the benefit 
of making clearer the distinction between a tile parameter and other 
page scope attributes.

This would also get round the need for the importAttribute tag's 
"ignore" attribute being set to true when a null parameter value is 
potentially passed into a tile.
The use of "ignore" attribute in this situation doesn't seem appropriate 
anyway as I am intentionally passing a null parameter into the tile.

Graham



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



FW: ScanMail Message: To Sender, sensitive content found and action taken.

2003-01-16 Thread Mark Galbreath
Apparently, "Haiku" is a "dirty word" at Cobalt Group.  What do you suppose
they do about the poor bastards named "Dick?"
 
-Original Message-
From: System Attendant [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 10:07 AM



Trend SMEX Content Filter has detected sensitive content. 

Place = 'Struts Users Mailing List'; ; ; Struts Users Mailing List 
Sender = Mark Galbreath 
Subject = RE: [OT] RE: A Struts Haiku 
Delivery Time = January 16, 2003 (Thursday) 07:07:00 
Policy = Dirty Words 
Action on this mail = Quarantine message 

Warning message from administrator: 
Sender, Content filter has detected a sensitive e-mail. 




Struts Modules

2003-01-16 Thread Christoph Rooms
Hi,

I have my Action Servlet  to react with the servlet mapping "/do/*".

I have the feeling this does not work when I am using Struts Modules.
Anyone who got modules working with this servlet mapping ?

thanks, Christoph

Christoph Rooms
TAM
+ 32 475 531 529

Novell Positioned as a "Leader" in Analyst Firm's Metadirectory Magic
Quadrant 
Novell is the first, and thus far only, company to enter the Leader
Quadrant of Gartner's Metadirectory Services Magic Quadrant. Leaders are
vendors who are performing well today, have a clear vision of market
direction, and are actively building competencies to sustain their
leadership position in the market. Read more and find out how to access
the report at www.novell.com/news/press/archive/2002/08/pr02058.html


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




RE: numberFormat

2003-01-16 Thread Mark Galbreath
moneyFormat=$###,###,##0.00

Mark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 10:03 AM

What is the proper format string to put into ApplicationResources.properties
to get



to produce   $3,456.00 from an integer?

Steve



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




RE: [OT] RE: Not spam...I swear--

2003-01-16 Thread Mark Galbreath
Don't believe it!  The bloody limey doesn't even drink beer!! *gasp*

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 9:19 AM

Lands' End is interested in hiring J2EE developers. I know of one opening,
there may be more. The main benefit is you'd get to work with me! ;-)



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




RE: ScanMail Message: To Sender, sensitive content found and action taken.

2003-01-16 Thread Durham David Cntr 805CSS/SCBE
Maybe it was the giving a shit about the rules part.

> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 9:10 AM
> To: struts
> Subject: FW: ScanMail Message: To Sender, sensitive content found and
> action taken.
> 
> 
> Apparently, "Haiku" is a "dirty word" at Cobalt Group.  What 
> do you suppose
> they do about the poor bastards named "Dick?"
>  
> -Original Message-
> From: System Attendant [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 16, 2003 10:07 AM
> 
> 
> 
> Trend SMEX Content Filter has detected sensitive content. 
> 
> Place = 'Struts Users Mailing List'; ; ; Struts Users Mailing List 
> Sender = Mark Galbreath 
> Subject = RE: [OT] RE: A Struts Haiku 
> Delivery Time = January 16, 2003 (Thursday) 07:07:00 
> Policy = Dirty Words 
> Action on this mail = Quarantine message 
> 
> Warning message from administrator: 
> Sender, Content filter has detected a sensitive e-mail. 
> 
> 

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




RE: Struts Modules

2003-01-16 Thread Raible, Matt
Nope - I tried with no success.

-Original Message-
From: Christoph Rooms [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 8:12 AM
To: [EMAIL PROTECTED]
Subject: Struts Modules


Hi,

I have my Action Servlet  to react with the servlet mapping "/do/*".

I have the feeling this does not work when I am using Struts Modules.
Anyone who got modules working with this servlet mapping ?

thanks, Christoph

Christoph Rooms
TAM
+ 32 475 531 529

Novell Positioned as a "Leader" in Analyst Firm's Metadirectory Magic
Quadrant 
Novell is the first, and thus far only, company to enter the Leader
Quadrant of Gartner's Metadirectory Services Magic Quadrant. Leaders are
vendors who are performing well today, have a clear vision of market
direction, and are actively building competencies to sustain their
leadership position in the market. Read more and find out how to access
the report at www.novell.com/news/press/archive/2002/08/pr02058.html


--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: changing ActionForm to be a Java interface

2003-01-16 Thread Sri Sankaran
The logic validate method is so closely coupled with the form-bean properties that it 
wouldn't help to look at a sample.  What I do in form-bean-X's validate() is nothing 
like the validate() for form-bean-Y.  If you still want to look at sample code you 
should be able to find it in the sample applications that ship with Struts as Mark 
pointed out.

Also, please create a new thread when asking a new question.  Not only is it impolite 
to piggy-back on an existing thread you are more likely to get responses with a new 
thread with an appropriately titled subject line.

Sri

-Original Message-
From: Sangeetha Nagarjunan [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 7:31 AM
To: Struts Users Mailing List
Subject: Re: changing ActionForm to be a Java interface



Hi,
Would you  please tell me where i coudl find sample code for :
validate() method?

Thanks
Regards
Sangeetha Nagarjunan
IT Solutions India Pvt. Ltd.
Bangalore
080 - 6655122 X 2119



   
  
Dan Jacobs 
  

jects.com> cc: 
  
   Subject: Re: changing ActionForm to be 
a Java interface   
01/16/03 05:47 
  
PM 
  
Please respond 
  
to "Struts Users   
  
Mailing List"  
  
   
  
   
  




Hi Craig,

Based on the oft misunderstood property of contravariance, I *do* conclude that 
form-beans should not be subtyped from Java Beans, for the reason that subtypes are 
never supposed to have fewer behaviors than their supertypes.  It's customary in good 
object-oriented design to use delegation rather than subclassing to use only a 
selected subset of behaviors from another kind of thing.  If Struts is saying that a 
form-bean should never act like a bean in such-and-such manners, then it follows that 
form-beans should not be beans.  This *is* an architecture issue.

I don't dispute the popularity of Struts, and I congratulate you on that.  But that's 
not grounds for justifying any and every aspect of its implementation approaches.  
Windows 98 was popular too.  I think most of Struts is very well done, and I also 
think there's this specific problem with form-beans, long indicated by the persistent 
and ongoing level of misunderstanding surrounding them.

As for the beans introspector, you can still use that in your implementation if you 
want to go that route, and you can additionally ignore non-String beans properties, or 
any of a number of things like that to rein in misuse.  But as long as you call 
form-beans java-beans but intend somethimg more restrictive, there will be confusion.

A similar situation I ran into recently was one where a client implemented a 
ClassLoader solely for the purpose of being able to locate resources using a directory 
path.  But it wasn't actually able to load classes.  It was probably convenient to 
implement it as a subclass in order to inherit certain methods directly, but that 
didn't help when the next person actually attempted to use the thing as ClassLoader.

-- Dan

Craig R. McClanahan wrote:

>
>On Wed, 15 Jan 2003, Dan Jacobs wrote:
>
>>Date: Wed, 15 Jan 2003 22:18:09 -0500
>>From: Dan Jacobs <[EMAIL PROTECTED]>
>>Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>To: Struts Users Mailing List <[EMAIL PROTECTED]>
>>Subject: Re: changing ActionForm to be a Java interface
>>
>>Hi Craig,
>>
>>Well, I concede that this is not the sort of change to make for the 
>>1.1 release.  But I still think that the underlying problem behind the 
>>chronic misuse of form-beans is that they're described as beans, but 
>>they're not really meant to be beans.  So I do still recommend 
>>revisiting that aspect of the framework design.  What the framework 
>>seems to intend here is a raw-form-data-holder with a little extra 
>>support for validating raw form-data, etc.  What it's providing is a 
>>please-dont-use-all-the-functionality-of-a-java-bean instead, and 
>>that's confusing.
>>
>

Re: Struts Modules

2003-01-16 Thread Gemes Tibor
2003. január 16. 16:11 dátummal Christoph Rooms ezt írtad:
> Hi,
>
> I have my Action Servlet  to react with the servlet mapping "/do/*".
>
> I have the feeling this does not work when I am using Struts Modules.
> Anyone who got modules working with this servlet mapping ?

http://jakarta.apache.org/struts/userGuide/configuration.html#dd_config_mapping

Last sentence in the paragraph in RED.

Hth,

Tib

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




RE: Important Struts Question

2003-01-16 Thread Haseltine, Celeste
But at least that means the job market must be picking up in some areas of
the US, if she has to go to a user list to find talent.  Here in the
Dallas/Ft. Worth, Tx area, the market is still pretty bad, since most of the
telecom companies (WorldCom, Alcatel, Northern Telecom), and a number of
dot.coms were either based here, or had regional HQ offices here.

Celeste

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 4:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Important Struts Question


Uh ohrecruiter spam now?

-Original Message-
From: Aileen Cardenas [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 5:08 PM

Hey Gang,

Does anyone live in Northern California who is an expert with Java, J2EE,
Servlet, Struts--JSP of course--and Web Logic?  Perhaps you have a friend
who does?

This would be for a year long contract with a Fortune 500 company in the
East Bay of the San Francisco Bay Area.

Please contact me immediately at 650-583-3600 to discuss this terrific
opportunity.

Cheers!
Aileen
Aileen Cardenas
Technical Recruiter
Apex Systems, Inc.
1250 Bayhill Drive, Suite 101
San Bruno, CA  94066
650-583-3600
650-583-3668 Fax
www.apexsystemsinc.com




--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




problem with messagesPresent?

2003-01-16 Thread Andy Kriger
I'm using  to test for messages when displaying
errors (standard stuff described in the docs).


There are form errors







However, I am seeing 'There are form errors' on my page even when there are
no ActionMessages or ActionErrors (like when the page is first loaded).

I test for that on my JSP using some scriplet code that is outputting 'no
messages'/'no errors':

Object msgobj = request.getAttribute(org.apache.struts.Globals.MESSAGE_KEY);
if(msgobj == null) {
response.getWriter().println("no messages");
}
Object errobj = request.getAttribute(org.apache.struts.Globals.ERROR_KEY);
if(errobj == null) {
response.getWriter().println("no errors");
}

Any ideas what's going on here?

thx
andy



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




RE: problem with messagesPresent?

2003-01-16 Thread Andy Kriger
Ignore this message. I found the problem and I'm ashamed (missing logic
taglib declaration).
-a

-Original Message-
From: Andy Kriger [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 10:44
To: Struts Users Mailing List
Subject: problem with messagesPresent?


I'm using  to test for messages when displaying
errors (standard stuff described in the docs).


There are form errors







However, I am seeing 'There are form errors' on my page even when there are
no ActionMessages or ActionErrors (like when the page is first loaded).

I test for that on my JSP using some scriplet code that is outputting 'no
messages'/'no errors':

Object msgobj = request.getAttribute(org.apache.struts.Globals.MESSAGE_KEY);
if(msgobj == null) {
response.getWriter().println("no messages");
}
Object errobj = request.getAttribute(org.apache.struts.Globals.ERROR_KEY);
if(errobj == null) {
response.getWriter().println("no errors");
}

Any ideas what's going on here?

thx
andy



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: [OT] RE: Not spam...I swear--

2003-01-16 Thread Chappell, Simon P
He didn't say I was any good, just up to date! :-P

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 5:39 AM
To: 'Struts Users Mailing List'
Subject: RE: [OT] RE: Not spam...I swear--


So much for your school's credentials

-Original Message-
From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 10:09 PM


I could send you my resume if you would like.  The CS program I'm in
starts you in Java your first year and emphasizes on design patterns and
software development.  The material is so up to date that the department
even requested Simon Chappell (very well




RE: Struts taglibs - Is data grid possible

2003-01-16 Thread Haseltine, Celeste
You must be coming from a VB background, as a DataGrid and a MSFlexGrid are
both MS COM components.

The equivalent of a COM component in Java is an applet.  But I caution you
on using applets in a web/browser based application UNLESS you are writing
an application for intranet (read: internal company) use.  For internet use,
where the general public will be using your web site, many of your IE users
will have problems running an applet, and will most likely give up on using
your site, rather than trying to figure out whether they have the right
version of the JRE installed on their machine, along with IE, to run your
applet.

You might want to check into using DBForms tag library instead of writing an
applet.  You can get more info on DBForms at
http://jdbforms.sourceforge.net/.

Celeste

-Original Message-
From: Harinath DP [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 6:02 AM
To: Struts-User
Subject: Struts taglibs - Is data grid possible 


Hi,
 
I need to implement Data grid using Struts. Can anybody guide me to how
about doing this? Do we have any taglib, which can do this?
 
-Hari
 
 

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




Re: Struts taglibs - Is data grid possible

2003-01-16 Thread James Mitchell
> The equivalent of a COM component in Java is an applet.
Where did you get that idea?

The Java version of a COM component is like using a JavaBean in a jsp page
(jsp:useBean).

The M$ version of using an Applet in a web page iswell.using an
Applet in a web page.


--
James Mitchell





- Original Message -
From: "Haseltine, Celeste" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, January 16, 2003 10:40 AM
Subject: RE: Struts taglibs - Is data grid possible


> You must be coming from a VB background, as a DataGrid and a MSFlexGrid
are
> both MS COM components.
>
> The equivalent of a COM component in Java is an applet.  But I caution you
> on using applets in a web/browser based application UNLESS you are writing
> an application for intranet (read: internal company) use.  For internet
use,
> where the general public will be using your web site, many of your IE
users
> will have problems running an applet, and will most likely give up on
using
> your site, rather than trying to figure out whether they have the right
> version of the JRE installed on their machine, along with IE, to run your
> applet.
>
> You might want to check into using DBForms tag library instead of writing
an
> applet.  You can get more info on DBForms at
> http://jdbforms.sourceforge.net/.
>
> Celeste
>
> -Original Message-
> From: Harinath DP [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 6:02 AM
> To: Struts-User
> Subject: Struts taglibs - Is data grid possible
>
>
> Hi,
>
> I need to implement Data grid using Struts. Can anybody guide me to how
> about doing this? Do we have any taglib, which can do this?
>
> -Hari
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




RE: numberFormat

2003-01-16 Thread pqin
Is there a struts documentation that explains what those formats are?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
Sent: January 16, 2003 10:13 AM
To: 'Struts Users Mailing List'
Subject: RE: numberFormat

moneyFormat=$###,###,##0.00

Mark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 10:03 AM

What is the proper format string to put into ApplicationResources.properties
to get



to produce   $3,456.00 from an integer?

Steve



--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: Struts taglibs - Is data grid possible

2003-01-16 Thread Mark Galbreath
I come from a VB/ASP b

-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 10:41 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts taglibs - Is data grid possible 


You must be coming from a VB background, as a DataGrid and a MSFlexGrid are
both MS COM components.

The equivalent of a COM component in Java is an applet.  But I caution you
on using applets in a web/browser based application UNLESS you are writing
an application for intranet (read: internal company) use.  For internet use,
where the general public will be using your web site, many of your IE users
will have problems running an applet, and will most likely give up on using
your site, rather than trying to figure out whether they have the right
version of the JRE installed on their machine, along with IE, to run your
applet.

You might want to check into using DBForms tag library instead of writing an
applet.  You can get more info on DBForms at
http://jdbforms.sourceforge.net/.

Celeste

-Original Message-
From: Harinath DP [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 6:02 AM
To: Struts-User
Subject: Struts taglibs - Is data grid possible 


Hi,
 
I need to implement Data grid using Struts. Can anybody guide me to how
about doing this? Do we have any taglib, which can do this?
 
-Hari
 
 

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: [OT] RE: Not spam...I swear--

2003-01-16 Thread Durham David Cntr 805CSS/SCBE
That was a pun.

> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 10:05 AM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] RE: Not spam...I swear--
> 
> 
> Maybe, but who would date you?
> 
> -Original Message-
> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, January 16, 2003 10:44 AM
> 
> He didn't say I was any good, just up to date! :-P
> 
> -Original Message-
> From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 16, 2003 5:39 AM
> 
> So much for your school's credentials
> 
> -Original Message-
> From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, January 15, 2003 10:09 PM
> 
> I could send you my resume if you would like.  The CS program 
> I'm in starts
> you in Java your first year and emphasizes on design patterns 
> and software
> development.  The material is so up to date that the department even
> requested Simon Chappell (very well
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 



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




Re: Important Struts Question

2003-01-16 Thread V. Cekvenich
Regarding jobs:

Consider one could write a vertical killer app. in Struts and become an 
employer (not an employee).  It's kind of working out for me.
The side benefit is you become the PHB. ("Everyone must use MVC")

(Maybe we can get Robin Givens in here?)
.V

Haseltine, Celeste wrote:
But at least that means the job market must be picking up in some areas of
the US, if she has to go to a user list to find talent.  Here in the
Dallas/Ft. Worth, Tx area, the market is still pretty bad, since most of the
telecom companies (WorldCom, Alcatel, Northern Telecom), and a number of
dot.coms were either based here, or had regional HQ offices here.

Celeste

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 4:25 PM
To: 'Struts Users Mailing List'
Subject: RE: Important Struts Question


Uh ohrecruiter spam now?

-Original Message-
From: Aileen Cardenas [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 15, 2003 5:08 PM

Hey Gang,

Does anyone live in Northern California who is an expert with Java, J2EE,
Servlet, Struts--JSP of course--and Web Logic?  Perhaps you have a friend
who does?

This would be for a year long contract with a Fortune 500 company in the
East Bay of the San Francisco Bay Area.

Please contact me immediately at 650-583-3600 to discuss this terrific
opportunity.

Cheers!
Aileen
Aileen Cardenas
Technical Recruiter
Apex Systems, Inc.
1250 Bayhill Drive, Suite 101
San Bruno, CA  94066
650-583-3600
650-583-3668 Fax
www.apexsystemsinc.com




--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Struts taglibs - Is data grid possible

2003-01-16 Thread Mark Galbreath
I come from a VB/ASP background and COM has no similarity to an applet.  COM
is server-side technology and applets are client-side technology.  The
closest similarity between Java and M$ would be JSP = ASP/VB Script.

Also, it is easy to auto-download the correct JVM to IE if an appropriate
JVM is not found.

Mark

-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 10:41 AM


You must be coming from a VB background, as a DataGrid and a MSFlexGrid are
both MS COM components.

The equivalent of a COM component in Java is an applet.  But I caution you
on using applets in a web/browser based application UNLESS you are writing
an application for intranet (read: internal company) use.  For internet use,
where the general public will be using your web site, many of your IE users
will have problems running an applet, and will most likely give up on using
your site, rather than trying to figure out whether they have the right
version of the JRE installed on their machine, along with IE, to run your
applet.



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




RE: numberFormat

2003-01-16 Thread Gemes Tibor
2003-01-16, cs keltezéssel [EMAIL PROTECTED] ezt írta:
> Is there a struts documentation that explains what those formats are?

C'mon, it is java. java.text.NumberFormat, DecimalFormatSymbols and
friends.

Tib


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




complexed structures/objects

2003-01-16 Thread Michael Mashian
guys.

can someone please help with retrieving data from complexed
structures/objects using tags ?
-

The information contained in this message is proprietary of Amdocs,

protected from disclosure, and may be privileged.

The information is intended to be conveyed only to the designated recipient(s)

of the message. If the reader of this message is not the intended recipient,

you are hereby notified that any dissemination, use, distribution or copying of 

this communication is strictly prohibited and may be unlawful. 

If you have received this communication in error, please notify us immediately

by replying to the message and deleting it from your computer.

Thank you.


-


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


RE: numberFormat

2003-01-16 Thread Gabrovsky, Ivaylo
You can find it in JDK API
http://java.sun.com/j2se/1.4.1/docs/api/
java.text.NumberFormat

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: numberFormat


Is there a struts documentation that explains what those formats are?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
Sent: January 16, 2003 10:13 AM
To: 'Struts Users Mailing List'
Subject: RE: numberFormat

moneyFormat=$###,###,##0.00

Mark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 10:03 AM

What is the proper format string to put into ApplicationResources.properties
to get



to produce   $3,456.00 from an integer?

Steve



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: numberFormat

2003-01-16 Thread pqin
That means struts supports all the java number formats. Great.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Gabrovsky, Ivaylo [mailto:[EMAIL PROTECTED]] 
Sent: January 16, 2003 11:21 AM
To: [EMAIL PROTECTED]
Subject: RE: numberFormat

You can find it in JDK API
http://java.sun.com/j2se/1.4.1/docs/api/
java.text.NumberFormat

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 11:11 AM
To: [EMAIL PROTECTED]
Subject: RE: numberFormat


Is there a struts documentation that explains what those formats are?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
Sent: January 16, 2003 10:13 AM
To: 'Struts Users Mailing List'
Subject: RE: numberFormat

moneyFormat=$###,###,##0.00

Mark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 10:03 AM

What is the proper format string to put into ApplicationResources.properties
to get



to produce   $3,456.00 from an integer?

Steve



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: complexed structures/objects

2003-01-16 Thread pqin
Dot notation always works.

For example

public class ClassA
{
private ClassB b

public class ClassB
{
private String c

in struts, logic or bean:write, you refer a.b.c

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Michael Mashian [mailto:[EMAIL PROTECTED]] 
Sent: January 16, 2003 11:19 AM
To: 'Struts Users Mailing List'
Subject: complexed structures/objects

guys.

can someone please help with retrieving data from complexed
structures/objects using tags ?



ATTN: Java Developers

2003-01-16 Thread Aileen Cardenas
I will be unsubscribing, but may be back.  Please keep my contact
information for future reference, and please refer your friends.  We are a
national company and work with Fortune 500 companies.

I look forward to hearing from you!

Cheers!
Aileen
P.S.  I also have a position for a Java developer who has experience with
IBM MQ Series AND I-Log Business Rules Engine (JRules).
Aileen Cardenas
Technical Recruiter
Apex Systems, Inc.
1250 Bayhill Drive, Suite 101
San Bruno, CA  94066
650-583-3600
650-583-3668 Fax
www.apexsystemsinc.com




RE: [OT] RE: Not spam...I swear--

2003-01-16 Thread Chappell, Simon P
http://simonpeter.com/family/2003/01jan/P1051973.JPG :-)

>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 16, 2003 10:05 AM
>To: 'Struts Users Mailing List'
>Subject: RE: [OT] RE: Not spam...I swear--
>
>
>Maybe, but who would date you?
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
>Sent: Thursday, January 16, 2003 10:44 AM
>
>He didn't say I was any good, just up to date! :-P
>
>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 16, 2003 5:39 AM
>
>So much for your school's credentials
>
>-Original Message-
>From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]] 
>Sent: Wednesday, January 15, 2003 10:09 PM
>
>I could send you my resume if you would like.  The CS program 
>I'm in starts
>you in Java your first year and emphasizes on design patterns 
>and software
>development.  The material is so up to date that the department even
>requested Simon Chappell (very well
>
>
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: Struts taglibs - Is data grid possible

2003-01-16 Thread pqin
COM is similar to CORBA/RMI but not CORBA, am I right?

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-Original Message-
From: Mark Galbreath [mailto:[EMAIL PROTECTED]] 
Sent: January 16, 2003 11:15 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts taglibs - Is data grid possible 

I come from a VB/ASP background and COM has no similarity to an applet.  COM
is server-side technology and applets are client-side technology.  The
closest similarity between Java and M$ would be JSP = ASP/VB Script.

Also, it is easy to auto-download the correct JVM to IE if an appropriate
JVM is not found.

Mark

-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 10:41 AM


You must be coming from a VB background, as a DataGrid and a MSFlexGrid are
both MS COM components.

The equivalent of a COM component in Java is an applet.  But I caution you
on using applets in a web/browser based application UNLESS you are writing
an application for intranet (read: internal company) use.  For internet use,
where the general public will be using your web site, many of your IE users
will have problems running an applet, and will most likely give up on using
your site, rather than trying to figure out whether they have the right
version of the JRE installed on their machine, along with IE, to run your
applet.



--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: complexed structures/objects

2003-01-16 Thread Mark Galbreath
Sure:

http://www.tuxedo.org/~esr/faqs/smart-questions.html

Mark

-Original Message-
From: Michael Mashian [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 11:19 AM

can someone please help with retrieving data from complexed
structures/objects using tags ?



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




RE: Struts taglibs - Is data grid possible

2003-01-16 Thread Aileen Cardenas


-Original Message-
From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 7:41 AM
To: 'Struts Users Mailing List'
Subject: RE: Struts taglibs - Is data grid possible


You must be coming from a VB background, as a DataGrid and a MSFlexGrid are
both MS COM components.

The equivalent of a COM component in Java is an applet.  But I caution you
on using applets in a web/browser based application UNLESS you are writing
an application for intranet (read: internal company) use.  For internet use,
where the general public will be using your web site, many of your IE users
will have problems running an applet, and will most likely give up on using
your site, rather than trying to figure out whether they have the right
version of the JRE installed on their machine, along with IE, to run your
applet.

You might want to check into using DBForms tag library instead of writing an
applet.  You can get more info on DBForms at
http://jdbforms.sourceforge.net/.

Celeste

-Original Message-
From: Harinath DP [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 16, 2003 6:02 AM
To: Struts-User
Subject: Struts taglibs - Is data grid possible


Hi,

I need to implement Data grid using Struts. Can anybody guide me to how
about doing this? Do we have any taglib, which can do this?

-Hari



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: ATTN: Java Developers

2003-01-16 Thread Mark Galbreath
MQ Series may have been the second relase (M$ was the first), but BizFlo is
the best (www.handysoft.com).

Mark

-Original Message-
From: Aileen Cardenas [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 11:28 AM

P.S.  I also have a position for a Java developer who has experience with
IBM MQ Series AND I-Log Business Rules Engine (JRules).



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




RE: [OT] RE: Not spam...I swear--

2003-01-16 Thread Mark Galbreath
Ahhh...that explains a lot.  You are a fisherman.  Thank goodness they don't
look like you (http://simonpeter.com/spm/biographies.html)!  And what's with
that limey flag being bigger than the Star-Spangled Banner?

But I sense Craig is going to squash this thread any time now

-Original Message-
From: Chappell, Simon P [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, January 16, 2003 11:30 AM

http://simonpeter.com/family/2003/01jan/P1051973.JPG :-)

>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 16, 2003 10:05 AM
>
>Maybe, but who would date you?
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 16, 2003 10:44 AM
>
>He didn't say I was any good, just up to date! :-P
>
>-Original Message-
>From: Mark Galbreath [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, January 16, 2003 5:39 AM
>
>So much for your school's credentials
>
>-Original Message-
>From: Hookom, Jacob John [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, January 15, 2003 10:09 PM
>
>I could send you my resume if you would like.  The CS program
>I'm in starts
>you in Java your first year and emphasizes on design patterns 
>and software
>development.  The material is so up to date that the department even
>requested Simon Chappell (very well



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




Action Servlet

2003-01-16 Thread JONATHAN PHILIP HOLLOWAY
Could somebody tell me if it's possible to get a handle on the action servlet 
from an action class and if so how this is actually done.

Many thanks in advance,
Jonathan Holloway.

*-*
 Jonathan Holloway,   
 Dept. Of Computer Science,   
 Aberystwyth University, 
 Ceredigion,  
 West Wales,  
 SY23 3DV.
  
 07968 902140 
 http://users.aber.ac.uk/jph8 
*-*



Specifying Application Root in links

2003-01-16 Thread Pani, Gourav
I am using Struts 1.1 with Resin 2.1.5 and have encountered the following
problem.

Whenever I try to link to an action mapping specified in my
struts-config.xml file within a JSP, I have to specify the application root
in the path.  

For example, the following is my setup in struts-config.xml.

  

  


The following is my setup in web.xml.

  
  





2
  

  



However, in my JSP I have to link in the following manner.  "bpo" is the
application root as determined by the war file.

Click Here to get to Catalog

I would instead like to be able to do the following

Click Here to get to Catalog

The same goes for recognizing the /images directory under the application
root.  I would rather keep it in my war file build than let Apache control
image display.  

I think this is a simple configuration issue and possibly a novice mistake.
Could someone help me out with this. 

Thanks in advance.

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




Re: complexed structures/objects

2003-01-16 Thread V. Cekvenich
Check out nested tags for starters.

Michael Mashian wrote:

guys.

can someone please help with retrieving data from complexed
structures/objects using tags ?




-

The information contained in this message is proprietary of Amdocs,

protected from disclosure, and may be privileged.

The information is intended to be conveyed only to the designated recipient(s)

of the message. If the reader of this message is not the intended recipient,

you are hereby notified that any dissemination, use, distribution or copying of 

this communication is strictly prohibited and may be unlawful. 

If you have received this communication in error, please notify us immediately

by replying to the message and deleting it from your computer.

Thank you.


-





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



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




  1   2   >