Tag question

2003-02-12 Thread Johan Kumps
Title: Gletsjer



Hi all,
I'm using the jakarta mailer taglib. But I 
have a problem with specifiying the path to the file to be attached to the 
e-mail I send.
Please consider following code :
<%String path = "data/myapp" + "/myFile.txt";%>
    to="you@mydomain.be" from="me@mydomain.be" 
subject="mail taglib" server="mailhost"> 
MyMessage 
 
file='<%=path%>'/> 
    
Kind regards,


Struts Validator: validation.xml : Doubts

2003-02-12 Thread Amit Keshav Kulkarni
Hi All,
I am unable to find any documentation that explains the various attributes 
used in the validation.xml file, say field.

 
 
 
 
 
   mask
   ^[a-zA-Z]*$
 
 
   maxlength
   10
 
 

By running an application using the validation 
I could figure out that arg0, arg1 are the parameters that 
are used while creating the error messages
But I have many doubts @ the same.
If arg0 is the argument for first rule 'required'
why is the argument for third rule 'maxlength' named arg1 and not arg2 ?

Does the 'msg' tag require the same name as the rule for which it is to be
displayed?

Any pointers to fundas of Regular Expression?

Thanks and Regards,

Amit.

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




Re: how to Validate DATE?

2003-02-12 Thread Joey Ebright
Seems like it should work to me.  Do you know your JavaScript is working 
properly?  I might look there.  Additionally, I think the Struts In 
Action book explains this rather well.  Maybe you will find that you 
missed something.  You can find Chapter 12 here: 
http://www.theserverside.com//resources/article.jsp?l=StrutsInAction

[EMAIL PROTECTED] wrote:

Hello,

my date validation doesn't work on client (jsp) side.

I need validate date in "MM/dd/yy" format.
in validation.xml :

   

   

 
 depends="required,date">
   
   
 

 
 depends="required,date">
   
   
 

 
   datePattern
   MM/dd/yy
 

   

   


plugin includes in struts-config.xml and 



   dynamicJavascript="true"
staticJavascript="false"/>


into jsp.

do I missing anything.

Best Regards.
Michael.


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


 





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




Re: Problem with empty file upload field

2003-02-12 Thread Joey Ebright
What mozilla is doing is not populating the necessary information to the 
server for the file upload when the user does not enter a file at all 
(not just failing to use a FormFile versus a String) .  If you read the 
thread on the bug report I attached below this will become more clear 
Cynthia.  Mozilla fixed this bug in order to be compatible with other 
browsers so this leads me to believe this behavior is not present in 
other browsers.  I have not confirmed this though on IE, but Netscape is 
probably okay since it is Mozilla-based.

As for a workaround, the best I got before I found that upgrading 
Mozilla fixed my problem, was to do client-side validation with 
JavaScript.  In the end though this only ensured the user did specify a 
value for the file to upload.  It did not ensure the file was valid, 
which BTW if the file is not valid you will get the same error :(

If I had to write a more elegant workaround, I would look specifically 
for this error condition in an exception handler and return a more 
sophisticated error to the user if the did not enter a file or entered 
an invalid file (e.g. file does not exist in path specified).

Good luck, let me know how it turns out!
-Joey

Cynthia Jeness wrote:

Since I am running Mozilla 0.99, this may be the cause of the problem;
however, we have little control over what browsers our customers choose to
run.  If Mozilla does not send back a file name, then that piece of
information can be missing from my error message to the client.  However,
the error itself needs to be handled more gracefully.  It would be daunting
to the normal user to be presented with an invalid argument exception on
"bean populate" and a stack trace.   I have tried to understand where the
error occurs.  It seems to me that when Mozilla cannot process the filename
that the user has entered, the file name is sent back as part of the
request parameter stream and the commons "populate" routine is handling it
like a string.  It fails because it cannot find a write method for the
parameter which accepts a String.  I have tried providing a setter which
accepts an Object; however, then the file transfer does not occur when a
proper file name is supplied.  I have also tried two different setters --
one with a String and one with the FormFile.  This also does not work.

So, in short, are there any suggestions for a workaround or plans to handle
the error situation more gracefully in Struts or the "commons-beanutils"
routines?

Of course, if Mozilla 0.99 is the only browser that has this problem and
Netscape 4.6+ or IE work correctly along with later versions of Mozilla,
then a workaround may not be as necessary.

Cynthia Jeness

Joey Ebright wrote:

 

I found that my problem stemmed from a bug in Mozilla 0.99.  Once I
upgraded my Mozilla browser to version 1.2.1 the problem went away.  You
can find details on this bug here:
http://bugzilla.mozilla.org/show_bug.cgi?id=132069

Thanks for all who offered feedback!!!

Joey Ebright wrote:

   

I too have the same problem - whenever the user does not supply a file
to upload I get an exception.  I have tried the 1.1-b3 release of
struts and the 1.6 release of the commons and recieve the same error
from BeanUtils.populate - IllegalArgumentException...

Have you made any progress on this front?

-Joey



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


 

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



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


 





Re: Problem with empty file upload field

2003-02-12 Thread Joey Ebright
I do not think it does, although I have not tested it - I don't run 
Windows, sorry.  However after reading other people's posts and the bug 
report from mozilla I would make an assumption that it does not.  It 
would be interesting to hear back from anyone if they can state otherwise.

Peng Tuck Kwok wrote:

Does it affect other browsers like ie ?
Joey Ebright wrote:


I found that my problem stemmed from a bug in Mozilla 0.99.  Once I 
upgraded my Mozilla browser to version 1.2.1 the problem went away.  
You can find details on this bug here: 
http://bugzilla.mozilla.org/show_bug.cgi?id=132069

Thanks for all who offered feedback!!!

Joey Ebright wrote:

I too have the same problem - whenever the user does not supply a 
file to upload I get an exception.  I have tried the 1.1-b3 release 
of struts and the 1.6 release of the commons and recieve the same 
error from BeanUtils.populate - IllegalArgumentException...

Have you made any progress on this front?

-Joey



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






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






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







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




Re: Incorrect assumption with logic:present role attribute

2003-02-12 Thread Craig R. McClanahan


On Wed, 12 Feb 2003, Siggelkow, Bill wrote:

> Date: Wed, 12 Feb 2003 13:59:58 -0500
> From: "Siggelkow, Bill" <[EMAIL PROTECTED]>
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: Incorrect assumption with logic:present role attribute
>
> I have an app where I have created my own RequestProcessor to override
> the processRoles functionality.  Specifically, my roles take into
> account certain session information.  This works as expected and
> properly handles the 'roles' attribute in my action mappings.  However,
> I naievly (sp?) made the assumption that the role attribute of the
> logic:present tag would use this same functionality -- but it doesn't.
> It seems that the  only does a
> request.isUserInRole("somerole") -- it seems to me that if I override
> the processing of roles it should affect both the action mappings as
> well as the logic tags (and any other Struts tags) that use the 'role'
> attribute.  Has this been considered?
>

You are correct that  does a
request.isUserInRole() lookup.  That is precisely what it is for -- so
that you can conditionally render things based on what roles the current
user has.

In addition, the standard RequestProcessor treats the "roles" attribute on
an  exactly the same way -- it does an isUserInRole() to ensure
that the current user has the required role to execute this action.  Thus,
both pieces of Struts use roles in the same way.

If your custom RequestProcessor changes the semantics of what "roles"
means on the  element, then you should probably also provide your
own custom tags to reflect these semantics on the JSP page.

> Bill Siggelkow

Craig

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




RE: Any good suggestions on implementing Security

2003-02-12 Thread Craig R. McClanahan


On Wed, 12 Feb 2003 [EMAIL PROTECTED] wrote:

> Date: Wed, 12 Feb 2003 09:57:38 -0600
> From: [EMAIL PROTECTED]
> Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
> To: Struts Users Mailing List <[EMAIL PROTECTED]>
> Subject: RE: Any good suggestions on implementing Security
>
>
> "Depending on the container, your groups and group memberships can be
> dynamically mapped to roles, with declarative specification of what
> resources can be accessed."
>
> Is this the case with tomcat?  I did not think so.
>

It is.  The  element (in web.xml) includes a section
that maps URL patterns to the role(s) that a user must have in order to
access that URL.  This is all in the servlet spec, and portable across
containers.  The only part that's not portable across containers is how
you actually set up the users and roles database (in Tomcat terms, that is
a matter of which Realm implementation you use).

> Our needs our very similar.
> The users with a admin page that allows them to change access to pages.
>

For Tomcat specifically, this can be done easily if you use a JDBCRealm to
get user and role information from a database.  Then, writing an admin
program to manage users is just like any other database maintenance
application -- just make it update the same tables that JDBCRealm is using
to authenticate and authorize users.

Struts also has some built-in support for checking roles dynamically
during execution:

* You can use a "roles" attribute on an  to limit which
  users can execute that Action.

* You can use  to conditionally display
  parts of your UI to only people that have the role you specify.

Craig
>

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




Re: ResultsetDyna class

2003-02-12 Thread usha
Hi Vic

i tried to use the RowsetDynaclass but i am getting a strange problems. 
i already put this in the bug list. right now i cannot use this 
rowsetdynaclass. if you can help me out
in this regard you are welcome. i don't know when this bug will be solved.

Thanks
usha

Vic Cekvenich wrote:


Craig R. McClanahan wrote:



On Tue, 11 Feb 2003, usha wrote:



Date: Tue, 11 Feb 2003 11:22:47 +0800
From: usha <[EMAIL PROTECTED]>
Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: ResultsetDyna class

Hi

i have a small question i wanted to know when we create the
resultsetdyna class. is it that result is closed and we can close the
result set after returning th e iterator.




With ResultSetDynaClass, the ResultSet is not closed -- you must 
close the
ResultSet yourself when you are through iterating over the rows.  
Thus, it
is only useful within a business logic class that is pulling stuff 
out of
the results.  The upside is that no copying of the data is done.

With RowSetDynaClass (added in a recent nightly build), the data is 
copied
in to a set of DynaBeans in memory, after which you can close the result
set and iterate over the rows as many times as you like.  This is a good
way to transport data to your JSP page, because the Struts tags can 
handle
lists of DynaBeans just fine.

The JavaDocs for both of these classes include complete usage 
information,
and are available online:

  http://jakarta.apache.org/commons/beanutils/api/


Thanks
usha




Craig




I must say that I have been arguing for the RowSet against ResultSet a 
long time.
Thanks.
.V



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





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




struts-menu ClassLoaders in jboss

2003-02-12 Thread Martin J. La Jeunesse
Have been spending the day trying to get struts-menu working under 
jboss, without much success.

Upon deploying my app:
2003-02-12 17:31:00,547 ERROR [org.apache.commons.digester.Digester] 
Begin event threw exception
java.lang.ClassNotFoundException: No ClassLoaders found for: 
com.fgm.web.menu.displayer.MenuDisplayerMapping
   at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:138)
   at 
org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader3.java:140)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
   at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:252)
   at org.apache.commons.digester.Digester.startElement(Digester.java:1237)
   at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490)
   at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
   at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
   at org.apache.crimson.parser.Parser2.content(Parser2.java:1779)
   at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507)
   at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500)
   at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
   at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
   at org.apache.commons.digester.Digester.parse(Digester.java:1514)
   at com.fgm.web.menu.MenuRepository.load(Unknown Source)
   at com.fgm.web.menu.MenuPlugIn.init(Unknown Source)
   at 
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1105)
   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:471)
   at javax.servlet.GenericServlet.init(GenericServlet.java:256)


The sample struts-menu app spits-up a little differently:
2003-02-12 17:13:54,028 ERROR [org.apache.struts.action.ActionServlet]
java.io.FileNotFoundException: JAR entry 
org/apache/struts/resources/web-app_2_2.dtd not found in 
/usr/local/jboss-3.0.4_tomcat-4.1.12/tomcat-4.1.x/work/MainEngine/localhost/struts-menu/WEB-INF/lib/struts.jar
   at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2312)
   at 
org.apache.commons.digester.Digester.createSAXException(Digester.java:2332)
   at 
org.apache.commons.digester.Digester.resolveEntity(Digester.java:1367)
   at 
org.apache.crimson.parser.ExternalEntity.getInputSource(ExternalEntity.java:89)
   at org.apache.crimson.parser.Parser2.pushReader(Parser2.java:3133)
   at 
org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2868)
   at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)
   at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
   at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
   at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)
   at org.apache.commons.digester.Digester.parse(Digester.java:1514)
   at 
org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1381)
   at org.apache.struts.action.ActionServlet.init(ActionServlet.java:464)
   at javax.servlet.GenericServlet.init(GenericServlet.java:256)


If this is a jboss issue, I'll post over there. Any hints are apprciated.
thanks,
Marty


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



Re: jsp, multiple forms and beans

2003-02-12 Thread Tony Baity

Jacky,
Recently an associated of mine became tired of trying to get DHTML to work properly 
between NS and IE and came up with a crafty way of hitting the server just to pass a 
flag value in a request parameter to tell the JSP to add a new section of HTML to the 
page without affecting any other data that had already been entered on the page. The 
Action class basically did nothing but route the request to the same JSP page. 
He used a single form per page and named the line item input field(s) with "[counter]" 
and the Form class set accessor method was something like setX(String key, String 
value) { x.put(key,value); } where x is a HashMap. Both the JSP and Action class that 
processes the data use a loop to pull data out of the HashMap where key = "1", "2", 
"3" etc. until a null value is returned.
Although this is a bit creative and worked, I am not sure if it is recommend by the 
Struts old-timers. 
I would avoid using multiple Forms per page. I would also avoid any use of the 
innerHTML for dynamic client side adding of input fields into a Form. About the only 
choice left that I see is to make a server hit and let the JSP build more line items.
Anyone else out there use something like a "NoAction" action for this sort of thing?
I hope this helps?
-Tony
.
 Jacky Kimmel <[EMAIL PROTECTED]> wrote:Here I go:

I have a jsp that contains 4 forms. One for main info, another for 
merchandise info, and two for ship address address and bill address. 
Currently upon submit, I have an addressAction that gets passed the 
addressForms info. I stuff those parameters into AddressValue objects and put 
them into the httpRequestServletAttribute. I do the same with 
lineItems (which I need to change in the future because I need to have the 
ability to have muliple lineItems). Then the createPoAction gets the 
address and lineItem value objects from the requestAttributes and then call 
createPO(). How do I write the jsp appropriatly? Do I need to use 
form nesting? On the flip side, when I retrieve from the db, can I use 
this same grouping of forms or should I create a new form to diplay all 
of the data? Anyone have a suggestion on how to allow for a "add line 
Item" button that will just give another row of blank fields to the 
existing form?

I know this a lot but am in the trenches solo!!!




-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

.
.
.
Tony Baity
.
.
.


-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: LookupDispatchAction

2003-02-12 Thread Jonathan
Ok, here goes... I've definately defined the internationalization
Stuff in ApplicationResources.  Note the struts config bit below
And the fact that I've specified the scope as session, does this
make a difference? 


 



 

My JSP has the bit...






Is this wrong for a submit button?  Should I be specifying a value 
Attribute?  If so how do I pass the bean:message bit in, is it this
instead

">  



Finally application resources contains...

button.banana.add=Add Banana


Many thanks,
Jon.


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]] 
Sent: 13 February 2003 00:28
To: 'Struts Users Mailing List'
Subject: RE: LookupDispatchAction

> Ok the reason I had just put strings in the Map was because of
> Lack of internationalisation, I've now done this but still I get
> The same error that of a NullPointerException.  I'm assuming this
> Is because of a method not found error from my ServletException
> Output in Tomcat... (See attached)  Am I correct in assuming that
> map.put( "button.banana.add", "addBanana" );
> maps onto the method..
> public ActionForward addBanana(

Not without the following:
   In the .properties file:
  button.banana.add=Add Banana
   In the request
  "action" being equal to "Add Banana"
   In struts-config:
  

> I've simply stuck super.execute() in my execute method and also
> Tried removing the method as well but I still seem to get the 
> Following exception *sigh*.  Can anyone suggest whats wrong?

This isn't the same error you described earlier... now the
LookupDispatchAction's execute method *is* being executed, but it can't
figure out which method to pick.

You're much closer now, just get all the bits arranged properly and it
will
work.  If you're still stuck, post the relevant snippets of
struts-config,
.properties and the JSP.  We've just seen the map.put and the addBanana
method signature so far.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management


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




RE: LookupDispatchAction

2003-02-12 Thread Wendy Smoak
> Ok the reason I had just put strings in the Map was because of
> Lack of internationalisation, I've now done this but still I get
> The same error that of a NullPointerException.  I'm assuming this
> Is because of a method not found error from my ServletException
> Output in Tomcat... (See attached)  Am I correct in assuming that
> map.put( "button.banana.add", "addBanana" );
> maps onto the method..
> public ActionForward addBanana(

Not without the following:
   In the .properties file:
  button.banana.add=Add Banana
   In the request
  "action" being equal to "Add Banana"
   In struts-config:
  

> I've simply stuck super.execute() in my execute method and also
> Tried removing the method as well but I still seem to get the 
> Following exception *sigh*.  Can anyone suggest whats wrong?

This isn't the same error you described earlier... now the
LookupDispatchAction's execute method *is* being executed, but it can't
figure out which method to pick.

You're much closer now, just get all the bits arranged properly and it will
work.  If you're still stuck, post the relevant snippets of struts-config,
.properties and the JSP.  We've just seen the map.put and the addBanana
method signature so far.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management



Re: blank default value in html:select tag

2003-02-12 Thread Claude Betancourt
  
All

  


- Original Message -
From: "Arunachalam Jaisankar" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 5:50 PM
Subject: blank default value in html:select tag


> I'm using html:select tag for all drop down boxes. The default selected
> value in the drop down box is always first record of the table. I require
> that should be blank initially i.e before selection. I set value attribute
> as blank. But it doesn't work. How to do this?
>
> Can any one help me in this regard?
>
> Thanks & Regards
> Jaisankar
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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




RE: LookupDispatchAction

2003-02-12 Thread Brandon Goodin
when it don't work check the following:

1) Do you have a parameter set in your struts-config.xml for that action
2) Do you have the parameter being passed at all from the query string/form
post
3) Is the value of your parameter being expressed in the jsp page using
bean:message tag to retrieve the value from your
ApplicationResources.properties:

4) Is the parameter being given a value from the form/request
5) do you have your property name mapped to a method (case sensitive)
6) Do you have an unspecified method so that an empyt parameter value will
default to the unspecified method.

Brandon Goodin
Phase Web and Multimedia
PO Box 85
Whitefish MT 59937
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws


-Original Message-
From: Jonathan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 3:25 PM
To: 'Struts Users Mailing List'
Subject: LookupDispatchAction


Ok the reason I had just put strings in the Map was because of
Lack of internationalisation, I've now done this but still I get
The same error that of a NullPointerException.  I'm assuming this
Is because of a method not found error from my ServletException
Output in Tomcat... (See attached)  Am I correct in assuming that

map.put( "button.banana.add", "addBanana" );

maps onto the method..

public ActionForward addBanana(ActionMapping mapping,
   ActionForm form,
   HttpServletRequest request,
 HttpServletResponse response) throws
IOException, ServletException {


return (mapping.findForward("success"));
}

I've simply stuck super.execute() in my execute method and also
Tried removing the method as well but I still seem to get the
Following exception *sigh*.  Can anyone suggest whats wrong?

Many thanks,
Jon.

Exception follows..

javax.servlet.ServletException
at
org.apache.struts.action.RequestProcessor.processException(RequestProces
sor.java:507)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:448)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
266)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239
6)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40
5)
at
o

Re: Ultradev + Struts TagLib

2003-02-12 Thread Zoran Avtarovski
Do you mean UltraDev 4 ot Dreamweaver MX?

There is an extension to UD 4 at the jakarta site and DW MX allows you to
import the tld files so they can be used.

I use DW MX for template construction and I find it works without a hitch.

Z.

> Someone know how to work with Ultradev and Struts TagLib?
> 
> Can Macromedia Ultradev display TagLib how Web Component?
> 
> __
> Eduardo Fabrício Elias
> CIEE-RS - Porto Alegre
> [EMAIL PROTECTED]
> ICQ#: 25223384
> Fone: 51 32847029
> __
> 
> 
> 


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




Re: [newbie] Connection Pooling

2003-02-12 Thread Zoran Avtarovski
Why wouldn't you use a simple update statement on the revised, validated
data, rather than keeping the connection open for long?

Z.

> Folks,
> 
> quite new to Struts and it's way to JPS-Action-etc. chaining I'd like to
> know the following. Is their a way to keep open a certain connection to
> a database between two actions, e.g. I have a EditGetAction where I
> prepopulate a form, then show the jsp and make the user work and finally
> after validation write the (maybe) changed fields back into the database
> ???
> 
> Hope, this is not a absolutely stupid question ...
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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




RE: posting an updated collection back to Action

2003-02-12 Thread Clement, Stephen

I have had (and continue to have) a similar problem.
It seems that the reset() is called prior to populating your form and then
is populated using java reflection and the submit parameters/attributes.
So...it seems that if the arrays are not initialized to correct lengths upon
form construction or reset, they will not get created and/or populated.
I have yet to find a nice solution to this.

-Original Message-
From: MarwanSalam <[EMAIL PROTECTED]> [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 6:34 PM
To: [EMAIL PROTECTED]
Subject: Re: posting an updated collection back to Action


Hi,

I looked at all your the responses to this thread and then looked at 
Ted Husted's "Struts Tip #6 - Use an array to capture multiple 
parameters" to solve my problem.
However, I still have some problems when I submit my changes(even if 
I don't change anything).

My ActionForm looks like this:
private String[] orderLineNumber = null;
private String[] quantityShipped = null;
private String[] quantityCancelled = null;

with setters and getters for these attributes. In the ActionForm 
constructor there is nothing to initialize the arrays.

After submitting the form, I am trying to access these arrays in the 
Action class like this:
String[] lineNumber = (UpdateForm)form.getOrderLineNumber();

and I get a java.lang.NullPointerException on this exact line.

My JSP looks like this:
<%List orderDetailList=(List)session.getAttribute(Constants.ORDERS);%>


 
  
  
  
 
 




This is still not working. The lines in the JSP are objects and not 
Strings. My JSP is retrieving a collection of these objects to 
display in a grid as you see above. Can I have these objects in my 
ActionForm instead of defining arrays for each column in the JSP? All 
I need to do is retrieve the grid of data from the JSP to my Action 
class with one submit button. That's all.

Thanks,
Marwan



--- In [EMAIL PROTECTED], "John Espey" <[EMAIL PROTECTED]> wrote:
> You can create indexed properties (   getOrderDetail(int),
> setOrderDetail(int, string)  )
> You have to back them whatever way you see fit (I've used arrays in 
the past
> but I had to make sure they were sized propertly on each call).  On 
your
> JSP, the resulting names for your input fields will need to be 
indexed:
>  will
> work if you are using the EL version of the html taglib. (Although 
I'm not
> sure the name property has to be specified if you use the html:form 
tag
> instead of the form tag as you've shown here)
> 
> 
> 
> 
> -Original Message-
> From: MarwanSalam <[EMAIL PROTECTED]> [mailto:marwansalam@y...]
> Sent: Monday, February 10, 2003 5:46 PM
> To: [EMAIL PROTECTED]
> Subject: posting an updated collection back to Action
> 
> 
> Hi,
> 
> I have a list of line items displayed in a JSP where some of the
> attributes can be edited. I would like to capture the updated data 
by
> the user to return it to my Action class so I can modify my model
> accordingly.
> 
> Here is my JSP code:
> 
> 
>   
> collection="<%= orderDetailList %>">
>
>   
>   
> 
> 
> I know my ActionForm class has to have a property called
> orderDetailList. But the question is, how will the correct index be
> updated since my list can contain many OrderDetailModel's? Should I
> add a method in my ActionForm class like getOrderDetailList.get
> (index)? Help!!!
> 
> 
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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

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




Re: posting an updated collection back to Action

2003-02-12 Thread MarwanSalam <[EMAIL PROTECTED]>
Hi,

I looked at all your the responses to this thread and then looked at 
Ted Husted's "Struts Tip #6 - Use an array to capture multiple 
parameters" to solve my problem.
However, I still have some problems when I submit my changes(even if 
I don't change anything).

My ActionForm looks like this:
private String[] orderLineNumber = null;
private String[] quantityShipped = null;
private String[] quantityCancelled = null;

with setters and getters for these attributes. In the ActionForm 
constructor there is nothing to initialize the arrays.

After submitting the form, I am trying to access these arrays in the 
Action class like this:
String[] lineNumber = (UpdateForm)form.getOrderLineNumber();

and I get a java.lang.NullPointerException on this exact line.

My JSP looks like this:
<%List orderDetailList=(List)session.getAttribute(Constants.ORDERS);%>


 
  
  
  
 
 




This is still not working. The lines in the JSP are objects and not 
Strings. My JSP is retrieving a collection of these objects to 
display in a grid as you see above. Can I have these objects in my 
ActionForm instead of defining arrays for each column in the JSP? All 
I need to do is retrieve the grid of data from the JSP to my Action 
class with one submit button. That's all.

Thanks,
Marwan



--- In [EMAIL PROTECTED], "John Espey" <[EMAIL PROTECTED]> wrote:
> You can create indexed properties (   getOrderDetail(int),
> setOrderDetail(int, string)  )
> You have to back them whatever way you see fit (I've used arrays in 
the past
> but I had to make sure they were sized propertly on each call).  On 
your
> JSP, the resulting names for your input fields will need to be 
indexed:
>  will
> work if you are using the EL version of the html taglib. (Although 
I'm not
> sure the name property has to be specified if you use the html:form 
tag
> instead of the form tag as you've shown here)
> 
> 
> 
> 
> -Original Message-
> From: MarwanSalam <[EMAIL PROTECTED]> [mailto:marwansalam@y...]
> Sent: Monday, February 10, 2003 5:46 PM
> To: [EMAIL PROTECTED]
> Subject: posting an updated collection back to Action
> 
> 
> Hi,
> 
> I have a list of line items displayed in a JSP where some of the
> attributes can be edited. I would like to capture the updated data 
by
> the user to return it to my Action class so I can modify my model
> accordingly.
> 
> Here is my JSP code:
> 
> 
>   
> collection="<%= orderDetailList %>">
>
>   
>   
> 
> 
> I know my ActionForm class has to have a property called
> orderDetailList. But the question is, how will the correct index be
> updated since my list can contain many OrderDetailModel's? Should I
> add a method in my ActionForm class like getOrderDetailList.get
> (index)? Help!!!
> 
> 
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


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




RE: [OT] Generating microsoft word documents

2003-02-12 Thread Todd Pierce
I don't want to start a flame war, but if your source is xml and you want to
serve out HTML 
and RTF (or PDF or WML or PS), have a[nother] look at Cocoon 2:

http://xml.apache.org/cocoon/






>>Have you thought of using Rich Text Format (.rtf files) 
>>instead of actual
>>Word (.doc) files?  RTFs would probably be easier to create 
>>from java since
>>it uses a type of markup language (plain text) and there may 
>already be
>>utilities in java for creating such files.  The best thing is 
>>Word will open
>>these files just as well as it does it's own DOC format.
>>
>>
>>- Original Message -
>>From: "John Cavacas" <[EMAIL PROTECTED]>
>>To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
>>Sent: Wednesday, February 12, 2003 9:29 AM
>>Subject: [OT] Generating microsoft word documents
>>
>>
>>> I'm currently doing some initial research on the possibility 
>>of generating
>>> Microsoft word documents (yuk) from a web application for a 
>>project that I
>>> am working on. The web app portion of course would use 
>>struts. However, as
>>I
>>> suspected, I'm finding that creating word documents from 
>>Java is, well for
>>a
>>> lack of better words, a pain in the ass.
>>>
>>> I've looked at POI and their HDF classes, but it seems to be 
>>in very very
>>> early state. I've also looked at some Java COM wrappers 
>>which seem that
>>> would work, however it forces you to use COM.
>>>
>>> I was wondering if anyone in the list has had some experience with
>>something
>>> like this and would care to share their experiences. Any 
>>suggestions would
>>> be appreciated as well.
>>>
>>> Regards,
>>> John
>>>
>>>
>>>
>>> This communication is intended for the use of the 
>>individual(s) or entity
>>it
>>> was addressed to and may contain confidential and/or privileged
>>information.
>>> If the reader of this transmission is not the intended 
>>recipient, you are
>>> hereby notified that any review, dissemination, distribution 
>>or copying of
>>> this communication is prohibited.  If you receive this 
>>communication in
>>> error, please notify the sender immediately and delete this 
>>communication
>>> from your system(s) to which it was sent and/or replicated 
>>to. (c) 2002
>>> Sapiens Americas Corp.
>>>
>>> 
>-
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

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




Re: ActionErrors

2003-02-12 Thread Arunachalam Jaisankar
I think you might be missing the following logic:messages tag in your jsp
file. Include the following on top of your jsp file. And set errors.header
in your application properties file.

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

 
 

regards
Jai

- Original Message -
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 11:38 AM
Subject: Re: ActionErrors


> Try using /login.jsp as your input value.
>
> David
>
>
>
> >From: "Diego Bursztyn" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Mailing" <[EMAIL PROTECTED]>
> >Subject: ActionErrors
> >Date: Wed, 12 Feb 2003 17:17:51 -0500
> >
> >I'm having a problem with an action error.
> >I have the following config:
> >
> > > type="com.blah.actions.LogonAction"
> > name="logonForm"
> > scope="request"
> > validate="true"
> > input="login.jsp">
> > 
> > 
> >
> >
> >action form
> >public ActionErrors validate(ActionMapping mapping, HttpServletRequest
> >request)
> > {
> > ActionErrors errors = new ActionErrors();
> > if ((username == null) || (username.length() < 1))
> > errors.add("username", new ActionError("error.username.required"));
> > if ((password == null) || (password.length() < 1))
> > errors.add("password", new ActionError("error.password.required"));
> >
> > return errors;
> > }
> >
> >if the username or the password is omitted when submitting the form,
> >login.jsp should display on the browser with the error message, instead I
> >get a blank browser with http://./action/logon.do on the url.
> >What am I missing?
> >
> >Thanks,
> >
> >Diego.
> >
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> _
> Add photos to your messages with MSN 8. Get 2 months FREE*.
> http://join.msn.com/?page=features/featuredemail
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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




RE: ActionErrors

2003-02-12 Thread Diego Bursztyn
I found the problem (newbie issues!)

I have a global forward for login.jsp 
I've changed the input attribute in the action tag to "logon" and it worked.

Thanks,

Diego.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 5:39 PM
To: [EMAIL PROTECTED]
Subject: Re: ActionErrors


Try using /login.jsp as your input value.

David



>From: "Diego Bursztyn" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Mailing" <[EMAIL PROTECTED]>
>Subject: ActionErrors
>Date: Wed, 12 Feb 2003 17:17:51 -0500
>
>I'm having a problem with an action error.
>I have the following config:
>
>   type="com.blah.actions.LogonAction"
>   name="logonForm"
>   scope="request"
>   validate="true"
>   input="login.jsp">
>   
>   
>
>
>action form
>public ActionErrors validate(ActionMapping mapping, HttpServletRequest
>request)
>   {
>   ActionErrors errors = new ActionErrors();
>   if ((username == null) || (username.length() < 1))
>   errors.add("username", new 
>ActionError("error.username.required"));
>   if ((password == null) || (password.length() < 1))
>   errors.add("password", new 
>ActionError("error.password.required"));
>
>   return errors;
>   }
>
>if the username or the password is omitted when submitting the form,
>login.jsp should display on the browser with the error message, instead I
>get a blank browser with http://./action/logon.do on the url.
>What am I missing?
>
>Thanks,
>
>Diego.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail


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



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




Re: [newbie] Connection Pooling

2003-02-12 Thread Michał Postupalski
On 2/12/2003 11:20 PM, Guido wrote:

IMHO, storing the connection in the session context is *never* a good
idea!

1. Session timeout uses to be too high if you must wait the session to
expire to close your connection (the user closes the browser...)
2. You can kill your DB or you app server...  And think about how many
connections would you need if your application has i.e. 3 hits/day?
You should use a connection pool.

>

} Yes, it's a good idea. I use it sometimes but only when I have only one
} database's user. If You use more database's users to connect to database
} I wouldn't used connection pooling.
}
} plastic


Ups..I didn't express corectly. I mean I keep in the session context 
 not certain connection but object which provides connection pooling. I 
have i.e. static method getConnection() which returns next connection 
from the pool.

plastic


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



blank default value in html:select tag

2003-02-12 Thread Arunachalam Jaisankar
I'm using html:select tag for all drop down boxes. The default selected
value in the drop down box is always first record of the table. I require
that should be blank initially i.e before selection. I set value attribute
as blank. But it doesn't work. How to do this?

Can any one help me in this regard?

Thanks & Regards
Jaisankar



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




RE: legal to create new ActionForward in 1.1b3?

2003-02-12 Thread Joe Barefoot
thanks David, this makes the lack of setRedirect() easy to fix

> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 2:42 PM
> To: [EMAIL PROTECTED]
> Subject: Re: legal to create new ActionForward in 1.1b3?
> 
> 
> You can create and return new ActionForwards and return them 
> from Actions.
> 
> David
> 
> 
> 
> >From: "Joe Barefoot" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
> >To: "Struts user (E-mail)" <[EMAIL PROTECTED]>
> >Subject: legal to create new ActionForward in 1.1b3?
> >Date: Wed, 12 Feb 2003 14:37:44 -0800
> >
> >Hi all,
> >
> >So I see that the call to setRedirect() in the new 
> ActionForward class will 
> >cause an exception if called at runtime (after the configuration is 
> >frozen).  I wasn't expecting this, as I previously thought 
> that only the 
> >ActionMapping(s) config was frozen.  We can obviously work 
> around this, 
> >but...really need to add a note to the javadocs (or something).
> >
> >There are no problems with creating a new ActionForward and 
> returning it 
> >from an Action, right?  If so, when we need to change the 
> redirect flag, we 
> >can just make a "copy" of the current ActionForward, setting 
> redirect to 
> >the value we desire, and return it, yes?
> >
> >
> >thanks,
> >Joe
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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




RE: ActionErrors

2003-02-12 Thread Diego Bursztyn
I've tried using /login.jsp and still no luck.

Thanks,

Diego.

-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 5:39 PM
To: [EMAIL PROTECTED]
Subject: Re: ActionErrors


Try using /login.jsp as your input value.

David



>From: "Diego Bursztyn" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Mailing" <[EMAIL PROTECTED]>
>Subject: ActionErrors
>Date: Wed, 12 Feb 2003 17:17:51 -0500
>
>I'm having a problem with an action error.
>I have the following config:
>
>   type="com.blah.actions.LogonAction"
>   name="logonForm"
>   scope="request"
>   validate="true"
>   input="login.jsp">
>   
>   
>
>
>action form
>public ActionErrors validate(ActionMapping mapping, HttpServletRequest
>request)
>   {
>   ActionErrors errors = new ActionErrors();
>   if ((username == null) || (username.length() < 1))
>   errors.add("username", new 
>ActionError("error.username.required"));
>   if ((password == null) || (password.length() < 1))
>   errors.add("password", new 
>ActionError("error.password.required"));
>
>   return errors;
>   }
>
>if the username or the password is omitted when submitting the form,
>login.jsp should display on the browser with the error message, instead I
>get a blank browser with http://./action/logon.do on the url.
>What am I missing?
>
>Thanks,
>
>Diego.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]


_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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



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




Re: legal to create new ActionForward in 1.1b3?

2003-02-12 Thread David Graham
You can create and return new ActionForwards and return them from Actions.

David




From: "Joe Barefoot" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts user (E-mail)" <[EMAIL PROTECTED]>
Subject: legal to create new ActionForward in 1.1b3?
Date: Wed, 12 Feb 2003 14:37:44 -0800

Hi all,

So I see that the call to setRedirect() in the new ActionForward class will 
cause an exception if called at runtime (after the configuration is 
frozen).  I wasn't expecting this, as I previously thought that only the 
ActionMapping(s) config was frozen.  We can obviously work around this, 
but...really need to add a note to the javadocs (or something).

There are no problems with creating a new ActionForward and returning it 
from an Action, right?  If so, when we need to change the redirect flag, we 
can just make a "copy" of the current ActionForward, setting redirect to 
the value we desire, and return it, yes?


thanks,
Joe

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


_
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


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



legal to create new ActionForward in 1.1b3?

2003-02-12 Thread Joe Barefoot
Hi all,

So I see that the call to setRedirect() in the new ActionForward class will cause an 
exception if called at runtime (after the configuration is frozen).  I wasn't 
expecting this, as I previously thought that only the ActionMapping(s) config was 
frozen.  We can obviously work around this, but...really need to add a note to the 
javadocs (or something).

There are no problems with creating a new ActionForward and returning it from an 
Action, right?  If so, when we need to change the redirect flag, we can just make a 
"copy" of the current ActionForward, setting redirect to the value we desire, and 
return it, yes?  


thanks,
Joe

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




RE: [newbie] Connection Pooling

2003-02-12 Thread Marco Tedone
Yes, so do I. :-)

Marco

-Original Message-
From: Micha³ Postupalski [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 10:00 PM
To: Struts Users Mailing List
Subject: Re: [newbie] Connection Pooling


On 2/12/2003 10:34 PM, Marco Tedone wrote:
> You could write a PlugIn(new to Struts 1.1) to open a db connection 
> and store it in the session context. I would remember to close it in 
> the
> destroy() method.
> 
> Only an idea.

Yes, it's a good idea. I use it sometimes but only when I have only one 
database's user. If You use more database's users to connect to database 
I wouldn't used connection pooling.

plastic


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




Re: ActionErrors

2003-02-12 Thread David Graham
Try using /login.jsp as your input value.

David




From: "Diego Bursztyn" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Mailing" <[EMAIL PROTECTED]>
Subject: ActionErrors
Date: Wed, 12 Feb 2003 17:17:51 -0500

I'm having a problem with an action error.
I have the following config:


	
	


action form
public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request)
	{
		ActionErrors errors = new ActionErrors();
		if ((username == null) || (username.length() < 1))
			errors.add("username", new ActionError("error.username.required"));
		if ((password == null) || (password.length() < 1))
			errors.add("password", new ActionError("error.password.required"));

		return errors;
	}

if the username or the password is omitted when submitting the form,
login.jsp should display on the browser with the error message, instead I
get a blank browser with http://./action/logon.do on the url.
What am I missing?

Thanks,

Diego.


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



_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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



Re: [newbie] Connection Pooling

2003-02-12 Thread Robert S. Sfeir
100% agree.  The only thing that should be placed in a session is user  
specific stuff.  Connections should never be user specific, connections  
should be returned to the pool so other users can have them when they  
need it.  The thing is that before such cool methodologies you had to  
buy 300-400 DB users for big apps, and db vendors made a killing that  
way, with the poolers and web connection pooling, now you can run a  
busy app on 5 user connections and keep the load light on the DB.

Anyway implementing the PlugIn is easier than anything I've done so far  
in Struts.  I just implemented it for my BaseOJBConnector class, it  
doesn't even have to be a servlet, and it opens up the db (the ojb  
pooler more specifically) and saves time on startup where users don't  
have to wait for the pooler to instantiate.

Here is the code if someone wants to see an example:  (If you want to  
do it with the commons pooler send me an email I'll send you the code,  
it's not very different)

public class BaseOJBConnector implements PlugIn , Serializable
{
	protected static Implementation odmg = null;
	protected static Database db = null;
	private static String ojbDBAlias = null;

	protected Log log = LogFactory.getFactory().getInstance(  
this.getClass().getName() );

	/**
	 * Default constructor, initializes the percistence layer.
	 * @throws net.sfeir.exceptions.DataAccessException
	 */
	public BaseOJBConnector() throws DataAccessException
	{
	}

	/**
	 * Opens the database and prepares it for transactions
	 */
	private void openDB( String DBC )
	{
		if( DBC == null || DBC.length() < 1 )
			DBC = "default";
		// Get odmg facade instance
		odmg = OJB.getInstance();
		db = odmg.newDatabase();
		// Open database
		try
		{
			if( log.isDebugEnabled() )
log.debug( "Opening DB connection via OJB" );
			db.open( DBC , Database.OPEN_READ_WRITE );
		}
		catch( Exception ex )
		{
			if( log.isFatalEnabled() )
log.fatal( "Something went very wrong in opening the DB connection"  
, ex );
			ex.printStackTrace();
		}
	}

	private void closeDB()
	{
		try
		{
			db.close();
		}
		catch( ODMGException e )
		{
			if( log.isFatalEnabled() )
log.fatal( "An exception occured during database closing" , e );
		}
	}

	public void destroy()
	{
		closeDB();
	}

	public void init( ActionServlet actionServlet , ModuleConfig  
moduleConfig ) throws ServletException
	{
		ojbDBAlias = actionServlet.getInitParameter( "database" );
		openDB( ojbDBAlias );
	}
}

On Wednesday, Feb 12, 2003, at 17:20 US/Eastern, Guido wrote:

IMHO, storing the connection in the session context is *never* a good
idea!

1. Session timeout uses to be too high if you must wait the session to
expire to close your connection (the user closes the browser...)
2. You can kill your DB or you app server...  And think about how many
connections would you need if your application has i.e. 3 hits/day?
You should use a connection pool.

On Wed, 12 Feb 2003, [ISO-8859-2] Micha? Postupalski wrote:

} On 2/12/2003 10:34 PM, Marco Tedone wrote:
} > You could write a PlugIn(new to Struts 1.1) to open a db  
connection and
} > store it in the session context. I would remember to close it in  
the
} > destroy() method.
} >
} > Only an idea.
}
} Yes, it's a good idea. I use it sometimes but only when I have only  
one
} database's user. If You use more database's users to connect to  
database
} I wouldn't used connection pooling.
}
} plastic
}
}
} -
} To unsubscribe, e-mail: [EMAIL PROTECTED]
} For additional commands, e-mail: [EMAIL PROTECTED]
}


--- 
-
Guido Garcia Bernardo
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"stat rosa pristina
nomine, nomina nuda tenemus."
--- 
-
http://members.ud.com/services/teams/team.htm?id=D8624419-BFB6-4772- 
A01A-0045631F979F

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

R

--
Robert S. Sfeir
Senior Java Engineer
National Institutes of Health
Center for Information Technology
Department of Enterprise Custom Applications
[EMAIL PROTECTED]


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




LookupDispatchAction

2003-02-12 Thread Jonathan
Ok the reason I had just put strings in the Map was because of
Lack of internationalisation, I've now done this but still I get
The same error that of a NullPointerException.  I'm assuming this
Is because of a method not found error from my ServletException
Output in Tomcat... (See attached)  Am I correct in assuming that

map.put( "button.banana.add", "addBanana" );

maps onto the method..

public ActionForward addBanana(ActionMapping mapping, 
   ActionForm form, 
   HttpServletRequest request, 
 HttpServletResponse response) throws
IOException, ServletException {


return (mapping.findForward("success"));
} 

I've simply stuck super.execute() in my execute method and also
Tried removing the method as well but I still seem to get the 
Following exception *sigh*.  Can anyone suggest whats wrong?

Many thanks,
Jon.

Exception follows..

javax.servlet.ServletException
at
org.apache.struts.action.RequestProcessor.processException(RequestProces
sor.java:507)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestPr
ocessor.java:448)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
266)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:239
6)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:40
5)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:50
8)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:533)
at java.lang.Thread.run(Thread.java:536)


root cause 

java.lang.NullPointerException
at java.lang.Class.getMethod0(Class.java:1734)
at java.lang.Class.getMethod(Class.java:951)
at
org.apache.struts.actions.DispatchAction.getMethod(DispatchAction.java:3
34)
at
org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.j
ava:266)
at
org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAct
ion.java:239)
at
tweek.struts.staff.action.assessment.QuestionMCAction.execute(QuestionMC
Action.j

Re: [newbie] Connection Pooling

2003-02-12 Thread Guido
IMHO, storing the connection in the session context is *never* a good
idea!

1. Session timeout uses to be too high if you must wait the session to
expire to close your connection (the user closes the browser...)
2. You can kill your DB or you app server...  And think about how many
connections would you need if your application has i.e. 3 hits/day?
You should use a connection pool.

On Wed, 12 Feb 2003, [ISO-8859-2] Micha? Postupalski wrote:

} On 2/12/2003 10:34 PM, Marco Tedone wrote:
} > You could write a PlugIn(new to Struts 1.1) to open a db connection and
} > store it in the session context. I would remember to close it in the
} > destroy() method.
} >
} > Only an idea.
}
} Yes, it's a good idea. I use it sometimes but only when I have only one
} database's user. If You use more database's users to connect to database
} I wouldn't used connection pooling.
}
} plastic
}
}
} -
} To unsubscribe, e-mail: [EMAIL PROTECTED]
} For additional commands, e-mail: [EMAIL PROTECTED]
}



Guido Garcia Bernardo
[EMAIL PROTECTED]
[EMAIL PROTECTED]
"stat rosa pristina
nomine, nomina nuda tenemus."

http://members.ud.com/services/teams/team.htm?id=D8624419-BFB6-4772-A01A-0045631F979F

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




ActionErrors

2003-02-12 Thread Diego Bursztyn
I'm having a problem with an action error.
I have the following config:






action form
public ActionErrors validate(ActionMapping mapping, HttpServletRequest
request)
{
ActionErrors errors = new ActionErrors();
if ((username == null) || (username.length() < 1))
errors.add("username", new 
ActionError("error.username.required"));
if ((password == null) || (password.length() < 1))
errors.add("password", new 
ActionError("error.password.required"));

return errors;
}

if the username or the password is omitted when submitting the form,
login.jsp should display on the browser with the error message, instead I
get a blank browser with http://./action/logon.do on the url.
What am I missing?

Thanks,

Diego.


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




Re: OT: Yet another Persistence Survey

2003-02-12 Thread Robert McIntosh
'G', and have it for several clients via eQ! (browsersoft.com/eQ)

- Robert

Vic Cekvenich wrote:


I am curious as to what is popular and working in larger production sites
(as opposed to still in development, or like less than 200 concurent 
users, or not working well in production or a theory as to what might 
work well)
for persistence:

 A. Hibernate
 B. Castor
 C. Roll Your Own Beans/ Custom DAO (RowSet or ResultSet) with no
OMG or O/R
 D. Ibatis
 E. One of http://db.apache.org  (please specify which) _
 F. EJB
 G. Other OMG  or O/R : __
 H: Other SQL based (not OMG or O/R) : 

- - - -
Answer:




If a bunch of people can respond about what is in production and 
working, it be real nice, please vote multiple times for each, I would 
like to see popularity.


Tia,
.V



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



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




How to retrieve a list of all tiles definitions?

2003-02-12 Thread Roeland Lengers
Hi all,
 
Sorry if you get this twice, I had some problems posting.
 
I would like to know how I could retrieve a list of all
tiles-definitions within an action.
Background:
I'm currently building a framework that lets a user dynamically add
destinations within an application. These destinations will use a
definition that's defined in tiles-config.xml. To create a new
destination a user first needs to select which definition to use, and
then he should select which pages he wants to use for all areas defined
within that definition.
I can get the list of areas when I have a definition. For that I use the
following code:
 

// get a reference to the definitions 
ServletContext sc = request.getSession().getServletContext();
 
// get the definitionFactory that is used (Tiles-specific)
DefinitionsFactory definitionsFactory = ((TilesUtilStrutsImpl)
TilesUtil.getTilesUtil()).getDefinitionsFactory(request, sc);
 
logger.debug("DefinitionsFactory =" + definitionsFactory.toString());
 
// get the ComponentDefinition for the definition that has
// been selected for the current destination, for example
"portal.masterPage".
ComponentDefinition compDef =
definitionsFactory.getDefinition(definition, request, sc);
 
logger.debug("We have the following areas according to the definition:
");
logger.debug(compDef.getAttributes().keySet());

 
This only works when I already know the definition. I would like to get
a list of all definitions, so a user can get a drop-down list from which
to select the definition he wants to use for the new destination.
Do I need to extend the DefinitionFactory in order to get something like
DefinitionFactory.getDefinitions() ?
 
Thanks in advance.
 
 
Roeland J.C. Lengers
Email:  [EMAIL PROTECTED]
 
 
 



Re: [newbie] Connection Pooling

2003-02-12 Thread Michał Postupalski
On 2/12/2003 10:34 PM, Marco Tedone wrote:

You could write a PlugIn(new to Struts 1.1) to open a db connection and
store it in the session context. I would remember to close it in the
destroy() method.

Only an idea.


Yes, it's a good idea. I use it sometimes but only when I have only one 
database's user. If You use more database's users to connect to database 
I wouldn't used connection pooling.

plastic


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



RE: Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

Yes, this is the name of the class. I checked this 100s of times, even copying and 
pasting the package and class name from the .java file. I'm sure this is correct.
 
I have Struts logging turned up to #6 but that isn't putting out any messages. There 
is very little in the JSP so I don't think that logging directly from the JSP would 
help. There is no "body" to the JSP.
 Joe Barefoot <[EMAIL PROTECTED]> wrote:Is your form bean class actually named: 
"com.client.form.simpleForm" ?

or is supposed to have a capital 'S': "com.client.form.SimpleForm" ?

Have you tried putting any logging statements into the simplePage.jsp (just sys-outs 
would work)? You should put a few in so that you can see exactly where/when the 
exception is occuring...it may even be thrown before the JSP is actually executed.

peace,
Joe

> -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 1:38 PM
> To: Struts Users Mailing List
> Subject: RE: Cannot retrieve definition for form bean null
> 
> 
> 
> I am not referencing my own bean. The only thing my JSP tries 
> to do is grab a value from a resource bundle and set the 
> title of the page to that value. This is my entire JSP: 
> 
> 
> 

> 
> 
> 
> 
> 
> 
> This is the config file:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> > type="org.apache.struts.actions.ForwardAction" 
> parameter="Welcome.jsp"/>
> > type="org.apache.struts.actions.ForwardAction" parameter="Logon.jsp"/>
> > type="com.client.action.LogonAction" name="logonForm" 
> scope="request" validate="true" input="Logon.jsp">
> 
> 
> 
> 
> 
> > type="org.apache.struts.actions.ForwardAction" 
> parameter="simplePage.jsp"/>
> 
> 
> 
> James Childers wrote: Nine times out 
> of ten when I get that message it is one of two things:
> 
> - I haven't referenced the bean properly in the tag. This is 
> especially true of anything which references a collection, 
> because that syntax is just off.
> 
> - I haven't put the bean in the proper scope. Less frequent, 
> but it happens.
> 
> BTW: Your struts-config and JSP source is coming across as 
> blanks on my mailreader. 
> 
> -= J
> 
> > -Original Message-
> > From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 12, 2003 3:19 PM
> > To: Struts Users Mailing List
> > Subject: Re: Cannot retrieve definition for form bean null
> > 
> > 
> > 
> > I'm sorry to bug everyone again with this, but I cannot 
> > figure out what this error message is telling me. If anyone 
> > has any insight, I'd appreciate it.
> > After looking through the Struts 1.1 source files, I've 
> > determined that this is the code that throws the exception. 
> > It is located in FormTag.lookup:
> > // Look up the form bean definition
> > FormBeanConfig formBeanConfig = 
> > moduleConfig.findFormBeanConfig(mapping.getName());
> > if (formBeanConfig == null) {
> > JspException e =
> > new 
> > JspException(messages.getMessage("formTag.formBean", 
> > mapping.getName()));
> > pageContext.setAttribute(Globals.EXCEPTION_KEY, 
> > e, PageContext.REQUEST_SCOPE);
> > throw e;
> > }
> > 
> > 
> > 
> > My original message is below with the struts-config.xml and 
> > JSP page itself.
> > 
> > Thanks for any help you can provide.
> > 
> > 
> > Art Vandalay wrote:
> > Hello everyone,
> > 
> > I am trying to write a very simple Struts application that 
> > simply displays a JSP using bean:message to retrieve values 
> > for my field labels and buttons from a ResourceBundle. Pretty 
> > straight forward, but I am getting the following error:
> > 
> > 
> > 
> > [exec] javax.servlet.jsp.JspException: Cannot retrieve 
> > definition for form
> > bean null
> > 
> > 
> > 
> > The message seems to imply that Struts is trying to access a 
> > bean whose name is "null" but I don't know what bean that 
> > would be as I have no beans referenced on my JSP. I am only 
> > trying to invoke the logic contained within the struts-bean.tld.
> > 
> > 
> > 
> > The logic flow is the user signs-into the application and is 
> > then forwarded to "simplePage.jsp". I used a ForwardAction to 
> > navigate from the logon page (after a successful login). But 
> > I never reach "simplePage.jsp" due to the above mentioned error.
> > 
> > 
> > 
> > Any help would be appreciated.
> > 
> > 
> > 
> > Here is what I have in my struts_config.xml:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Here is my JSP:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! Shopping - Send Flowers for Valentine's Day
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! Shopping - Send Flowers for Vale

RE: Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

yes, this is correct. I've already checked this.
 
The way I created my application was
1. Took an existing Struts example, put the .war into my app server
2. Tested the sample to see if it worked -- it did.
3. Added my own JSP
4. Modified the resource bundle
5. Modified struts_config
6. Rebuilt the app
7. Tried to run it.
 
But now I've been chasing this error for almost 2 full days with no progress. I'm 
ready to give up on struts.
 James Childers <[EMAIL PROTECTED]> wrote:This sounds like it's an issue with your 
resources file. Make sure it's being referenced properly in web.xml and is in a 
directory under WEB-INF\classes which corresponds to its package. 

-= J

> -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 3:38 PM
> To: Struts Users Mailing List
> Subject: RE: Cannot retrieve definition for form bean null
> 
> 
> 
> I am not referencing my own bean. The only thing my JSP tries 
> to do is grab a value from a resource bundle and set the 
> title of the page to that value. This is my entire JSP: 
> 
> 
> 

> 
> 
> 
> 
> 
> 
> This is the config file:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> > type="org.apache.struts.actions.ForwardAction" 
> parameter="Welcome.jsp"/>
> > type="org.apache.struts.actions.ForwardAction" parameter="Logon.jsp"/>
> > type="com.client.action.LogonAction" name="logonForm" 
> scope="request" validate="true" input="Logon.jsp">
> 
> 
> 
> 
> 
> > type="org.apache.struts.actions.ForwardAction" 
> parameter="simplePage.jsp"/>
> 
> 
> 
> James Childers wrote: Nine times out 
> of ten when I get that message it is one of two things:
> 
> - I haven't referenced the bean properly in the tag. This is 
> especially true of anything which references a collection, 
> because that syntax is just off.
> 
> - I haven't put the bean in the proper scope. Less frequent, 
> but it happens.
> 
> BTW: Your struts-config and JSP source is coming across as 
> blanks on my mailreader. 
> 
> -= J
> 
> > -Original Message-
> > From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 12, 2003 3:19 PM
> > To: Struts Users Mailing List
> > Subject: Re: Cannot retrieve definition for form bean null
> > 
> > 
> > 
> > I'm sorry to bug everyone again with this, but I cannot 
> > figure out what this error message is telling me. If anyone 
> > has any insight, I'd appreciate it.
> > After looking through the Struts 1.1 source files, I've 
> > determined that this is the code that throws the exception. 
> > It is located in FormTag.lookup:
> > // Look up the form bean definition
> > FormBeanConfig formBeanConfig = 
> > moduleConfig.findFormBeanConfig(mapping.getName());
> > if (formBeanConfig == null) {
> > JspException e =
> > new 
> > JspException(messages.getMessage("formTag.formBean", 
> > mapping.getName()));
> > pageContext.setAttribute(Globals.EXCEPTION_KEY, 
> > e, PageContext.REQUEST_SCOPE);
> > throw e;
> > }
> > 
> > 
> > 
> > My original message is below with the struts-config.xml and 
> > JSP page itself.
> > 
> > Thanks for any help you can provide.
> > 
> > 
> > Art Vandalay wrote:
> > Hello everyone,
> > 
> > I am trying to write a very simple Struts application that 
> > simply displays a JSP using bean:message to retrieve values 
> > for my field labels and buttons from a ResourceBundle. Pretty 
> > straight forward, but I am getting the following error:
> > 
> > 
> > 
> > [exec] javax.servlet.jsp.JspException: Cannot retrieve 
> > definition for form
> > bean null
> > 
> > 
> > 
> > The message seems to imply that Struts is trying to access a 
> > bean whose name is "null" but I don't know what bean that 
> > would be as I have no beans referenced on my JSP. I am only 
> > trying to invoke the logic contained within the struts-bean.tld.
> > 
> > 
> > 
> > The logic flow is the user signs-into the application and is 
> > then forwarded to "simplePage.jsp". I used a ForwardAction to 
> > navigate from the logon page (after a successful login). But 
> > I never reach "simplePage.jsp" due to the above mentioned error.
> > 
> > 
> > 
> > Any help would be appreciated.
> > 
> > 
> > 
> > Here is what I have in my struts_config.xml:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Here is my JSP:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! Shopping - Send Flowers for Valentine's Day
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! Shopping - Send Flowers for Valentine's Day
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For add

RE: [newbie] Connection Pooling

2003-02-12 Thread Bueno Carlos M
It's possible but not a good idea, Struts or no Struts.

Never, never, keep a connection open (especially in *session* scope!) while
the user is picking her nose. Excuse me -- I mean "during user interaction".
Enough simultaneous nose-pickers will take up all your available
connections. Conversely, if the user waits too long the database may reclaim
the connection and her changes go bye-bye.

Also consider this: A session is long; say 5 minutes. The total time you use
that connection is probably less than 2 seconds. Why keep it around when it
can be used somewhere else? Return your connections to the pool as soon as
you're done with them.

-- los

-Original Message-
From: Marco Tedone [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 4:35 PM
To: Struts-user-list 
Subject: RE: [newbie] Connection Pooling


You could write a PlugIn(new to Struts 1.1) to open a db connection and
store it in the session context. I would remember to close it in the
destroy() method.

Only an idea.

Marco

-Original Message-
From: Andre Michel [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 8:53 PM
To: Struts Users Mailing List
Subject: [newbie] Connection Pooling


Folks,

quite new to Struts and it's way to JPS-Action-etc. chaining I'd like to
know the following. Is their a way to keep open a certain connection to a
database between two actions, e.g. I have a EditGetAction where I
prepopulate a form, then show the jsp and make the user work and finally
after validation write the (maybe) changed fields back into the database ???

Hope, this is not a absolutely stupid question ...


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



RE: [newbie] Connection Pooling

2003-02-12 Thread David Graham
You can configure a DataSource in the struts-config.xml file that will 
return connections to you.  You should not keep the connection open longer 
than needed and this means you shouldn't span action invocations.

David



Folks,

quite new to Struts and it's way to JPS-Action-etc. chaining I'd like to
know the following. Is their a way to keep open a certain connection to a
database between two actions, e.g. I have a EditGetAction where I
prepopulate a form, then show the jsp and make the user work and finally
after validation write the (maybe) changed fields back into the database 
???

Hope, this is not a absolutely stupid question ...


_
Protect your PC - get McAfee.com VirusScan Online  
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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



RE: Strange Validator Problem

2003-02-12 Thread René Eigenheer
did you find any solution? I've upgraded today some components (jdk, tomcat)
and I remarked, that my validations do not work anymore - no idea whether it
is the same problem as you have

rene

> -Original Message-
> From: Robert Morse [mailto:[EMAIL PROTECTED]]
> Sent: Dienstag, 11. Februar 2003 21:26
> To: Struts Users Mailing List
> Subject: Re: Strange Validator Problem
>
>
> It was 1.4.1_01, but I have switched to 1.4.0_03-b04 and the
> problem is
> still present.  I appreciate your help; do you have any other
> suggestion?  Thanks!
>
>
>
> On Tue, 2003-02-11 at 02:09, Iris wrote:
> > What is your version of java ?
> > I had the same problem with j2sdk1.4.1_01 but I work fine
> with j2sdk1.4.0.
> >
> > Iris
> >
> > Robert Morse wrote:
> >
> > >Hello,
> > >I have a very strange validator problem with 1.1-b3.
> > >
> > >I have a simple logon form (ValidatorForm) that accepts a
> userid and
> > >password.  In my validation.xml file I'm specifying that
> the fields are
> > >required.  The struts-config.xml file has the
> validate="true".  When I
> > >execute this, I get the logon.jsp page successfully
> displayed, but if I
> > >leave the fields blank and submit, no errors occur, but a
> blank white
> > >display shows up in the browser.
> > >
> > >Now the strange part, if I change validate="false", check for
> > >non-existent password or userid in the Action, and use
> errors.add() to
> > >add the appropriate errors; this time when I submit with the fields
> > >blank, I get the form re-displayed with errors.  The
> 'input' key remains
> > >the same between both versions.
> > >
> > >If I set up a log4.properties file with the level set to
> DEBUG, I can
> > >see that the resource keys for the error messages are
> being loaded, and
> > >I get a message saying that the validation failed -- so I know the
> > >validator is being called.  The last message I get tells
> me:  Validation
> > >failed, returning to '/logon/logon.jsp'.  But all I get
> after that is a
> > >blank white page, yet the '/logon/logon.jsp' is the
> correct path and
> > >works when validate='false'.
> > >
> > >Any ideas?
> > >
> > >Thanks!
> > >
> > >-robert.
> > >
> > >
> >
> >
> >
> >
> >
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> --
> "All motion is not progress, and all movement is not forward" (anon)
> Key ID:  F0533BB6
> Finger Print:  7F07 D9CD 266F 29D4 3616  164D F055 6E4C F053 3BB6
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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




RE: Cannot retrieve definition for form bean null

2003-02-12 Thread Joe Barefoot
Is your form bean class actually named: "com.client.form.simpleForm" ?

or is supposed to have a capital 'S': "com.client.form.SimpleForm" ?

Have you tried putting any logging statements into the simplePage.jsp (just sys-outs 
would work)?  You should put a few in so that you can see exactly where/when the 
exception is occuring...it may even be thrown before the JSP is actually executed.

peace,
Joe

> -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 1:38 PM
> To: Struts Users Mailing List
> Subject: RE: Cannot retrieve definition for form bean null
> 
> 
> 
> I am not referencing my own bean. The only thing my JSP tries 
> to do is grab a value from a resource bundle and set the 
> title of the page to that value. This is my entire JSP: 
> 
>  
>   
>  
>  
>   
>  
>  
> 
> 
>  
> This is the config file:
> 
>  
>   
>   
>  
>  
>   
>   
>   
>  
>  
>type="org.apache.struts.actions.ForwardAction" 
> parameter="Welcome.jsp"/>
>type="org.apache.struts.actions.ForwardAction" parameter="Logon.jsp"/>
>type="com.client.action.LogonAction" name="logonForm" 
> scope="request" validate="true" input="Logon.jsp">
>
>   
>   
>
>   
>type="org.apache.struts.actions.ForwardAction" 
> parameter="simplePage.jsp"/>
>  
> 
>  
>  James Childers <[EMAIL PROTECTED]> wrote: Nine times out 
> of ten when I get that message it is one of two things:
> 
> - I haven't referenced the bean properly in the tag. This is 
> especially true of anything which references a collection, 
> because that syntax is just off.
> 
> - I haven't put the bean in the proper scope. Less frequent, 
> but it happens.
> 
> BTW: Your struts-config and JSP source is coming across as 
> blanks on my mailreader. 
> 
> -= J
> 
> > -Original Message-
> > From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 12, 2003 3:19 PM
> > To: Struts Users Mailing List
> > Subject: Re: Cannot retrieve definition for form bean null
> > 
> > 
> > 
> > I'm sorry to bug everyone again with this, but I cannot 
> > figure out what this error message is telling me. If anyone 
> > has any insight, I'd appreciate it.
> > After looking through the Struts 1.1 source files, I've 
> > determined that this is the code that throws the exception. 
> > It is located in FormTag.lookup:
> > // Look up the form bean definition
> > FormBeanConfig formBeanConfig = 
> > moduleConfig.findFormBeanConfig(mapping.getName());
> > if (formBeanConfig == null) {
> > JspException e =
> > new 
> > JspException(messages.getMessage("formTag.formBean", 
> > mapping.getName()));
> > pageContext.setAttribute(Globals.EXCEPTION_KEY, 
> > e, PageContext.REQUEST_SCOPE);
> > throw e;
> > }
> > 
> > 
> > 
> > My original message is below with the struts-config.xml and 
> > JSP page itself.
> > 
> > Thanks for any help you can provide.
> > 
> > 
> > Art Vandalay wrote:
> > Hello everyone,
> > 
> > I am trying to write a very simple Struts application that 
> > simply displays a JSP using bean:message to retrieve values 
> > for my field labels and buttons from a ResourceBundle. Pretty 
> > straight forward, but I am getting the following error:
> > 
> > 
> > 
> > [exec] javax.servlet.jsp.JspException: Cannot retrieve 
> > definition for form
> > bean null
> > 
> > 
> > 
> > The message seems to imply that Struts is trying to access a 
> > bean whose name is "null" but I don't know what bean that 
> > would be as I have no beans referenced on my JSP. I am only 
> > trying to invoke the logic contained within the struts-bean.tld.
> > 
> > 
> > 
> > The logic flow is the user signs-into the application and is 
> > then forwarded to "simplePage.jsp". I used a ForwardAction to 
> > navigate from the logon page (after a successful login). But 
> > I never reach "simplePage.jsp" due to the above mentioned error.
> > 
> > 
> > 
> > Any help would be appreciated.
> > 
> > 
> > 
> > Here is what I have in my struts_config.xml:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Here is my JSP:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! Shopping - Send Flowers for Valentine's Day
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! Shopping - Send Flowers for Valentine's Day
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 


RE: Cannot retrieve definition for form bean null

2003-02-12 Thread James Childers
This sounds like it's an issue with your resources file. Make sure it's being 
referenced properly in web.xml and is in a directory under WEB-INF\classes which 
corresponds to its package. 

-= J

> -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 3:38 PM
> To: Struts Users Mailing List
> Subject: RE: Cannot retrieve definition for form bean null
> 
> 
> 
> I am not referencing my own bean. The only thing my JSP tries 
> to do is grab a value from a resource bundle and set the 
> title of the page to that value. This is my entire JSP: 
> 
>  
>   
>  
>  
>   
>  
>  
> 
> 
>  
> This is the config file:
> 
>  
>   
>   
>  
>  
>   
>   
>   
>  
>  
>type="org.apache.struts.actions.ForwardAction" 
> parameter="Welcome.jsp"/>
>type="org.apache.struts.actions.ForwardAction" parameter="Logon.jsp"/>
>type="com.client.action.LogonAction" name="logonForm" 
> scope="request" validate="true" input="Logon.jsp">
>
>   
>   
>
>   
>type="org.apache.struts.actions.ForwardAction" 
> parameter="simplePage.jsp"/>
>  
> 
>  
>  James Childers <[EMAIL PROTECTED]> wrote: Nine times out 
> of ten when I get that message it is one of two things:
> 
> - I haven't referenced the bean properly in the tag. This is 
> especially true of anything which references a collection, 
> because that syntax is just off.
> 
> - I haven't put the bean in the proper scope. Less frequent, 
> but it happens.
> 
> BTW: Your struts-config and JSP source is coming across as 
> blanks on my mailreader. 
> 
> -= J
> 
> > -Original Message-
> > From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 12, 2003 3:19 PM
> > To: Struts Users Mailing List
> > Subject: Re: Cannot retrieve definition for form bean null
> > 
> > 
> > 
> > I'm sorry to bug everyone again with this, but I cannot 
> > figure out what this error message is telling me. If anyone 
> > has any insight, I'd appreciate it.
> > After looking through the Struts 1.1 source files, I've 
> > determined that this is the code that throws the exception. 
> > It is located in FormTag.lookup:
> > // Look up the form bean definition
> > FormBeanConfig formBeanConfig = 
> > moduleConfig.findFormBeanConfig(mapping.getName());
> > if (formBeanConfig == null) {
> > JspException e =
> > new 
> > JspException(messages.getMessage("formTag.formBean", 
> > mapping.getName()));
> > pageContext.setAttribute(Globals.EXCEPTION_KEY, 
> > e, PageContext.REQUEST_SCOPE);
> > throw e;
> > }
> > 
> > 
> > 
> > My original message is below with the struts-config.xml and 
> > JSP page itself.
> > 
> > Thanks for any help you can provide.
> > 
> > 
> > Art Vandalay wrote:
> > Hello everyone,
> > 
> > I am trying to write a very simple Struts application that 
> > simply displays a JSP using bean:message to retrieve values 
> > for my field labels and buttons from a ResourceBundle. Pretty 
> > straight forward, but I am getting the following error:
> > 
> > 
> > 
> > [exec] javax.servlet.jsp.JspException: Cannot retrieve 
> > definition for form
> > bean null
> > 
> > 
> > 
> > The message seems to imply that Struts is trying to access a 
> > bean whose name is "null" but I don't know what bean that 
> > would be as I have no beans referenced on my JSP. I am only 
> > trying to invoke the logic contained within the struts-bean.tld.
> > 
> > 
> > 
> > The logic flow is the user signs-into the application and is 
> > then forwarded to "simplePage.jsp". I used a ForwardAction to 
> > navigate from the logon page (after a successful login). But 
> > I never reach "simplePage.jsp" due to the above mentioned error.
> > 
> > 
> > 
> > Any help would be appreciated.
> > 
> > 
> > 
> > Here is what I have in my struts_config.xml:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Here is my JSP:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! Shopping - Send Flowers for Valentine's Day
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! Shopping - Send Flowers for Valentine's Day
> > 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 

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




RE: Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

I am not referencing my own bean. The only thing my JSP tries to do is grab a value 
from a resource bundle and set the title of the page to that value. This is my entire 
JSP: 

 
  
 
 
  
 
 


 
This is the config file:

 
  
  
 
 
  
  
  
 
 
  
  
  
   
  
  
   
  
  
 

 
 James Childers <[EMAIL PROTECTED]> wrote: Nine times out of ten when I get that 
message it is one of two things:

- I haven't referenced the bean properly in the tag. This is especially true of 
anything which references a collection, because that syntax is just off.

- I haven't put the bean in the proper scope. Less frequent, but it happens.

BTW: Your struts-config and JSP source is coming across as blanks on my mailreader. 

-= J

> -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 3:19 PM
> To: Struts Users Mailing List
> Subject: Re: Cannot retrieve definition for form bean null
> 
> 
> 
> I'm sorry to bug everyone again with this, but I cannot 
> figure out what this error message is telling me. If anyone 
> has any insight, I'd appreciate it.
> After looking through the Struts 1.1 source files, I've 
> determined that this is the code that throws the exception. 
> It is located in FormTag.lookup:
> // Look up the form bean definition
> FormBeanConfig formBeanConfig = 
> moduleConfig.findFormBeanConfig(mapping.getName());
> if (formBeanConfig == null) {
> JspException e =
> new 
> JspException(messages.getMessage("formTag.formBean", 
> mapping.getName()));
> pageContext.setAttribute(Globals.EXCEPTION_KEY, 
> e, PageContext.REQUEST_SCOPE);
> throw e;
> }
> 
> 
> 
> My original message is below with the struts-config.xml and 
> JSP page itself.
> 
> Thanks for any help you can provide.
> 
> 
> Art Vandalay wrote:
> Hello everyone,
> 
> I am trying to write a very simple Struts application that 
> simply displays a JSP using bean:message to retrieve values 
> for my field labels and buttons from a ResourceBundle. Pretty 
> straight forward, but I am getting the following error:
> 
> 
> 
> [exec] javax.servlet.jsp.JspException: Cannot retrieve 
> definition for form
> bean null
> 
> 
> 
> The message seems to imply that Struts is trying to access a 
> bean whose name is "null" but I don't know what bean that 
> would be as I have no beans referenced on my JSP. I am only 
> trying to invoke the logic contained within the struts-bean.tld.
> 
> 
> 
> The logic flow is the user signs-into the application and is 
> then forwarded to "simplePage.jsp". I used a ForwardAction to 
> navigate from the logon page (after a successful login). But 
> I never reach "simplePage.jsp" due to the above mentioned error.
> 
> 
> 
> Any help would be appreciated.
> 
> 
> 
> Here is what I have in my struts_config.xml:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Here is my JSP:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: [newbie] Connection Pooling

2003-02-12 Thread Marco Tedone
You could write a PlugIn(new to Struts 1.1) to open a db connection and
store it in the session context. I would remember to close it in the
destroy() method.

Only an idea.

Marco

-Original Message-
From: Andre Michel [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 8:53 PM
To: Struts Users Mailing List
Subject: [newbie] Connection Pooling


Folks,

quite new to Struts and it's way to JPS-Action-etc. chaining I'd like to
know the following. Is their a way to keep open a certain connection to a
database between two actions, e.g. I have a EditGetAction where I
prepopulate a form, then show the jsp and make the user work and finally
after validation write the (maybe) changed fields back into the database ???

Hope, this is not a absolutely stupid question ...


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




RE: Cannot retrieve definition for form bean null

2003-02-12 Thread James Childers
Nine times out of ten when I get that message it is one of two things:

 - I haven't referenced the bean properly in the tag. This is especially true of 
anything which references a collection, because that syntax is just off.

 - I haven't put the bean in the proper scope. Less frequent, but it happens.

BTW: Your struts-config and JSP source is coming across as blanks on my mailreader. 

-= J

> -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 3:19 PM
> To: Struts Users Mailing List
> Subject: Re: Cannot retrieve definition for form bean null
> 
> 
> 
> I'm sorry to bug everyone again with this, but I cannot 
> figure out what this error message is telling me. If anyone 
> has any insight, I'd appreciate it.
> After looking through the Struts 1.1 source files, I've 
> determined that this is the code that throws the exception. 
> It is located in FormTag.lookup:
> // Look up the form bean definition
> FormBeanConfig formBeanConfig = 
> moduleConfig.findFormBeanConfig(mapping.getName());
> if (formBeanConfig == null) {
> JspException e =
> new 
> JspException(messages.getMessage("formTag.formBean", 
> mapping.getName()));
> pageContext.setAttribute(Globals.EXCEPTION_KEY, 
> e, PageContext.REQUEST_SCOPE);
> throw e;
> }
> 
>  
> 
> My original message is below with the struts-config.xml and 
> JSP page itself.
> 
> Thanks for any help you can provide.
> 
> 
>  Art Vandalay <[EMAIL PROTECTED]> wrote:
> Hello everyone,
> 
> I am trying to write a very simple Struts application that 
> simply displays a JSP using bean:message to retrieve values 
> for my field labels and buttons from a ResourceBundle. Pretty 
> straight forward, but I am getting the following error:
> 
> 
> 
> [exec] javax.servlet.jsp.JspException: Cannot retrieve 
> definition for form
> bean null
> 
> 
> 
> The message seems to imply that Struts is trying to access a 
> bean whose name is "null" but I don't know what bean that 
> would be as I have no beans referenced on my JSP. I am only 
> trying to invoke the logic contained within the struts-bean.tld.
> 
> 
> 
> The logic flow is the user signs-into the application and is 
> then forwarded to "simplePage.jsp". I used a ForwardAction to 
> navigate from the logon page (after a successful login). But 
> I never reach "simplePage.jsp" due to the above mentioned error.
> 
> 
> 
> Any help would be appreciated.
> 
> 
> 
> Here is what I have in my struts_config.xml:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Here is my JSP:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 

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




RE: Form validation across multiple pages

2003-02-12 Thread Marco Tedone
What about to create a collection of errors with the page references and
display a unique error page with the list of the errors and the page where
they occurred?

Just an idea.

Marco

-Original Message-
From: Larry Zappeterrini [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 7:39 PM
To: Struts Users Mailing List
Subject: Form validation across multiple pages


This question may be more appropriate for the developer's mailing list, but
I 
thought that I would post it here to see what kind of sentiment there is in 
Struts' user land. I have been attempting to implement a form that spans 
multiple pages that utilizes Struts' validator plug-in. I create an action
in 
the configuration file and associate a subclass of DispatchAction with the 
intention of mapping each step in the form to a method in the object. Next,
I 
create forward elements within the action to correspond to a page in the
form. 
This works fine for stepping through the form without errors from start to 
finish. The problem arises when an error is caught by the validator. The way

that validator errors are handled in the RequestProcessor(s) included with 
Struts is to forward control to whatever resource is specified in the
action's 
input attribute. This may not necessarily be the page on which the error 
occurred, so the flow of the application is disrupted. The only way around 
this is to make each step of the process into its own action so that each
step 
has its own input. This is sub optimal in my opinion.

I am curious to know if there has been any discussion about addressing this 
situation. A cursory search of the mail archives for the user and developer 
lists has turned up nothing. To implement mutliple page form validation in
the 
way that I am envisioning would probably require changes in some core parts 
of Struts, so I wonder if anyone else would find this desirable. Or maybe I
am 
missing some part of the bigger picture that precludes my suggestion. Any 
thoughts?

Thanks,
Larry


*** 
This electronic mail transmission contains confidential and/or privileged 
information intended only for the person(s) named.  Any use, distribution, 
copying or disclosure by another person is strictly prohibited. 
*** 



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




Re: Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

I'm sorry to bug everyone again with this, but I cannot figure out what this error 
message is telling me. If anyone has any insight, I'd appreciate it.
After looking through the Struts 1.1 source files, I've determined that this is the 
code that throws the exception. It is located in FormTag.lookup:
// Look up the form bean definition
FormBeanConfig formBeanConfig = 
moduleConfig.findFormBeanConfig(mapping.getName());
if (formBeanConfig == null) {
JspException e =
new JspException(messages.getMessage("formTag.formBean", 
mapping.getName()));
pageContext.setAttribute(Globals.EXCEPTION_KEY, e, 
PageContext.REQUEST_SCOPE);
throw e;
}

 

My original message is below with the struts-config.xml and JSP page itself.

Thanks for any help you can provide.


 Art Vandalay <[EMAIL PROTECTED]> wrote:
Hello everyone,

I am trying to write a very simple Struts application that simply displays a JSP using 
bean:message to retrieve values for my field labels and buttons from a ResourceBundle. 
Pretty straight forward, but I am getting the following error:



[exec] javax.servlet.jsp.JspException: Cannot retrieve definition for form
bean null



The message seems to imply that Struts is trying to access a bean whose name is "null" 
but I don't know what bean that would be as I have no beans referenced on my JSP. I am 
only trying to invoke the logic contained within the struts-bean.tld.



The logic flow is the user signs-into the application and is then forwarded to 
"simplePage.jsp". I used a ForwardAction to navigate from the logon page (after a 
successful login). But I never reach "simplePage.jsp" due to the above mentioned error.



Any help would be appreciated.



Here is what I have in my struts_config.xml:

















































Here is my JSP:
































-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


Re: html:text property magic?

2003-02-12 Thread James Mitchell
- Original Message -
From: "Robert S. Sfeir" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 3:54 PM
Subject: Re: html:text property magic?


> Oh no, I understand the case sensitivity problem ( geez, do I seem like
> that much of a newbie? :-)  )

LOL...sorry about that.  That was like Level 1 tech support...("Sir, is the
computer actually plugged into the wall?")


> I was just wondering where it figured out to pick up the proper bean,
> and you answered it with
>
> > 
> and since I have:
>
> 
>
> I don't see how it pertains to this, unless the action Login, which is
> defined like this:
>
>  name="loginForm" scope="request" validate="true" input="loginPage">
> 
> 
> 
>  type="net.sfeir.security.forms.SecurityForm"/>
>
> cascades all the way down the path to see that the name in the action
> definition is loginForm and that points to form-bean of type
> SecurityForm?

Bingo!


> If this is the case, I am getting more and more impressed with Struts!
> Geez this thing is almost reading my mind... accidentally or not.

Yes, we secretly compile the binary distributions against JAMR.jar
(Jakarta's API for Mind Reading ;)


> Also if this is the case, is there an advantage to 'naming' the form
> like this:
>
> 
>
> I can see one advantage that it might override the default specified in
> the struts-config (just guessing here).
>
> R
>
> --
> Robert S. Sfeir
> Senior Java Engineer
> National Institutes of Health
> Center for Information Technology
> Department of Enterprise Custom Applications
> [EMAIL PROTECTED]
>
>


--
James Mitchell



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




RE: Searching the Archives?

2003-02-12 Thread Joe Barefoot
thanks so much for the link Sri, this makes my day :)

> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 12:19 PM
> To: Struts Users Mailing List
> Subject: RE: Searching the Archives?
> 
> 
> ...and more importantly, it get *relevant* information -- 
> what a concept!
> 
> Sri
> 
> -Original Message-
> From: Kandi Potter [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, February 12, 2003 3:16 PM
> To: Struts Users Mailing List
> Subject: RE: Searching the Archives?
> 
> 
> thanks,  you are right; it is much faster.
> 
> 
> -Original Message-
> From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 3:09 PM
> To: Struts Users Mailing List
> Subject: RE: Searching the Archives?
> 
> 
> Marc does the best job IMO.
> 
> Try it out at http://marc.theaimsgroup.com/?l=struts-user.
> 
> Sri
> 
> -Original Message-
> From: Kandi Potter [mailto:[EMAIL PROTECTED]] 
> Sent: Wednesday, February 12, 2003 2:48 PM
> To: Struts Users Mailing List
> Subject: RE: Searching the Archives?
> 
> 
> anyone have a better way to search the archives??   I 
> find it incredibly slow as well
> 
> -Original Message-
> From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 2:27 PM
> To: Struts Users Mailing List
> Subject: RE: Searching the Archives?
> 
> 
> This would be cool except for the fact that mail-archive 
> employs the most horrible search algorithm I've ever seen.  
> My search results are always bloated.
> 
> From their own FAQ:
> 
> "
> Searches span all archived messages in a particular mailing 
> list. All words entered in the search box are required for a 
> match. Boolean logic and phrase matching are not supported. "
> 
> ...and that's not even true, because I frequently get back 
> results that only have one of the search terms I entered.  
> The archives have become effectively useless to me in the 
> past month or so.
> 
> 
> --joe
> 
> 
> 
> > -Original Message-
> > From: Kandi Potter [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 12, 2003 7:58 AM
> > To: Struts Users Mailing List
> > Subject: RE: Searching the Archives?
> > 
> > 
> > http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> > 
> > -Original Message-
> > From: Jason Vinson [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 12, 2003 10:52 AM
> > To: Struts Users Mailing List
> > Subject: Searching the Archives?
> > 
> > 
> > I feel dumb for asking this, but I am trying to search the list 
> > archives via:
> > 
> > http://nagoya.apache.org/eyebrowse/SearchList?listId=&listName
> [EMAIL PROTECTED]&searchText=bean+attributes&def
> aultField=subject&Search=Search
> 
> and when i do a search, it returns "Text search not available 
> for this list".  Where should i look for proper archive searching?
> 
> Thanks,
> Jason
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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




RE: [OT] RE: a product or code to read email and update database

2003-02-12 Thread Ashish Kulkarni
Hi,
The solution i have to build is not only email, it is
actually lot more, like there is a web based
interface, a AS400 interface (green screen ) 
also now we need a email interface, 
the mail will be sent to a speicific account, so all
the mails coming here are only for testing purpose,
also all the mails will come from outlook , so only
have to worry about microsoft mails,
But i read few days back a product on IBM DB@
Information Integrator, so wanted to know if there are
any such products which will do the same thing..

Ashish
--- "Rao, Nagraj" <[EMAIL PROTECTED]> wrote:
> I have worked on something like that before..
> We had 
> 1)Poller which periodically checked the POP server
> (to get mail)
> (it did not delete the mail from the server)
> 2)Checked for the email "subject" ,if it matched the
> one we were looking
> for, then opened it.
> 3)Did some processing (using String parsers ..gets a
> specific text) and sent
> a mail back to the sendor...
> 
> But that was 4 years ago ! , I am sure as Jacob said
> you are better off
> doing something web-based since there are many
> points of failure in the
> above 
> 
> Cheers,
> Naggi
> 
> 
> 
> 
> 
> 
> 
> -Original Message-
> From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 3:51 PM
> To: 'Struts Users Mailing List'
> Subject: RE: [OT] RE: a product or code to read
> email and update
> database
> 
> 
> You are probably better off doing something web
> based so stuff gets uploaded
> to a server and the boss logs in to approve.  It
> would save A LOT of
> platform problems with different email clients
> putting junk in the mail
> message and then making the message unparsable.
> 
> -Jacob
> 
> | -Original Message-
> | From: Ashish Kulkarni
> [mailto:[EMAIL PROTECTED]]
> | Sent: Wednesday, February 12, 2003 2:06 PM
> | To: Struts Users Mailing List
> | Subject: Re: [OT] RE: a product or code to read
> email and update database
> | 
> | What u have to do is a automatic approval process,
> | 
> | A user will be sending a mail to his boss for some
> | approval, and then the boss will reply with a
> message
> | , which will be approved or not aproved,
> | I want to update the database depending on the
> reply i
> | get from the mail from boss
> | 
> | Ashish
> | --- Jarnot Voytek Contr AU HQ/SC
> | <[EMAIL PROTECTED]> wrote:
> | > Please prefix off topic topics with [OT].
> | >
> | > Are you looking to have your users receive email
> | > attachments, and then
> | > upload them to the app server?  Or are you
> talking
> | > about your server-side
> | > java code polling a mail server periodically and
> | > retrieving messages?
> | >
> | > --
> | > Voytek Jarnot
> | > Quidquid latine dictum sit, altum viditur.
> | >
> | >
> | > > -Original Message-
> | > > From: Ashish Kulkarni
> | > [mailto:[EMAIL PROTECTED]]
> | > > Sent: Wednesday, February 12, 2003 1:24 PM
> | > > To: [EMAIL PROTECTED]
> | > > Subject: a product or code to read email and
> | > update database
> | > >
> | > >
> | > > Hi,
> | > >
> | > > In my project i have a requirement to read the
> | > data
> | > > coming in from email ( outlook ) and update
> the
> | > > database in real time
> | > > Has any one worked with this kind of
> requirement,
> | > > Any help about different products or code
> willl be
> | > > helpful, the data coming in email may be xml
> or
> | > pdf,
> | > > or plain text which is not  yet decided
> | > >
> | > > Ashish
> | > >
> | > > =
> | > > A$HI$H
> | > >
> | > >
> __
> | > > Do you Yahoo!?
> | > > Yahoo! Shopping - Send Flowers for Valentine's
> Day
> | > > http://shopping.yahoo.com
> | > >
> | > >
> | >
> |
>
-
> | > > To unsubscribe, e-mail:
> | > [EMAIL PROTECTED]
> | > > For additional commands, e-mail:
> | > [EMAIL PROTECTED]
> | > >
> | >
> | >
> |
>
-
> | > To unsubscribe, e-mail:
> | > [EMAIL PROTECTED]
> | > For additional commands, e-mail:
> | > [EMAIL PROTECTED]
> | >
> | 
> | 
> | =
> | A$HI$H
> | 
> | __
> | Do you Yahoo!?
> | Yahoo! Shopping - Send Flowers for Valentine's Day
> | http://shopping.yahoo.com
> | 
> |
>
-
> | To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> | For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentin

RE: [newbie] Connection Pooling

2003-02-12 Thread Siggelkow, Bill
Andre ... this is not connection pooling -- but rather keeping a connection open.
Yes it can be done ... however, HTTP is not a reliable connection and there is a good 
chance that your connection will get left open.

However, it is time consuming to always have to open/close connections -- hence, the 
answer is connection pooling.  If you are using a J2EE container that supports 
connection pooling (most do) you can use the connectors mechanisms for defining the 
connection pool.  If not, you can use the Struts data-source elements which use the 
Commons DBCP package.

-Original Message-
From: Andre Michel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 3:53 PM
To: Struts Users Mailing List
Subject: [newbie] Connection Pooling


Folks,

quite new to Struts and it's way to JPS-Action-etc. chaining I'd like to
know the following. Is their a way to keep open a certain connection to
a database between two actions, e.g. I have a EditGetAction where I
prepopulate a form, then show the jsp and make the user work and finally
after validation write the (maybe) changed fields back into the database
???

Hope, this is not a absolutely stupid question ...


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

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




RE: [OT] Tell VM to use a different java.security file other than the one in default location

2003-02-12 Thread Jerome Jacobsen
java -Djava.security.manager -Djava.security.policy=%APP_HOME%\java.security


> -Original Message-
> From: Robert Taylor [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 8:05 AM
> To: [EMAIL PROTECTED]
> Subject: [OT] Tell VM to use a different java.security file other than
> the one in default location
>
>
> Apologies in advance for the OT post.
>
> I have some background processes that run as NT services. Each
> process will run in its own VM. I would like each process to
> use its own java.security file. I know there must be a way
> to tell the VM to use a different java.security file other than
> the default (for each process). I have search for this on the web but seem
> to only
> find information on how to set up different java.security.policy files.
> I'm not interested in the policy files though. I have looked through
> the various Java security tutorials, JSSE and JAAS APIs and must
> be missing
> something simple. I'm thinking there must be a way to pass that
> information to the VM in my startup script like (just guessing)
>
> java -Djava.security=%APP_HOME%\java.security
>
> Any ideas? Once again, sorry for the OT post, but I have searched
> the web for a couple days, posted to the Java Programming forum
> on Sun's site and asked other collegues but the answer eludes me.
>
> robert
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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




RE: [OT] RE: a product or code to read email and update database

2003-02-12 Thread Rao, Nagraj
I have worked on something like that before..
We had 
1)Poller which periodically checked the POP server (to get mail)
(it did not delete the mail from the server)
2)Checked for the email "subject" ,if it matched the one we were looking
for, then opened it.
3)Did some processing (using String parsers ..gets a specific text) and sent
a mail back to the sendor...

But that was 4 years ago ! , I am sure as Jacob said you are better off
doing something web-based since there are many points of failure in the
above 

Cheers,
Naggi







-Original Message-
From: Jacob Hookom [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 3:51 PM
To: 'Struts Users Mailing List'
Subject: RE: [OT] RE: a product or code to read email and update
database


You are probably better off doing something web based so stuff gets uploaded
to a server and the boss logs in to approve.  It would save A LOT of
platform problems with different email clients putting junk in the mail
message and then making the message unparsable.

-Jacob

| -Original Message-
| From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, February 12, 2003 2:06 PM
| To: Struts Users Mailing List
| Subject: Re: [OT] RE: a product or code to read email and update database
| 
| What u have to do is a automatic approval process,
| 
| A user will be sending a mail to his boss for some
| approval, and then the boss will reply with a message
| , which will be approved or not aproved,
| I want to update the database depending on the reply i
| get from the mail from boss
| 
| Ashish
| --- Jarnot Voytek Contr AU HQ/SC
| <[EMAIL PROTECTED]> wrote:
| > Please prefix off topic topics with [OT].
| >
| > Are you looking to have your users receive email
| > attachments, and then
| > upload them to the app server?  Or are you talking
| > about your server-side
| > java code polling a mail server periodically and
| > retrieving messages?
| >
| > --
| > Voytek Jarnot
| > Quidquid latine dictum sit, altum viditur.
| >
| >
| > > -Original Message-
| > > From: Ashish Kulkarni
| > [mailto:[EMAIL PROTECTED]]
| > > Sent: Wednesday, February 12, 2003 1:24 PM
| > > To: [EMAIL PROTECTED]
| > > Subject: a product or code to read email and
| > update database
| > >
| > >
| > > Hi,
| > >
| > > In my project i have a requirement to read the
| > data
| > > coming in from email ( outlook ) and update the
| > > database in real time
| > > Has any one worked with this kind of requirement,
| > > Any help about different products or code willl be
| > > helpful, the data coming in email may be xml or
| > pdf,
| > > or plain text which is not  yet decided
| > >
| > > Ashish
| > >
| > > =
| > > A$HI$H
| > >
| > > __
| > > Do you Yahoo!?
| > > Yahoo! Shopping - Send Flowers for Valentine's Day
| > > http://shopping.yahoo.com
| > >
| > >
| >
| -
| > > To unsubscribe, e-mail:
| > [EMAIL PROTECTED]
| > > For additional commands, e-mail:
| > [EMAIL PROTECTED]
| > >
| >
| >
| -
| > To unsubscribe, e-mail:
| > [EMAIL PROTECTED]
| > For additional commands, e-mail:
| > [EMAIL PROTECTED]
| >
| 
| 
| =
| A$HI$H
| 
| __
| Do you Yahoo!?
| Yahoo! Shopping - Send Flowers for Valentine's Day
| http://shopping.yahoo.com
| 
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]


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

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




RE: [OT] Resin 2.1.6 doesn't like resource-env-ref

2003-02-12 Thread Sri Sankaran
Thanks to all who responded.  I am able to get by without the resource-env-ref.

Sri

-Original Message-
From: Marcelo Aita Riss [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 8:42 AM
To: Struts Users Mailing List
Subject: RES: [OT] Resin 2.1.6 doesn't like resource-env-ref


Daniel,

I already had looked at www.caucho.com and had observed that resin uses Servlet 2.2 
deployment descriptors, but I thought that could have some way to configure resin to 
use Servlet 2.3. It seems that I was wrong. So, I fixed the problem using 
'resource-ref' tag.

Thanks for help.

Best regards,

Marcelo

-Mensagem original-
De: Daniel H. F. e Silva [mailto:[EMAIL PROTECTED]]
Enviada em: quarta-feira, 12 de fevereiro de 2003 08:11
Para: Struts Users Mailing List
Assunto: Re: RES: [OT] Resin 2.1.6 doesn't like resource-env-ref


Hi all,
  Take a look at this : http://www.caucho.com/resin/ref/app-config.xtp
  First paragraph says that "Resin HTTP configuration follows the Servlet 2.2 
deployment descriptors".

Best regards,
 Daniel.

--- Marcelo Aita Riss <[EMAIL PROTECTED]> wrote:
> Hi Sri,
>
> I'm having the same trouble here. Seems to me that it's a resin 
> problem. I have tried to search some help to fix this problem at 
> www.caucho.com, but have found nothing until now. You are right about 
> web-app_2_3.dtd, but I have a web-app_2_2.dtd copy that do not have 
> any reference to a 'resource-env-ref'. I think that resin 2.1.6 use 
> 2_2 to validate web.xml. The servlet 2.3 specification file (a pdf 
> file) shows both versions (2.2
and
> 2.3). If you look at version 2.2 there is no reference to
'resource-env-ref'
> too. I have no solution to fix this yet. If you find a solution, let 
> me to know.
>
> I hope it helps,
>
> Marcelo
>
>
>
> -Mensagem original-
> De: Sri Sankaran [mailto:[EMAIL PROTECTED]]
> Enviada em: terca-feira, 11 de fevereiro de 2003 17:42
> Para: Struts-User
> Assunto: [OT] Resin 2.1.6 doesn't like resource-env-ref
>
>
> I am having trouble deploying to Resin 2.1.6.  When I try to access 
> the application URL, I get the response:
>
> 500 Servlet Exception
> C:\resin-2.1.6\webapps\qs\WEB-INF\web.xml:102: unknown element unknown 
> element `resource-env-ref' in web-app
>
> I checked the web-app_2_3.dtd and resource-env-ref *is* allowed.
>
> Any thoughts on resolving this matter?
>
> Sri
> P.S.
> Resin 2.1.6 is a servlet 2.3 and JSP 1.2 engine
> P.P.S
> Tomcat 4.1.18 doesn't have any such heartache with my web.xml
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com

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




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


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




Re: html:text property magic?

2003-02-12 Thread Robert S. Sfeir
Oh no, I understand the case sensitivity problem ( geez, do I seem like 
that much of a newbie? :-)  )

I was just wondering where it figured out to pick up the proper bean, 
and you answered it with



and since I have:



I don't see how it pertains to this, unless the action Login, which is 
defined like this:


	
	



cascades all the way down the path to see that the name in the action 
definition is loginForm and that points to form-bean of type 
SecurityForm?

If this is the case, I am getting more and more impressed with Struts!  
Geez this thing is almost reading my mind... accidentally or not.

Also if this is the case, is there an advantage to 'naming' the form 
like this:



I can see one advantage that it might override the default specified in 
the struts-config (just guessing here).

R

--
Robert S. Sfeir
Senior Java Engineer
National Institutes of Health
Center for Information Technology
Department of Enterprise Custom Applications
[EMAIL PROTECTED]


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



[newbie] Connection Pooling

2003-02-12 Thread Andre Michel
Folks,

quite new to Struts and it's way to JPS-Action-etc. chaining I'd like to
know the following. Is their a way to keep open a certain connection to
a database between two actions, e.g. I have a EditGetAction where I
prepopulate a form, then show the jsp and make the user work and finally
after validation write the (maybe) changed fields back into the database
???

Hope, this is not a absolutely stupid question ...


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




RE: [OT] RE: a product or code to read email and update database

2003-02-12 Thread Jacob Hookom
You are probably better off doing something web based so stuff gets uploaded
to a server and the boss logs in to approve.  It would save A LOT of
platform problems with different email clients putting junk in the mail
message and then making the message unparsable.

-Jacob

| -Original Message-
| From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, February 12, 2003 2:06 PM
| To: Struts Users Mailing List
| Subject: Re: [OT] RE: a product or code to read email and update database
| 
| What u have to do is a automatic approval process,
| 
| A user will be sending a mail to his boss for some
| approval, and then the boss will reply with a message
| , which will be approved or not aproved,
| I want to update the database depending on the reply i
| get from the mail from boss
| 
| Ashish
| --- Jarnot Voytek Contr AU HQ/SC
| <[EMAIL PROTECTED]> wrote:
| > Please prefix off topic topics with [OT].
| >
| > Are you looking to have your users receive email
| > attachments, and then
| > upload them to the app server?  Or are you talking
| > about your server-side
| > java code polling a mail server periodically and
| > retrieving messages?
| >
| > --
| > Voytek Jarnot
| > Quidquid latine dictum sit, altum viditur.
| >
| >
| > > -Original Message-
| > > From: Ashish Kulkarni
| > [mailto:[EMAIL PROTECTED]]
| > > Sent: Wednesday, February 12, 2003 1:24 PM
| > > To: [EMAIL PROTECTED]
| > > Subject: a product or code to read email and
| > update database
| > >
| > >
| > > Hi,
| > >
| > > In my project i have a requirement to read the
| > data
| > > coming in from email ( outlook ) and update the
| > > database in real time
| > > Has any one worked with this kind of requirement,
| > > Any help about different products or code willl be
| > > helpful, the data coming in email may be xml or
| > pdf,
| > > or plain text which is not  yet decided
| > >
| > > Ashish
| > >
| > > =
| > > A$HI$H
| > >
| > > __
| > > Do you Yahoo!?
| > > Yahoo! Shopping - Send Flowers for Valentine's Day
| > > http://shopping.yahoo.com
| > >
| > >
| >
| -
| > > To unsubscribe, e-mail:
| > [EMAIL PROTECTED]
| > > For additional commands, e-mail:
| > [EMAIL PROTECTED]
| > >
| >
| >
| -
| > To unsubscribe, e-mail:
| > [EMAIL PROTECTED]
| > For additional commands, e-mail:
| > [EMAIL PROTECTED]
| >
| 
| 
| =
| A$HI$H
| 
| __
| Do you Yahoo!?
| Yahoo! Shopping - Send Flowers for Valentine's Day
| http://shopping.yahoo.com
| 
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]


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




Re: jsp, multiple forms and beans

2003-02-12 Thread Jacky Kimmel
Here I go:

I have a jsp that contains 4 forms.  One for main info, another for 
merchandise info, and two for ship address address and bill address.  
Currently upon submit, I have an addressAction that gets passed the 
addressForms info.  I stuff those parameters into AddressValue objects and put 
them into the httpRequestServletAttribute.  I do the same with 
lineItems (which I need to change in the future because I need to have the 
ability to have muliple lineItems).  Then the createPoAction gets the 
address and lineItem value objects from the requestAttributes and then call 
createPO().  How do I write the jsp appropriatly?  Do I need to use 
form nesting?  On the flip side, when I retrieve from the db, can I use 
this same grouping of forms or should I create a new form to diplay all 
of the data?  Anyone have a suggestion on how to allow for a "add line 
Item" button that will just give another row of blank fields to the 
existing form?

I know this a lot but am in the trenches solo!!!




-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: [OT] Tell VM to use a different java.security file other than the one in default location

2003-02-12 Thread Bueno Carlos M
And while we're at it, how about an applet that can elevate its privileges
through the ClassLoader? Wouldn't that be fun? There is no way to specify
the security file afaik. But here are some ways I've accomplished the same
effect:

a) [Brute Force] install multiple JREs. Then find a hammer and hit yourself
in the head with it.

b) [Less Brutish Force] fake mulitple JREs -- you are on Windoze so this may
not help you, but it's possible to make a *ghost* JRE out of symlinks.
Basically you mirror all the files in your java directory as symlinks,
except for the java.security file and whatever else. It sounds like a lot of
work but that's what perl is for.

c) [Crackpot Scheme] The java.security file is read once on JVM startup and
not locked. As long as your different jobs don't start concurrently, what's
stopping you from switching the file as needed?

Good Luck,
  los

-Original Message-
From: Robert Taylor [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 8:05 AM
To: [EMAIL PROTECTED]
Subject: [OT] Tell VM to use a different java.security file other than
the one in default location


Apologies in advance for the OT post.

I have some background processes that run as NT services. Each
process will run in its own VM. I would like each process to
use its own java.security file. I know there must be a way
to tell the VM to use a different java.security file other than
the default (for each process). I have search for this on the web but seem
to only
find information on how to set up different java.security.policy files.
I'm not interested in the policy files though. I have looked through
the various Java security tutorials, JSSE and JAAS APIs and must be missing
something simple. I'm thinking there must be a way to pass that
information to the VM in my startup script like (just guessing)

java -Djava.security=%APP_HOME%\java.security

Any ideas? Once again, sorry for the OT post, but I have searched
the web for a couple days, posted to the Java Programming forum
on Sun's site and asked other collegues but the answer eludes me.

robert



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



RE: Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

Yes, I do. The entire JSP was included in my message and appears at the bottom of this 
one as well. As you can see, it is quite simple. All I want is to retrieve a value 
from the resource bundle and set it as the page's title.
 Kandi Potter <[EMAIL PROTECTED]> wrote:I'm not sure if this is your problem, 
but do you have the tld directive in your jsp?



-Original Message-
From: Art Vandalay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 1:43 PM
To: Struts Mailing List
Subject: Cannot retrieve definition for form bean null



Hello everyone,

I am trying to write a very simple Struts application that simply displays a JSP using 
bean:message to retrieve values for my field labels and buttons from a ResourceBundle. 
Pretty straight forward, but I am getting the following error:



[exec] javax.servlet.jsp.JspException: Cannot retrieve definition for form
bean null



The message seems to imply that Struts is trying to access a bean whose name is "null" 
but I don't know what bean that would be as I have no beans referenced on my JSP. I am 
only trying to invoke the logic contained within the struts-bean.tld.



The logic flow is the user signs-into the application and is then forwarded to 
"simplePage.jsp". I used a ForwardAction to navigate from the logon page (after a 
successful login). But I never reach "simplePage.jsp" due to the above mentioned error.



Any help would be appreciated.



Here is what I have in my struts_config.xml:

















































Here is my JSP:
































-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


Re: [OT] RE: a product or code to read email and update database

2003-02-12 Thread Michael Hanisch
On Wed, 2003-02-12 at 21:06, Ashish Kulkarni wrote:
> What u have to do is a automatic approval process,
> 
> A user will be sending a mail to his boss for some
> approval, and then the boss will reply with a message
> , which will be approved or not aproved,
> I want to update the database depending on the reply i
> get from the mail from boss

If you don't insist on an "email-only" solution, probably the easiest
way to deal with the "automatic approval process" would be to send an
email to the "boss" which contains just two URLs of your application -
one to approve, and one which can be used to reject (whatever).
You could generate one-off tokens (JCE is your friend) to make sure that
the "boss" can approve/reject the same message only once, and that
no-one else can do so. Easy enough to implement, and very easy for the
boss, since one click is sufficient (no need to write an email).

If you want to receive/process the answer in the form of an email, you
should check the JavaMail API, which makes this sort of thing reasonably
easy. 

In any case you have to check for a number of potential problems, like 
- authorization (use secret tokens in the original email, which have to
be present in the reply)
- tracking which reply corresponds to which "request for approval"
- handling errors (first email bounces, reply email cannot be parsed 
  etc.) You will encounter more problems using the "email-only" solution
  since messages might be garbled, mail clients might do interesting 
  things to the replies etc.

Hope this gives you some ideas...

Michael.

-- 
Michael Hanisch  [EMAIL PROTECTED]
Red Hat - RH Interchange Inc., Orleansstrasse 4,  D-81669 Munich/Germany
phone: +49 (0)89 206058-53  fax: +49 (0)89 206058-88



signature.asc
Description: This is a digitally signed message part


RE: Searching the Archives?

2003-02-12 Thread Sri Sankaran
...and more importantly, it get *relevant* information -- what a concept!

Sri

-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 3:16 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?


thanks,  you are right; it is much faster.


-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 3:09 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?


Marc does the best job IMO.

Try it out at http://marc.theaimsgroup.com/?l=struts-user.

Sri

-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 2:48 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?


anyone have a better way to search the archives??   I find it incredibly slow as 
well

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 2:27 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?


This would be cool except for the fact that mail-archive employs the most horrible 
search algorithm I've ever seen.  My search results are always bloated.

>From their own FAQ:

"
Searches span all archived messages in a particular mailing list. All words entered in 
the search box are required for a match. Boolean logic and phrase matching are not 
supported. "

...and that's not even true, because I frequently get back results that only have one 
of the search terms I entered.  The archives have become effectively useless to me in 
the past month or so.


--joe



> -Original Message-
> From: Kandi Potter [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 7:58 AM
> To: Struts Users Mailing List
> Subject: RE: Searching the Archives?
> 
> 
> http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> 
> -Original Message-
> From: Jason Vinson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 10:52 AM
> To: Struts Users Mailing List
> Subject: Searching the Archives?
> 
> 
> I feel dumb for asking this, but I am trying to search the list 
> archives via:
> 
> http://nagoya.apache.org/eyebrowse/SearchList?listId=&listName
[EMAIL PROTECTED]&searchText=bean+attributes&defaultField=subject&Search=Search

and when i do a search, it returns "Text search not available for this list".  Where 
should i look for proper archive searching?

Thanks,
Jason



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



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


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



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


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



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


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




RE: [OT] a product or code to read email and update database

2003-02-12 Thread Jarnot Voytek Contr AU HQ/SC
You're writing server-side java right?  I suppose you could have the users
set the reply-to on their original email to point to an account which a
thread in your web app checks every so often... or have the user forward the
reply to such an account... or, best of all, rethink the whole process -
it'd probably be easier (for you, anyway) for the user to upload a file,
then have the boss view and approve/disapprove the file through your app.

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 2:06 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] RE: a product or code to read email and update
> database
> 
> 
> What u have to do is a automatic approval process,
> 
> A user will be sending a mail to his boss for some
> approval, and then the boss will reply with a message
> , which will be approved or not aproved,
> I want to update the database depending on the reply i
> get from the mail from boss
> 
> Ashish
> --- Jarnot Voytek Contr AU HQ/SC
> <[EMAIL PROTECTED]> wrote:
> > Please prefix off topic topics with [OT].
> > 
> > Are you looking to have your users receive email
> > attachments, and then
> > upload them to the app server?  Or are you talking
> > about your server-side
> > java code polling a mail server periodically and
> > retrieving messages?
> > 
> > --
> > Voytek Jarnot
> > Quidquid latine dictum sit, altum viditur.
> > 
> > 
> > > -Original Message-
> > > From: Ashish Kulkarni
> > [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 12, 2003 1:24 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: a product or code to read email and
> > update database
> > > 
> > > 
> > > Hi,
> > > 
> > > In my project i have a requirement to read the
> > data
> > > coming in from email ( outlook ) and update the
> > > database in real time
> > > Has any one worked with this kind of requirement, 
> > > Any help about different products or code willl be
> > > helpful, the data coming in email may be xml or
> > pdf,
> > > or plain text which is not  yet decided
> > > 
> > > Ashish
> > > 
> > > =
> > > A$HI$H
> > > 
> > > __
> > > Do you Yahoo!?
> > > Yahoo! Shopping - Send Flowers for Valentine's Day
> > > http://shopping.yahoo.com
> > > 
> > >
> >
> -
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > > 
> > 
> >
> -
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> =
> A$HI$H
> 
> __
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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




RE: Searching the Archives?

2003-02-12 Thread Kandi Potter
thanks,  you are right; it is much faster.


-Original Message-
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 3:09 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?


Marc does the best job IMO.

Try it out at http://marc.theaimsgroup.com/?l=struts-user.

Sri

-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 2:48 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?


anyone have a better way to search the archives??   I find it incredibly slow as 
well

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 2:27 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?


This would be cool except for the fact that mail-archive employs the most horrible 
search algorithm I've ever seen.  My search results are always bloated.

>From their own FAQ:

"
Searches span all archived messages in a particular mailing list. All words entered in 
the search box are required for a match. Boolean logic and phrase matching are not 
supported. "

...and that's not even true, because I frequently get back results that only have one 
of the search terms I entered.  The archives have become effectively useless to me in 
the past month or so.


--joe



> -Original Message-
> From: Kandi Potter [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 7:58 AM
> To: Struts Users Mailing List
> Subject: RE: Searching the Archives?
> 
> 
> http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> 
> -Original Message-
> From: Jason Vinson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 10:52 AM
> To: Struts Users Mailing List
> Subject: Searching the Archives?
> 
> 
> I feel dumb for asking this, but I am trying to search the
> list archives via: 
> 
> http://nagoya.apache.org/eyebrowse/SearchList?listId=&listName
[EMAIL PROTECTED]&searchText=bean+attributes&defaultField=subject&Search=Search

and when i do a search, it returns "Text search not available for this list".  Where 
should i look for proper archive searching?

Thanks,
Jason



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



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


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



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


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



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




Re: html:text property magic?

2003-02-12 Thread James Mitchell
It assumes that it should use the bean that was defined by the surrounding
 in your
   struts-config instead of:
   

Hope that helps.


--
James Mitchell





- Original Message -
From: "Robert S. Sfeir" <[EMAIL PROTECTED]>
To: "Struts List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 1:40 PM
Subject: html:text property magic?


> Ok, still new'ish to struts, and definitely new to the custom tags, I
> used to use lots of java code in my jsps and now moving to better
> things.  This brought me to the:
>
> 
>
> tag.  I have a jsp page which gets referenced via a ForwardAction like
> so:
>
>  type="org.apache.struts.actions.ForwardAction" parameter="loginPage"/>
> (loginPage is a tile reference)
>
> Now when I did this by accident in my jsp page:
>
> 
>
> things barfed, and when I did this:
>
> 
>
> things were just fine.  How in the world did Struts ForwardAction know
> which field to map for property since this action is not mapped
> specifically to my SecurityForm
>
> Thanks
>
> R
>
> --
> Robert S. Sfeir
> Senior Java Engineer
> National Institutes of Health
> Center for Information Technology
> Department of Enterprise Custom Applications
> [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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




RE: Is html:message Valid?

2003-02-12 Thread Art Vandalay

Thank you for that. I realized I was on the "old" version of the Use Guide but could 
not find a link on the Struts site to the 1.1 version. I've been looking for this for 
a while. Thank you.
 Sri Sankaran <[EMAIL PROTECTED]> wrote:And finally, it seems you are looking at 
the Struts 1.0.2 version of the user guide. The current one is at 
http://jakarta.apache.org/struts/userGuide/index.html.

Sri

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 2:58 PM
To: Struts Users Mailing List
Subject: RE: Is html:message Valid?


You can see what tags are in a taglib by perusing the .tld I did this for you and it 
looks like there is a 'messages' tag inside struts-html.tld, but it doesn't have 'key' 
attribute.

I think you're looking for although the "html" part is just a namespace or prefix that 
could be referring to any taglib, so technically it could be valid.

-Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 12:46 PM
> To: Struts Mailing List
> Subject: Is html:message Valid?
> 
> 
> 
> In the Struts user guide located here:
> 
> http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_
> view.html#i18n
> 
> in Section 3.3.1 Building Forms With Struts, the example uses
> the following notation:
> 
> 
> 
> 
> Is this a typo or does html:message exist? I could not find
> any mention of it in the Struts User guide and when I 
> attempted to use it in my own JSP I got an error stating that 
> "message" was invalid (sorry, I lost the exact error message 
> but it was something to that affect).
> 
> Thanks.
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 

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


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



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: Searching the Archives?

2003-02-12 Thread Sri Sankaran
Marc does the best job IMO.

Try it out at http://marc.theaimsgroup.com/?l=struts-user.

Sri

-Original Message-
From: Kandi Potter [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 2:48 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?


anyone have a better way to search the archives??   I find it incredibly slow as 
well

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 2:27 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?


This would be cool except for the fact that mail-archive employs the most horrible 
search algorithm I've ever seen.  My search results are always bloated.

>From their own FAQ:

"
Searches span all archived messages in a particular mailing list. All words entered in 
the search box are required for a match. Boolean logic and phrase matching are not 
supported. "

...and that's not even true, because I frequently get back results that only have one 
of the search terms I entered.  The archives have become effectively useless to me in 
the past month or so.


--joe



> -Original Message-
> From: Kandi Potter [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 7:58 AM
> To: Struts Users Mailing List
> Subject: RE: Searching the Archives?
> 
> 
> http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> 
> -Original Message-
> From: Jason Vinson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 10:52 AM
> To: Struts Users Mailing List
> Subject: Searching the Archives?
> 
> 
> I feel dumb for asking this, but I am trying to search the
> list archives via: 
> 
> http://nagoya.apache.org/eyebrowse/SearchList?listId=&listName
[EMAIL PROTECTED]&searchText=bean+attributes&defaultField=subject&Search=Search

and when i do a search, it returns "Text search not available for this list".  Where 
should i look for proper archive searching?

Thanks,
Jason



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



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


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



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


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




RE: Is html:message Valid?

2003-02-12 Thread Sri Sankaran
And finally, it seems you are looking at the Struts 1.0.2 version of the user guide.  
The current one is at http://jakarta.apache.org/struts/userGuide/index.html.

Sri

-Original Message-
From: Durham David Cntr 805CSS/SCBE [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, February 12, 2003 2:58 PM
To: Struts Users Mailing List
Subject: RE: Is html:message Valid?


You can see what tags are in a taglib by perusing the .tld   I did this for you and it 
looks like there is a 'messages' tag inside struts-html.tld, but it doesn't have 'key' 
attribute.

I think you're looking for   although the "html" part is just a 
namespace or prefix that could be referring to any taglib, so technically it could be 
valid.

 -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 12:46 PM
> To: Struts Mailing List
> Subject: Is html:message Valid?
> 
> 
> 
> In the Struts user guide located here:
> 
> http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_
> view.html#i18n
> 
> in Section 3.3.1 Building Forms With Struts, the example uses
> the following notation:
> 
>   
>  
> 
> Is this a typo or does html:message exist? I could not find
> any mention of it in the Struts User guide and when I 
> attempted to use it in my own JSP I got an error stating that 
> "message" was invalid (sorry, I lost the exact error message 
> but it was something to that affect).
> 
> Thanks.
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 

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


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




Re: [OT] RE: a product or code to read email and update database

2003-02-12 Thread Ashish Kulkarni
What u have to do is a automatic approval process,

A user will be sending a mail to his boss for some
approval, and then the boss will reply with a message
, which will be approved or not aproved,
I want to update the database depending on the reply i
get from the mail from boss

Ashish
--- Jarnot Voytek Contr AU HQ/SC
<[EMAIL PROTECTED]> wrote:
> Please prefix off topic topics with [OT].
> 
> Are you looking to have your users receive email
> attachments, and then
> upload them to the app server?  Or are you talking
> about your server-side
> java code polling a mail server periodically and
> retrieving messages?
> 
> --
> Voytek Jarnot
> Quidquid latine dictum sit, altum viditur.
> 
> 
> > -Original Message-
> > From: Ashish Kulkarni
> [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, February 12, 2003 1:24 PM
> > To: [EMAIL PROTECTED]
> > Subject: a product or code to read email and
> update database
> > 
> > 
> > Hi,
> > 
> > In my project i have a requirement to read the
> data
> > coming in from email ( outlook ) and update the
> > database in real time
> > Has any one worked with this kind of requirement, 
> > Any help about different products or code willl be
> > helpful, the data coming in email may be xml or
> pdf,
> > or plain text which is not  yet decided
> > 
> > Ashish
> > 
> > =
> > A$HI$H
> > 
> > __
> > Do you Yahoo!?
> > Yahoo! Shopping - Send Flowers for Valentine's Day
> > http://shopping.yahoo.com
> > 
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




RE: Is html:message Valid?

2003-02-12 Thread Durham David Cntr 805CSS/SCBE
You can see what tags are in a taglib by perusing the .tld   I did this for you and it 
looks like there is a 'messages' tag inside struts-html.tld, but it doesn't have 'key' 
attribute.

I think you're looking for   although the "html" part is just a 
namespace or prefix that could be referring to any taglib, so technically it could be 
valid.

 -Original Message-
> From: Art Vandalay [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 12:46 PM
> To: Struts Mailing List
> Subject: Is html:message Valid?
> 
> 
> 
> In the Struts user guide located here:
> 
> http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_
> view.html#i18n
> 
> in Section 3.3.1 Building Forms With Struts, the example uses 
> the following notation:
> 
>   
>  
> 
> Is this a typo or does html:message exist? I could not find 
> any mention of it in the Struts User guide and when I 
> attempted to use it in my own JSP I got an error stating that 
> "message" was invalid (sorry, I lost the exact error message 
> but it was something to that affect).
> 
> Thanks.
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> 

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




Re: Is html:message Valid?

2003-02-12 Thread Justin Ashworth
That should actually be .  Looks like the documentation is
wrong.

- Original Message -
From: "Art Vandalay" <[EMAIL PROTECTED]>
To: "Struts Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, February 12, 2003 1:46 PM
Subject: Is html:message Valid?


>
> In the Struts user guide located here:
>
>
http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_view.html#i18n
>
> in Section 3.3.1 Building Forms With Struts, the example uses the
following notation:
> 
>   
>  
>
> Is this a typo or does html:message exist? I could not find any mention of
it in the Struts User guide and when I attempted to use it in my own JSP I
got an error stating that "message" was invalid (sorry, I lost the exact
error message but it was something to that affect).
>
> Thanks.
>
>
>
> -
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day


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




Is html:message Valid?

2003-02-12 Thread Art Vandalay

In the Struts user guide located here:

http://jakarta.apache.org/struts/doc-1.0.2/userGuide/building_view.html#i18n

in Section 3.3.1 Building Forms With Struts, the example uses the following notation:

  
 

Is this a typo or does html:message exist? I could not find any mention of it in the 
Struts User guide and when I attempted to use it in my own JSP I got an error stating 
that "message" was invalid (sorry, I lost the exact error message but it was something 
to that affect).

Thanks.



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


RE: Searching the Archives?

2003-02-12 Thread Kandi Potter
anyone have a better way to search the archives??   I find it incredibly slow as 
well

-Original Message-
From: Joe Barefoot [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 2:27 PM
To: Struts Users Mailing List
Subject: RE: Searching the Archives?


This would be cool except for the fact that mail-archive employs the most horrible 
search algorithm I've ever seen.  My search results are always bloated.

>From their own FAQ:

"
Searches span all archived messages in a particular mailing list. All words entered in 
the search box are required for a match. Boolean logic and phrase matching are not 
supported.
"

...and that's not even true, because I frequently get back results that only have one 
of the search terms I entered.  The archives have become effectively useless to me in 
the past month or so.


--joe



> -Original Message-
> From: Kandi Potter [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 7:58 AM
> To: Struts Users Mailing List
> Subject: RE: Searching the Archives?
> 
> 
> http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> 
> -Original Message-
> From: Jason Vinson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 10:52 AM
> To: Struts Users Mailing List
> Subject: Searching the Archives?
> 
> 
> I feel dumb for asking this, but I am trying to search the 
> list archives via: 
> 
> http://nagoya.apache.org/eyebrowse/SearchList?listId=&listName
[EMAIL PROTECTED]&searchText=bean+attributes&defaultField=subject&Search=Search

and when i do a search, it returns "Text search not available for this list".  Where 
should i look for proper archive searching?

Thanks,
Jason



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



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


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



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




Form validation across multiple pages

2003-02-12 Thread Larry Zappeterrini
This question may be more appropriate for the developer's mailing list, but
I 
thought that I would post it here to see what kind of sentiment there is in 
Struts' user land. I have been attempting to implement a form that spans 
multiple pages that utilizes Struts' validator plug-in. I create an action
in 
the configuration file and associate a subclass of DispatchAction with the 
intention of mapping each step in the form to a method in the object. Next,
I 
create forward elements within the action to correspond to a page in the
form. 
This works fine for stepping through the form without errors from start to 
finish. The problem arises when an error is caught by the validator. The way

that validator errors are handled in the RequestProcessor(s) included with 
Struts is to forward control to whatever resource is specified in the
action's 
input attribute. This may not necessarily be the page on which the error 
occurred, so the flow of the application is disrupted. The only way around 
this is to make each step of the process into its own action so that each
step 
has its own input. This is sub optimal in my opinion.

I am curious to know if there has been any discussion about addressing this 
situation. A cursory search of the mail archives for the user and developer 
lists has turned up nothing. To implement mutliple page form validation in
the 
way that I am envisioning would probably require changes in some core parts 
of Struts, so I wonder if anyone else would find this desirable. Or maybe I
am 
missing some part of the bigger picture that precludes my suggestion. Any 
thoughts?

Thanks,
Larry


*** 
This electronic mail transmission contains confidential and/or privileged 
information intended only for the person(s) named.  Any use, distribution, 
copying or disclosure by another person is strictly prohibited. 
*** 



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




[OT] RE: a product or code to read email and update database

2003-02-12 Thread Jarnot Voytek Contr AU HQ/SC
Please prefix off topic topics with [OT].

Are you looking to have your users receive email attachments, and then
upload them to the app server?  Or are you talking about your server-side
java code polling a mail server periodically and retrieving messages?

--
Voytek Jarnot
Quidquid latine dictum sit, altum viditur.


> -Original Message-
> From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 1:24 PM
> To: [EMAIL PROTECTED]
> Subject: a product or code to read email and update database
> 
> 
> Hi,
> 
> In my project i have a requirement to read the data
> coming in from email ( outlook ) and update the
> database in real time
> Has any one worked with this kind of requirement, 
> Any help about different products or code willl be
> helpful, the data coming in email may be xml or pdf,
> or plain text which is not  yet decided
> 
> Ashish
> 
> =
> A$HI$H
> 
> __
> Do you Yahoo!?
> Yahoo! Shopping - Send Flowers for Valentine's Day
> http://shopping.yahoo.com
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

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




RE: Searching the Archives?

2003-02-12 Thread Joe Barefoot
This would be cool except for the fact that mail-archive employs the most horrible 
search algorithm I've ever seen.  My search results are always bloated.

>From their own FAQ:

"
Searches span all archived messages in a particular mailing list. All words entered in 
the search box are required for a match. Boolean logic and phrase matching are not 
supported.
"

...and that's not even true, because I frequently get back results that only have one 
of the search terms I entered.  The archives have become effectively useless to me in 
the past month or so.


--joe



> -Original Message-
> From: Kandi Potter [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 7:58 AM
> To: Struts Users Mailing List
> Subject: RE: Searching the Archives?
> 
> 
> http://www.mail-archive.com/struts-user%40jakarta.apache.org/
> 
> -Original Message-
> From: Jason Vinson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 10:52 AM
> To: Struts Users Mailing List
> Subject: Searching the Archives?
> 
> 
> I feel dumb for asking this, but I am trying to search the 
> list archives via: 
> 
> http://nagoya.apache.org/eyebrowse/SearchList?listId=&listName
[EMAIL PROTECTED]&searchText=bean+attributes&defaultField=subject&Search=Search

and when i do a search, it returns "Text search not available for this list".  Where 
should i look for proper archive searching?

Thanks,
Jason



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



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


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




a product or code to read email and update database

2003-02-12 Thread Ashish Kulkarni
Hi,

In my project i have a requirement to read the data
coming in from email ( outlook ) and update the
database in real time
Has any one worked with this kind of requirement, 
Any help about different products or code willl be
helpful, the data coming in email may be xml or pdf,
or plain text which is not  yet decided

Ashish

=
A$HI$H

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

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




Re: OT: Yet another Persistence Survey

2003-02-12 Thread Bradley G Smith

Answer for our Struts applications is current "C".

Brad



   
 
  Vic Cekvenich
 
  <[EMAIL PROTECTED] To:  [EMAIL PROTECTED] 
 
  m>   cc: 
 
   Subject: OT: Yet another Persistence 
Survey  
  12-02-03 10:16   
 
  Please respond   
 
  to "Struts Users 
 
  Mailing List"
 
   
 
   
 




I am curious as to what is popular and working in larger production sites
(as opposed to still in development, or like less than 200 concurent
users, or not working well in production or a theory as to what might
work well)
for persistence:

  A. Hibernate
  B. Castor
  C. Roll Your Own Beans/ Custom DAO (RowSet or ResultSet) with no
 OMG or O/R
  D. Ibatis
  E. One of http://db.apache.org  (please specify which) _
  F. EJB
  G. Other OMG  or O/R : __
  H: Other SQL based (not OMG or O/R) : 

- - - -
Answer:




If a bunch of people can respond about what is in production and
working, it be real nice, please vote multiple times for each, I would
like to see popularity.


Tia,
.V



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







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




RE: 1.1b3 resource config doesn't work properly with 1.0 config

2003-02-12 Thread Joe Barefoot
Well, the returnNull property on our MessageResourcesImpl class is being reset to true 
somehow, and from Struts' own logging statements I can see PropertyMessageResources 
being initalized multiple times instead of just once.  I assure you that we only set 
the returnNull property (to false) in our impl once, when it is initalized, as shown 
in the code below.  Logging statements on our DictMessageResources class's 
getMessage() method show the returnNull property as set to true despite the code below 
and the fact that we never call setReturnNull() anywhere else in the application.  I 
got tired of trying to decipher this aberrant behavior, but I hope it goes away when I 
update to the 1.1 config.

// from DictMessageResourcesFactory.java

public DictMessageResourcesFactory()
{
// set default behavior for MessageResources impls to *not* return 
null if a key isn't found (returns dummy value instead)
setReturnNull(false);
// set default factory class name to this class name so that the 
default is NEVER used (default is PropertyMessageResourcesFactory)
setFactoryClass(CAT);
}
public MessageResources createResources(String config)
{
return new DictMessageResources(this, config, getReturnNull());
}


// from DictMessageResources.java

  public DictMessageResources(DictMessageResourcesFactory factory,
String config, boolean returnNull)
{
super(factory, config, returnNull);
}


> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 11, 2003 5:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: 1.1b3 resource config doesn't work properly with 
> 1.0 config
> 
> 
> Struts uses PropertyMessageResourcesFactory internally for 
> messages which is 
> probably why you're seeing it getting loaded.  You indicated 
> that your 
> implementation is used for your app so the feature works.
> 
> David
> 
> 
> 
> >From: "Joe Barefoot" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
> >To: "Struts user (E-mail)" <[EMAIL PROTECTED]>
> >Subject: 1.1b3 resource config doesn't work properly with 1.0 config
> >Date: Tue, 11 Feb 2003 17:25:42 -0800
> >
> >Dunno if anyone already ran into this, but at least one 
> element in 1.1b3 is 
> >not compatible with the 1.0 configuration files, as it is 
> professed to be 
> >on the web site and everywhere else I've looked.  
> Specifically, the web.xml 
> >specification of the MessageResourcesFactory class to use 
> does not work 
> >properly--PropertyMessageResourcesFactory gets initialized 
> everytime as the 
> >default factory implementation when the ActionServlet 
> initializes.  Now, 
> >when the application comes up, our default module is 
> initialized and our 
> >MessageResourcesFactory implementation *does* get loaded.  
> However, from 
> >the logs, I see PropertyMessageResources getting initalized 
> quite often, no 
> >doubt by PropertyMessageResourcesFactory.  This has the unfortunate 
> >side-effect of over-riding the returnNull property, which 
> has been wreaking 
> >havoc with our app because we don't want to return null.
> >
> >I've hard-coded our MessageResources implemenation to ignore 
> the returnNull 
> >property to deal with this, but it's still annoying as hell.
> >
> >peace,
> >Joe
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> _
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*  
> http://join.msn.com/?page=features/junkmail
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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




RE: Cannot retrieve definition for form bean null

2003-02-12 Thread Kandi Potter
I'm not sure if this is your problem, but do you have the tld directive in your jsp?

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

-Original Message-
From: Art Vandalay [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 1:43 PM
To: Struts Mailing List
Subject: Cannot retrieve definition for form bean null



Hello everyone,

I am trying to write a very simple Struts application that simply displays a JSP using 
bean:message to retrieve values for my field labels and buttons from a ResourceBundle. 
Pretty straight forward, but I am getting the following error:

 

 [exec] javax.servlet.jsp.JspException: Cannot retrieve definition for form
bean null

 

The message seems to imply that Struts is trying to access a bean whose name is "null" 
but I don't know what bean that would be as I have no beans referenced on my JSP. I am 
only trying to invoke the logic contained within the struts-bean.tld.

 

The logic flow is the user signs-into the application and is then forwarded to 
"simplePage.jsp". I used a ForwardAction to navigate from the logon page (after a 
successful login). But I never reach "simplePage.jsp" due to the above mentioned error.

 

Any help would be appreciated.

 

Here is what I have in my struts_config.xml:

 













































 

Here is my JSP:



<%@ page language="java" %>

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

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























 

 



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day

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




RE: [OT] Generating microsoft word documents (use HTML!!!)

2003-02-12 Thread John Cavacas
Peter,

That's a very interesting possibility. I have a couple of questions and
observations if you don't mind.

Our requirements are different as in, what we are essentially building is a
document that is composed by many templates. Essentially we are building a
document assembly application. A user selects a template. Each template has
its own format like, one has a T&C others may have an index and a cover
letter. Some of this content is common to many templates and as such can be
shared. So the user selects a template, then selects any other extra
sections (document snippets) to build a type of document, say a proposal for
a lease or a SOW. Once those decisions are made, depending on the template
chosen, we then generate a word document that can be further edited by the
user in Word. Once that is done, the user can then submit the document into
a repository for permanent storage, and use the document in the way that it
was intended for. Email, letter, print, etc.

Your solution could prove useful in the scenario above, as we could store
all of the document templates and snippets as WordHTML or like you, as
velocity templates, then generate a final document also in WordHTML, which
the user would load, edit and save back in either html or word. Very
interesting...

However, did you run into any version problems? As in someone using an older
version of word? You mentioned you had to adjust some things for proper
display. Was this a major problem? What about the status of WordHTML going
forward with new versions of word?

Thanks again for your excellent suggestion.

Regards,
John

> -Original Message-
> From: Peter S. Hamlen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 1:30 PM
> To: Struts Users Mailing List
> Subject: Re: [OT] Generating microsoft word documents (use HTML!!!)
> 
> John,
> 
> We had the same problem here - in particular, our clients were
> accustomed to some standard packets that were generated in Word and
> still wanted them to be Word documents, open them in Word, edit them in
> Word, but have the original document generated by our webapp.
> 
> Our eventual solution:  Jakarta VELOCITY and the Word2K HTML format.
> 
> We tried a variety of techniques (including previously mentioned idea of
> RTF), but that was by far the simplest and most effective.
> 
> NB:  Word 2k now embeds a great deal of formatting information in HTML
> comments - enough that there is virtually no change in the document if
> you save it as HTML and then load it back in.  That is, no content is
> lost if you save the file as HTML.
> 
> Eventually, our system looked as the following:
> *  The client would build their report in Word, including sample data.
> Their reports included tables, graphics, and tables of contents.  They
> would save the report as HTML.
> *  We would accept the report, make it a Velocity Template, and replace
> the sample data with VELOCITY tags.
> *  When we needed to generate the actual report, we would send the
> template through the Velocity engine and generate the report.
> 
> It worked great.  I highly recommend using Velocity and the Word HTML
> format.  It's pretty readable, and the resulting template is very easy
> to edit (in many cases, we could send the template back to the user who
> would then edit the template directly.)
> 
> Our experience with RTF was that it's a VERY difficult language to
> understand.  And as the document gets more complicated, it becomes
> virtually impossible to understand.
> 
> If you need more information, let me know.  There were some tricks
> (particularly that we had to add template tags into the "styles" section
> of the document in order to make everything look right) but overall, it
> was pretty easy.
> 
> -Peter
> 
> On Wed, 2003-02-12 at 10:29, John Cavacas wrote:
> > I'm currently doing some initial research on the possibility of
> generating
> > Microsoft word documents (yuk) from a web application for a project that
> I
> > am working on. The web app portion of course would use struts. However,
> as I
> > suspected, I'm finding that creating word documents from Java is, well
> for a
> > lack of better words, a pain in the ass.
> >
> > I've looked at POI and their HDF classes, but it seems to be in very
> very
> > early state. I've also looked at some Java COM wrappers which seem that
> > would work, however it forces you to use COM.
> >
> > I was wondering if anyone in the list has had some experience with
> something
> > like this and would care to share their experiences. Any suggestions
> would
> > be appreciated as well.
> >
> > Regards,
> > John
> >
> >
> >
> > This communication is intended for the use of the individual(s) or
> entity it
> > was addressed to and may contain confidential and/or privileged
> information.
> > If the reader of this transmission is not the intended recipient, you
> are
> > hereby notified that any review, dissemination, distribution or copying
> of
> > this communication is prohibited.

RE: 1.0.2 with Collection property

2003-02-12 Thread Clement, Stephen
Anyone have any ideas on the following???

-Original Message-
From: Clement, Stephen 
Sent: Wednesday, February 12, 2003 11:31 AM
To: [EMAIL PROTECTED]
Subject: RE: 1.0.2 with Collection property


Here's the stuff that's working with an Array property.





















 


 


 

 

Here's my propery access

/** Get search predicates. 
 *  @return Predicate [] search predicates. */
public Predicate [] getPredicates() { return predicates; }

   /**  Set criteria.
*   @param list criteria list. */
public void setPredicates(Predicate [] predicates) 
{ System.out.println("SETTING PREDICATES"); this.predicates
= predicates; }

And my reset

/** Reset all properties to their default values.
 *  @param mapping The mapping used to select this instance.
 *  @param request The servlet request we are processing. */
public void reset(ActionMapping mapping, HttpServletRequest request)
{
System.out.println("RESET");
action = "";
profileNames = new String[0];
currentPredicate = 0;
predicateCount = 1;
predicates = new Predicate[predicateCount];
predicates[0] = new Predicate();
type = "";
includeLockedLoans = false;
}

The problem with this approach seems to be that one submit my Array size
gets defaulted (to one) and then populated so modifying the Array size
dynamically seems difficult.


-Original Message-
From: John Espey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 11:25 AM
To: Struts Users Mailing List
Subject: RE: 1.0.2 with Collection property


Can you post a snippet from your JSP?

> -Original Message-
> From: Clement, Stephen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: 1.0.2 with Collection property
>
>
>
> Is it me or does the logic:iterate tag with a Collection property not work
> in 1.0.2 in such a way as to populate my page and properly submit my form
> class?  I have struggle somewhat with this lately.
>
> I can make it work with bean:write's but then changes to my pages won't
> populate my form class on submit.
>
> I have gotten it to work using an Array of Objects instead of a Collection
> but I can't seem modify the size of the Array because the reset
> function for
> the form always sets it to a default size (one in this case).
>
> So...what's the best and easiest way to have a bean property that is an
> Array (or Collection) that I can add to or remove from
> interactively from my
> page?
>
> Thanks,
>
> Steve
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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

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

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




Incorrect assumption with logic:present role attribute

2003-02-12 Thread Siggelkow, Bill
I have an app where I have created my own RequestProcessor to override the 
processRoles functionality.  Specifically, my roles take into account certain session 
information.  This works as expected and properly handles the 'roles' attribute in my 
action mappings.  However, I naievly (sp?) made the assumption that the role attribute 
of the logic:present tag would use this same functionality -- but it doesn't.  It 
seems that the  only does a 
request.isUserInRole("somerole") -- it seems to me that if I override the processing 
of roles it should affect both the action mappings as well as the logic tags (and any 
other Struts tags) that use the 'role' attribute.  Has this been considered?

Bill Siggelkow
678.579.6458
Mirant
http://www.mirant.com


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




Redirect and WebSphere

2003-02-12 Thread Susan Bradeen
Does any one know if there was a patch of some kind issued for the 
redirect problem that plagues WebSphere 4.02 (and 3.5.x probably)? I 
haven't been able to find anything about it. Redirecting works fine with 
WebSphere 5.0, but I have to support 4.02 also.

Thanks,
Susan Bradeen

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




RE: Yet another Persistence Survey

2003-02-12 Thread Raible, Matt
My last 3 projects have all used Struts, though concurrent users was quite
low on all.  Here's my order of progression:

June 2001-October 2001: EJB, RowSets (made or own RowSet implementation)
January 2002-December 2002: Custom DAO to populate VO - based on Generator
(http://home.earthlink.net/~dwinterfeldt/generator/)
October 2002-present: Hibernate and lovin' it.

I might be inclined to use EJBs if I were developing a site with 10,000
transactions per second though - and I'd probably get off Tomcat ;-)

Matt

> -Original Message-
> From: Vic Cekvenich [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 11:16 AM
> To: [EMAIL PROTECTED]
> Subject: OT: Yet another Persistence Survey
> 
> 
> I am curious as to what is popular and working in larger 
> production sites
> (as opposed to still in development, or like less than 200 concurent 
> users, or not working well in production or a theory as to what might 
> work well)
> for persistence:
> 
>   A. Hibernate
>   B. Castor
>   C. Roll Your Own Beans/ Custom DAO (RowSet or ResultSet) with no
>  OMG or O/R
>   D. Ibatis
>   E. One of http://db.apache.org  (please specify which) _
>   F. EJB
>   G. Other OMG  or O/R : __
>   H: Other SQL based (not OMG or O/R) : 
> 
> - - - -
> Answer:
> 
> 
> 
> 
> If a bunch of people can respond about what is in production and 
> working, it be real nice, please vote multiple times for 
> each, I would 
> like to see popularity.
> 
> 
> Tia,
> .V
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


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




Integrating JSP/JSF and XML/XSLT: The Best of Both Worlds

2003-02-12 Thread Erik Bruchez
All,

For those of you wondering how JSP technologies, including JSP 2.0,
JSTL, Struts and the upcoming JavaServer Faces (JSF) 1.0, can work
together with XML and XSLT, there is a new article at
TheServerSide.com about this subject.

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

The article presents the natural evolution of server-side Java
programming from basic servlet programming to JSP 2.0 with JSTL and
JSF, shows the limitations of the current JSF rendering architecture
and how XML technologies can solve them.

The article comes with sample code that shows how to hookup an XSLT
transformer with a JSP filter, and includes an experimental XML
renderer for JSF.

Enjoy,

-Erik


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




Cannot retrieve definition for form bean null

2003-02-12 Thread Art Vandalay

Hello everyone,

I am trying to write a very simple Struts application that simply displays a JSP using 
bean:message to retrieve values for my field labels and buttons from a ResourceBundle. 
Pretty straight forward, but I am getting the following error:

 

 [exec] javax.servlet.jsp.JspException: Cannot retrieve definition for form
bean null

 

The message seems to imply that Struts is trying to access a bean whose name is "null" 
but I don't know what bean that would be as I have no beans referenced on my JSP. I am 
only trying to invoke the logic contained within the struts-bean.tld.

 

The logic flow is the user signs-into the application and is then forwarded to 
"simplePage.jsp". I used a ForwardAction to navigate from the logon page (after a 
successful login). But I never reach "simplePage.jsp" due to the above mentioned error.

 

Any help would be appreciated.

 

Here is what I have in my struts_config.xml:

 













































 

Here is my JSP:



<%@ page language="java" %>

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

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























 

 



-
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day


html:text property magic?

2003-02-12 Thread Robert S. Sfeir
Ok, still new'ish to struts, and definitely new to the custom tags, I 
used to use lots of java code in my jsps and now moving to better 
things.  This brought me to the:



tag.  I have a jsp page which gets referenced via a ForwardAction like 
so:


(loginPage is a tile reference)

Now when I did this by accident in my jsp page:



things barfed, and when I did this:



things were just fine.  How in the world did Struts ForwardAction know 
which field to map for property since this action is not mapped 
specifically to my SecurityForm

Thanks

R

--
Robert S. Sfeir
Senior Java Engineer
National Institutes of Health
Center for Information Technology
Department of Enterprise Custom Applications
[EMAIL PROTECTED]


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



How to tell if multiple modules are loading

2003-02-12 Thread HEMBREE, Matt
(Struts 1.1b3, Win2000, Oracle 9ias, brand-spankin-new to struts)

I have 3 extra modules declared in web.xml:


  config
  /WEB-INF/struts-config.xml


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


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


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


When the app starts, I see no messages in the log telling me that any of
the module configs have loaded.  Additionally, if I force bad XML into
one of the module-level configs, no errors (I think I've seen this mentioned
before on the list as well).

Additionally confusing: I am configured with module-aware Tiles.  In 
the app log, I see only one Tiles definition factory being loaded, for
what I assume is the default module:

12 Feb 2003 12:04:13,048. 3094 [ApplicationServerThread-6] INFO
org.apache.struts.tiles.TilesRequestProcessor  - Tiles definition factory
found for request processor ''.

I only have a single tiles-defs.xml, but the Tiles plugin is included
in all the module configs and loads this defs file.

Am I just missing something obvious here (its been known to happen)?

--matt

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




Re: Need Advise: use Struts/XSLT

2003-02-12 Thread Erik Bruchez
The article on TheServerSide.com actually comes with sample code that
illustrates exactly this. Feel free to download it, the code is under
an MPL / LGPL / GPL tri-license. Very bare-bones, but that can give
you an idea of how to get started.

http://www.theserverside.com/home/thread.jsp?thread_id=17866&article_count=27

-Erik

Jacob Hookom wrote:

You are better off creating a TransformationFilter that will work with 2.3
Servlet Specs (Tomcat 4.1.x).  The filter would catch the response, wrap it
with an HttpServletResponseWrapper and send it on to your jsp where it would
take the data written to the print writer or outputstream and transform it
via XSLT.  VERY easy to do.

-Jacob

| -Original Message-
| From: Oguz Kologlu [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, February 12, 2003 6:28 AM
| To: Struts Users Mailing List
| Subject: RE: Need Advise: use Struts/XSLT
| 
| There is actually a lot of work being done on cocoon.
| 
| Cocoon in fact resembles struts in many ways - the developers will freely
| admit they take the best ideas from each project to integrate into cocoon.
| 
| Some of the features:
| - schematron ( same as validators )
| - internationalisation support
| - sub applications
| - xmlforms ( similar to form beans ) ( w3c standard )
| etc, etc.
| 
| There are also xsp's ( xml -> jsp ) but I have never used them.
| 
| I think one of the shortfalls of cocoon is pipeline processing where you
| cannot change the direction of a pipeline once processing has begun (
| since
| processing is based on sax events). We have worked around this with a
| variety of custom actions but it would be a hard work in a small team
| where
| you don't have much time for R&D (play time).
| 
| Another issue is that it is very loosely coupled and you can easily end up
| lost in a large project - especially for newbies.
| 
| Having said that, you can get work done very quickly as well.
| 
| It is worth evaluating - you can cut out a couple of layers of processing
| using cocoon instead of struts/JSF/clxx.
| 
| hope this helps
| 
| Oz
| 
| -Original Message-
| From: Rabih Yazbeck [mailto:[EMAIL PROTECTED]]
| Sent: Wednesday, 12 February 2003 10:46 PM
| To: 'Struts Users Mailing List'
| Subject: RE: Need Advise: use Struts/XSLT
| 
| 
| What about Cocoon integration with Struts? Is it possible that cocoon
| handle the presentation layer while Sturts focus on the controller?
| 
| Even though Cocoon has released a version 2, but I think there is
| anymore much work on Cocoon, am I right?
| 
| Thanks, and yes I believe in the power of XML/XSLT.. World is moving
| toward this approach, and I wish there is more support for it in Struts.
| 
| -
| Rabih
| 
| -Original Message-
| From: ROSSEL Olivier [mailto:[EMAIL PROTECTED]]
| Sent: 12 February 2003 10:29
| To: 'Struts Users Mailing List'
| Subject: RE: Need Advise: use Struts/XSLT
| 
| >> -Message d'origine-
| >> De: Oguz Kologlu [mailto:[EMAIL PROTECTED]]
| >> Date: mercredi 12 février 2003 11:15
| >> À: Struts Users Mailing List
| >> Objet: RE: Need Advise: use Struts/XSLT
| >>
| >>
| >> Hi,
| >>
| >> There is an article on theserverside.com that discusses this issue
| at:
| >>
| >
| >To oversimplify - it says you should develop JSP "Documents" ( well
| formed
| >xml ) and use xslt for presentation/rendering/i18n etc.
| 
| XSLT is very powerful if you can manage things in your XSLT such as
| document(url)
| where the URL is also a dynamic XML document.
| Aggregation is also a very useful feature.
| 
| To me the (too basic) process of 1 XML-> 1 XSLT->whatever is not that
| useful.
| For example it is interesting to have 2 XMLs-> 1 XSLT-> 1 XSLT->whatever
| or
| to
| have XML->XSLT->whatever
| ^
| |
| 	XSLT
| ^
| |
| 	 XML
| 
| I admit that it is quite an advanced usage of XML pipelines.
| Cocoon handles that very nicely.
| 
| PS: for those who don't understand the power of the last pipeline
| discribed,
| think about such a pipeline:
| XML->XSLT->whatever
|   ^
|   |
|  XSLT
|   ^
|   |
|  XHTML
| 
| Struts ceates the XML.
| Dreamweaver creates the XHTML (with custom tags to be XSLT-processed).
| Did you say "total separation of concerns"?
| 
| This e-mail is intended only for the above addressee. It may contain
| privileged information. If you are not the addressee you must not copy,
| distribute, disclose or use any of the information in it. If you have
| received it in error please delete it and immediately notify the sender.
| Security Notice: all e-mail, sent to or from this address, may be
| accessed by someone other than the recipient, for system management and
| security reasons. This access is controlled under Regulation of
| Investigatory Powers Act 2000, Lawful Business Practises.
| 
| -
| To unsubscribe, e-mail: [EMAIL PROTECTED]
| For additional commands, e-mail: [EMAIL PROTECTED]
| 

Re: OT: Yet another Persistence Survey

2003-02-12 Thread Evan Schnell
Vic Cekvenich wrote:



 F. EJB


We use service oriented architectures so there may be a Web Services or 
MQ layer between the webapp and the session beans.  Either way our 
clients have been very happy with several different EJB containers.

Evan.

--
Evan Schnell, Technical Lead
nVISIA, Twin Cities  "Digital Architecture and Construction"
7701 France Ave. S, Edina, MN 55435
Voice: 952.837.2577 -- Fax: 952.837.2578 -- Mobile: 612.232.5972



smime.p7s
Description: S/MIME Cryptographic Signature


Re: [OT] Generating microsoft word documents (use HTML!!!)

2003-02-12 Thread Peter S. Hamlen
John,

We had the same problem here - in particular, our clients were
accustomed to some standard packets that were generated in Word and
still wanted them to be Word documents, open them in Word, edit them in
Word, but have the original document generated by our webapp.

Our eventual solution:  Jakarta VELOCITY and the Word2K HTML format.

We tried a variety of techniques (including previously mentioned idea of
RTF), but that was by far the simplest and most effective.

NB:  Word 2k now embeds a great deal of formatting information in HTML
comments - enough that there is virtually no change in the document if
you save it as HTML and then load it back in.  That is, no content is
lost if you save the file as HTML.

Eventually, our system looked as the following:
*  The client would build their report in Word, including sample data. 
Their reports included tables, graphics, and tables of contents.  They
would save the report as HTML.
*  We would accept the report, make it a Velocity Template, and replace
the sample data with VELOCITY tags.
*  When we needed to generate the actual report, we would send the
template through the Velocity engine and generate the report.

It worked great.  I highly recommend using Velocity and the Word HTML
format.  It's pretty readable, and the resulting template is very easy
to edit (in many cases, we could send the template back to the user who
would then edit the template directly.)

Our experience with RTF was that it's a VERY difficult language to
understand.  And as the document gets more complicated, it becomes
virtually impossible to understand.

If you need more information, let me know.  There were some tricks
(particularly that we had to add template tags into the "styles" section
of the document in order to make everything look right) but overall, it
was pretty easy.

-Peter

On Wed, 2003-02-12 at 10:29, John Cavacas wrote:
> I'm currently doing some initial research on the possibility of generating
> Microsoft word documents (yuk) from a web application for a project that I
> am working on. The web app portion of course would use struts. However, as I
> suspected, I'm finding that creating word documents from Java is, well for a
> lack of better words, a pain in the ass.
> 
> I've looked at POI and their HDF classes, but it seems to be in very very
> early state. I've also looked at some Java COM wrappers which seem that
> would work, however it forces you to use COM.
> 
> I was wondering if anyone in the list has had some experience with something
> like this and would care to share their experiences. Any suggestions would
> be appreciated as well.
> 
> Regards,
> John
> 
> 
> 
> This communication is intended for the use of the individual(s) or entity it
> was addressed to and may contain confidential and/or privileged information.
> If the reader of this transmission is not the intended recipient, you are
> hereby notified that any review, dissemination, distribution or copying of
> this communication is prohibited.  If you receive this communication in
> error, please notify the sender immediately and delete this communication
> from your system(s) to which it was sent and/or replicated to. (c) 2002
> Sapiens Americas Corp.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 



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




struts 1.1b3 & weblogic 6.1sp2

2003-02-12 Thread Pascal Sourisseau
Hi,
I've used struts 1.1b3 application & want to deploy to weblogic...
Some errors, exceptions occured...
for struts-blank application also

When i deploy struts-blank 1.02 application on weblogic it seems OK
(deployement,& execution)...

Issues on weblogic 6.1sp2 usage ?
Any suggestions ?
Perhaps requirement addon ? or usage...

thx
Pascal


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




RE: [JSTL] How can I use c:if to check the size of a list?

2003-02-12 Thread Jerome Jacobsen
If you are iterating with c:forEach then use the iteration status which has
a count property.  See this example:

  

  
  
  
  
  
  


  

  

There are  customers in the list.


> -Original Message-
> From: Peter S. Hamlen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 12, 2003 1:09 PM
> To: [EMAIL PROTECTED]
> Subject: [JSTL] How can I use c:if to check the size of a list?
>
>
> I'm a bright new convert to the beautiful world of JSTL,and I'm
> struggling over one tricky issue.  We're paging over a resultset using
> the c:forEach tag and specifying the start and end parameters.  I would
> like to be able to create a "previous" and "next" button.
>
> Obviously, if we're at the end of the list, we don't want to display the
> "next" button.  So I'd like to do something like:
>
> 
>   >Next
> 
>
> But since "size" isn't a property, I can't do it.  Does anyone else have
> a way of getting the size of a List via a property?
>
> -Peter
>
> PS (Yes, to those JSTL'ers out there, the c:url tag would be better to
> use!)
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


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




RE: [JSTL] How can I use c:if to check the size of a list?

2003-02-12 Thread Brandon Goodin
Here are a couple great reference links:
http://www.manning.com/bayern/appendixA.pdf
http://rs1.vtu.lt:8080/jstl-examples/index.html

Brandon Goodin
Phase Web and Multimedia
PO Box 85
Whitefish MT 59937
P (406) 862-2245
F (406) 862-0354
[EMAIL PROTECTED]
http://www.phase.ws
 

-Original Message-
From: Peter S. Hamlen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 11:09 AM
To: [EMAIL PROTECTED]
Subject: [JSTL] How can I use c:if to check the size of a list?


I'm a bright new convert to the beautiful world of JSTL,and I'm
struggling over one tricky issue.  We're paging over a resultset using
the c:forEach tag and specifying the start and end parameters.  I would
like to be able to create a "previous" and "next" button.

Obviously, if we're at the end of the list, we don't want to display the
"next" button.  So I'd like to do something like:


  >Next


But since "size" isn't a property, I can't do it.  Does anyone else have
a way of getting the size of a List via a property?

-Peter

PS (Yes, to those JSTL'ers out there, the c:url tag would be better to
use!)



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



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




OT: Yet another Persistence Survey

2003-02-12 Thread Vic Cekvenich
I am curious as to what is popular and working in larger production sites
(as opposed to still in development, or like less than 200 concurent 
users, or not working well in production or a theory as to what might 
work well)
for persistence:

 A. Hibernate
 B. Castor
 C. Roll Your Own Beans/ Custom DAO (RowSet or ResultSet) with no
OMG or O/R
 D. Ibatis
 E. One of http://db.apache.org  (please specify which) _
 F. EJB
 G. Other OMG  or O/R : __
 H: Other SQL based (not OMG or O/R) : 

- - - -
Answer:




If a bunch of people can respond about what is in production and 
working, it be real nice, please vote multiple times for each, I would 
like to see popularity.


Tia,
.V



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



[JSTL] How can I use c:if to check the size of a list?

2003-02-12 Thread Peter S. Hamlen
I'm a bright new convert to the beautiful world of JSTL,and I'm
struggling over one tricky issue.  We're paging over a resultset using
the c:forEach tag and specifying the start and end parameters.  I would
like to be able to create a "previous" and "next" button.

Obviously, if we're at the end of the list, we don't want to display the
"next" button.  So I'd like to do something like:


  >Next


But since "size" isn't a property, I can't do it.  Does anyone else have
a way of getting the size of a List via a property?

-Peter

PS (Yes, to those JSTL'ers out there, the c:url tag would be better to
use!)



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




Re: Simple question

2003-02-12 Thread David Graham
The form bean is stored in the session or request so your jsp can access it 
with:



David


From: julian green <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Simple question
Date: Wed, 12 Feb 2003 17:20:06 +

Sorry, from within a jsp.

Julian

David Graham wrote:


From where?



David




From: julian green <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: Struts Users Mailing List <[EMAIL PROTECTED]>
Subject: Simple question
Date: Wed, 12 Feb 2003 17:09:24 +

Is there a nifty way of accessing attributes of the form bean?

Julian


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




_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail


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




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



_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus


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



RE: Any good suggestions on implementing Security

2003-02-12 Thread Donald Dwoske

I didn't read this whole thread, so I might be duplicating
some info or not answering your question at all...  

Look at http://securityfilter.sourceforge.net .. very nifty.

Remember that open source is just that, you could use that as
a baseline and add your own extensions if you wish, or just
look at the code as a domain example.

-Original Message-
From: Mingfai Ma [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 11:25 AM
To: Struts Users Mailing List
Subject: RE: Any good suggestions on implementing Security



>
> Is there an area I can look that suggests how to implement this type of
> dynamic security with a servlet filter?
>

i think the best source of reference material is Chapter 12 (Security) of
the Servlet specification. There should be many other source of information
on web, just go to google to search with keywords like "declarative
authorization", "servlet security" etc.

I also like to read the nice docs from BEA. but be alert of any WebLogic
specific usage
http://e-docs.bea.com/wls/docs70/security/index.html

regards,
mingfai




> Sorry for the simple questions.
>
> It is a new area for us.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


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




  1   2   >