Re: Difference between Struts 1.1 and Struts 1.0

2003-01-30 Thread Eric Rizzo
deepak wrote:

Hi,
Is there any web site that lists the differences between Struts 1.1 and Struts 1.0.


I found this article helpful: 
<http://www.scioworks.com/camino_doc/manual/strutsIntro/struts1_1.html>

HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: [OT] Obscure Computer Languages

2003-01-29 Thread Eric Rizzo
David Bolsover wrote:

Smalltalk was (is) gr8! oop at its best.
Sadly never really took off.


+1. It actually was the fastest growing language right before and right 
after the launch of Java. As much as I like Java, I do blame it's 
marketing blitz and "C-familiar" syntax for the decline of Smalltalk 
popularity.

Still, Smalltalk is the most enjoyable, productive language I've ever 
worked in.

	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: forwarding to an offsite link in action

2003-01-29 Thread Eric Rizzo
Gunther Peeters wrote:
[snip]

for this reason i want to redirect to another site from the trackaction. but
the actionforward only accepts relative forwards/redirects. i can't reach
anything offsite. does anyone have a solution for this ?


One thing you could do would be to forward to an internal page that 
consists only of an automatic redirect to the external URL. Something 
like this:


  

  



HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


smime.p7s
Description: S/MIME Cryptographic Signature


[OT] Re: Flash+Struts how?

2003-01-27 Thread Eric Rizzo
Joe Barefoot wrote:
> 
>> The Flash parses the XML and applies it to the UI appropriately.
>> Works quite well and with no noticeable CPU usage on the client - a
>> problem we had with the previous, complicated HTML interface for
>> this part of the app.
>
>
> I'd be curious as to what you're doing in HTML that could possibly
> consume more CPU than rendering anything in Flash.  I would assume
> you must have some massive JS arrays/functions to cause appreciable
> CPU consumption of the sort you describe.

Rendering of large and/or complex HTML tables in IE and Netscape can be 
pretty CPU-intensive for a short time. We noticed a short CPU spike 
every time that page was loaded - I at first assumed it was the 
action/business-logic/JSP-population that was responsible, but the 
minute we changed the output to send XML to Flash instead of HTML to 
browser, the spike totally disappeared.
It probably doesn't hurt that JDOM is lightning quick for outputting 
documents to a stream (small ones, at least) - I don't know how fast or 
slow the code is that Jasper generates from JSP (but I do know that it 
is ugly ;-).

	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: Paginating the search results from a collection.

2003-01-27 Thread Eric Rizzo
Jana Navaneethan wrote:

Hi ,
  I have a collection of Search results, I want to display 30 items
per page (JSP) from the collection, How to paginate the results using struts
tags? Is there any better way of doing this?

Any help would be greatly appreciated!


In addition to the  tag lib already pointed out, you might 
want to look at this pagination tag lib: 
http://jsptags.com/tags/navigation/pager/index.jsp

HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: Flash+Struts how?

2003-01-27 Thread Eric Rizzo
Mark Galbreath wrote:

Only a weenie programmer would use Flash with Struts[...]


Nice attitude. I hope I misunderstood that reply...

Anyway, to answer the original inquiry:
A part of the UI of our app is a flash movie, and we chose to integrate 
it using XML. The Flash sends requests to our struts actions (they look 
like any other URL to Flash), but these particular actions return XML 
instead of HTML. The Flash parses the XML and applies it to the UI 
appropriately. Works quite well and with no noticeable CPU usage on the 
client - a problem we had with the previous, complicated HTML interface 
for this part of the app.
There is also a relatively new feature of Flash MX that provides 
integration between Flash and J2EE apps without using XML in between. 
Although I haven't looked at it in detail, I bet it can be used with 
Struts as well as "ordinary" servlets. See 
<http://www.javaworld.com/javaworld/jw-01-2003/jw-0117-flash_p.html>

HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: Commons source for Struts 1.1b3

2003-01-25 Thread Eric Rizzo
Craig R. McClanahan wrote:

If you want the ***exact*** commons sources that were included in Struts
1.1b3, there is a way to get those too ... but it requires that you use
anonymous CVS access to the source repositories, as outlined at:

  http://jakarta.apache.org/site/cvsindex.html

If you select the commons sources for the relevant packages with tag
"STRUTS_1_1_B3" you will get ***exactly*** the sources that went in to the
1.1b3 build of Struts.


OK , *that* was the detail I was looking for. Thanks! As I said 
originally, I had already gone to the commons nightly build archive 
without luck.

Thanks again,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


smime.p7s
Description: S/MIME Cryptographic Signature


Archive searching [was: Commons source for Struts 1.1b3]

2003-01-25 Thread Eric Rizzo
James Mitchell wrote:

Try this one (click the first link):

http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_jakarta_
apache_org&restrict=&exclude=&words=commons+libraries


Hah, the key is always in picking the right search terms. I was trying 
various combos of "beanutils" "commons" and "source" without much luck.
Thanks for the pointer, even though that answer doesn't help me much - as 
I said, commons nightly build archives are not old enough.

Still, does anyone know why the Apache-hosted archive 
(archives.apache.org) does not allow text searching of the Struts list? 
mail-archive.com only goes back so far and, IMHO, their interface sucks.

	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: Commons source for Struts 1.1b3

2003-01-24 Thread Eric Rizzo
Eric Rizzo wrote:

James Mitchell wrote:


Did you search the archives?

I will not give you the answer to thisin factthis question has
been asked so much lately that it is beginning to piss off Papa-Strut
himself (and that's rare).



Trust me, I'd love to search the mailing list archives. But when I go to 
the archive search page 
(<http://nagoya.apache.org/eyebrowse/SearchList?[EMAIL PROTECTED]>) 

all it ever tells me is "Text search is not available for this list"

Is there some place to search old messages other than the one above 
(that is linked to from the Struts home page)?

Looking to learn to fish,
Eric

I remembered mail-achive.com and subsequently found only this response 
from C.McC. a few days ago:

It's inside the META-INF/MANIFEST.MF file for each JAR file.

What you'll find, though, is that 1.1b3 used a snapshot of all the commons
JARs on the day it was created.  The final version of 1.1 will use
released versions of the Commons JARs files (and they'll be documented in
the release notes).

Craig


But the question still remains how can I get that snapshot when the 
nightly build archives are not that old?
Also, why doesn't mail-archive.com seem to have messages older than this 
week?

Honestly trying,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: Commons source for Struts 1.1b3

2003-01-24 Thread Eric Rizzo
James Mitchell wrote:

Did you search the archives?

I will not give you the answer to thisin factthis question has
been asked so much lately that it is beginning to piss off Papa-Strut
himself (and that's rare).


Trust me, I'd love to search the mailing list archives. But when I go to 
the archive search page 
(<http://nagoya.apache.org/eyebrowse/SearchList?[EMAIL PROTECTED]>)
all it ever tells me is "Text search is not available for this list"

Is there some place to search old messages other than the one above 
(that is linked to from the Struts home page)?

Looking to learn to fish,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Commons source for Struts 1.1b3

2003-01-24 Thread Eric Rizzo
I got the source distribution for Struts 1.1b3, but it does not include 
the sources for the commons stuff that was used. My binary dist of 
Struts 1.1b3 has commons-beanutils.jar with a manifest indicating 
1.6-dev as the version - not very helpful since all the pre-release 
builds of beanutils have the same version. The date on all the classes 
in the common-beanutils.jar is 12/30/02, but the nightly builds of 
commons-beanutils don't go back that far 
(<http://jakarta.apache.org/builds/jakarta-commons/nightly/commons-beanutils/>)

So where can I get the source of the commons libs that were used to 
build Struts 1.1b3 release?

TIA,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: Use of multiple struts-config files -- HELP

2003-01-23 Thread Eric Rizzo
Alvarado, Juan (c) wrote:

in struts-marketbreaks-config.xml I have the following: 


contextRelative="true">



And in a JSP I want to do the following: 

Access Rights

When I do this, I get the following error:
javax.servlet.ServletException: Cannot create rewrite URL:
java.net.MalformedURLException: Cannot retrive ActionForward named
accessrights
The problem is that the framework is not reading the
struts-marketbreaks-config.xml.  Can anyone tell me if they spot anythign I
am doing wrong.
I am new to the concept of multiple configuration files and I didn't find
anything on the archives.

See if 
<http://jakarta.apache.org/struts/userGuide/configuration.html#module_config-switching>
helps you any. I think the global forwards in a module are "local" to 
that module, not the root of the webapp.

HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: HOWTO pre-populate forms with data, then update ?

2003-01-23 Thread Eric Rizzo
Iain Sanderson wrote:

David,

Thanks for your reply. How do you put the info into the form bean?

I use a action called "RegistrationUpdateOpenAction"  to get the data from 
the database and  forward to the view jsp (registrationUpdate.jsp), but I 
don't know how to put that data into the form bean for this  ( the 
underlying form bean would be RegistrationUpdateForm). I'm confused as the 
form bean is created/recycled by Struts on opening the view. How do I get 
premptive access to it? Can I just create it and add it to the request 
scope? Won't struts create another one?

The form bean instance is passed into your action's perform or execute 
method. Just populate it and return a forward to the JSP.

HTH,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



How to: different actions, different form beans (ActionForms), sameJSP

2003-01-22 Thread Eric Rizzo
If this is an "already asked/answered" please forgive and point me to 
the FAQ, tutorial, or previous message that discusses it. I've searched 
jGuru and browsed the tips at husted.com without luck.

I have two actions, each with its own form bean/ActionForm, that both 
need to forward to the same JSP. That content of that JSP can then 
submit to a third action.
Action1, which uses a form bean of type FormBean1 does one kind of 
search. Action2, using FormBean2, does a different kind of search. 
FormBean2 extends FormBean1. There is one JSP that displays the results 
of either type of search (iterates over a result object that is stored 
in FormBean). The JSP also has a form on it that submits to Action3, 
which also uses FormBean1.
How can I set it up so that both of these actions can forward to the 
JSP? Action2 can set the results object and forward to the JSP, but the 
JSP is expecting to use FormBean1, so it doesn't see the data that 
Action2 stored in FormBean2.

Here's what I configured it like, without luck:


type="com.jibe.Action1"
name="form1"
scope="session">

 path="/jsp/results.jsp" />



type="com.jibe.Action2"
name="form2"
scope="session">

 path="/jsp/results.jsp" />



When results.jsp is processing after coming from Action2, it doesn't 
find any results in the bean.

I figure this must be a common scenario, but I can't seem to figure out 
the configuration.

TIA,
	Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com


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



Re: [jetty-support] Struts problem

2002-07-11 Thread Eric Rizzo

Greg Wilkins wrote:
> 
> I think that the "path elements" refer to getContextPath,
> getServletPath and getPathInfo.  I believe that getRequestURI
> should always return the URI of the original request, unless
> wrapped by a user.
> 
> However!!!  Craig McClanahan know a thing or two about servlets
> so I'll go do some checking again!
> 
> Jetty used to change the getRequestURI result after a forward, but
> we changed it.  From memory, I think that a watchdog test is checking for
> this  but I'll check

Some more information courtesy of Craig:

"Per Section 4.4 (servlet 2.3), the request path elements are context path,
servlet path, and path info.  However, if you don't also change request
URI on a forward, you violate the following paragraph (also in 8.4):

 "It is important to note that, except for URL encoding
 differences, the following equation is always true:

 requestURI = contextPath + servletPath + pathInfo"

so there's no choice about updating requestURI as well."


-- 
Eric Rizzo
Software Developer
Jibe, Inc.
http://www.jibeinc.com


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




Example of bundle attribute in

2001-10-26 Thread Eric Rizzo

Are there any examples that use the bundle attribute of ?

Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: This list NEEDS a FAQ

2001-10-26 Thread Eric Rizzo

[EMAIL PROTECTED] wrote:

> There already is a FAQ, here:
> 
> http://jakarta.apache.org/struts/userGuide/kickstart.html


jGuru hosts a lot of Java FAQ lists, including one for Struts at 
http://www.jguru.com/faq/Struts  The nice thing is you can suggest new 
questions, answers, and comments to existing FAQs.


 
> I agree with the sentiment behind your suggestion, though. The real problem
> is that many people don't refer to the FAQ, and don't check the mailing list
> archives, before posting their own questions to the list.

[snip]

> Perhaps the best we can do is
> to collectively enforce the "do your own research first" reaction.
> 
> So whenever you read a message that asks a question that is already on the
> FAQ list, don't reply with the answer, but reply with a reference to the FAQ
> which supplies the answer. And if you see a question being asked repeatedly,
> propose it as a candidate for the FAQ.
> 
> If we are consistent in the way we respond to frequently asked questions on
> this list, we should be able to reduce the overall message volume, and
> increase the signal-to-noise ratio. That will benefit us all.


Agreed.  A short answer saying "See the FAQ at this URL: http://.."; not only 
directs people to the answer for a particular question, but also teaches them to 
look there for their next question.  Another thing I've done on the VisualAge 
for Java forums is to post a weekly message about the existence of the FAQ. 
That way someone browsing recent messages is bound to stumble upon the link, and 
anyone nice enough to do a search in the archives for "FAQ" will find it.

Ted Husted manages the jGuru Struts FAQ - would he be willing to post a message 
along these lines to this list every week (I can send the one I use for VAJ if 
you'd like to adapt it).

Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: html:image tag example

2001-10-24 Thread Eric Rizzo

chiji nwankwo wrote:

> Does anyone have any examples of how to use the html:image tag to 
> perform a submit.  Please point me in the right direction.


You just need to put the  tag within a  tag.  This works 
for me:



 ...input fields, etc
 



HTH,
Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Knowing where you came from

2001-10-23 Thread Eric Rizzo

In an Action, is there a way to determine if the request is coming from a 
forward from another Action or from an "external" request?  I've thought about 
storing in the session the last known request object and then comparing against 
it every time any of my actions perform() get called to see if the current 
request is the same as the last "known" request.  But this feels clunky.
Are there any other ways to know where the request is coming from?

    Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: XML include hack to split struts-config.xml

2001-10-19 Thread Eric Rizzo

James Holmes wrote:

> I have the "fix" for multiple config files almost
> done.  I need to create the patch and send out an
> email, but in the mean time you can use:
> 
> http://www.ejcenter.com/struts/ActionServlet.java
> 
> Just recompile the 1.0 source with the above file and
> then in your web.xml file you can use a comma (",")
> delimited list of config files for the "config"
> .  If you have any questions let me know.


An alternative to modifying the Struts source is to simply subclass 
ActionServlet and override the initMapping() method with the version from James' 
patch above.  You can specify your subclass in the web.xml file instead of 
ActionServlet and then the comma-separated feature will work.

James, are you planning on submitting this to the Struts code base?

Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: IBM VisualAge WTE and struts

2001-10-19 Thread Eric Rizzo

[EMAIL PROTECTED] wrote:

> Hitesh,
> 
> Included are the instructions for getting the struts-example (under 
> Struts v1.0) running in both VAJ 4.0/WTE and WAS 4.0 that I posted a 
> while ago...


Cool, I think it's good idea to write this stuff up.  But I would make one 
suggestion: instead of just opening the current edition of the IBM XML Parser 
project and letting it be updated when you import Xerces/JAXP, I recommend 
separating out the various XML API's as I have described in a message in this 
thread a few minutes ago.

HTH,
    Eric
-- 
Eric Rizzo
VAJ Frequently Asked Questions at
http://www.jguru.com/faq/VAJ




Re: IBM VisualAge WTE and struts

2001-10-19 Thread Eric Rizzo

[EMAIL PROTECTED] wrote:

> What I have done to get round problems like these is to :=
> 1 Export IBM XML Parser for java to a directory - MY_IBM_XML
> 2.Remove all the OMG packages from the directory.
> 3. Remove the IBM Xml Parser from the Workspace
> 4 Craete a new project IBM XML Parser - OMG
> 5 Emport the MY_IBM_XML directory into this project
> 6 Create a new project for Xerces
> 7 5 Emport Xerces into this project


There is no need to do the export and import steps or create a totally new 
Project.  All you need to do is open the IBM XML Parser Project, delete the OMG 
and W3C packages from it, and then version it with a new name, like "IBM XML 
Parser (without org.omg.*)"
Also make sure that when you import Xerces you don't put the org.omg.* or 
org.w3c.* packages in that Project either.  See my message in this thread a few 
minutes ago for a good structure for the various XML API's.

HTH,
Eric
-- 
Eric Rizzo
VAJ Frequently Asked Questions at
http://www.jguru.com/faq/VAJ




Re: IBM VisualAge WTE and struts

2001-10-19 Thread Eric Rizzo

Hitesh Parashar wrote:

> Hi:
> 
> I am having tough time establishing peace between VAJ 
> 4.0 WTE and struts. I am following the "WebSphere
> Version 4 Application Development Handbook".
> 
> WTE requires IBM XML Parser for Java and struts
> requires me to use Xerces. The following packages are
> conflicting between the two
> 
> - org.w3c.dom
> - org.xml.sax
> - org.xml.sax.helpers
> 
> I created open editions of org.w3c.dom, org.xml.sax,
> and org.xml.sax.helpers in the IBM XML Parser for Java
> project and then created a new Xerces project and
> imported all the source from the Xerces. I get
> warnings on doing this. Can I live with these
> warnings? 
> 
> Any suggestion how should I go about importing struts
> in VisualAge 4.0?


The strategy I recommend for getting over the fact that org.* packges are in so 
many different API's is to create a new VAJ Project named "XML Base" and put in 
there the following packages:
org.w3c.dom
org.xml.sax
org.xml.sax.ext
org.xml.sax.helpers

I have several versions of this Project, each with different versions of DOM 
and/or SAX in it (right now, I have loaded version "DOM Level 2, SAX 2" which I 
imported from JAXP 1.1).
I also created a new version of the IBM XML Parser Project and removed the 
non-IBM specific packages from it (is has only com.ibm.xml.* in it now). 
Actaully, I later created an XML4J Project to replace the IBM one.
I created a JAXP project, and imported the javax.xml.* packages into it.
I also have a Xerces Project, with is mostly just the org.apache.xerces packages 
(also one or two packages like org.apache.xml and org.apache.wml.*).
I also have a similar Crimson Project, with just org.apache.crimson.*.

The pattern is to separate the VAJ Projects along product or API lines, so that 
they can co-exist in your VAJ workspace and it is easier to switch between them. 
  It aggravates me to no end that IBM chose to put the org.xml stuff in their 
parser Project, because a lot of VAJ newbies don't yet understand the separation 
of Projects as I have described.  IBM sets a bad example.

HTH,
Eric
-- 
Eric Rizzo
VAJ Frequently Asked Questions at
http://www.jguru.com/faq/VAJ




Re: Options tag

2001-10-18 Thread Eric Rizzo

Will Jaynes wrote:

> This doesn't say what you think it is saying. The documentation is unfortunately
> vague here. There are three possible collections involved here. A collection
> that is just the values. A collection that is just the labels. A collection of
> beans that hold both the values and labels, like a LabelValueBean. The only way
> to specify the latter is with the "collections" attribute.


Darn right its vague and confusing.  There needs to be a bug report to correct 
the documentation of 
Now, does it mean that by specifying only the property attribute you are 
supplying a (collection of) a "value" that will be used for both label and value?

Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: Options tag

2001-10-18 Thread Eric Rizzo

Will Jaynes wrote:

> The "collection" attribute requires that the collection exists in some scope. It
> seems that there isn't a way to use a collection straight from the form bean.


Actually, there is.  From the HTML Tags documentation:

[if no collection attribute is specified]
"The collection of values actually selected depends on the presence or absence 
of the name and property attributes. The following combinations are allowed:

 * Only name is specified - The value of this attribute is the name of a JSP 
bean in some scope that is the collection.
 * Only property is specified - The value of this attribute is the name of a 
property of the ActionForm bean associated with our form, which will return the 
collection.
 * Both name and property are specified - The value of the name attribute 
identifies a JSP bean in some scope. The value of the property attribute is the 
name of some property of that bean which will return the collection."


So by specifying just the property attribute, you can get the collection from 
your form bean.

HTH,
Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: Forwarding actions

2001-10-04 Thread Eric Rizzo

chiji nwankwo wrote:

> Hi,
> 
> When I forward from one action to another action, is it possible to find 
> out ( at run-time ) which action the forward came from?


I would think you could just set a variable in request scope before you forward, 
then read it in the forwarded-to action.

HTH,
    Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: Tiles: using tileContent inside another tile

2001-10-03 Thread Eric Rizzo

David Corbin wrote:
[snip]

> 
> --start "standardList.jsp"
> 
> 
> 
> 
> 
> 
> 
> end
> 
> and
> 
> start exampleList.jsp"
> 
> 
> 
> 
> Row1
> 
> 
> Row2
> 
> 
> 
> end


Super! This is exactly the kind of nesting I need to do.  Downloading Tiles as I 
  write this.  Thanks for the pointers.

Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: Tiles: using tileContent inside another tile

2001-10-03 Thread Eric Rizzo

David Corbin wrote:

> Here is what I've been able to do successfully:
> 
> 1) Declare "standardPage.jsp".
> 2) Declare "standardForm.jsp" which is based on standardPage.jsp.
> 3) Implement a dozed forms using standardForm.jsp, where the contents of the
> form are specifcied "inline" with the reference to "standardForm.jsp".
> 4) Similar to 2&3 for "standardList.jsp".
> 
> I consider this to be nesting templates.
> 
> Where it collapses, is when you want that content applied to a "template" to
> be constructed using includes of other Struts Actions (or .JSPs).  I don't
> know about .HTML files.
> 
> Is that clearer?


A little.  Can you give a simple example?  I'm not sure what your definitions of 
"is based on" and "specified 'inline with reference to..." are, and I think some 
  code might clarify them for me.

Sorry to be asking for the hand-holding - I've been frustrated by this for a 
couple of days and there seem to be no examples of doing this kind of thing, 
which I find amazing.

Thanks again,
Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: Tiles: using tileContent inside another tile

2001-10-03 Thread Eric Rizzo

David Corbin wrote:

> Actually tiles works reasonably well this way, AS LONG AS you only need the
> "content" from a single action per page.


Can you expand on that?  I haven't looked at Tiles yet, but am hoping it might 
meet my need.  Are you saying it will let me do the equivalent of nesting templates?

TIA,
    Eric

-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: Tiles: using tileContent inside another tile

2001-10-03 Thread Eric Rizzo

Cedric Dumoulin wrote:

>   I have try a lot of possibilities with Tiles, but never this one ;-).
> 
>   You are facing the same problem than  with  tag, because  tag
> implements 'BodyTag'. It does so to be able to read its body. In fact, only tags
> needing to read their body implements 'BodyTag'. Unfortunately, it is not
> possible to use include() method in such body (which is what  or 
> does).
>   This is a limitation from jsp1.1.
> 
>   To resume, you can't insert or get a page inside the body of a  tag.
> 
> Cedric


Pardon the bluntness, but this most definitely and most totally sucks.
I've been trying to figure out for days a way to nest templates, mostly because 
of the need ot have certain opening and closing tags located in the same file 
( and  are two in particular).  It has been a futile 
effort, but I was holding out hope that Tiles might be able to help me.  From 
what is said above, it looks like Tiles won't help either (?)

Here's an example of what I want to do:
All pages in the app should have a common layout/basic feel, so I want to use a 
template that contains things like the .css includes, the page title, the  
tag, etc.  This template will put up some "headers" followed by some content. 
For many pages, the content is a form with a set of buttons at the botton. 
There are a limited number of forms that are shared among all the pages, but 
every page has different buttons to put at the bottom.  So it would be good to 
use a template for each kind of form, and have the calling page just 
 the buttons it wants on the form.  Problem is, the calling page 
is already in a  and I can't  another 
.
Would Tiles be able to solve this particular problem, or is there another way 
I've overlooked?  If not, this seems to me like a serious hole in capability, 
since this kind of pattern can't be uncommon.

Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




as value for an attribute

2001-10-03 Thread Eric Rizzo

I need to use the value from a  as the value for an attribute of 
another tag, as in:



Is this possible?  Do I have to resort to using a scriptlet?
An example would be helpful.

TIA,
Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




AND/OR with logic tags

2001-10-01 Thread Eric Rizzo

Sorry if this has already been asked/answered here - the mail archive doesn't 
let me search for "AND OR".

Is there a way to have multiple conditional logic with the Struts logic taglib? 
  For example, "IF (user is present) OR (visitor equals true)".

TIA,
    Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Re: Use an image for submit button

2001-09-27 Thread Eric Rizzo

Thinh Doan wrote:

> I'd like to replace the following with an image instead of a button:
>styleClass="verdanaCAPCopy"/>


I just learned this the other day myself.  For some reason, an  will submit the form when clicked.  So just use the Struts tag 
 in your JSP.

Also noted that someone posted yesterday the following that might be an alternative:

> You can use  to make
> link, which submits. (I am not sure, whether the syntax above is ok)
 


HTH,
Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.




Dual-list UI

2001-09-26 Thread Eric Rizzo

Has anyone come up with a good way to implement a dual-list interface using 
Struts?  I mean a UI where there are two lists, a source and a destination, and 
buttons to move items between them.  Obviously, the lists would be created with 
 tags, and the source list can be populated with  
tags.  The big problem I see is how to get the destination list contents into 
the form bean when the form is submitted.  The Action is not interested in what 
is selected in the list, but instead the list's entire contents.

There are JavaScript solutions that I can think of, but I'm hoping that someone 
may have found a way to do it without resorting to that ugliness.

TIA,
    Eric
-- 
Eric Rizzo, Software Engineer
OpenNetwork Technologies
http://www.opennetwork.com
-
I embrace my personality flaws, for without them
I might have no personality at all.