RE: User defined error messages

2003-12-03 Thread Greg Dunn
Sorry I wasn't clear.  I've got my ApplicationResources.properties file set
up and in use for most messages.  However, it's packed into a .war file
inside an .ear file for deployment, so I can't let them access it directly
and edit the messages in it to their taste.  What I'm looking for is another
source to collect a message bundle from, preferably the database.  Though I
could use another .properties file they CAN access I would prefer to go the
database route because they'll be editing it through their web based admin
pages and my life will be easier if I can use DAO's I already have, and we
don't have to rely on them backing their disk files up.

Greg

-Original Message-
From: Witt, Mike (OH35) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 10:53 AM
To: Struts Users Mailing List
Subject: RE: User defined error messages


I'm not sure if you are asking more than what this answer implies but ... I
use Properties stored in a properties file for my error messages.

Mike

-Original Message-
From: Greg Dunn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 03, 2003 11:40 AM
To: Struts Users Mailing List
Subject: User defined error messages


My PTB want to let our clients edit the content of certain error messages
after deployment.Any suggestions on how to accomplish this?  Thanks.


Greg


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

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



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



User defined error messages

2003-12-03 Thread Greg Dunn
My PTB want to let our clients edit the content of certain error messages
after deployment.Any suggestions on how to accomplish this?  Thanks.


Greg


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



RE: I think ???

2003-11-25 Thread Greg Dunn

If you need to use <%= testStr%> because nesting tags doesn't work then use
Struts-el instead.  You can do it in one line:



 doesn't work because you haven't
specified the name attribute:
http://jakarta.apache.org/struts/userGuide/struts-bean.html#define  I think
you want to use




Greg


-Original Message-
From: Mauricio T. Ferraz [mailto:[EMAIL PROTECTED]
Sent: Monday, November 24, 2003 2:28 PM
To: Struts Users Mailing List
Subject:  I think ???


I want to create a scriptlet variable with tag struts, how can I do it???

for example:

I have:
 String testStr = session.getAttribute("test");

but I don´t want use it, it´s ugly!!!

I saw the tag 

but whe I try show it with a expression ( <%=testStr%>)
I have canot resolve the symbol error!!!
But when I use the  I show the value, but I have
to use <%=testStr%>


Anybody can help me?


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



RE: [OT] Veggie Tales! (was: Lazy questions on this list)

2003-11-20 Thread Greg Dunn

The Mr. Lunt and Larry commentary track on the Jonah DVD is worth buying it
for alone.

Greg

-Original Message-
From: Brandon Goodin [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 20, 2003 11:58 AM
To: [EMAIL PROTECTED]
Subject: RE: [OT] Veggie Tales! (was: Lazy questions on this list)


Ya,

I used google to see what the most recent one was.

http://www.bigidea.com/videos/larryboy/lb003/default.htm

Amazing what google can do when you need an answer.

Personally, I like the cartoons. They have a real retro but better
feel. Cuz the humor is classic Veggie style.

Still love the CG though. It just keeps getting better.


>>> [EMAIL PROTECTED] 11/20/2003 10:52:51 AM >>>
I just can't get into the cartoon adventures. I only like the CG ones.
:-)

>-Original Message-
>From: Brandon Goodin [mailto:[EMAIL PROTECTED]
>Sent: Thursday, November 20, 2003 11:48 AM
>To: [EMAIL PROTECTED]
>Subject: [OT] Veggie Tales! (was: Lazy questions on this list)
>
>
>Has anyone caught the most recent LarryBoy adventure?
>
 [EMAIL PROTECTED] 11/20/2003 10:40:09 AM >>>
>

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



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



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



RE: [FRIDAY] Why people want to know who read their msg?

2003-11-07 Thread Greg Dunn
Not everyone gets to choose which email client they use.  Even here in the
open source Java community.  The answer is if you want to post to the list
turn off the "Ask for a receipt for every message I send" option and don't
request.


Greg



-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]
Sent: Friday, November 07, 2003 2:32 PM
To: Struts Users Mailing List
Subject: Re: [FRIDAY] Why people want to know who read their msg?



--- Adam Hardy <[EMAIL PROTECTED]> wrote:
> On 11/07/2003 09:13 PM Yansheng Lin wrote:
> > That's not the point.
> >
> > -Original Message-
> > From: James Mitchell [mailto:[EMAIL PROTECTED]
> > Sent: November 7, 2003 12:48 PM
> > To: Struts Users Mailing List
> > Subject: Re: [FRIDAY] Why people want to know who read their msg?
> >
> >
> > On Fri, 7 Nov 2003, Yansheng Lin wrote:
> >
> >
> >>It's pissing me off when my Outlook asks me if I went to send a
> notification
> >>message.
>
> Actually I know what you mean and I find it slightly annoying having to
> hit "tab - return" to get rid of the confirm dialog box, and the problem
>
> is that I cannot turn off the configuration option because that turns it
>
> off for the whole application and I need it set 'on' for my personal
> email account, but 'off' for my list accounts like this one.
>
> I wonder if anyone on the Jakarta admin team could set the mailing list
> software to strip the 'request-confirmation' email header from the mails
>
> it sends out? As Yinsheng says, there is no point in them.

You want Jakarta to change its processes to accomodate your use of a
poorly written email client?  Not likely...

David

>
> Adam
>
> --
> struts 1.1 + tomcat 5.0.12 + java 1.4.2
> Linux 2.4.20 RH9
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



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



RE: [OT] HTML tag stripper

2003-10-29 Thread Greg Dunn
I should have said I'd like to try to keep the basic whitespace, replacing
 with a return, for example.  I'm feeding it into the comment screen in
a GUI app that only takes plain text, so I can't have one long unbroken
string.

Greg

-Original Message-
From: Jeremy Nix [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 4:15 PM
To: Struts Users Mailing List
Subject: RE: [OT] HTML tag stripper


This has worked for me:

Pattern tagPattern = Pattern.compile("]*>",
Pattern.CASE_INSENSITIVE);
tagPattern.matcher("YOUR_TEXT_HERE").replaceAll("");


_
Jeremy Nix
Southwest Financial Services, LTD.
[EMAIL PROTECTED]
(513) 621-6699 ext.1158



-Original Message-
From: Greg Dunn [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 5:10 PM
To: Struts Users Mailing List
Subject: [OT] HTML tag stripper



Does anyone know of any free Java I can incorporate in my app that will
take a String of HTML and strip the tags out?


Greg


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


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



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



[OT] HTML tag stripper

2003-10-29 Thread Greg Dunn

Does anyone know of any free Java I can incorporate in my app that will take
a String of HTML and strip the tags out?


Greg


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



RE: html:hidden +session

2003-10-29 Thread Greg Dunn

This might work but you're ignoring the relationship between Struts HTML
form tags and ActionForms.  All you need to do is prefill the values in the
action leading to your JSP, then add the form element to your pages and it
will be filled.  All you need is:



If you don't want to prefill your form in the Action for some reason, then
the easiest way to get the value, IMO, is with Struts-el, where you can use
this:



Greg


-Original Message-
From: Kris Schneider [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 9:04 AM
To: Struts Users Mailing List
Subject: RE: html:hidden +session


Struts has nothing to do with it. That's a general JSP syntax error pure and
simple. What do you want the rendered HTML  element to look like? Do
you
really want:



If so, you can do:

">

Quoting [EMAIL PROTECTED]:

> neted tags i guess are not available in struts?
>
> -Original Message-
> From: struts [mailto:[EMAIL PROTECTED]
> Sent: 29 October 2003 13:41
> To: Struts Users Mailing List
> Subject: html:hidden +session
>
>
> how can i print a session value in a hidden field.
>
> This doesn't work...
>
> "/>
>
> any solutions ?
>
> Thanks

--
Kris Schneider 
D.O.Tech   

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



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



RE: requiredif

2003-10-28 Thread Greg Dunn
Since no one offered an example for requiredIf:

In this case either x_Company OR x_First_Name and x_Last_Name are required,
so x_First_Name AND x_Last_Name are requiredIf x_Company is NULL, and
company is required if either first name OR last name is null.







field[0]
x_Company


field-test[0]
NULL








field[0]
x_Company


field-test[0]
NULL








field[0]
x_First_Name


field-test[0]
NULL


field[1]
x_Last_Name


field-test[1]
NULL


field-join
OR





Greg

-Original Message-
From: Rhet Behler [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 5:47 PM
To: Struts Users Mailing List
Subject: requiredif


Has anyone used this in the validation.xml?

If so could I see a simple example?

If not what are you using validwhen?

thanks


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



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



RE: how to access HttpSession in EJB code?

2003-10-28 Thread Greg Dunn
I was having difficulty with something like the reverse of this.  If you
pass the object to your EJB (or in my case a task scheduler), which then
updates it, is there any way to pass it back to store the updated version in
context?

Greg


-Original Message-
From: Andrew Hill [mailto:[EMAIL PROTECTED]
Sent: Monday, October 27, 2003 3:29 AM
To: Struts Users Mailing List
Subject: RE: how to access HttpSession in EJB code?


Hi Viral,
You will need to get the required object from the session up in the p-tier
and pass it to your ejb in a method parameter when you call the EJB (or
facade to it).
(The EJB layer doesnt know about servlets and such like (indeed its client
might well not be a servlet app)).
-Andrew

-Original Message-
From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
Sent: Monday, 27 October 2003 17:21
To: Struts Users Mailing List
Subject: how to access HttpSession in EJB code?


Is there any way, I can access the object from session in the EJB bean
method?

I am keeping the profile object in HttpSession, once the user gets
successfully logged-in. Now I want to access few values from this profile
object which is kept inside session.

The application flow is as below :

Struts Action --> Business Delegate --> Session Façade...

Thanks,
Viral


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


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



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



RE:

2003-10-23 Thread Greg Dunn
Try 



Greg 

-Original Message-
From: Barry Volpe [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 2:48 PM
To: Struts Users Mailing List
Subject: Re: 


The error I get is

cannot retrieve mapping for action /Results
so  
translates to /Results  (when type=Results)

but when type=ViewResults and I use



translates to /ViewResults

/View is disregarded in the first example??

Barry





- Original Message - 
From: "Chen, Gin" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Thursday, October 23, 2003 11:47 AM
Subject: RE: 


> What's the exact error that it gives you?
> -Tim
> 
> -Original Message-
> From: Barry Volpe [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, October 23, 2003 2:45 PM
> To: Struts Users Mailing List
> Subject: 
> 
> 
> Hi,
> 
> 
> In my example
>  
> type=ViewResults
> 
>  and the following line will work
> (I could not get it to work with a c:out or a bean:write):
> 
>  
> 
> ${param.type} is translated into /ViewResults and that's okay.
> 
> Not complaining since I can directly put the JSTL in the action.
> 
> My question is how can I have type=Results and embed
> the word "View" in the action I tried the following but get an error.
> 
>  
> 
> would expect this to be evaluated to /ViewResults but again
> get an error?
> 
> Any suggestions?
> 
> Barry
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 


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



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



RE: Logic Iterate --URGENT Please

2003-10-22 Thread Greg Dunn


  ...
  

  
  

  
  ...


You could also do it with JSTL:


  ...
  
  
  ...




Greg

-Original Message-
From: Srikanth Gubba [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 22, 2003 2:24 PM
To: '[EMAIL PROTECTED]'
Subject: Logic Iterate --URGENT Please


Hi all,

I have a doubt using logic iterate:

Is it possible to display a row in a different color based on a value of the
bean while iterating it?

Actually, I am displaying the tax history of a person and I want to
highlight the row or a field (tax owed) to red color if the tax paid column
shows delinquent.

Please let me know if u have any suggestions or ideas.

Thanks in Advance,
Srikanth Gubba.

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



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



[OT] Article on JSF

2003-10-22 Thread Greg Dunn
This article was an interesting overview of JSF and what it does.  

The author brings up Struts more than once.

http://www.ftponline.com/javapro/2003_12/magazine/features/kmann/


Greg


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



RE: Warning message on Startup

2003-10-15 Thread Greg Dunn
It's

org.apache.struts.action.ActionServlet
  --

not

org.apache.struts.tiles.ActionServlet
  -

Careful with those cuts and pastes. ;)


Greg


-Original Message-
From: Srinivas Gunturu [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 12:50 PM
To: [EMAIL PROTECTED]
Subject: Warning message on Startup


Hi All,

I am seeing following warning message in my logs when server starts up.  The
application is functioning properly but not sure if I should ignore this or
fix it.  I am using Struts as well as Tiles.

action: Warning - ActionComponentServlet class: This class is to be used
with Struts1.0.x only. Please modify web.xml to use regular ActionServlet
class instead in conjugaison with appropriate plugin declared in
struts-config.xml.

When I change web.xml to use ActionServlet, I am getting following exception

javax.servlet.ServletException: Wrapper cannot find servlet class
org.apache.struts.tiles.ActionServlet or a class it depends on
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:88
0)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3341)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3534)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.java:497)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:510)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)

Here is the plug-in info. I have in strus config.

  


  


Any idea what causing this?  Should I ignore this or should I fix it?  If to
fix, how?

TIA

Srinivas


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



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



RE: How to i make the default selection of radio button

2003-10-15 Thread Greg Dunn

Set the ActionForm property representing the radio button to equal the value
on the individual button you want selected.

Greg


-Original Message-
From: Mahendra K. Kutare [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 15, 2003 9:00 AM
To: Struts Users Mailing List
Subject: How to i make the default selection of radio button


Hi all,

I am facing an issue of default selecting a radio button in struts.

I have written code to create two radio button, but i want one of them
to be default selected.

Can anyone help me on this ? How to achieve this default selection of
one of the radio buttons.


Thanks and regards
Mahendra

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



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



RE: JBoss

2003-10-09 Thread Greg Dunn
If you're not running EJB's you don't need JBoss.
  -Original Message-
  From: Horky Adam G A1C 805 CSPTS/SCBE [mailto:[EMAIL PROTECTED]
  Sent: Thursday, October 09, 2003 9:19 AM
  To: [EMAIL PROTECTED]
  Subject: JBoss


  I noticed some of the developers on this mailing list advocating the use
of JBoss. I am currently reading some docs on JBoss, but I don't have a
clear understanding of it yet. I currently use Tomcat as my app server. Does
it run over Tomcat? Can anyone recommend some good documentation on what
exactly JBoss is?



  A1C Adam G Horky

  Application Development Programmer, SCBE

  (618)256-2300




RE: problem using html:select

2003-10-01 Thread Greg Dunn

The 'property' attribute of the select tag is the form property submitted.
You don't need to use the name property in the select tag, it's used there
to indicate which bean to get a value from in order to pre-select an item in
the options.

Try this:


  


or


  


If you do want to pre-select an option add the 'value' attribute to the
select tag.


Greg


-Original Message-
From: carlos manuel llona aris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2003 2:07 PM
To: [EMAIL PROTECTED]
Subject: Re: problem using html:select


the problem is that now using the combo I cant obtein the value selected
when I submit - the user form cant recive the value, and I dont know why!!

I dont know how to connect my combobox with one variable of the user form,
before I used the atribute property using a hmlt:text, now I dont know how
to match

:(

>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>Subject: Re: problem using html:select
>Date: Wed, 1 Oct 2003 12:46:10 -0400
>
>What is the error message you are getting?
>
>
>- Original Message -
>From: "Carlos Llona" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Wednesday, October 01, 2003 11:57 AM
>Subject: problem using html:select
>
>
> > Hello:
> >
> > This is my litle problem
> >
> > I make a sample in struts that register data from the users, this
> > data is save in one table ("Users"), the JSP have a field
> > call "Cargo" (I'm from southamerica - cargo is like a ocupation), in
> > this field the user enter the ocupation manualy, but now I want that
> > the user select the Cargo(ocupation - this ocupations are in another
> > table) from a combo, I can show the combobox with the data from de
> > table ocupations using a bean and the tag html:select.
> >
> > 
> >
> > 
> > --select--
> >  > value='codigo' property='cargos' />
> > 
> >
> > but now I cant recive tha value selected in the combo in my User
> > form. I think that the problem was the value of the atribute property
> > of tha select tag, but when i change the value of the property
> > entering a name of the variable for my user form occurs a error,
> > because property just accept the name of a variable of my Cargo bean.
> >
> > Whats is the problem with this???
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>

_
¿Estás buscando un auto nuevo?  http://www.yupimsn.com/autos/


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



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



[OT] multiple contexts, one .ear.

2003-07-30 Thread Greg Dunn

I have a Struts application which uses EJB's running on JBoss/Tomcat.  In
some cases we have two 'clients' running the application on the same server.
They can both use the same deployed .ear if it's possible for each of them
to use a different .properties file, because they would need to point to
different database servers.

Is it possible to direct an application to use a certain .properties file
based on the requested domain, or is there another means to do this?  We
would really prefer not to deploy two seperate .ear files.


Greg


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



RE: Struts without beans

2003-07-17 Thread Greg Dunn
I've got an XML config file which users add to and edit, so the number of
elements can vary, like yours.  I've done two different things with the XML
to translate it into beans.

The first is to place each element into a bean and place those beans into a
collection in application scope that I can iterate over.  I use JDOM to read
and write the XML from/to disk.

The second is to place two children of each element into a DynaBean, the
option name becomes the property and the option value the value.  Then I can
use getProperty("myOption") to get the value.

Let me know if you want details.


Greg


-Original Message-
From: Anubhav Kale [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 5:12 AM
To: [EMAIL PROTECTED]
Subject: Struts without beans


hello.

I want to create a JSP page which shows the contents of XML file. Also,on
clicking 'Save' buton on the page user should be able to save modified
contents back in the xml file. Hence I can not use Beans as at compile time
I do not know how many elements will be displayed on the page.(Thus I can
not write get-set methods) Is there a way by which I can read data from the
page without using beans.

Thanks

Anubhav


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



RE: Validate Client side(Javascript) code shows up in the page

2003-06-25 Thread Greg Dunn
How is client side validation going to work if the JavaScript isn't there?

Regardless, this JavaScript is to set the focus on the field you specified
in the form with the focus="fieldName" attribute of the  tag.

Greg


-Original Message-
From: Mounagurusamy, Jayakumar (HAL)
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 11:12 AM
To: 'Struts Users Mailing List'
Subject: Validate Client side(Javascript) code shows up in the page


Hello,

I got the following configuration in the struts-config.xml,

  

  

when I go to the html page the JavaScript code shows up in the page which
suppose not to be there. When look into the source code through view source,
I see the following code and remaining out side the  tag? I am not
sure what configuration I miss??