RE: nested tags - version problem

2002-09-17 Thread Lister, Tom (ANTS)

Hi
after some double checking the problem is with our build copying in the old
tld for struts 1.1
WebLogic seems to insist that all tags are valid for the application
regardless of whether we are using them 
in our pages.
performance
Our main master/detail style jounral entry seems to have too many tags now
and is very slow in displaying, even on subsequent (compiled) requests.
Traces should it to slow down on page display and not business components
Our suspect are garbage collection of tags or overhead from the try/catch
blocks
Any suggestions?

:-)
Tom Lister
* 020 7612 3030
* [EMAIL PROTECTED]


-Original Message-
From: Arron Bates [mailto:[EMAIL PROTECTED]]
Sent: 17 September 2002 15:31
To: Struts Users Mailing List
Subject: Re: nested tags - version problem


Do you mean the nested_tags_10.jar from my site?...

I just checked the tld, there's no mention of the EmptyTag or the
NestedEmptyTag that extends from it. It is in the Jar, but if it's not
in the tld file, it's not going to get called.

Other people are running off weblogic on the old jars also.

Arron.


On Tue, 2002-09-17 at 20:31, Lister, Tom (ANTS) wrote:
> we are using the nested tags library that is compatable with struts 1.0
> but it depends on but it still contains references to the 'EmptyTag',
which
> I think is 1.1
> this has only become apparent when moving from development using tomcat to
> deployment on web-logic
> 
> has anyone got this problem.
> 
> If it time for 1.1, then is it straight forward to run up our current
> application under 1.1 and what are the 
> pitfalls. we're coming to the end of a large development and don't really
> have time for major reworking of the application
> 
> :-)
> Tom Lister
> * 020 7612 3030
> * [EMAIL PROTECTED]
> 
> 
>
***
> This communication (including any attachments) contains confidential
information.  If you are not the intended recipient and you have received
this communication in error, you should destroy it without copying,
disclosing or otherwise using its contents.  Please notify the sender
immediately of the error.
> 
> Internet communications are not necessarily secure and may be intercepted
or changed after they are sent.  Abbey National Treasury Services plc does
not accept liability for any loss you may suffer as a result of interception
or any liability for such changes.  If you wish to confirm the origin or
content of this communication, please contact the sender by using an
alternative means of communication.
> 
> This communication does not create or modify any contract and, unless
otherwise stated, is not intended to be contractually binding.
> 
> Abbey National Treasury Services plc. Registered Office:  Abbey National
House, 2 Triton Square, Regents Place, London NW1 3AN.  Registered in
England under Company Registration Number: 2338548.  Regulated by the
Financial Services Authority (FSA).
>
***
> 
> 
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:




--
To unsubscribe, e-mail:

For additional commands, e-mail:



***
This communication (including any attachments) contains confidential information.  If 
you are not the intended recipient and you have received this communication in error, 
you should destroy it without copying, disclosing or otherwise using its contents.  
Please notify the sender immediately of the error.

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.  Abbey National Treasury Services plc does not accept liability 
for any loss you may suffer as a result of interception or any liability for such 
changes.  If you wish to confirm the origin or content of this communication, please 
contact the sender by using an alternative means of communication.

This communication does not create or modify any contract and, unless otherwise 
stated, is not intended to be contractually binding.

Abbey National Treasury Services plc. Registered Office:  Abbey National House, 2 
Triton Square, Regents Place, London NW1 3AN.  Registered in England under Company 
Registration Number: 2338548.  Regulated by the Financial Services Authority (FSA).
***


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




RE: UML representation of Struts Action

2002-09-17 Thread Mohan Radhakrishnan

Hi,
Use Case Driven Object Modeling with UML:
A Practical Approach

by Doug Rosenberg and Kendall Scott

is a good reference. Look at the Top 10 mistakes in sequence diagrams. It
says that we should show only interesting and important flows.
bye,
Mohan

-Original Message-
From: alex hun [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 9:32 PM
To: Struts Users Mailing List
Subject: UML representation of Struts Action



hi all,

Currently, my project team is working on the software architecture
document
and design document for our project.  However, we are uncertain of the way
the
how the various actions are to be represented in UML for the sequence
diagram in
other not to clutter the diagram too much.  Our peer project team uses
struts
config to symbolically represents the various actions.  This seems to be a
good
approach as certain action like the CRUD functions are more or less similar,
and
it makes no sense to have them represented as a seperate flow.  Moreover, a
good
overall view can be easily shown. Nonetheless, my team would still like to
know
if there are  any current standards or reference for representing the
various
actions in UML sequence diagram.  thanks.

regards
alex



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Resource bundles

2002-09-17 Thread Brijesh NK

IF the client want to see, he can see the .java  file also by decompling it




-Original Message-
From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 12:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Resource bundles


Hi,
Since the WAR will be deployed on the client side - the whole web
application runs in their intranet - the client can unzip and see what is
inside and change it. So we were thinking of putting the locale information
inside java files.
bye,
Mohan

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 10:45 PM
To: Struts Users Mailing List
Subject: Re: Resource bundles


If I understand your question, my answer is that the client cannot
change your property files.  They live under WEB-INF/classes.  Clients
may not access WEB-INF (or anything under it) unless you specifically
forward them there.  Even if you did that, you will wouldn't be changing
anything -- unless you gave them a way to upload a new copy of the file
or gave them a way to edit the file.

Does that help?  Did I totally miss the point of your question?

Mohan Radhakrishnan wrote:

>Hi,
> Is there any way to load resource bundles with the associated
>.properties files ? Though this seems to defeat the purpose, somebody here
>thinks that the client can change the text files. Is there a way to put
>these inside java files and have struts' tags access them?
>bye,
>Mohan
>

--
Eddie Bush




--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




RE: Resource bundles

2002-09-17 Thread Mohan Radhakrishnan

Hi,
Since the WAR will be deployed on the client side - the whole web
application runs in their intranet - the client can unzip and see what is
inside and change it. So we were thinking of putting the locale information
inside java files.
bye,
Mohan

-Original Message-
From: Eddie Bush [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 10:45 PM
To: Struts Users Mailing List
Subject: Re: Resource bundles


If I understand your question, my answer is that the client cannot 
change your property files.  They live under WEB-INF/classes.  Clients 
may not access WEB-INF (or anything under it) unless you specifically 
forward them there.  Even if you did that, you will wouldn't be changing 
anything -- unless you gave them a way to upload a new copy of the file 
or gave them a way to edit the file.

Does that help?  Did I totally miss the point of your question?

Mohan Radhakrishnan wrote:

>Hi,
> Is there any way to load resource bundles with the associated
>.properties files ? Though this seems to defeat the purpose, somebody here
>thinks that the client can change the text files. Is there a way to put
>these inside java files and have struts' tags access them?
>bye,
>Mohan
>

-- 
Eddie Bush




--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: [Tiles] getAsString only works once for a given value?

2002-09-17 Thread Gemes Tibor

2002. szeptember 18. 02:45 dátummal Martin Cooper ezt írtad:
> Never mind, I've figured this out. It's a bug in GetAttributeTag that only
> shows up when tag instances are being reused. It'll be fixed soon...

If so why is it working for me?

struts 1.1b & tomcat 4.1.10

Tib

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




Re: Urgent:Logic iterate in Tomcat4.1.0

2002-09-17 Thread Gemes Tibor

2002. szeptember 18. 06:14 dátummal [EMAIL PROTECTED] ezt írtad:
> The page connect compile in Tomcat4.10. It gives the follwoing message. I
> did not face this problem in Tomcat3.x

This is a tomcat related issue, but it is already fixed. Wait for the next 
tomcat release, or downgrade. 

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12517

Hth

Tib


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




[DispatchAction] How to populate FormBeans correctly?

2002-09-17 Thread Rademacher Tobias

Hi Folks,

I'm written a DispatchAction and written a methode that initialize a
FormBean that I use.
How do I populate so that the JSP-Taglibs cann access it? 

I tried following ideas:

1) Adding it as HttpSession attribute using the name of the FormBean as key
and the form instance as value. that failes


form = new UserForm();

... // some assings here 

request.getSession().setAttribute("user", form);

return mapping.findForward( ForwardSuite.USER_SHOW );


2) I added it to the request in the same manner as I did it with the session
before.

Is this correct or do I missunderstand the usage of DispatchAction? If
correct I guess I'm using the html taglibs incorreclty, am I?

Here some information:

scope: session
servlet-container: tomcat/catalina as plugin of jboss
tag used to accees: html:form

javax.servlet.jsp.JspException: Cannot retrieve definition for form bean
UserForm
at org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:897)
at
org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:543)
at org.apache.jsp.user$jsp._jspService(user$jsp.java:126)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:683)
at
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch
er.java:431)
at
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher
.java:355)
at
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10
14)
at
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces
sor.java:417)
at
org.apache.struts.action.RequestProcessor.processActionForward(RequestProces
sor.java:390)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:271)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
at
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)

Thank you for your help and patience.

Bye
Toby

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




Re: [Graphs]

2002-09-17 Thread Stefan

Hi Susmita,

did you had a look at Batik and Svg?
http://xml.apache.org/batik
You can use Batik within the Struts framework very comfortable in connection
with a jsp 1.2 taglib to create dynamic Charts etc in svg, jpg, png or tiff
format.
http://www.p8serv.de/werkstatt/view.do?nodeId=Werkzeug&con
tentId=BatikLib&sId=411

regards
Stefan

- Original Message -
From: "Susmita Pati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 9:14 PM
Subject: [Graphs]


> Hi All
>
> I wanted to have a chart displayed on my jsp page.
> Any ideas which is the best solution, i looked around the net found few
> things like Kava and stuff like that.
> Just wanted to know if anyone else has used. Any suggestions are welcome
>
> Thanks
> susmita
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: [Graphs]

2002-09-17 Thread Mohan Radhakrishnan

Hi,
 Ours is a report engine doing just that. Kava, Struts, tomcat, JSP's.
http://cewolf.sourceforge.net/ posted here seems to be good but we already
have a design separating the reporter engine from the rendering
engine(Kava). The struts tier is separate.
bye,
Mohan

-Original Message-
From: Susmita Pati [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 12:44 AM
To: 'Struts Users Mailing List'
Subject: [Graphs]


 Hi All

I wanted to have a chart displayed on my jsp page.
Any ideas which is the best solution, i looked around the net found few
things like Kava and stuff like that.
Just wanted to know if anyone else has used. Any suggestions are welcome

Thanks
susmita

--
To unsubscribe, e-mail:

For additional commands, e-mail:



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




Re: DataSource

2002-09-17 Thread Balaji Thirugnanam

Possible knock out's would be the classloaders. Which AppServer are you 
running on ?
-B

Silva, Alejandro wrote:

>Hi!
>
>Introduction
>-
>I'm trying to use the DataSource implementation in Struts so that I can have database 
>Connection pooling. However, every
>time I try and load the logon.jsp page I get an error :(
>
>Any thoughts?
>
>Details
>-
>Here's my struts-config.xml so far:
>
>
>
>"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" 
>"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
>
>
>
>
>
>
> value="false"/>
> value="Fixed Assets Development Database"/>
> value="sun.jdbc.odbc.JdbcOdbcDriver"/>
> value="4"/>
> value="2"/>
> value="webuser"/>
> value="jdbc:odbc:FADDDataSource"/>
> value="webuser"/>
>
>
>
>
>
>
>
>
>
>
>type="com.honeywell.fixedasset.util.GetSBUListForm"/>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>name="logonForm" scope="request"
>input="/logon.jsp">
>
>
>
>name="getSBUListForm"
>scope="request" validate="false">
>
>
>
>
>
>
>
>
>
>
>name="addAssetForm" scope="request"
>input="/add_asset_sbu.jsp">
>
>
>
>
>
>
>The error message I get is:
>
>Error: 500
>Location: /fadd/logon.jsp
>Internal Servlet Error:
>javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans 
>collection
>at 
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461)
>at 
>_0002flogon_0002ejsplogon_jsp_0._jspService(_0002flogon_0002ejsplogon_jsp_0.java:503)
>at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>(and more)
>
>
>Alejandro Silva
>Honeywell - GBS Mexico
>[EMAIL PROTECTED]
>+52 (444) 826-2577
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/



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




Re: ResourceBundle question

2002-09-17 Thread Balaji Thirugnanam

I beleive a collection or one of it'z implementation could help you to 
sort out your messages,
and you can pass this as a parameter,
-B

Ashish Kulkarni wrote:

>Hi,
>i have an applet where in i have to send a class with
>properties file, this properties file will haev only
>those values which the applet need to show,
>like the messages in applet must come from properties
>file, i dont want to send all the struts resoure
>bundle, or use some applet servlet communication to
>display messages in applets...
>so i need to build a different class with properties
>file
>Ashish
>--- micael <[EMAIL PROTECTED]> wrote:
>  
>
>>Why can you not use the message tag?  I don't get
>>that.  You should be able 
>>to use the message tag.  You don't seem to be upset
>>about that not 
>>working.  Why not?  It should work.
>>
>>At 11:03 AM 9/17/2002 -0700, you wrote:
>>
>>
>>>Hi,
>>>
>>>I want to get the ResourceBundle from sturts in my
>>>  
>>>
>>jsp
>>
>>
>>>and servlet,
>>>I need to get some messages from these resource to
>>>  
>>>
>>be
>>
>>
>>>displayed in jsp , but cannot use the >>key="index.title"/> tag,
>>>I tried using
>>>PropertyMessageResources bundle =
>>>  
>>>
>>(PropertyMessageResources)PropertyMessageResources.getMessageResources("ApplicationResource");
>>
>>
>>>and then used  bundle.getMessage("index.title");
>>>but this does not work, any suggestions
>>>
>>>
>>>=
>>>A$HI$H
>>>
>>>__
>>>Do you Yahoo!?
>>>Yahoo! News - Today's headlines
>>>http://news.yahoo.com
>>>
>>>--
>>>To unsubscribe, e-mail:  
>>>  
>>>
>>
>>
>>
>>>For additional commands, e-mail:
>>>  
>>>
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:  
>>
>>For additional commands, e-mail:
>>
>>
>>
>>
>
>
>=
>A$HI$H
>
>__
>Do you Yahoo!?
>Yahoo! News - Today's headlines
>http://news.yahoo.com
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>  
>

-- 
Your favorite stores, helpful shopping tools and great gift ideas. 
Experience the convenience of buying online with Shop@Netscape! 
http://shopnow.netscape.com/




Re: [Graphs]

2002-09-17 Thread Kalaiselvan

Hi Susmita

We are using  RChartServlet in XSL for generating graphs in our JSPs.
I dont have any experience in developing this graph. One of our old projects
my colleagues were using this rchart package for drawing the graph..

Hope this will helpfull for you.

Kalaiselvan.S

- Original Message -
From: "Susmita Pati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 12:44 AM
Subject: [Graphs]


> Hi All
>
> I wanted to have a chart displayed on my jsp page.
> Any ideas which is the best solution, i looked around the net found few
> things like Kava and stuff like that.
> Just wanted to know if anyone else has used. Any suggestions are welcome
>
> Thanks
> susmita
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>



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




Re: logic:iterate related issue

2002-09-17 Thread John Owen

You don't have to do anything in the jsp page, but you might need to use the 
type parameter in the  tag to tell the taglib what type each 
element in payments is.

Example :



Hope this helps,
John

>From: "Doug Dates" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: logic:iterate related issue
>Date: Tue, 17 Sep 2002 19:54:19 -0400
>
>Hello:
>
>I am developing payment history page(paymentHistory.jsp), The related 
>formBean is called HistoryForm.java, action class is HistoryAction.java
>
>In HistoryAction.java, I got all payments(type of Vector) for a user from 
>Database, I use historyForm.setPayments(PAYMENTS, payments) to set payments 
>into historyForm(it is a instance of HistoryForm.java).
>
>The following is part of my paymentHistory.jsp,
>
>
>..
>
>   
>
>
>My question is: do I need to get payments( in  the paymentHistory.jsp) 
>first before using it in the line "name="historyform" property="payments">. If I do not need to do anything 
>before using "payments" in iterate tag, that means the form knows what 
>"payments" is by itself. Is my understanding correct?
>
>Thank you for your help.
>
>Doug




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Dynamic addition of properties in form bean in Action Class

2002-09-17 Thread Parveen Kumar Hooda

Hi


One Jsp page in  my application needs to generate the fields(radia
buttons,text fields etc.)
dynamically based on some condition.
Also I want to validate these dynamic fields using the struts framework.
Is this type of scenario possible with struts ?
or any one has tried a similar scenario eariler can guide me.
Is there any approach to add properties to the form bean at run time?

Any ponter in this direction will be appreciated.



Pary



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




Re: catalina-ant.jar newbie

2002-09-17 Thread Eddie Bush

If you're talking about the Struts-EL taglib from David Karr, I must say 
you're making it harder than it need be made :-)

Here's what I did in the build.properties file:

- declared eddie.lib:  eddie.lib=/path/to/my/webapp/WEB-INF/lib
- replaced the beginning of (nearly) all property declarations David 
had with ${eddie.lib} so I had things like ${eddie.lib}/this-archive.jar
- had to rename one of the JARs it was looking for (don't remember 
which).  I just changed the name here in build.properties.
- commented out the stuff to run the tests on Tomcat 4

I *think* that's all I did.  From there, once the JAR was built, I just 
copied the JAR file to my lib directory and the TLDs to my /WEB-INF/tld 
directory (I know, I know - everyone else keeps them in /WEB-INF/, but I 
don't like cluttered directories).

... oh ... and I added a declaration for the taglib in my web.xml ;-)  I 
totally forgot about that part.

micael wrote:

> I am a pretty new newbie at the ant game.  I want to put the struts-el 
> into TOMCAT_HOME/webapps/raven/.  I am using Tomcat 4.1 and Struts 
> 1.0.2.  I tried to build the struts-el outside tomcat, but it needs 
> the TaskDeploy in the catalina-ant.jar.  Can someone give me a quick 
> pointer?
>
>
> Micael 


-- 
Eddie Bush




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




Difference Model1 and Model2

2002-09-17 Thread Kalaiselvan

Can any one explain me the exact difference between the Model 1 and Model 2  MVC  
frame work..

Thanx in Advance..

Kalaiselvan.S



Urgent:Logic iterate in Tomcat4.1.0

2002-09-17 Thread MerrilG

Dear All,
There seems to be  a problem in how Tomcat4.1.0 implements the 
logic iterate method. Follwoing is the piece of code. It has a logic 
iterate tag inside another logic iterate tag.



// blah blah

 

 <%=indent.getIndentBerthDetails().getBerthNumber()%>



// blah blah



The page connect compile in Tomcat4.10. It gives the follwoing message. I 
did not face this problem in Tomcat3.x


An error occurred at line: 546 in the jsp file: 
/jsp/generalops/iPort_GCO_MaintainIndents.jsp

Generated servlet error:
D:\Tomcat 
4.1\work\Standalone\localhost\iPortMarine\jsp\generalops\iPort_GCO_MaintainIndents_jsp.java:320:
 
cannot resolve symbol
symbol  : variable indent 
location: class org.apache.jsp.iPort_GCO_MaintainIndents_jsp
 com.ibsplc.iport.generalops.indents.vo.IndentDetails _jspx_indent_1 = 
indent;
  ^



An error occurred at line: 549 in the jsp file: 
/jsp/generalops/iPort_GCO_MaintainIndents.jsp

Generated servlet error:
D:\Tomcat 
4.1\work\Standalone\localhost\iPortMarine\jsp\generalops\iPort_GCO_MaintainIndents_jsp.java:336:
 
cannot resolve symbol
symbol  : variable indent 
location: class org.apache.jsp.iPort_GCO_MaintainIndents_jsp
  indent = 
(com.ibsplc.iport.generalops.indents.vo.IndentDetails) 
pageContext.findAttribute("indent");


Can someone explain why it is so and if Tomcat4.1.0 implementation in such 
am I doing things right. Yes I can use java code to tackle this but I wish 
to keep the jsp clean.


regards
Merrill





Re: content management ideas?

2002-09-17 Thread V. Cekvenich

One Struts content managment is basicPortal.sf.net.
V.

Hajratwala, Nayan (N.) wrote:
> Unfortunately,  I don't believe this is a very practical approach.
> 
> A content editor may inadvertantly make a change to a tag without even
> noticing it (search & replace, fat-finger, etc).  Then after they upload
> their change to the server and spend a few hours trying to figure out why it
> is displaying an error, they call you, the developer to debug the problem.
> You then compare the previous version (you are using source control, right?)
> with the modified version to see what the problem is... yada-yada.
> 
> We use an approach of having a template which contains all of our "base"
> html .. header, footer, etc.  The content editors can create whatever they
> want (we encourage valid XHTML, but usually don't get anything for our
> efforts), and upload it to the test servers.  Our framework then pulls the
> content into the template via a custom tag (using java.io.*).
> 
> Hope this helps... Happy to provide more details if you need.
> 
> ---
> - Nayan Hajratwala
> - Chikli Consulting LLC
> - http://www.chikli.com
> 
> 
> -Original Message-
> From: Kenny Smith [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 4:01 PM
> To: Struts Users Mailing List
> Subject: RE: content management ideas?
> 
> 
> Hi Bryan,
> 
> ..but that's what JSP is designed to be... html developer friendly. Once you
> create the page with all of the struts tags, they should just be able to
> code the html and content around the JSP. I know it's not exactly what you
> were expecting, but my suggestion would be to let them modify the JSP, just
> instruct them that they are not supposed to touch the JSP tags.
> 
> Kenny Smith
> JournalScape.com
> 
> -Original Message-
> From: Bryan Field-Elliot [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 12, 2002 1:09 PM
> To: Struts Users Mailing List
> Subject: content management ideas?
> 
> 
> I was wondering how people handle frequent content updates with
> Struts/JSP? At my company, I'm building a site for which much of the
> "static" content (including things like the CSS stylesheet) will
> probably undergo frequent revision. I'd like to open it up for easier
> access, such as via FrontPage, so that I (the programmer) am not in the
> middle of such changes. But the site is very dynamic, with almost all
> page fetches resulting in a database query and dynamic content being
> built. So the site needs to be JSP-based, and I don't want the
> aforementioned "Frontpagers" modifying the raw JSP pages.
> 
> Opinions appreciated on how this compromise can best be reached,
> 
> Bryan
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 




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




JSF on Oct. 8th.

2002-09-17 Thread V. Cekvenich


http://developer.java.sun.com/developer/community/chat/

More:
http://www.mail-archive.com/mvc-programmers%40basebeans.com/msg00231.html
http://mavnet.sourceforge.net/

Vic




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




Re: DataSource

2002-09-17 Thread David Graham

The error message doesn't indicate anything wrong with the datasource.  what 
happens when you leave that part out of the config file?

Dave


>From: "Silva, Alejandro" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: DataSource
>Date: Tue, 17 Sep 2002 16:50:13 -0700
>
>Hi!
>
>Introduction
>-
>I'm trying to use the DataSource implementation in Struts so that I can 
>have database Connection pooling. However, every
>time I try and load the logon.jsp page I get an error :(
>
>Any thoughts?
>
>Details
>-
>Here's my struts-config.xml so far:
>
>
>
> "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
> "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
>
>
>
>
>
> 
>   value="false"/>
>   value="Fixed Assets Development Database"/>
>   value="sun.jdbc.odbc.JdbcOdbcDriver"/>
>   value="4"/>
>   value="2"/>
>   value="webuser"/>
>   value="jdbc:odbc:FADDDataSource"/>
>   value="webuser"/>
> 
>
>
>
>
>
> 
> type="com.honeywell.fixedasset.LogonForm"/>
>
> 
> type="com.honeywell.fixedasset.util.GetSBUListForm"/>
>
> 
> type="com.honeywell.fixedasset.add.AddAssetForm"/>
>
>
>
>
>
> 
> 
> 
>
>
>
>
>
> 
> 
> 
> 
>
> 
> name="logonForm" scope="request"
>input="/logon.jsp">
> 
>
> 
> type="com.honeywell.fixedasset.util.GetSBUListAction" name="getSBUListForm"
>scope="request" validate="false">
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> type="com.honeywell.fixedasset.add.AddAssetAction" name="addAssetForm" 
>scope="request"
>input="/add_asset_sbu.jsp">
> 
> 
>
>
>
>
>The error message I get is:
>
>Error: 500
>Location: /fadd/logon.jsp
>Internal Servlet Error:
>javax.servlet.ServletException: Cannot find ActionMappings or 
>ActionFormBeans collection
>   at 
>org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461)
>   at 
>_0002flogon_0002ejsplogon_jsp_0._jspService(_0002flogon_0002ejsplogon_jsp_0.java:503)
>   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>(and more)
>
>
>Alejandro Silva
>Honeywell - GBS Mexico
>[EMAIL PROTECTED]
>+52 (444) 826-2577
>
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




blank action in html:form (SOLVED)

2002-09-17 Thread Eric Cifreo

Hello all,

I posted a question recently regarding a problem with a jsp using the
 tag producing some insufficient HTML.

Well, I've figured out the problem.  When you can run the same codebase on
several machines but get different results, you start looking at the minor
version numbers.  It turns out that my combination of Struts 1.02, Tomcat
4.03, and JDK 1.4.0_02 with a jsp containing 
was producing the HTML .  No
action to submit to.

Now that I've downgraded to JDK 1.4.0-b92, everything works again.
Just in case someone else encounters somethign similar.  It may be a FAQ to
avoid mixing these versions, but if so, I wasn't aware of it

Eric Cifreo
Austin, TX


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




Re: [Graphs]

2002-09-17 Thread K.Viswanathan

Take a look at

http://cewolf.sourceforge.net/

Chreers!
Vishy

- Original Message -
From: "Susmita Pati" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, September 18, 2002 12:44 AM
Subject: [Graphs]


> Hi All
>
> I wanted to have a chart displayed on my jsp page.
> Any ideas which is the best solution, i looked around the net found few
> things like Kava and stuff like that.
> Just wanted to know if anyone else has used. Any suggestions are welcome
>
> Thanks
> susmita
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>


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




IP Address

2002-09-17 Thread Cohan, Sean


How do I get the referrer's IP address in my action class?  Thanks.

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




RE: I thought I had this figured out...

2002-09-17 Thread James Mitchell

All you should have to do is change the tld to allow the styleId to be used
in your jsp.

It should work fine after that.

Hope that helps.

James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Will Etson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 8:04 PM
> To: [EMAIL PROTECTED]
> Subject: RE: I thought I had this figured out...
>
>
> Created bug 12754.
>
> Actually its a long story, but we use WinRunner to record and
> execute test scripts. WinRunner refuses to reliably click image
> inputs with rollovers and our struts application. Other ASP web
> applications work just fine. So in comparing the two, I found
> that the ASP application sets name="submit" and id="submit". The
> struts html:image tag doesn't allow styleId to be set and name is
> set to the form property which we aren't using. I hope that
> styleId fixes it, otherwise I need to look at subclassing or
> reimplementing the image tag.
>
> Will Etson
>
> >>> "James Mitchell" <[EMAIL PROTECTED]> 09/17/02 11:46AM >>>
>
> What a class 'has' and what it 'can use' are different subjects (as you
> probably know).
>
> Are you sure you don't need the styleClass= attribute?
>
> While the HTML spec allows for the id attribute:
> http://www.w3.org/TR/REC-html40/sgml/dtd.html#coreattrs
>
> Unless I'm way off hereI'm not sure why it wasn't added.
> Please submit
> it as a bug into bugzilla and I'm sure Craig or someone will validate and
> fix.
>
>
> James Mitchell
> Software Engineer\Struts Evangelist
> Struts-Atlanta, the "Open Minded Developer Network"
> http://www.open-tools.org/struts-atlanta
>
>
>
>
> > -Original Message-
> > From: Will Etson [ mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 1:35 PM
> > To: [EMAIL PROTECTED]
> > Subject: I thought I had this figured out...
> >
> >
> > Does any one know why html:image tag does not have a styleId
> > attribute in the .tld? I did some home work and html:submit has
> > this property and ImageTag inherits from SubmitTag. What am I
> > missing here?
> >
> > Will Etson
> >
>


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




Re: Struts vs Jade

2002-09-17 Thread V. Cekvenich

http://www.salmonllc.com/website/Jsp/vanity/JadeWhitePaper.jsp?nav=5&NavBarId=JadeWhitePaper

Jade looks like what I expected of JSF.
Looke very nice.
V.

Miguel Angel Mulero Martinez wrote:
> I have seen in the Jade homepage, a comparative between Struts and Salmon:
> 
> http://www.salmonllc.com/website/Jsp/vanity/JadeWhitePaper.jsp?nav=5&NavBarI
> d=JadeWhitePaper
> 
> I've seen the videos of Salmon/Jade and it is interesting, but I think it is
> more focused to visual development.
> 
> What do you think of Jade?




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




Re: JSF on Oct. 8th.

2002-09-17 Thread V. Cekvenich


> http://developer.java.sun.com/developer/community/chat/
> 
> More:
> http://www.mail-archive.com/mvc-programmers%40basebeans.com/msg00231.html
> http://mavnet.sourceforge.net/
> 
> Vic
> 




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




Re: default value for html:select Help!

2002-09-17 Thread Michael Lee

Thanks, but what I meant was set the default option chosen in the
html:options to be a value in the current html:form.

>- Original Message -
>From: <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Tuesday, September 17, 2002 4:42 PM
>Subject: RE: default value for html:select
>
>
> >
> > Answer to #1)
> >
> > 
> > Select a company
> >  > property="orglevel2id"  labelProperty="orglevel2name"/>
> >   
> >
> > The above sets the "Select a company" as the default.  I think if you
> > wanted the default to be set in the collection you would just set it as
> > the first entry when you make the collection.  Someone tell me if I am
> > wrong on this one...
> >
> >
> > Answer to #2)
> > To display alternating colors, a bunch of us like:
> > http://edhill.its.uiowa.edu/display/
> >
> >
> >
> >
> > -Original Message-
> > From: mleejr [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 4:29 PM
> > To: struts-user
> > Subject: default value for html:select
> >
> >
> > I have one MAIN question. I don't want to have to repost a question. I
> > try searching for answers to my questions on the website but it always
> > forwards me to google. Are these emails not cached for searching?
> >
> > Anyway, 2 questions;
> > 1) How do I set a default value in an html:select on an options list? I
> > need the default state to be the one loaded from the struts form.
> >
> > 
> >   
> > 
> >
> >
> > 2) I do a query. I put the result in  the logic:iterate below. I want to
> > alternate colors. I've seen this before but I couldn't do a search
> > because of the aforementioned problem. Thanks
> >
> >   
> >> scope="request">
> >   
> > 
> > 
> > .
> >   
> > 
> >   
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
>
> > For additional commands, e-mail:
>
> >




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: I thought I had this figured out...

2002-09-17 Thread Will Etson

Created bug 12754.

Actually its a long story, but we use WinRunner to record and execute test scripts. 
WinRunner refuses to reliably click image inputs with rollovers and our struts 
application. Other ASP web applications work just fine. So in comparing the two, I 
found that the ASP application sets name="submit" and id="submit". The struts 
html:image tag doesn't allow styleId to be set and name is set to the form property 
which we aren't using. I hope that styleId fixes it, otherwise I need to look at 
subclassing or reimplementing the image tag.

Will Etson

>>> "James Mitchell" <[EMAIL PROTECTED]> 09/17/02 11:46AM >>> 

What a class 'has' and what it 'can use' are different subjects (as you 
probably know). 

Are you sure you don't need the styleClass= attribute? 

While the HTML spec allows for the id attribute: 
http://www.w3.org/TR/REC-html40/sgml/dtd.html#coreattrs 

Unless I'm way off hereI'm not sure why it wasn't added. Please submit 
it as a bug into bugzilla and I'm sure Craig or someone will validate and 
fix. 


James Mitchell 
Software Engineer\Struts Evangelist 
Struts-Atlanta, the "Open Minded Developer Network" 
http://www.open-tools.org/struts-atlanta 




> -Original Message- 
> From: Will Etson [ mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, September 17, 2002 1:35 PM 
> To: [EMAIL PROTECTED] 
> Subject: I thought I had this figured out... 
> 
> 
> Does any one know why html:image tag does not have a styleId 
> attribute in the .tld? I did some home work and html:submit has 
> this property and ImageTag inherits from SubmitTag. What am I 
> missing here? 
> 
> Will Etson 
> 



RE: [Tiles] getAsString only works once for a given value?

2002-09-17 Thread Martin Cooper

Never mind, I've figured this out. It's a bug in GetAttributeTag that only
shows up when tag instances are being reused. It'll be fixed soon...

--
Martin Cooper


> -Original Message-
> From: Martin Cooper [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 4:49 PM
> To: '[EMAIL PROTECTED]'
> Subject: [Tiles] getAsString only works once for a given value?
> 
> 
> Here's one for the Tiles experts among you.
> 
> If I try to use the value of a 'put' twice using 
> 'getAsString', the second
> attempt causes an exception to be thrown. This doesn't sound right, so
> either I'm doing something stupid, or it's a bug (or weird 
> limitation?).
> 
> Here's my layout:
> 
> - 8< -
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> 
> 
> 
> - 8< -
> 
> And here's my page:
> 
> - 8< -
> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
> 
> 
>   
>   
> 
> - 8< -
> 
> Note that the layout uses 'attr1' twice. The first 
> 'getAsString' tag works,
> but the second (identical) one causes this:
> 
> - 8< -
> [ServletException in:testLayout.jsp] Error - tag.getAsString 
> : attribute
> 'null' not found in context. Check tag syntax'
> - 8< -
> 
> If I change the second getAsString to refer to attr2, it works.
> 
> Anyone know what's going on, or better, know how I can get it to work?
> 
> TIA.
> 
> --
> Martin Cooper
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:




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




RE: [STRUTS] tag for...

2002-09-17 Thread Karr, David

> -Original Message-
> From: kiuma [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 1:12 AM
> To: Struts Users Mailing List
> Subject: Re: [STRUTS] tag for...
> 
> After a good time configuring and searching packages I have the libs, 
> but not the docs.

Uh, yeah, well, there is the README.  That provides background on the
library and its purpose.  The "struts-html-el.xml" (and other) files contain
the tag documentation that will eventually go into a form like Struts
provides, but I couldn't figure out how best to do that.

In general, however, there isn't a lot to understand.  If you know how to
use the Struts tag library, and the JSTL tag library, that's almost all
there is to know.

> I'll test it later.

Note that Struts-EL has a "strutsel-exercise-taglib" application, which is
like "struts-exercise-taglib", except it uses a combination of Struts-EL and
JSTL tags, and it has an additional feature of being able to see the JSP
source for each test.

Also note that Struts-EL has a relatively large set of Cactus-based unit
tests.  There's still quite a few tags untested by that process, but there
are still quite a few covered there (even several which were a pain to write
the test for).

> Ps.: is it a good policy the use of so many external libs ?

It's the nature of building layered architectures.  If you look at the
actual code for the Struts-EL tags, you'll see that it is really a very
simple layer on top of Struts and the JSTL EL engine.  You get BOTH kinds of
music, for only a nickel :) .

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




logic:iterate related issue

2002-09-17 Thread Doug Dates

Hello:

I am developing payment history page(paymentHistory.jsp), The related formBean is 
called HistoryForm.java, action class is HistoryAction.java

In HistoryAction.java, I got all payments(type of Vector) for a user from Database, I 
use historyForm.setPayments(PAYMENTS, payments) to set payments into historyForm(it is 
a instance of HistoryForm.java).

The following is part of my paymentHistory.jsp, 


..

  


My question is: do I need to get payments( in  the paymentHistory.jsp) first before 
using it in the line ". If I do not need to do anything before using "payments" in 
iterate tag, that means the form knows what "payments" is by itself. Is my 
understanding correct?

Thank you for your help.

Doug 



Re: ResourceBundle question

2002-09-17 Thread Ashish Kulkarni

Hi,
i have an applet where in i have to send a class with
properties file, this properties file will haev only
those values which the applet need to show,
like the messages in applet must come from properties
file, i dont want to send all the struts resoure
bundle, or use some applet servlet communication to
display messages in applets...
so i need to build a different class with properties
file
Ashish
--- micael <[EMAIL PROTECTED]> wrote:
> Why can you not use the message tag?  I don't get
> that.  You should be able 
> to use the message tag.  You don't seem to be upset
> about that not 
> working.  Why not?  It should work.
> 
> At 11:03 AM 9/17/2002 -0700, you wrote:
> >Hi,
> >
> >I want to get the ResourceBundle from sturts in my
> jsp
> >and servlet,
> >I need to get some messages from these resource to
> be
> >displayed in jsp , but cannot use the  >key="index.title"/> tag,
> >I tried using
> >PropertyMessageResources bundle =
>
>(PropertyMessageResources)PropertyMessageResources.getMessageResources("ApplicationResource");
> >and then used  bundle.getMessage("index.title");
> >but this does not work, any suggestions
> >
> >
> >=
> >A$HI$H
> >
> >__
> >Do you Yahoo!?
> >Yahoo! News - Today's headlines
> >http://news.yahoo.com
> >
> >--
> >To unsubscribe, e-mail:  
> 
> >For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


=
A$HI$H

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

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




DataSource

2002-09-17 Thread Silva, Alejandro

Hi!

Introduction
-
I'm trying to use the DataSource implementation in Struts so that I can have database 
Connection pooling. However, every
time I try and load the logon.jsp page I get an error :(

Any thoughts?

Details
-
Here's my struts-config.xml so far:



http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>





































































The error message I get is:

Error: 500
Location: /fadd/logon.jsp
Internal Servlet Error:
javax.servlet.ServletException: Cannot find ActionMappings or ActionFormBeans 
collection
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:461)
at 
_0002flogon_0002ejsplogon_jsp_0._jspService(_0002flogon_0002ejsplogon_jsp_0.java:503)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
(and more)


Alejandro Silva
Honeywell - GBS Mexico
[EMAIL PROTECTED]
+52 (444) 826-2577


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




[Tiles] getAsString only works once for a given value?

2002-09-17 Thread Martin Cooper

Here's one for the Tiles experts among you.

If I try to use the value of a 'put' twice using 'getAsString', the second
attempt causes an exception to be thrown. This doesn't sound right, so
either I'm doing something stupid, or it's a bug (or weird limitation?).

Here's my layout:

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



- 8< -

And here's my page:

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


  
  

- 8< -

Note that the layout uses 'attr1' twice. The first 'getAsString' tag works,
but the second (identical) one causes this:

- 8< -
[ServletException in:testLayout.jsp] Error - tag.getAsString : attribute
'null' not found in context. Check tag syntax'
- 8< -

If I change the second getAsString to refer to attr2, it works.

Anyone know what's going on, or better, know how I can get it to work?

TIA.

--
Martin Cooper


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




RE: java.lang.IllegalStateException: Configuration is frozen

2002-09-17 Thread Sharon Tam


It's not my codes, so I don't know why he was doing that!  I could only guess he wants 
to redirect the user back to the page if there's any error.  I am trying to uncomment 
that line and see if anything breaks.
 Martin Cooper wrote:Yes, you'll have to change your current code. But why did you 
need to call
setInput() in the first place?

--
Martin Cooper


> -Original Message-
> From: Sharon Tam [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 4:39 PM
> To: Struts Users Mailing List
> Subject: RE: java.lang.IllegalStateException: Configuration is frozen
> 
> 
> 
> Martin, those are the old codes. I am trying to migrating to 
> struts1.1 without any code changes. So according to what you 
> said, I will have to modify the existing codes then, is it right?
> Martin Cooper wrote:You can't call ActionMapping.setInput() 
> on a mapping which was read as part
> of the Struts configuration.
> 
> Why are you trying to set the 'input' attribute yourself? What are you
> ultimately trying to do?
> 
> --
> Martin Cooper
> 
> 
> > -Original Message-
> > From: Sharon Tam [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 3:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: java.lang.IllegalStateException: Configuration is frozen
> > 
> > 
> > 
> > Hi, in struts1.1, can we call mapping.setInput()? My 
> > application throws java.lang.IllegalStateException: 
> > Configuration is frozen when I tried to call 
> > mapping.setInput("") at the end of my validate() in the 
> > ActionForm. However, the codes work in struts1.0.2.
> > 
> > 
> > 
> > Thanks in advance!
> > 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! News - Today's headlines
> > 
> 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> 


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



-
Do you Yahoo!?
Yahoo! News - Today's headlines


RE: [STRUTS] tag for...

2002-09-17 Thread Karr, David

> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Monday, September 16, 2002 8:57 PM
> To: Struts Users Mailing List
> Subject: Re: [STRUTS] tag for...
> 
> Oh - one note:  Once you unpack the archive -- either before or after 
> you configure the build.properties (you'll need to do that 
> too), you'll 
> need to make a directory before you build the library.  It is:
> 
> /conf/share
> 
> For some odd reason that share directory didn't get created.  
> I didn't 
> bother looking at the build file.  I just made the directory 
> and tried 
> to build again -- and it worked!

I haven't looked at this in detail yet, but I believe that directory was
unimportant to the Struts-EL build, so it doesn't create it, but apparently
something I missed checks for its existence, even if it never uses the
contents.  I imagine I must have created the directory in my local copy, but
it was empty, so it didn't go into the tar file (I didn't ask to store empty
directories, which was probably a mistake).

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




RE: java.lang.IllegalStateException: Configuration is frozen

2002-09-17 Thread Martin Cooper

Yes, you'll have to change your current code. But why did you need to call
setInput() in the first place?

--
Martin Cooper


> -Original Message-
> From: Sharon Tam [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 4:39 PM
> To: Struts Users Mailing List
> Subject: RE: java.lang.IllegalStateException: Configuration is frozen
> 
> 
> 
> Martin, those are the old codes.  I am trying to migrating to 
> struts1.1 without any code changes.  So according to what you 
> said, I will have to modify the existing codes then, is it right?
>  Martin Cooper wrote:You can't call ActionMapping.setInput() 
> on a mapping which was read as part
> of the Struts configuration.
> 
> Why are you trying to set the 'input' attribute yourself? What are you
> ultimately trying to do?
> 
> --
> Martin Cooper
> 
> 
> > -Original Message-
> > From: Sharon Tam [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 3:51 PM
> > To: [EMAIL PROTECTED]
> > Subject: java.lang.IllegalStateException: Configuration is frozen
> > 
> > 
> > 
> > Hi, in struts1.1, can we call mapping.setInput()? My 
> > application throws java.lang.IllegalStateException: 
> > Configuration is frozen when I tried to call 
> > mapping.setInput("") at the end of my validate() in the 
> > ActionForm. However, the codes work in struts1.0.2.
> > 
> > 
> > 
> > Thanks in advance!
> > 
> > 
> > 
> > 
> > -
> > Do you Yahoo!?
> > Yahoo! News - Today's headlines
> > 
> 
> 
> --
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> 


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




RE: java.lang.IllegalStateException: Configuration is frozen

2002-09-17 Thread Sharon Tam


Martin, those are the old codes.  I am trying to migrating to struts1.1 without any 
code changes.  So according to what you said, I will have to modify the existing codes 
then, is it right?
 Martin Cooper wrote:You can't call ActionMapping.setInput() on a mapping which was 
read as part
of the Struts configuration.

Why are you trying to set the 'input' attribute yourself? What are you
ultimately trying to do?

--
Martin Cooper


> -Original Message-
> From: Sharon Tam [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 3:51 PM
> To: [EMAIL PROTECTED]
> Subject: java.lang.IllegalStateException: Configuration is frozen
> 
> 
> 
> Hi, in struts1.1, can we call mapping.setInput()? My 
> application throws java.lang.IllegalStateException: 
> Configuration is frozen when I tried to call 
> mapping.setInput("") at the end of my validate() in the 
> ActionForm. However, the codes work in struts1.0.2.
> 
> 
> 
> Thanks in advance!
> 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> 


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



-
Do you Yahoo!?
Yahoo! News - Today's headlines


RE: how to change locale

2002-09-17 Thread David Graham

Thanks.


>From: "Gideon, Thomas" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: how to change locale
>Date: Tue, 17 Sep 2002 17:58:44 -0400
>
>As a side note to those interested, who may not already know (those already
>using JSTL please ignore  d^:); the JSTL formatting taglib already exposes
>the ability to dynamically change your locale on the fly.
>
> > -Original Message-
> > From: David Graham [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 5:53 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: how to change locale
> >
> >
> > That's how I do it as well.  If you want to let the user
> > change the locale
> > themselves with a select box you might check out the custom
> > tag I posted to
> > bugzilla:
> >
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12648
> >
> > Shameless self promotion, I know, but I do think it's useful.
> >
> > Dave
> >
> >
> > >From: "Gideon, Thomas" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List"
> > <[EMAIL PROTECTED]>
> > >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> > >Subject: RE: how to change locale
> > >Date: Tue, 17 Sep 2002 16:38:30 -0400
> > >
> > >We use something like
> > >
> > >request.getSession().setAttribute(Action.LOCALE_KEY, locale);
> > >
> > >within the logon action of our application, and that seems to work.
> > >
> > >Thomas Gideon
> > >Sr. Software Developer
> > >B2eMarkets
> > >
> > >301.230.2236  Tel.
> > >301.230.2248  Fax.
> > >[EMAIL PROTECTED]
> > >www.B2eMarkets.com
> > >
> > >
> > > > -Original Message-
> > > > From: Dom [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, September 17, 2002 4:43 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: how to change locale
> > > >
> > > >
> > > > Hi
> > > >
> > > > Using Struts 1.0.2, I need to be able to change the form
> > > > messages locale
> > >
> > >--
> > >To unsubscribe, e-mail:
> > >
> > >For additional commands, e-mail:
> > >
> >
> >
> >
> >
> > _
> > Send and receive Hotmail on your mobile device: http://mobile.msn.com
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




catalina-ant.jar newbie

2002-09-17 Thread micael

I am a pretty new newbie at the ant game.  I want to put the struts-el into 
TOMCAT_HOME/webapps/raven/.  I am using Tomcat 4.1 and Struts 1.0.2.  I 
tried to build the struts-el outside tomcat, but it needs the TaskDeploy in 
the catalina-ant.jar.  Can someone give me a quick pointer?


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any dislosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



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




RE: Specifying target for html:rewrite

2002-09-17 Thread Challa, Prasad V

I got it working. Thank you.

Prasad.

-Original Message-
From: Challa, Prasad V [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 5:35 PM
To: '[EMAIL PROTECTED]'
Subject: Specifying target for html:rewrite


I am using struts 1.0 and I want to be able to specify the target for a
forward action. I am using html:rewrite to forward the action now but, I
don't think I can specify "target" with this. Is there any alternative to
this or any other way to achive this. My Javascript function is like this:

  

 

Thank you,
Prasad.

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




RE: java.lang.IllegalStateException: Configuration is frozen

2002-09-17 Thread Martin Cooper

You can't call ActionMapping.setInput() on a mapping which was read as part
of the Struts configuration.

Why are you trying to set the 'input' attribute yourself? What are you
ultimately trying to do?

--
Martin Cooper


> -Original Message-
> From: Sharon Tam [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 3:51 PM
> To: [EMAIL PROTECTED]
> Subject: java.lang.IllegalStateException: Configuration is frozen
> 
> 
> 
> Hi, in struts1.1, can we call mapping.setInput()?  My 
> application throws java.lang.IllegalStateException: 
> Configuration is frozen when I tried to call 
> mapping.setInput("") at the end of my validate() in the 
> ActionForm.  However, the codes work in struts1.0.2.
> 
>  
> 
> Thanks in advance!
> 
> 
> 
> 
> -
> Do you Yahoo!?
> Yahoo! News - Today's headlines
> 


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




java.lang.IllegalStateException: Configuration is frozen

2002-09-17 Thread Sharon Tam


Hi, in struts1.1, can we call mapping.setInput()?  My application throws 
java.lang.IllegalStateException: Configuration is frozen when I tried to call 
mapping.setInput("") at the end of my validate() in the ActionForm.  However, the 
codes work in struts1.0.2.

 

Thanks in advance!




-
Do you Yahoo!?
Yahoo! News - Today's headlines


Specifying target for html:rewrite

2002-09-17 Thread Challa, Prasad V

I am using struts 1.0 and I want to be able to specify the target for a
forward action. I am using html:rewrite to forward the action now but, I
don't think I can specify "target" with this. Is there any alternative to
this or any other way to achive this. My Javascript function is like this:

  

 

Thank you,
Prasad.

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




RE: newbie include question

2002-09-17 Thread Gideon, Thomas

> Yes, I goofed on that one - sorry.

Heh, it happens, even to the best of us.  d^;

> I tend to advocate as clean of a solution as possible.  That's why I 
> tend to try and shove the JSTL at folks.  I can't begin to 
> say how much 
> easier it can make a person's life.

I agree completely, but this is a Strut's list, so I try not to assume
anything beyond that, or qualify any suggestions that require JSTL.

> Not everyone can use the JSTL (requires Servlet/JSP spec 2.3/1.2), 
> that's true, but many of us can -- and I like to make sure 
> people know 
> that it's out there and usable -- and works!

Exactly!  (^:  However, I think we need to be mindful of the varying degree
of experience and expertise of the list membership.  JSTL is great because
it allows more powerful script-like functionality without the syntactically
distressing scriptlets, but not everyone using Struts is necessarily going
to be a programmer and may like Struts-style tags, which tend to work more
monolithically, whereas JSTL tends to work more atomically.  Perhaps also
suggesting people looking for a more 4GL-like environment also check out
Java Server Faces if they are not inclined to use Struts.

> Sorry for my imprecision.  You're absolutely right.  Thanks for the 
> correction.  I just abhor seeing folks given examples that involve 
> scriplets.  I mean, really, we tell folks all the time how 
> wrong it is 
> to use scriplets and then we turn around and given them 
> solutions that 
> involve them?  Not me!

Imprecision is one of my pet peeves.  Lo the day when someone else catches
me being imprecise.  I would advise being a bit more open about scriptlets,
too, though.  While for the less seasoned or more design oriented JSP author
they should be avoided, you do lose some of the type safety involved with
scriptlets and, more particularly, runtime expressions.  While I generally
do not advocate scriptlets, I do try to remember their place and when they
are a fit solution, like bridging Struts to the jsp: taglib, or when there
are performance or other low level technical issues which might demand them,
I do not go out of my way to avoid them, either.  Beware the single tool
mentality.  (^;

Thomas Gideon
Sr. Software Developer
B2eMarkets

301.230.2236  Tel.
301.230.2248  Fax.
[EMAIL PROTECTED]
www.B2eMarkets.com


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




Re: newbie include question

2002-09-17 Thread Eddie Bush

Yes, I goofed on that one - sorry.

I tend to advocate as clean of a solution as possible.  That's why I 
tend to try and shove the JSTL at folks.  I can't begin to say how much 
easier it can make a person's life.

Not everyone can use the JSTL (requires Servlet/JSP spec 2.3/1.2), 
that's true, but many of us can -- and I like to make sure people know 
that it's out there and usable -- and works!

Sorry for my imprecision.  You're absolutely right.  Thanks for the 
correction.  I just abhor seeing folks given examples that involve 
scriplets.  I mean, really, we tell folks all the time how wrong it is 
to use scriplets and then we turn around and given them solutions that 
involve them?  Not me!

Gideon, Thomas wrote:

>Let's be explicit, here.  A scripting variable is a variable that actually
>gets declared in the JSP page implementation class, as a local variable
>within the main processing method of that class.  It is *not* the same thing
>as a page scoped attribute.
>
>Scriptlets rely on the former and require that custom tags wishing to expose
>such implement the usually optional TagExtraInfo class.  JSTL and Struts
>rely on the later and tend to be, IMHO, cleaner and more flexible.  To make
>a Struts or JSTL scoped variable available to a scriptlet, you *must*
>declare a variable so that it will end up being declared as a local variable
>in the underlying parsed class and somehow retrieve it from the appropriate
>scope and assign it to the declared variable or it will *not* be available
>to a runtime expression.
>
>For the record, I agree that scriptlets are nasty and it would be better if
>in this case you used an EL capable tag instead of , like
>, however I was assuming the original poster only had the
> tag available.
>
>Thomas Gideon
>Sr. Software Developer
>B2eMarkets
>
>301.230.2236  Tel.
>301.230.2248  Fax.
>[EMAIL PROTECTED]
>www.B2eMarkets.com
>

-- 
Eddie Bush




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




html:text numerical only

2002-09-17 Thread Simon Meaden

Hi,
I looked in the archive and cant find an answer to this. I am trying to limit
an html:text box to numerical keypresses only ,using Javascript if there is
no better solution. I dont want to reload the page after every keypress.

I haven't used JavaScript or in fact struts much but I have this code.





called by this.



unfortunately it doesn't seem to even call the function. Any idea what I am
doing wrong.

Thanks in advance.
Simon Meaden

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




RE: how to change locale

2002-09-17 Thread Gideon, Thomas

As a side note to those interested, who may not already know (those already
using JSTL please ignore  d^:); the JSTL formatting taglib already exposes
the ability to dynamically change your locale on the fly.

> -Original Message-
> From: David Graham [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 5:53 PM
> To: [EMAIL PROTECTED]
> Subject: RE: how to change locale
> 
> 
> That's how I do it as well.  If you want to let the user 
> change the locale 
> themselves with a select box you might check out the custom 
> tag I posted to 
> bugzilla:
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12648
> 
> Shameless self promotion, I know, but I do think it's useful.
> 
> Dave
> 
> 
> >From: "Gideon, Thomas" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" 
> <[EMAIL PROTECTED]>
> >To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
> >Subject: RE: how to change locale
> >Date: Tue, 17 Sep 2002 16:38:30 -0400
> >
> >We use something like
> >
> >request.getSession().setAttribute(Action.LOCALE_KEY, locale);
> >
> >within the logon action of our application, and that seems to work.
> >
> >Thomas Gideon
> >Sr. Software Developer
> >B2eMarkets
> >
> >301.230.2236  Tel.
> >301.230.2248  Fax.
> >[EMAIL PROTECTED]
> >www.B2eMarkets.com
> >
> >
> > > -Original Message-
> > > From: Dom [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 17, 2002 4:43 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: how to change locale
> > >
> > >
> > > Hi
> > >
> > > Using Struts 1.0.2, I need to be able to change the form
> > > messages locale
> >
> >--
> >To unsubscribe, e-mail:   
> >
> >For additional commands, e-mail: 
> >
> 
> 
> 
> 
> _
> Send and receive Hotmail on your mobile device: http://mobile.msn.com
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: newbie include question

2002-09-17 Thread Gideon, Thomas

Let's be explicit, here.  A scripting variable is a variable that actually
gets declared in the JSP page implementation class, as a local variable
within the main processing method of that class.  It is *not* the same thing
as a page scoped attribute.

Scriptlets rely on the former and require that custom tags wishing to expose
such implement the usually optional TagExtraInfo class.  JSTL and Struts
rely on the later and tend to be, IMHO, cleaner and more flexible.  To make
a Struts or JSTL scoped variable available to a scriptlet, you *must*
declare a variable so that it will end up being declared as a local variable
in the underlying parsed class and somehow retrieve it from the appropriate
scope and assign it to the declared variable or it will *not* be available
to a runtime expression.

For the record, I agree that scriptlets are nasty and it would be better if
in this case you used an EL capable tag instead of , like
, however I was assuming the original poster only had the
 tag available.

Thomas Gideon
Sr. Software Developer
B2eMarkets

301.230.2236  Tel.
301.230.2248  Fax.
[EMAIL PROTECTED]
www.B2eMarkets.com



> -Original Message-
> From: Eddie Bush [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 5:52 PM
> To: Struts Users Mailing List
> Subject: Re: newbie include question
> 
> 
> Or you could use  or  ... OR you 
> could use 
> 
> There are a myriad of ways to introduce scripting variables without 
> introducing scriplets into your code-base.
> 
> Gideon, Thomas wrote:
> 
> >>-Original Message-
> >>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> >>
> >>I think you could use the syntax:
> >>
> >> 
> >>
> >>
> >>
> >
> >This will work if variable is a *scripting* variable 
> already.  If it is a
> >form bean, then you may have to add a scriptlet, first, like:
> >
> ><%
> >Object variable = pageContext.findAttribute("variable");
> >%>
> >
> >otherwise your runtime expression may cause a JSP compilation error
> >complaining about an undefined symbol, variable.
> >
> >Thomas Gideon
> >Sr. Software Developer
> >B2eMarkets
> >
> >301.230.2236  Tel.
> >301.230.2248  Fax.
> >[EMAIL PROTECTED]
> >www.B2eMarkets.com
> >
> 
> -- 
> Eddie Bush
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: newbie include question

2002-09-17 Thread mtStruts

>
>Maybe there's a more elegant solution :)
>

Yes - Martin's ...



[EMAIL PROTECTED] wrote:

>O I C...
>
>Well I think that you may need to build the string first as you wrote below:
>
><% String path = ..build path here.. ; %> 
>
>then:
>
>
>
>Maybe there's a more elegant solution :)
>
>
>"Andy Kriger" <[EMAIL PROTECTED]> wrote:
>
>>Sorry - I wasn't clear enough I my explanation. I want to use the dynamic
>>info to form the path attribute.
>>
>>e.g.
>>path="/page.jsp"
>>
>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, September 17, 2002 17:30
>>To: "Struts Users Mailing List"
>>Subject: RE: newbie include question
>>
>>
>>Andy,
>>
>>I think you could use the syntax:
>>
>>
>>    
>>
>>
>>"Andy Kriger" <[EMAIL PROTECTED]> wrote:
>>
>>>I have information in a session variable that I would like to use as part
>>of
>>>a jsp:include (or a bean:include if that'll solve the problem). Here's the
>>>problem I am running into, how do you pass the dynamic info to the
>>>jsp:include path attribute?
>>>
>>>" /> is not
>>>valid - but i figure somebody must've encountered this problem before and
>>>come up with a solution
>>>
>>>something like a nested include
>>>
>>>
>>>
>>>
>>>is this possible?
>>>
>>>thx
>>>andy
>>>
>>>
>>>
>>>--
>>>To unsubscribe, e-mail:  
>>
>>>For additional commands, e-mail:
>>
>>>
>>>
>>
>>__
>>The NEW Netscape 7.0 browser is now available. Upgrade now!
>>http://channels.netscape.com/ns/browsers/download.jsp
>>
>>Get your own FREE, personal Netscape Mail account today at
>>http://webmail.netscape.com/
>>
>>--
>>To unsubscribe, e-mail:
>>
>>For additional commands, e-mail:
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>For additional commands, e-mail: 
>>
>>
>
>__
>The NEW Netscape 7.0 browser is now available. Upgrade now! 
>http://channels.netscape.com/ns/browsers/download.jsp 
>
>Get your own FREE, personal Netscape Mail account today at 
>http://webmail.netscape.com/
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

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

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

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




Re: Need help on html:multibox

2002-09-17 Thread Sharon Tam


Thank you so much, Eddie.  It was because I have an extra method getSelectedItems(int 
i) besides getSelectedItems().
 Eddie Bush wrote:

I have no clue. I believe Ted Husted covers that topic in his tips 
though: http://husted.com/struts/tips

Sharon Tam wrote:

>Hi,
>
>Does anyone know why the multibox selected values are not populated into the formbean 
>after I submit the form? Everything works with struts 1.0.2, but not with struts 1.1. 
>
> 
>
>Thanks in advance!
>

-- 
Eddie Bush



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



-
Do you Yahoo!?
Yahoo! News - Today's headlines


[taglib] David M. Karr's Struts-EL taglib contribution

2002-09-17 Thread Eddie Bush

If you aren't using this already, I highly suggest you start.  It will 
make your life *so* much easier!  I finally got around to actually using 
it today (built it last night and installed it), and I can tell you 
first-hand that (at least the couple of  tags I have used) it 
works *beautifully*!

Thanks, David!

   - Did I peak your curiosity?  Good!  Do this:
   - Go to http://issues.apache.org/bugzilla/show_bug.cgi?id=12365
   - Scroll down to the bottom
   - Click the link that says "created an attachment (id=2954)"
   - Save it as struts-el.tar.gz
   - unpack (tar xzf struts-el.tar.gz)
   - cd struts-el
   - edit build.properties to fit your environment
   - mkdir conf/share
   - ant
   - cp target/library/struts-el.jar /path/to/your/WEB-INF/lib
   - cp target/library/struts-*-el.tld /path/to/your/WEB-INF

Now, doesn't life look a lot more rosey?  I knew you'd like it!

-- 
Eddie Bush  




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




RE: newbie include question

2002-09-17 Thread mtStruts

O I C...

Well I think that you may need to build the string first as you wrote below:

<% String path = ..build path here.. ; %> 

then:



Maybe there's a more elegant solution :)


"Andy Kriger" <[EMAIL PROTECTED]> wrote:

>Sorry - I wasn't clear enough I my explanation. I want to use the dynamic
>info to form the path attribute.
>
>e.g.
>path="/page.jsp"
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 17, 2002 17:30
>To: "Struts Users Mailing List"
>Subject: RE: newbie include question
>
>
>Andy,
>
>I think you could use the syntax:
>
>
>    
>
>
>"Andy Kriger" <[EMAIL PROTECTED]> wrote:
>
>>I have information in a session variable that I would like to use as part
>of
>>a jsp:include (or a bean:include if that'll solve the problem). Here's the
>>problem I am running into, how do you pass the dynamic info to the
>>jsp:include path attribute?
>>
>>" /> is not
>>valid - but i figure somebody must've encountered this problem before and
>>come up with a solution
>>
>>something like a nested include
>>
>>
>>
>>
>>is this possible?
>>
>>thx
>>andy
>>
>>
>>
>>--
>>To unsubscribe, e-mail:  
>
>>For additional commands, e-mail:
>
>>
>>
>
>__
>The NEW Netscape 7.0 browser is now available. Upgrade now!
>http://channels.netscape.com/ns/browsers/download.jsp
>
>Get your own FREE, personal Netscape Mail account today at
>http://webmail.netscape.com/
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

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

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

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




RE: how to change locale

2002-09-17 Thread David Graham

That's how I do it as well.  If you want to let the user change the locale 
themselves with a select box you might check out the custom tag I posted to 
bugzilla:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12648

Shameless self promotion, I know, but I do think it's useful.

Dave


>From: "Gideon, Thomas" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: 'Struts Users Mailing List' <[EMAIL PROTECTED]>
>Subject: RE: how to change locale
>Date: Tue, 17 Sep 2002 16:38:30 -0400
>
>We use something like
>
>request.getSession().setAttribute(Action.LOCALE_KEY, locale);
>
>within the logon action of our application, and that seems to work.
>
>Thomas Gideon
>Sr. Software Developer
>B2eMarkets
>
>301.230.2236  Tel.
>301.230.2248  Fax.
>[EMAIL PROTECTED]
>www.B2eMarkets.com
>
>
> > -Original Message-
> > From: Dom [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 4:43 PM
> > To: [EMAIL PROTECTED]
> > Subject: how to change locale
> >
> >
> > Hi
> >
> > Using Struts 1.0.2, I need to be able to change the form
> > messages locale
>
>--
>To unsubscribe, e-mail:   
>
>For additional commands, e-mail: 
>




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


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




Re: newbie include question

2002-09-17 Thread Eddie Bush

Or you could use  or  ... OR you could use 

There are a myriad of ways to introduce scripting variables without 
introducing scriplets into your code-base.

Gideon, Thomas wrote:

>>-Original Message-
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>
>>I think you could use the syntax:
>>
>> 
>>
>>
>>
>
>This will work if variable is a *scripting* variable already.  If it is a
>form bean, then you may have to add a scriptlet, first, like:
>
><%
>Object variable = pageContext.findAttribute("variable");
>%>
>
>otherwise your runtime expression may cause a JSP compilation error
>complaining about an undefined symbol, variable.
>
>Thomas Gideon
>Sr. Software Developer
>B2eMarkets
>
>301.230.2236  Tel.
>301.230.2248  Fax.
>[EMAIL PROTECTED]
>www.B2eMarkets.com
>

-- 
Eddie Bush




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




RE: newbie include question

2002-09-17 Thread Martin Cooper

Then you'll need something like this:



unless you're using JSTL, in which case you could use this:



which is somewhat cleaner, to say the least.

--
Martin Cooper


> -Original Message-
> From: Andy Kriger [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 2:46 PM
> To: Struts Users Mailing List
> Subject: RE: newbie include question
> 
> 
> Sorry - I wasn't clear enough I my explanation. I want to use 
> the dynamic
> info to form the path attribute.
> 
> e.g.
> path="/page.jsp"
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 17:30
> To: "Struts Users Mailing List"
> Subject: RE: newbie include question
> 
> 
> Andy,
> 
> I think you could use the syntax:
> 
> 
> 
> 
> 
> "Andy Kriger" <[EMAIL PROTECTED]> wrote:
> 
> >I have information in a session variable that I would like 
> to use as part
> of
> >a jsp:include (or a bean:include if that'll solve the 
> problem). Here's the
> >problem I am running into, how do you pass the dynamic info to the
> >jsp:include path attribute?
> >
> > />" /> is not
> >valid - but i figure somebody must've encountered this 
> problem before and
> >come up with a solution
> >
> >something like a nested include
> >
> >
> >
> >
> >is this possible?
> >
> >thx
> >andy
> >
> >
> >
> >--
> >To unsubscribe, e-mail:  
> 
> >For additional commands, e-mail:
> 
> >
> >
> 
> __
> The NEW Netscape 7.0 browser is now available. Upgrade now!
> http://channels.netscape.com/ns/browsers/download.jsp
> 
> Get your own FREE, personal Netscape Mail account today at
> http://webmail.netscape.com/
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   

For additional commands, e-mail:




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




Re: Roles without LDAP

2002-09-17 Thread micael

There are many ways to do this.  Where do you want the check to 
be?  Thought of using a filter?  Your requirements would determine the best 
way to do this.  Filters are a natural, of course.

At 02:49 PM 9/17/2002 -0400, you wrote:
>Anyway to use Roles without LDAP??
>
>Can I just save some object in the session??
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




RE: [STRUTS USERS ID] [THIEF!!!]

2002-09-17 Thread Chappell, Simon P

I was thinking more of Struts Special Forces!

Imagine: Craig parachuting in to fix your code or Mark and Eddie infiltrating your 
computer room, dressed all in black, toting heavy artillery (50 caliber O'Reilly 
books! :-)

Now I think I need to go home!

Simon

>-Original Message-
>From: micael [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 17, 2002 4:38 PM
>To: Struts Users Mailing List
>Subject: Re: [STRUTS USERS ID] [THIEF!!!]
>
>
>Are we going to have hall monitors?
>
>At 12:41 PM 9/17/2002 -0500, you wrote:
>>Suggested order:
>>- Papa-Strut (note he is a committer and exclude him from 
>the next list)
>>- Committers first (Alpabetical)
>>- Non-Committers (Alphabetical)
>>
>>Chappell, Simon P wrote:
>>
>>>Now, now, I enhanced and built upon your idea. That's the Apache way 
>>>right?! :-)
>>>
>>>I plan to publish anyone who cares enough to send me a 
>decent picture and 
>>>a bio. I will blatently discriminate in favour of people 
>who's names I 
>>>recognise (and who aren't mean to me! ;-) first and then add 
>the less 
>>>well known (to me) second.
>>>
>>>In terms of listing on the page, I plan to list Craig first, 
>followed by 
>>>such hallowed folks as Ted and Chuck and then perhaps the 
>rest of us in 
>>>alphabetical sequence.
>>>
>>>Thoughts and comments please.
>>>
>>>Simon
>>>
>>>-
>>>Simon P. Chappell [EMAIL PROTECTED]
>>>Java Programming Specialist  www.landsend.com
>>>Lands' End, Inc.   (608) 935-4526
>>
>>--
>>Eddie Bush
>>
>>
>>
>>
>>--
>>To unsubscribe, e-mail:   

>For additional commands, e-mail: 
>



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


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




RE: newbie include question

2002-09-17 Thread Andy Kriger

Sorry - I wasn't clear enough I my explanation. I want to use the dynamic
info to form the path attribute.

e.g.
path="/page.jsp"

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 17:30
To: "Struts Users Mailing List"
Subject: RE: newbie include question


Andy,

I think you could use the syntax:





"Andy Kriger" <[EMAIL PROTECTED]> wrote:

>I have information in a session variable that I would like to use as part
of
>a jsp:include (or a bean:include if that'll solve the problem). Here's the
>problem I am running into, how do you pass the dynamic info to the
>jsp:include path attribute?
>
>" /> is not
>valid - but i figure somebody must've encountered this problem before and
>come up with a solution
>
>something like a nested include
>
>
>
>
>is this possible?
>
>thx
>andy
>
>
>
>--
>To unsubscribe, e-mail:  

>For additional commands, e-mail:

>
>

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

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

--
To unsubscribe, e-mail:

For additional commands, e-mail:




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




Re: [STRUTS USERS ID] [THIEF!!!]

2002-09-17 Thread micael

Are we going to have hall monitors?

At 12:41 PM 9/17/2002 -0500, you wrote:
>Suggested order:
>- Papa-Strut (note he is a committer and exclude him from the next list)
>- Committers first (Alpabetical)
>- Non-Committers (Alphabetical)
>
>Chappell, Simon P wrote:
>
>>Now, now, I enhanced and built upon your idea. That's the Apache way 
>>right?! :-)
>>
>>I plan to publish anyone who cares enough to send me a decent picture and 
>>a bio. I will blatently discriminate in favour of people who's names I 
>>recognise (and who aren't mean to me! ;-) first and then add the less 
>>well known (to me) second.
>>
>>In terms of listing on the page, I plan to list Craig first, followed by 
>>such hallowed folks as Ted and Chuck and then perhaps the rest of us in 
>>alphabetical sequence.
>>
>>Thoughts and comments please.
>>
>>Simon
>>
>>-
>>Simon P. Chappell [EMAIL PROTECTED]
>>Java Programming Specialist  www.landsend.com
>>Lands' End, Inc.   (608) 935-4526
>
>--
>Eddie Bush
>
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>



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




RE: newbie include question

2002-09-17 Thread Gideon, Thomas

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> 
> I think you could use the syntax:
> 
>  
> 
> 

This will work if variable is a *scripting* variable already.  If it is a
form bean, then you may have to add a scriptlet, first, like:

<%
Object variable = pageContext.findAttribute("variable");
%>

otherwise your runtime expression may cause a JSP compilation error
complaining about an undefined symbol, variable.

Thomas Gideon
Sr. Software Developer
B2eMarkets

301.230.2236  Tel.
301.230.2248  Fax.
[EMAIL PROTECTED]
www.B2eMarkets.com


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




RE: newbie include question

2002-09-17 Thread mtStruts

Andy, 

I think you could use the syntax:

 



"Andy Kriger" <[EMAIL PROTECTED]> wrote:

>I have information in a session variable that I would like to use as part of
>a jsp:include (or a bean:include if that'll solve the problem). Here's the
>problem I am running into, how do you pass the dynamic info to the
>jsp:include path attribute?
>
>" /> is not
>valid - but i figure somebody must've encountered this problem before and
>come up with a solution
>
>something like a nested include
>
>
>
>
>is this possible?
>
>thx
>andy
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>
>

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

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

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




Re: Bean with HashMap in JSP

2002-09-17 Thread Eddie Bush

Go with standards - use the JSTL.  It's easy, it's standard ... and it 
keeps you away from scriplets (which are just *evil* I tell you ... *evil*!)

You can get the JSTL at http://jakarta.apache.org/taglibs
- Select "JSTL" or "Standard" taglib from left (it's toward the top 
- easy to spot)
- You'll find a link to download the JSTL.  Click it.
- unpack the distribution and copy the required files to your 
application
- Find the link regarding Sun's JSTL site and go there
- Bookmark this page
- There's a really good refrerence PDF here - you might want to 
snag a copy
- There are (I think) 3 articles which go over using the JSTL 
here that are useful to get you started
- You may be interested in an EL-enabled version of the struts taglibs
- Go to http://issues.apache.org/bugzilla/show_bug.cgi?id=12365
- Scroll down to the bottom
- Click the link that says "created an attachment (id=2954)"
- Save it as struts-el.tar.gz
- unpack (tar xzf struts-el.tar.gz)
- cd struts-el
- edit build.properties to fit your environment
- mkdir conf/share
- ant
- cp target/library/struts-el.jar /path/to/your/WEB-INF/lib
- cp target/library/struts-*-el.tld /path/to/your/WEB-INF
= You're setup for using the JSTL and have EL-enabled Struts tags. 
 Enjoy.

Knoernschild, Kirk W wrote:

>All,
>
>I have a display bean that has within it a variable of type HashMap.  >From within 
>the JSP, instead of iterating over the values of the HashMap, I *need* to access the 
>individual values based on the key. Anyone have any pointers on how to do this?
>
>I'm using STRUTS v1.0.
>
>thanx.
>
>kirk
>
-- 
Eddie Bush




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




Re: ResourceBundle question

2002-09-17 Thread micael

Why can you not use the message tag?  I don't get that.  You should be able 
to use the message tag.  You don't seem to be upset about that not 
working.  Why not?  It should work.

At 11:03 AM 9/17/2002 -0700, you wrote:
>Hi,
>
>I want to get the ResourceBundle from sturts in my jsp
>and servlet,
>I need to get some messages from these resource to be
>displayed in jsp , but cannot use the key="index.title"/> tag,
>I tried using
>PropertyMessageResources bundle =
>(PropertyMessageResources)PropertyMessageResources.getMessageResources("ApplicationResource");
>and then used  bundle.getMessage("index.title");
>but this does not work, any suggestions
>
>
>=
>A$HI$H
>
>__
>Do you Yahoo!?
>Yahoo! News - Today's headlines
>http://news.yahoo.com
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 



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




newbie include question

2002-09-17 Thread Andy Kriger

I have information in a session variable that I would like to use as part of
a jsp:include (or a bean:include if that'll solve the problem). Here's the
problem I am running into, how do you pass the dynamic info to the
jsp:include path attribute?

" /> is not
valid - but i figure somebody must've encountered this problem before and
come up with a solution

something like a nested include




is this possible?

thx
andy



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




Re: Bean with HashMap in JSP

2002-09-17 Thread Michael Lee

Use this
<%  pageContext.setAttribute("allUserRoles",
Lookup.getData(Constant.USER.USER_ROLES_DESCRIPTIONS)); %>


  
  


- Original Message -
From: "Gideon, Thomas" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 4:49 PM
Subject: RE: Bean with HashMap in JSP


> > -Original Message-
> > From: Knoernschild, Kirk W [mailto:[EMAIL PROTECTED]]
> >
> > I have a display bean that has within it a variable of type
> > HashMap.  From within the JSP, instead of iterating over the
> > values of the HashMap, I *need* to access the individual
> > values based on the key. Anyone have any pointers on how to do this?
>
> Have you thought about installing JSTL 1.0?  The EL syntax to do this with
> the  tag is pretty straightforward.
>
> Thomas Gideon
> Sr. Software Developer
> B2eMarkets
>
> 301.230.2236  Tel.
> 301.230.2248  Fax.
> [EMAIL PROTECTED]
> www.B2eMarkets.com
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: default value for html:select

2002-09-17 Thread Michael Lee

Thanks, but what I meant was set the default option chosen in the
html:options to be a value in the current html:form.

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 4:42 PM
Subject: RE: default value for html:select


>
> Answer to #1)
>
> 
> Select a company
>  property="orglevel2id"  labelProperty="orglevel2name"/>
>   
>
> The above sets the "Select a company" as the default.  I think if you
> wanted the default to be set in the collection you would just set it as
> the first entry when you make the collection.  Someone tell me if I am
> wrong on this one...
>
>
> Answer to #2)
> To display alternating colors, a bunch of us like:
> http://edhill.its.uiowa.edu/display/
>
>
>
>
> -Original Message-
> From: mleejr [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 4:29 PM
> To: struts-user
> Subject: default value for html:select
>
>
> I have one MAIN question. I don't want to have to repost a question. I
> try searching for answers to my questions on the website but it always
> forwards me to google. Are these emails not cached for searching?
>
> Anyway, 2 questions;
> 1) How do I set a default value in an html:select on an options list? I
> need the default state to be the one loaded from the struts form.
>
> 
>   
> 
>
>
> 2) I do a query. I put the result in  the logic:iterate below. I want to
> alternate colors. I've seen this before but I couldn't do a search
> because of the aforementioned problem. Thanks
>
>   
>scope="request">
>   
> 
> 
> .
>   
> 
>   
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




RE: Bean with HashMap in JSP

2002-09-17 Thread Gideon, Thomas

> -Original Message-
> From: Knoernschild, Kirk W [mailto:[EMAIL PROTECTED]]
> 
> I have a display bean that has within it a variable of type 
> HashMap.  From within the JSP, instead of iterating over the 
> values of the HashMap, I *need* to access the individual 
> values based on the key. Anyone have any pointers on how to do this?

Have you thought about installing JSTL 1.0?  The EL syntax to do this with
the  tag is pretty straightforward.

Thomas Gideon
Sr. Software Developer
B2eMarkets

301.230.2236  Tel.
301.230.2248  Fax.
[EMAIL PROTECTED]
www.B2eMarkets.com


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




Bean with HashMap in JSP

2002-09-17 Thread Knoernschild, Kirk W

All,

I have a display bean that has within it a variable of type HashMap.  >From within the 
JSP, instead of iterating over the values of the HashMap, I *need* to access the 
individual values based on the key. Anyone have any pointers on how to do this?

I'm using STRUTS v1.0.

thanx.

kirk

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




RE: default value for html:select

2002-09-17 Thread wbchmura


Answer to #1)


Select a company

  

The above sets the "Select a company" as the default.  I think if you 
wanted the default to be set in the collection you would just set it as 
the first entry when you make the collection.  Someone tell me if I am 
wrong on this one...


Answer to #2)
To display alternating colors, a bunch of us like:
http://edhill.its.uiowa.edu/display/




-Original Message-
From: mleejr [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 4:29 PM
To: struts-user
Subject: default value for html:select


I have one MAIN question. I don't want to have to repost a question. I 
try searching for answers to my questions on the website but it always 
forwards me to google. Are these emails not cached for searching?

Anyway, 2 questions;
1) How do I set a default value in an html:select on an options list? I 
need the default state to be the one loaded from the struts form.


  



2) I do a query. I put the result in  the logic:iterate below. I want to 
alternate colors. I've seen this before but I couldn't do a search 
because of the aforementioned problem. Thanks

  
  
  


.
  

  



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




Re: Tile and parameters use...

2002-09-17 Thread mtStruts

Cedric and/or any Tiles Users, 

I've looked through the documentation and have an idea of how to do what I want, but 
I'm not quite there yet... can you advise?

I have a main document definition:

  



  

I want to pass parameters to the menu.jsp, so I can define the menu as follows:

  


  

Now when I go to define each of my application pages based on my main page definition, 
how can I pass the menu parameters? This is where I lose it..

  

  

On the menu.jsp, I want to do an  or  call 
which gets the "section" and "subsection" parameters.

Please help :)
Marcella


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

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

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




RE: how to change locale

2002-09-17 Thread Gideon, Thomas

We use something like

request.getSession().setAttribute(Action.LOCALE_KEY, locale);

within the logon action of our application, and that seems to work.

Thomas Gideon
Sr. Software Developer
B2eMarkets

301.230.2236  Tel.
301.230.2248  Fax.
[EMAIL PROTECTED]
www.B2eMarkets.com


> -Original Message-
> From: Dom [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 4:43 PM
> To: [EMAIL PROTECTED]
> Subject: how to change locale
> 
> 
> Hi
> 
> Using Struts 1.0.2, I need to be able to change the form 
> messages locale

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




beer4all under resin

2002-09-17 Thread a b

hi, has anyone got the beer4all demo working under
resin2.1.4, it keeps giving me a nosuchmethod error,
works under tomcat though

thanks

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

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




default value for html:select

2002-09-17 Thread Michael Lee

I have one MAIN question. I don't want to have to repost a question. I try searching 
for answers to my questions on the website but it always forwards me to google. Are 
these emails not cached for searching?

Anyway, 2 questions;
1) How do I set a default value in an html:select on an options list? I need the 
default state to be the one loaded from the struts form.


  



2) I do a query. I put the result in  the logic:iterate below. I want to alternate 
colors. I've seen this before but I couldn't do a search because of the aforementioned 
problem. Thanks

  
  
  


.
  

  




Struts and Weblogic errors [again].

2002-09-17 Thread Cristian Cardenas

I posted this yesterday but I'm going to try again, may be somebody missed
it and can help me:

I'm using Struts 1.1 Beta 2 in Weblogic 6.1 sp1 and sometimes I have the
following errors in Weblogic log.
When this errors occur the Web app doesn't work properly

action: Info - TilesPlugin : factory already exists. No new
creation.>
 Could not deserialize context attribute>
java.io.NotSerializableException:
org.apache.struts.tiles.TilesRequestProcessor
at java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
..

.action: Tiles definition factory found for request processor ''.>
java.lang.NullPointerException
at
org.apache.struts.tiles.definition.ComponentDefinitionsFactoryWrapper.getDef
inition(ComponentDefinitionsFactoryWrapper.java:56)

I know TilesRequestProcessor and RequestProcessor classes don't implements
Serializable interface.
Does this error appear only using Weblogic or it's produced by another App.
Servers also?

Any ideas?
Thanks a lot.
Cristian.



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




how to change locale

2002-09-17 Thread Dom

Hi

Using Struts 1.0.2, I need to be able to change the form messages locale

I tried to reload the action and use :

locale = new Locale(language, country);
setLocale(request, locale);
messages = getResources();

but the locale doesn't change.

If I insert after setLocale()

((ActionServlet) servlet).initApplication();

the locale change and everything is ok.

This seems a rather hard solution. Ain't there a more elegant one ?

Dom



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




Re: refreshing application properties

2002-09-17 Thread Michael Lee

Just peruse the javadocs for ResourceBundle (and similar classes). You will
see static finals all over the place. It has to be re-class loaded is my
guess. Just redeploy the WAR.
Mike

- Original Message -
From: "Eddie Bush" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, September 17, 2002 12:07 PM
Subject: Re: refreshing application properties


> That doesn't just go for MessageResources -- it goes for all of your
> entire web-app config.  Once the configuration has been frozen, any
> attempt to modify it will meet with an exception being thrown.
>
> Regards,
>
> Eddie
>
> James Mitchell wrote:
>
> >I could be wrong, but every thing I've seen tell me that you can't do
this
> >with the current MessageResources API.  There is no call for reloading or
> >even modifying values.
> >
> >I've written a DBMessageResources, and working on XMLMessageResources,
there
> >seems to be an cache issue, so (currently) I am not able to modify a
value
> >in the database and see the change on the web page, unless the session
> >expires and the user gets a new one.
> >
> >You'll probably want to roll your own and add it as a plugin.but then
> >this will require changes to your code (undesireable from a component
add-on
> >standpoint).
> >
> >Good luck and let me know if you find anything.
> >
> >
> >
> >James Mitchell
> >Software Engineer\Struts Evangelist
> >Struts-Atlanta, the "Open Minded Developer Network"
> >http://www.open-tools.org/struts-atlanta
> >
>
> --
> Eddie Bush
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>

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




Re: Problem using Tomcat & IIS integration and *.do

2002-09-17 Thread Eddie Bush

... I'm not familiar with how you configure Tomcat/IIS, however I know 
that, for Tomcat, you'd have to explicitly map *.do to be handled by 
Tomcat.  Is this true for IIS?  Did you map it?

kellybsb wrote:

>Hi All,
>I have tomcat 4.0.1, IIS installed on NT4. I properly installed the 
>redirector in IIS since it is seeing my jsp pages fine. But when I 
>call my action using *.do path it gives me an error:
>
>"HTTP Error 405
>405 Method Not Allowed
>
>The method specified in the Request Line is not allowed for the 
>resource identified by the request. Please ensure that you have the 
>proper MIME type set up for the resource you are requesting.
>
>Please contact the server's administrator if this problem persists."
>
>I know it is happening because it doesn't know how to redirect *.do 
>to tomcat. I tried to add *.do in uriworkermap.properties, but I 
>believe I didn't use the right way.
>
>Can anyone tell me what should I do? Please answer to my email 
>because I'm not in the list.
>
>Thanks in advance,
>
>Kelly Prudente Pereira
>Analista de Sistemas - NDS
>[EMAIL PROTECTED] 
>Fóton® Informática e Serviços
>Fone: (61) 328 5060 R.: 221
>

-- 
Eddie Bush




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




RE: Design Q: Multiple Form Beans for one HTML form/JPS page?

2002-09-17 Thread Edgar Dollin

You could use a new form which has the other forms as properties (ArrayLists
with one element) and use the 'nested' interface.

Edgar

-Original Message-
From: Vipul Sagare [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 4:02 PM
To: Struts Users Mailing List
Subject: Design Q: Multiple Form Beans for one HTML form/JPS page?


Question:

  I have case where one JSP page expects different type of inputs
leading to a scenario where I have multiple form beans on one jsp page.
 How would I deal with this issue?
Example:
JSP page: form has fields1. MealOptions 2. DrinksOption 3. Want
Insurance?
First two fields are in one FormBean while third one is in different
form.


Thank you

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Design Q: Multiple Form Beans for one HTML form/JPS page?

2002-09-17 Thread Vipul Sagare

Question:

  I have case where one JSP page expects different type of inputs
leading to a scenario where I have multiple form beans on one jsp page.
 How would I deal with this issue?
Example:
JSP page: form has fields1. MealOptions 2. DrinksOption 3. Want
Insurance?
First two fields are in one FormBean while third one is in different
form.


Thank you

__
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com

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




Problem using Tomcat & IIS integration and *.do

2002-09-17 Thread kellybsb

Hi All,
I have tomcat 4.0.1, IIS installed on NT4. I properly installed the
redirector in IIS since it is seeing my jsp pages fine. But when I
call my action using *.do path it gives me an error:

"HTTP Error 405
405 Method Not Allowed

The method specified in the Request Line is not allowed for the
resource identified by the request. Please ensure that you have the
proper MIME type set up for the resource you are requesting.

Please contact the server's administrator if this problem persists."

I know it is happening because it doesn't know how to redirect *.do
to tomcat. I tried to add *.do in uriworkermap.properties, but I
believe I didn't use the right way.

Can anyone tell me what should I do? Please answer to my email
because I'm not in the list.

Thanks in advance,

Kelly Prudente Pereira
Analista de Sistemas - NDS
[EMAIL PROTECTED]
Fóton® Informática e Serviços
Fone: (61) 328 5060 R.: 221



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




Re: Need help on html:multibox

2002-09-17 Thread Eddie Bush



I have no clue.  I believe Ted Husted covers that topic in his tips 
though:  http://husted.com/struts/tips

Sharon Tam wrote:

>Hi,
>
>Does anyone know why the multibox selected values are not populated into the formbean 
>after I submit the form?  Everything works with struts 1.0.2, but not with struts 
>1.1.  
>
> 
>
>Thanks in advance!
>

-- 
Eddie Bush



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




Need help on html:multibox

2002-09-17 Thread Sharon Tam


Hi,

Does anyone know why the multibox selected values are not populated into the formbean 
after I submit the form?  Everything works with struts 1.0.2, but not with struts 1.1. 
 

 

Thanks in advance!





-
Do you Yahoo!?
Yahoo! News - Today's headlines


[Graphs]

2002-09-17 Thread Susmita Pati

 Hi All

I wanted to have a chart displayed on my jsp page.
Any ideas which is the best solution, i looked around the net found few
things like Kava and stuff like that.
Just wanted to know if anyone else has used. Any suggestions are welcome

Thanks
susmita

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




RE: [validator]

2002-09-17 Thread wbchmura

D'oh - worked wonderfully.

I just finished entering them all into the properties file anyway...  Ah 
well. 

-Original Message-
From: dderry [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 3:03 PM
To: struts-user
Subject: Re: [validator]


Add the resource="false" attribute

i.e.  

Not sure how this translates into ActionErrors 'cause we're not using 
Struts
for presentation, but it does tell Validator to use the key as a String 
and
not a look-up key.

Hope this helps,
Dave Derry


- Original Message -
From: <[EMAIL PROTECTED]>


>
> Heya
>
> I have a validator set up and it seems to work.  I've read the 
validator
> docs online and da online book, but..
>
>
>  depends="required,mask">
> 
> mask
> ${text}
> 
> 
> 
>
> This is an internal app and I don't need any i18n so I dont have all 
my
> field names in the properties file.
>
> Is there a way to avoid entering all the names into a property file?
>
> For instance, is there a way to tell it to use a string instead of a
> key...
>
> like:
> 
>
> TIA
>
>
>
> William B Chmura
> Internet Services Admin / IT Department
> Ensign-Bickford Industries, Inc and subsidiaries



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




Re: [validator]

2002-09-17 Thread Dave Derry

Add the resource="false" attribute

i.e.  

Not sure how this translates into ActionErrors 'cause we're not using Struts
for presentation, but it does tell Validator to use the key as a String and
not a look-up key.

Hope this helps,
Dave Derry


- Original Message -
From: <[EMAIL PROTECTED]>


>
> Heya
>
> I have a validator set up and it seems to work.  I've read the validator
> docs online and da online book, but..
>
>
>  depends="required,mask">
> 
> mask
> ${text}
> 
> 
> 
>
> This is an internal app and I don't need any i18n so I dont have all my
> field names in the properties file.
>
> Is there a way to avoid entering all the names into a property file?
>
> For instance, is there a way to tell it to use a string instead of a
> key...
>
> like:
> 
>
> TIA
>
>
>
> William B Chmura
> Internet Services Admin / IT Department
> Ensign-Bickford Industries, Inc and subsidiaries



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




RE: Roles without LDAP

2002-09-17 Thread wbchmura


Sure, play with the Memory Realms in Tomcat.  Its the easiest off the 
bat, and you can switch them in Tomcat later...

See tomcat docs or the tomcat-user list for more info...

This should keep ya busy for a few minutes :)
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html


-Original Message-
From: jsmith4 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 2:50 PM
To: struts-user
Subject: Roles without LDAP


Anyway to use Roles without LDAP??

Can I just save some object in the session??   



--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




RE: Roles without LDAP

2002-09-17 Thread Tero P Paananen

> Anyway to use Roles without LDAP??

Yes.

> Can I just save some object in the session??   

Yes. I wouldn't do it that way though.

Use container managed security. Documentation with
your container.

-TPP



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


Re: Roles without LDAP

2002-09-17 Thread Eddie Bush

You may not "just have some object in the session".  You may pull your 
authentication from a database.  There are a few different Realm 
implementations in Tomcat.  Be sure you examine each of them :-) to see 
which best "fits" your needs.

I use JDBCRealm myself ... pulls them out of a RDBMS.  There is also the 
flat-file (MemoryRealm) implementation.  That's not very ... flexible 
though.  I believe there is now an additional implementation, but I'm 
not familiar with it - not even to the point of knowing it's name.

Smith, Johnathan M. wrote:

>Anyway to use Roles without LDAP??
>
>Can I just save some object in the session??   
>
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>

-- 
Eddie Bush




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




RE: Struts Declarative Exceptions Questions

2002-09-17 Thread Jason Rosen

Why would you need to access the actual exception within your JSP view?  I
am not sure what your end goal is, but if you explain your idea further, I
could give you a better answer.  

I think it is bad style to have your JSP (or any view) know explicitly about
Java exceptions - use your message key "error.data.page" as a state-flag to
signal that a specific error was encountered to slightly change your GUI in
response to the error or forward to an error-specific view, if you need to
completely change the output based on an error.  I think anything more
complex should be left to either the Action to do additional processing
before throwing an Exception or in a custom ExceptionHandler.

Jason Rosen

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 9:53 AM
To: [EMAIL PROTECTED]
Subject: Struts Declarative Exceptions Questions


I am making use of the Declarative Exceptions  at the action level as
such..

 

In this situation, is it possible to gain access to the actual thrown
exception within the jsp page?

I know this is not the best way to handle things but...

Thanks



--
To unsubscribe, e-mail:

For additional commands, e-mail:


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




Roles without LDAP

2002-09-17 Thread Smith, Johnathan M.

Anyway to use Roles without LDAP??

Can I just save some object in the session??   



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




RE: SQL Query Builder [Off Topic]

2002-09-17 Thread wbchmura

I thought there was a free version...

Slightly limited

-Original Message-
From: jmitchtx [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 2:47 PM
To: struts-user
Subject: RE: SQL Query Builder [Off Topic]


WOW!!!  I wish it was free!!!


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: SQL Query Builder [Off Topic]
>
>
> DBVisualizer?
> > -Original Message-
> > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 11:29 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: SQL Query Builder [Off Topic]
> >
> >
> > yep - but I'd be willing to bet someone has written a Swing
> > query engine.
> >
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 12:10 PM
> > To: Struts Users Mailing List
> > Subject: RE: SQL Query Builder [Off Topic]
> >
> >
> > Isn't that only for Oracle?
> >
> > I was hoping to find an Open Source Swing alternative myself.
> >
> >
> >
> > James Mitchell
> > Software Engineer\Struts Evangelist
> > Struts-Atlanta, the "Open Minded Developer Network"
> > http://www.open-tools.org/struts-atlanta
> >
> >
> >
> >
> > > -Original Message-
> > > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 17, 2002 12:01 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: SQL Query Builder [Off Topic]
> > >
> > >
> > > I use PL/SQL Developer 5.0.
> > >
> > > -Original Message-
> > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 17, 2002 12:00 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: SQL Query Builder [Off Topic]
> > >
> > >
> > > Well, I'm pretty proficient in sql.  But for extremely complex
> > > queries that
> > > require multiple outer joins (like more than 8 tables), I rely on
> > > the visual
> > > query building capabilities of Visual Interdev (ya ya ya M$ 
sucks).
> > >
> > > I'd love to hear about any open source project that can do
> > what Interdev
> > > does:
> > >
> > > It gives you 4 panes.
> > > 1. Tables
> > > 2. Fields selected
> > > 3. Sql used
> > > 4. Results of query (if you run it)
> > >
> > > Truly wysiwyg, drop a new table in the table pane, and all panes 
are
> > > updated.  Modify the sql pane and all the other panes are
> > updated as well.
> > >
> > > When you connect to an ODBC source (yes, this requires
> > ODBC, but the sql
> > > generated works regardless) you can just drag in all the
> > tables you want.
> > > Add filter params and order by, do grouping, sum, count, whatever.
> > >
> > > This also requires that you know your database
> > relationships (to a certain
> > > extent).  Interdev will read the metadata off the
> > connection and do a best
> > > guess based on
> > >
> > > The reason I use Interdev is that it creates the vendor specific
> > > sql syntax,
> > > which can be different for Oracle vs. DB2 vs. MySql
> > >
> > > Then I just copy from the sql pane into my application (be
> > it a resource
> > > file or into the code) and I'm done.
> > >
> > >
> > >
> > > James Mitchell
> > > Software Engineer\Struts Evangelist
> > > Struts-Atlanta, the "Open Minded Developer Network"
> > > http://www.open-tools.org/struts-atlanta
> > >
> > >
> > >
> > >
> > > > -Original Message-
> > > > From: Howard Miller [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, September 17, 2002 11:15 AM
> > > > To: '[EMAIL PROTECTED]'
> > > > Subject: SQL Query Builder [Off Topic]
> > > >
> > > >
> > > > Hi,
> > > >
> > > > This is completely off-topic, and I'm sorry in advance, but
> > > this is where
> > > > all the usefull people live!!!
> > > >
> > > > Has anybody come accross a SQL query builder, or even
> > query-by-example
> > > > builder in java. That is something to visually put
> > together a query for
> > > > non-sql-savy users. Its to live in a Struts application,
> > so must be
> > > > Servlet/JSP/Applet based.
> > > >
> > > > Trying to save myself some work!!
> > > >
> > > > Howard Miller
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > 
> > > > For additional commands, e-mail:
> > > > 
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 

RE: [OT] Newbie Design best practice question

2002-09-17 Thread Bartley, Chris P [PCS]

Tiles can also help you separate JSPs by role--all you need to do is provide
your own definition factory.  In my current app, I created a definition
factory to take the user's role into account.  Then in my struts-config, I
just forward to, say, "template.home" and Tiles does all the hard work of
deciding which definition should be used.  You can still have common
elements, too (login, logout, headers, etc).

That scheme helped us keep the JSPs a little cleaner than they would be
otherwise (with giant blobs of ... all
over the place) and also helped with organization and separation (so
different teams could more easily focus on different roles).

chris

> -Original Message-
> From: Piper, James D CECOM SEC EPS
> [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 1:05 PM
> To: [EMAIL PROTECTED]
> Subject: [OT] Newbie Design best practice question
> 
> 
> If I were to have a STRUTS enabled application where I had 
> user types of
> restricted_users, full_access_users, and admins and for the 
> most part the
> content of the screens the different user types get to see 
> are the same,
> except for maybe Id like there to be a few extra bits of 
> functionality on
> the full_access_users and admin screens that doesn't get shown on the
> restricted_users screen, then what's the best way to go about 
> this? It will
> probably also be that each user type will require some Action 
> objects not
> used by the other user types.
> 
> Should I attempt to use one set of JSPs for all the different 
> types of users
> and put logic inside each of the JSPs that says something 
> like 'if the user
> is of type full_access_users then shown these extra few 
> buttons', or should
> I give each type of user their own set of JSPs?
> 
> I am tempted to try and use one set of JSPs for all user 
> types so that I
> don't have to worry about maintenance of three sets of almost 
> identical JSP
> files.  On the other hand I feel I may be asking for security 
> trouble by
> trying to have each JSP check for the user's user type - I also have a
> notion that checking user types is something that I should be doing
> elsewhere.
> 
> If I do use separate JSPs for each user type, would it make 
> sense to use the
> STRUTS sub-application mechanism to separate them out?
> 
> Thanks for your thoughts,
> 
> - Jim
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 

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




RE: SQL Query Builder [Off Topic]

2002-09-17 Thread James Mitchell

WOW!!!  I wish it was free!!!


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 2:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: SQL Query Builder [Off Topic]
>
>
> DBVisualizer?
> > -Original Message-
> > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 11:29 AM
> > To: 'Struts Users Mailing List'
> > Subject: RE: SQL Query Builder [Off Topic]
> >
> >
> > yep - but I'd be willing to bet someone has written a Swing
> > query engine.
> >
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, September 17, 2002 12:10 PM
> > To: Struts Users Mailing List
> > Subject: RE: SQL Query Builder [Off Topic]
> >
> >
> > Isn't that only for Oracle?
> >
> > I was hoping to find an Open Source Swing alternative myself.
> >
> >
> >
> > James Mitchell
> > Software Engineer\Struts Evangelist
> > Struts-Atlanta, the "Open Minded Developer Network"
> > http://www.open-tools.org/struts-atlanta
> >
> >
> >
> >
> > > -Original Message-
> > > From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 17, 2002 12:01 PM
> > > To: 'Struts Users Mailing List'
> > > Subject: RE: SQL Query Builder [Off Topic]
> > >
> > >
> > > I use PL/SQL Developer 5.0.
> > >
> > > -Original Message-
> > > From: James Mitchell [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, September 17, 2002 12:00 PM
> > > To: Struts Users Mailing List
> > > Subject: RE: SQL Query Builder [Off Topic]
> > >
> > >
> > > Well, I'm pretty proficient in sql.  But for extremely complex
> > > queries that
> > > require multiple outer joins (like more than 8 tables), I rely on
> > > the visual
> > > query building capabilities of Visual Interdev (ya ya ya M$ sucks).
> > >
> > > I'd love to hear about any open source project that can do
> > what Interdev
> > > does:
> > >
> > > It gives you 4 panes.
> > > 1. Tables
> > > 2. Fields selected
> > > 3. Sql used
> > > 4. Results of query (if you run it)
> > >
> > > Truly wysiwyg, drop a new table in the table pane, and all panes are
> > > updated.  Modify the sql pane and all the other panes are
> > updated as well.
> > >
> > > When you connect to an ODBC source (yes, this requires
> > ODBC, but the sql
> > > generated works regardless) you can just drag in all the
> > tables you want.
> > > Add filter params and order by, do grouping, sum, count, whatever.
> > >
> > > This also requires that you know your database
> > relationships (to a certain
> > > extent).  Interdev will read the metadata off the
> > connection and do a best
> > > guess based on
> > >
> > > The reason I use Interdev is that it creates the vendor specific
> > > sql syntax,
> > > which can be different for Oracle vs. DB2 vs. MySql
> > >
> > > Then I just copy from the sql pane into my application (be
> > it a resource
> > > file or into the code) and I'm done.
> > >
> > >
> > >
> > > James Mitchell
> > > Software Engineer\Struts Evangelist
> > > Struts-Atlanta, the "Open Minded Developer Network"
> > > http://www.open-tools.org/struts-atlanta
> > >
> > >
> > >
> > >
> > > > -Original Message-
> > > > From: Howard Miller [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, September 17, 2002 11:15 AM
> > > > To: '[EMAIL PROTECTED]'
> > > > Subject: SQL Query Builder [Off Topic]
> > > >
> > > >
> > > > Hi,
> > > >
> > > > This is completely off-topic, and I'm sorry in advance, but
> > > this is where
> > > > all the usefull people live!!!
> > > >
> > > > Has anybody come accross a SQL query builder, or even
> > query-by-example
> > > > builder in java. That is something to visually put
> > together a query for
> > > > non-sql-savy users. Its to live in a Struts application,
> > so must be
> > > > Servlet/JSP/Applet based.
> > > >
> > > > Trying to save myself some work!!
> > > >
> > > > Howard Miller
> > > >
> > > >
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > > 
> > > > For additional commands, e-mail:
> > > > 
> > > >
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > 
> > > For additional commands, e-mail:
> > > 
> > >
> > > --
> > > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
> > --
> > To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
>
> --
> To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   

RE: I thought I had this figured out...

2002-09-17 Thread James Mitchell


What a class 'has' and what it 'can use' are different subjects (as you
probably know).

Are you sure you don't need the styleClass= attribute?

While the HTML spec allows for the id attribute:
http://www.w3.org/TR/REC-html40/sgml/dtd.html#coreattrs

Unless I'm way off hereI'm not sure why it wasn't added.  Please submit
it as a bug into bugzilla and I'm sure Craig or someone will validate and
fix.


James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Will Etson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 1:35 PM
> To: [EMAIL PROTECTED]
> Subject: I thought I had this figured out...
>
>
> Does any one know why html:image tag does not have a styleId
> attribute in the .tld? I did some home work and html:submit has
> this property and ImageTag inherits from SubmitTag. What am I
> missing here?
>
> Will Etson
>


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




RE: Roles??

2002-09-17 Thread Tero P Paananen

> I am going to be using Struts 1.0.2. How do you setup roles?

Depends on what are you using for user authentication /
management.

If you're using container managed security, then you need
to refer to your to the documentation of your container
(Tomcat, WebSphere, WebLogic, etc.)

Struts itself does nothing in this respect, other than
provide some convenenience methods to access container
managed security structures.

If you're using application level authentication, then
it's really up to you to do as you please. I would use
some of the frameworks already out there, an example
being the one Eddie already mentioned.

-TPP



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


RE: [STRUTS USERS ID] [THIEF!!!]

2002-09-17 Thread Chappell, Simon P

Let's not and say we didn't! That'd start a flamewar faster than an OT post not on 
Friday.

>-Original Message-
>From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 17, 2002 1:29 PM
>To: 'Struts Users Mailing List'
>Subject: RE: [STRUTS USERS ID] [THIEF!!!]
>
>
>How about an anonymous rating system for like helpfullness, 
>[42] humor, best
>looking wife/girl/boyfriend, most unique pets name (no cats), 
>longest nose
>hair...etc.?
>
>-Original Message-
>From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 17, 2002 1:22 PM
>
>Now, now, I enhanced and built upon your idea. That's the 
>Apache way right?!
>:-)
>
>I plan to publish anyone who cares enough to send me a decent 
>picture and a
>bio. I will blatently discriminate in favour of people who's names I
>recognise (and who aren't mean to me! ;-) first and then add 
>the less well
>known (to me) second.
>
>In terms of listing on the page, I plan to list Craig first, 
>followed by
>such hallowed folks as Ted and Chuck and then perhaps the rest of us in
>alphabetical sequence.
>
>Thoughts and comments please.
>
>Simon
>
>-
>Simon P. Chappell [EMAIL PROTECTED]
>Java Programming Specialist  www.landsend.com
>Lands' End, Inc.   (608) 935-4526
>
>
>>-Original Message-
>>From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
>>Sent: Tuesday, September 17, 2002 11:54 AM
>>To: Struts Users Mailing List
>>Subject: RE: [STRUTS USERS ID] [THIEF!!!]
>>
>>
>>Stop he stole my idea!!!
>>
>>Just kidding. I look forward to seeing everyones faces. Who 
>>will qualify for
>>posting?
>>
>>Brandon Goodin
>>Phase Web and Multimedia
>>P (406) 862-2245
>>F (406) 862-0354
>>[EMAIL PROTECTED]
>>http://www.phase.ws
>>
>>
>>> -Original Message-
>>> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
>>> Sent: Tuesday, September 17, 2002 9:15 AM
>>> To: Struts Users Mailing List
>>> Subject: RE: [STRUTS USERS ID] Placing a face with the name
>>>
>>>
>>> :-)
>>>
>>> I'll start laying out a format tonight and we'll see what we can
>>> come up with. For my picture I am planning to use a family
>>> portrait (with a wife and two daughters, you should be able to
>>> figure out which one is me! :-) Keep the bio shortish and send me
>>> the biggest picture you can, I'll scale it down in PhotoShop.
>>>
>>> Simon
>>>
>>> >-Original Message-
>>> >From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
>>> >Sent: Tuesday, September 17, 2002 10:03 AM
>>> >To: Struts (E-mail)
>>> >Subject: RE: [STRUTS USERS ID] Placing a face with the name
>>> >
>>> >
>>> >Now, now...don't lose your senses of humor.
>>> >
>>> >I think your idea a a very good one and I'll get you a JPG
>>> >when I get home
>>> >tonight with a brief bio.
>>> >
>>>
>>> --
>>> To unsubscribe, e-mail:
>>> 
>>> For additional commands, e-mail:
>>> 
>>>
>>>
>>
>>
>>--
>>To unsubscribe, e-mail:   
>>[EMAIL PROTECTED]>
>>For 
>>additional commands, 
>>e-mail: 
>>
>>
>
>--
>To unsubscribe, e-mail:
>
>For additional commands, e-mail:
>
>
>--
>To unsubscribe, e-mail:   

For additional commands, e-mail: 


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




RE: [STRUTS USERS ID] [THIEF!!!]

2002-09-17 Thread James Mitchell

Yes, that's it.

Vote for:
 - Most likely to succeed
 - Most likely to go back to M$
 - Most likely to get arrested on International Flights

You know, things like that ;)



James Mitchell
Software Engineer\Struts Evangelist
Struts-Atlanta, the "Open Minded Developer Network"
http://www.open-tools.org/struts-atlanta




> -Original Message-
> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, September 17, 2002 1:22 PM
> To: Struts Users Mailing List
> Subject: RE: [STRUTS USERS ID] [THIEF!!!]
> 
> 
> Now, now, I enhanced and built upon your idea. That's the Apache 
> way right?! :-)
> 
> I plan to publish anyone who cares enough to send me a decent 
> picture and a bio. I will blatently discriminate in favour of 
> people who's names I recognise (and who aren't mean to me! ;-) 
> first and then add the less well known (to me) second.
> 
> In terms of listing on the page, I plan to list Craig first, 
> followed by such hallowed folks as Ted and Chuck and then perhaps 
> the rest of us in alphabetical sequence.
> 
> Thoughts and comments please.
> 
> Simon
> 
> -
> Simon P. Chappell [EMAIL PROTECTED]
> Java Programming Specialist  www.landsend.com
> Lands' End, Inc.   (608) 935-4526
> 
> 
> >-Original Message-
> >From: Phase Web and Multimedia [mailto:[EMAIL PROTECTED]]
> >Sent: Tuesday, September 17, 2002 11:54 AM
> >To: Struts Users Mailing List
> >Subject: RE: [STRUTS USERS ID] [THIEF!!!]
> >
> >
> >Stop he stole my idea!!!
> >
> >Just kidding. I look forward to seeing everyones faces. Who 
> >will qualify for
> >posting?
> >
> >Brandon Goodin
> >Phase Web and Multimedia
> >P (406) 862-2245
> >F (406) 862-0354
> >[EMAIL PROTECTED]
> >http://www.phase.ws
> >
> >
> >> -Original Message-
> >> From: Chappell, Simon P [mailto:[EMAIL PROTECTED]]
> >> Sent: Tuesday, September 17, 2002 9:15 AM
> >> To: Struts Users Mailing List
> >> Subject: RE: [STRUTS USERS ID] Placing a face with the name
> >>
> >>
> >> :-)
> >>
> >> I'll start laying out a format tonight and we'll see what we can
> >> come up with. For my picture I am planning to use a family
> >> portrait (with a wife and two daughters, you should be able to
> >> figure out which one is me! :-) Keep the bio shortish and send me
> >> the biggest picture you can, I'll scale it down in PhotoShop.
> >>
> >> Simon
> >>
> >> >-Original Message-
> >> >From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
> >> >Sent: Tuesday, September 17, 2002 10:03 AM
> >> >To: Struts (E-mail)
> >> >Subject: RE: [STRUTS USERS ID] Placing a face with the name
> >> >
> >> >
> >> >Now, now...don't lose your senses of humor.
> >> >
> >> >I think your idea a a very good one and I'll get you a JPG
> >> >when I get home
> >> >tonight with a brief bio.
> >> >
> >>
> >> --
> >> To unsubscribe, e-mail:
> >> 
> >> For additional commands, e-mail:
> >> 
> >>
> >>
> >
> >
> >--
> >To unsubscribe, e-mail:   
> >[EMAIL PROTECTED]>
> >For 
> >additional commands, 
> >e-mail: 
> >
> >
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

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




RE: [OT] Newbie Design best practice question

2002-09-17 Thread wbchmura


We just went through similar agony with four levels of users.  We ended 
up with two sets of JSP pages.  We ended up doing a second set for one 
of the groups because there was just so much of a difference and it 
would be helpful to have a different layout.

Of course we are still working on it so I cant say it all worked out for 
us :)


-Original Message-
From: James.Piper [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 2:05 PM
To: struts-user
Subject: [OT] Newbie Design best practice question


If I were to have a STRUTS enabled application where I had user types of
restricted_users, full_access_users, and admins and for the most part 
the
content of the screens the different user types get to see are the same,
except for maybe Id like there to be a few extra bits of functionality 
on
the full_access_users and admin screens that doesn't get shown on the
restricted_users screen, then what's the best way to go about this? It 
will
probably also be that each user type will require some Action objects 
not
used by the other user types.

Should I attempt to use one set of JSPs for all the different types of 
users
and put logic inside each of the JSPs that says something like 'if the 
user
is of type full_access_users then shown these extra few buttons', or 
should
I give each type of user their own set of JSPs?

I am tempted to try and use one set of JSPs for all user types so that I
don't have to worry about maintenance of three sets of almost identical 
JSP
files.  On the other hand I feel I may be asking for security trouble by
trying to have each JSP check for the user's user type - I also have a
notion that checking user types is something that I should be doing
elsewhere.

If I do use separate JSPs for each user type, would it make sense to use 
the
STRUTS sub-application mechanism to separate them out?

Thanks for your thoughts,

- Jim

--
To unsubscribe, e-mail:   

For additional commands, e-mail: 




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




Re: Roles??

2002-09-17 Thread Eddie Bush

That is a container-managed security thing.  See the tomcat docs.  There 
are other ways to do it too.  Max Cooper (I believe) has the 
securityfilter SF project that lets you include your realm inside of 
your web-application (requires servlet spec 2.3).

Smith, Johnathan M. wrote:

>I am going to be using Struts 1.0.2 How do you setup roles?
>
>
>--
>To unsubscribe, e-mail:   
>For additional commands, e-mail: 
>

-- 
Eddie Bush




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




  1   2   3   >