RE: XML/XSL to generate Word Document

2002-08-12 Thread Nelson, Tracy (ETW)

| From: Ajay Mallik [mailto:[EMAIL PROTECTED]]
| Sent: Monday, August 12, 2002 16:21
|
| I have to generate Word document from XML data. Is there 
| anything that I can
| do similar to generating PDFs from XML using FOP?

Not really a Struts question, but have a look at http://www.jfor.org/



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




RE: Newbie iterate problem

2002-08-12 Thread Nelson, Tracy (ETW)

| From: James Mitchell [mailto:[EMAIL PROTECTED]]
| Sent: Monday, August 12, 2002 14:02
| 
| Can you send the action declaration for this jsp (from the 
| struts-config)?

Here 'tis:





I'm trying to compare the generated code between the sample application and
mine, but I haven't seen anything yet that's given me a clue.

Thanks!
-- Tracy



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




Newbie iterate problem

2002-08-12 Thread Nelson, Tracy (ETW)

I'm coming up to speed with Struts, and I can't seem to figure out the
 tag.  I've got:


...


I keep getting a "cannot find bean logo in scope null" error.  Do I have to
have an instance of the bean in the request?  I've tried specifying both
session and request scoping, and I've specified the type of the bean, but I
can't seem to get an instance created.  Is this something that Struts is
supposed to do, or is that something that is my responsibility?

Thanks!
-- Tracy Nelson
"Yes, learning Struts is a little like having bees live in your head.
Butthere they are!"


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




RE: Struts & Persistence

2002-08-09 Thread Nelson, Tracy (ETW)


| From: Melissa L Kelley [mailto:[EMAIL PROTECTED]]
| Subject: RE: Struts & Persistence
|
| I have only seen punch cards in a museum though ;)

Boy, did you miss out!  I remember one night a couple of us went into the
keypunch room on campus and dumped all the "chad" (punches) from the bins in
the 029s and then snuck into the steam tunnels to where a maintenance crew
had left a ventilator fan running.  Roll your own blizzard!

Cheers!
-- Tracy


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




RE: Struts & Persistence

2002-08-09 Thread Nelson, Tracy (ETW)

| From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
| Subject: RE: Struts & Persistence
| 
| Those were the days ... I remember toggling the 30-step bootstrap code
| into a PDP-8 (a 12-bit computer, forsooth!) using the front panel
| switches ...  :-)

Hey, I don't feel so old now -- at least when I was toggling in boot loaders
(the first-stage loader, anyway -- it loaded the second-stage loader from
cards) I was on a PDP-11!  Ah, what a glorious architecture.  I could go on,
but I see I already have

Cheers!
-- Tracy


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




RE: LogConfigurationException when compiling JSP

2002-08-01 Thread Nelson, Tracy (ETW)

Just so this makes it into the archive; this may be a problem with
JDeveloper.  If I compile the JSP twice in succession, the second compile
goes just fine.

Cheers!
-- Tracy

-Original Message-
From: Nelson, Tracy (ETW) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 31, 2002 17:10
To: Struts user list (E-mail)
Subject: LogConfigurationException when compiling JSP


I'm trying to write my first Struts app.  I am using the struts-blank
application included with the 1.1b1 distribution.  I have my classpath and
libraries all set up, and I think I have my struts-config.xml file set up
correctly.  When I attempt to compile any of my jsp files, however, my IDE
(Oracle JDeveloper) tells me I have an HTML error (missing  tag [I do
have a  tag]) and the compiler gives me an
ExceptionInInitializerError: LogConfigurationException.  I'm guessing this
is due to a missing default LogFactory implementation, but I can't see why
that would be.  The commons-logging.jar file is on my classpath.  Is there
something else I need to set?  I checked the javadoc for the logging
facility, and it seemed to indicate that if no log factory was configured, a
default would be used, is that right?

I have also installed the example application that came with the 1.1b1
distribution, and it works just fine.  Is it possible I've gotten something
mixed up in my struts-config.xml file that could be causing this?

Cheers!
-- Tracy Nelson


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



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




LogConfigurationException when compiling JSP

2002-07-31 Thread Nelson, Tracy (ETW)

I'm trying to write my first Struts app.  I am using the struts-blank
application included with the 1.1b1 distribution.  I have my classpath and
libraries all set up, and I think I have my struts-config.xml file set up
correctly.  When I attempt to compile any of my jsp files, however, my IDE
(Oracle JDeveloper) tells me I have an HTML error (missing  tag [I do
have a  tag]) and the compiler gives me an
ExceptionInInitializerError: LogConfigurationException.  I'm guessing this
is due to a missing default LogFactory implementation, but I can't see why
that would be.  The commons-logging.jar file is on my classpath.  Is there
something else I need to set?  I checked the javadoc for the logging
facility, and it seemed to indicate that if no log factory was configured, a
default would be used, is that right?

I have also installed the example application that came with the 1.1b1
distribution, and it works just fine.  Is it possible I've gotten something
mixed up in my struts-config.xml file that could be causing this?

Cheers!
-- Tracy Nelson


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




RE: Security and Struts

2002-07-30 Thread Nelson, Tracy (ETW)

I'd have each form check authorization.  That way, if someone bookmarks a
page (or guesses its URL) they won't bypass your security scheme.  You could
have a global exception set up in your configuration file that forwards to
an "Access denied" page whenever one of your forms threw a UserNotAuthorized
exception.  (NOTE: I am just learning Struts and haven't even written my
first application using it yet.  I may not know what I am talking about.)

Cheers!
-- Tracy

-Original Message-
From: Ryan Cuprak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 30, 2002 11:53
To: [EMAIL PROTECTED]
Subject: Security and Struts



Hello,
 I was hoping someone would have some advice on securing a website using
struts. I am developing a webapp that has to be secure (password protected)
and which restricts access to different parts of the site depending on the
roles a user possesses. The roles each user has are stored as XML in a
database and may be configured by an administrator. Does struts have any
built-in security capabilities that I could take advantage of?


 Any help/pointers would be much appreciated!

 My first guess would be to put all jsp pages in WEB-INF (use only
ForwardAction to get to each page) and subclass ActionServlet with the logic
for check authentication etc. However, will this cause any problems when it
comes to a user book marking a page?

Thanks,
-Ryan Cuprak



--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Need a Design pattern suggestion

2002-07-29 Thread Nelson, Tracy (ETW)

You say your data source is a "C++ server" -- I assume you mean that it's
written in C++, not that it's serving you C++ code. :)  In that case, I
assume you have toe source, so why not modify it to spit out XML instead of
just raw bytes?  That would give you a lot more options as far as handling
it goes.  Or maybe you could just make an Adapter that took the raw bytes
and transformed them into XML before handing them off to your app?

Cheers!
-- Tracy

-Original Message-
From: Rajesh P [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 07:16
To: Struts mailing (E-mail)
Subject: Need a Design pattern suggestion


Hi,
Have a small problem on deciding the approach. 
We have a datasource which is a C++ server that returns data in the form
of a byte array ranging from 8000 to 32000 bytes of data. There would be
many chunks of such byte arrays.
FYI, we are using the Struts framework.

Requirement:
1) To be able to parse this byte array according to a predefined format
and display it in the JSP in the form of a table.
2) To be able to sort on the displayed columns of the table.
3) The transaction involves navigation across multiple screens. 
For ex, 
a) in the first screen I would be displaying the Customer Number and
Name along with a list of Orders in the form of a table.
b) Clicking on one of the orders takes to the second screen
c) In the second screen, it is required to display the Customer number,
name, selected order details as header and a list of line items
associated with the order (in the table format).
So now when we navigate to the second screen, the Customer number, name
and selected order details should be got from the byte array fetched and
only the line items should be taken from the C++ datasource. So there
should be a mechanism to retrieve any data from the byte array based on
a key value.

We have thought of the following approaches.
1) Create objects which would hold each record of the byte array. In
such a case, the disadvantage would be the number of objects which are
created that would hit the performance. Advantage would be that a
collection sort on the object would simplify the sorting process.
2) Have the byte array as it is and parse on it each time it is
required. In this case, a sorting of the records would be dicey.

Can you kindly suggest a mechanism which would be best suited to satisfy
the performance as well.

Thanks in advance,
Regards
Rajesh


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: [OT] What do you do with your SQL?

2002-07-26 Thread Nelson, Tracy (ETW)

I once prototyped a system where I  kept all the SQL statements in the
database itself.  The original intent was to take the statements and
actually compile them into stored procedures, but the project was dropped
before that part was finished.

Cheers!
-- Tracy Nelson

-Original Message-
From: Assenza, Chris [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 26, 2002 13:17
To: 'Struts Users Mailing List'
Subject: [OT] What do you do with your SQL?


Hi all, 

Been a while since I last wrote, but I've been lurking to observe all the
crazy antics. :)  Anyway, I've got a question of an [ot] nature that I
believe you folks will have an answer for. 

Our application is highly data-driven and as such a lot of our "business
logic" is written to build SQL statements and handle query results.  Pretty
typical stuff.  Using Struts we pass data objects to a stateless session EJB
where all the SQL is directly embedded into the java source one way or
another.  

We're currently converting this custom app into a product. As such, we need
to be able to have easily modifiable SQL statements without requiring
recompilation of code.  For example, if client A decides to buy our app and
they have xyz infrastructure or business rules, we need to be able to easily
modify sql, hints and the like while also supporting the client-specific
sql, hints, etc. of client B.  

A lot of our SQL is built on the fly so using properties files may be a
little cumbersome, though certainly not beyond our means.  I have other
ideas floating around, but I'd rather just hear yours - any suggestions? 

Thanks,

Chris


--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




RE: Struts Vs. Sun J2EE Compliance and Design Patterns

2002-07-25 Thread Nelson, Tracy (ETW)

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]


2.  Given 1, what does he plan to do when he changes jobs?  Re-build the
entire framework?


This is an excellent point.  At my last job we used a proprietary app
framework (for various valid reasons), but when I moved across country and
tried to find a new job, I realized just how little I knew about Java.  Our
framework had encapsulated both the persistence and presentation layers, so
all I had to concentrate on was the business logic.  Which is good, but when
it came time to move on, I really had to scramble (still scrambling,
actually) to learn all this stuff that a good Java programmer is supposed to
know.


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




StrutbyStrut problem

2002-07-25 Thread Nelson, Tracy (ETW)

Hi!  I'm trying to use Ted Husted's "Strut by strut" tutorial, and I can't
seem to get it to work.  I can compile everything OK, but when I try to run
it, I get 500s claiming that a global forward can't be found.  I checked,
and the forward is mapped to "do/stub/Input".  I can't seem to find an
Input.* anywhere.  Has anyone else used this tutorial and gotten it working?
I found I had to get some experimental RowSet classes in order to get
everything to compile, is there something else missing from the
documentation (or is there some documentation that I haven't read)?

Thanks!
-- Tracy Nelson


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