Re: Basic question about ActionForms

2004-03-24 Thread Hubert Rabago
Marco,

This could be caused by how your mappings are configured.  If you can send
more information, someone might spot the cause.

Hubert

--- Marco Mistroni <[EMAIL PROTECTED]> wrote:
> Hi all,
>   In my app I am using a  DynaActionForm with scope = session.
> When I am calling the action for the first time, obviously the 
> Form is 'emtpy', so I populate it with all the values..
> When I am redirected to the action class again, the actionform
> Should be in the session (in theory).
> However, what is in the session looks like an 'empty' actionform as it
> Was before.
> Now the question: if my actionform has scope of session, do I have to 
> Put the value in the session explicitly or struts will do it for me?
> 
> 
> IT LOOKS like all the values are erased all the time, no matter if I
> have
> Specified as scope session..
> 
> Anyone has any clues of what's going on?
> 
> Regards   
>   marco
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html

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



Re: Basic question on /lib/*.jar files

2004-02-03 Thread Eric SCHULTZ
Good afternoon...

>> From: Claire Wall 
>> Date: Tue, 03 Feb 2004 04:25:29 -0800 
>> 
>> we store them in the common/lib folder. Then all applications running >>
on that web server have access to the jars and negates the need for >> them
to go into the separate WEB-INF/lib folders for each application.

please review section 5.6 of the struts user's guide:
http://jakarta.apache.org/struts/userGuide/configuration.html

struts jar files should go with your application.

also, in order to be able to reproduce exact environments at certain points
in time it is necessary to store the libraries with the code that depends on
them.  

Eric Schultz.

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



Re: Basic question on /lib/*.jar files

2004-02-03 Thread Claire Wall
we store them in the common/lib folder. Then all applications running on
that web server have access to the jars and negates the need for them to go
into the separate WEB-INF/lib folders for each application.

cw :)

- Original Message -
From: "alvin antony" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, February 03, 2004 10:58 AM
Subject: Basic question on /lib/*.jar files


> Hello there,
>
>I am on a search for a  good practice on storing lib-jar files in
an J2ee development env. Though I know that is not the right place,i used to
store it in the cvs along with the application unter /WEB-INF/lib . Where do
you store  the jar files, that are required by different applications in
development?
>
> Thanks in advance,
>
> Alvin
>
>
> Yahoo! India Mobile: Ringtones, Wallpapers, Picture Messages and
more.Download now.



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



Re: Basic question about

2003-11-25 Thread Ricky Lee
ok. i have solved the problem.. just change to this, it works smoothly... :)






- Original Message -
From: "Ricky Lee" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 8:33 PM
Subject: Re: Basic question about  thanks ,it can be work now, but what about this one?
>
> ">
>
> it show me the exception:
>
> rg.apache.jasper.JasperException: /layouts/admin/addDataLayout.jsp(15,48)
> equal symbol expected
>
> and when i change to the follow codes , it remain showed me the same
> exception..
>
>
> 
> ">
>
> my tiles configuration is:
>
> 
>   />
>   type="definition" />
> 
>
> i want to set the property into tiles context and get it from jsp page as
> string to set the form action property
>
>
>
>
> ----- Original Message -
> From: "Ben Anderson" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 25, 2003 8:27 PM
> Subject: Re: Basic question about 
>
> > if that's how you want to do it you need to change your quotes from:
> >  > property="module_id"/>">abc
> > to:
> > abc
> >
> >
> > >From: "Ricky Lee" <[EMAIL PROTECTED]>
> > >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Subject: Re: Basic question about  > >Date: Tue, 25 Nov 2003 20:21:29 +0800
> > >
> > >hi, so glad that i met the same question as you
> > >
> > >
> > >module id:
> > >
> > >
> > > > >/>">abc
> > >
> > >
> > >article title:
> > >
> > >
> > >
> > >and it show me the errors:
> > >
> > >equal symbol expected
> > >
> > >---
> > >can't nested tag like that? any solution about this?
> > >
> > >
> > >
> > >
> > >
> > >- Original Message -
> > >From: "Raman" <[EMAIL PROTECTED]>
> > >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> > >Sent: Tuesday, November 25, 2003 8:11 PM
> > >Subject: Basic question about  > >
> > >
> > > > hello all,
> > > > i have a basic problem in  > > > I want to use it in the loop for radio buttons. But facing problems
in
> > > > setting the "value" of the control. i have tried
> > > >
> > > > ">
> > > >
> > > > but this is not working.
> > > >
> > > > Any help regarding 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]
> > >
> >
> > _
> > Is there a gadget-lover on your gift list?  MSN Shopping has lined up
some
> > good bets!  http://shopping.msn.com
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Basic question about

2003-11-25 Thread Ricky Lee
thanks ,it can be work now, but what about this one?

">

it show me the exception:

rg.apache.jasper.JasperException: /layouts/admin/addDataLayout.jsp(15,48)
equal symbol expected

and when i change to the follow codes , it remain showed me the same
exception..



">

my tiles configuration is:


 
 


i want to set the property into tiles context and get it from jsp page as
string to set the form action property




- Original Message -
From: "Ben Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 8:27 PM
Subject: Re: Basic question about  if that's how you want to do it you need to change your quotes from:
>  property="module_id"/>">abc
> to:
> abc
>
>
> >From: "Ricky Lee" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: Re: Basic question about  >Date: Tue, 25 Nov 2003 20:21:29 +0800
> >
> >hi, so glad that i met the same question as you
> >
> >
> >module id:
> >
> >
> > >/>">abc
> >
> >
> >article title:
> >
> >
> >
> >and it show me the errors:
> >
> >equal symbol expected
> >
> >---
> >can't nested tag like that? any solution about this?
> >
> >
> >
> >
> >
> >- Original Message -
> >From: "Raman" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Sent: Tuesday, November 25, 2003 8:11 PM
> >Subject: Basic question about  >
> >
> > > hello all,
> > > i have a basic problem in  > > I want to use it in the loop for radio buttons. But facing problems in
> > > setting the "value" of the control. i have tried
> > >
> > > ">
> > >
> > > but this is not working.
> > >
> > > Any help regarding 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]
> >
>
> _
> Is there a gadget-lover on your gift list?  MSN Shopping has lined up some
> good bets!  http://shopping.msn.com
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Basic question about

2003-11-25 Thread Raman Garg
one thing more thing

following code, which is a mixture of standart html and struts, works fine!!
">




- Original Message - 
From: "Ricky Lee" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 5:51 PM
Subject: Re: Basic question about  hi, so glad that i met the same question as you
>
> 
> module id:
> 
> 
>  />">abc
> 
> 
> article title:
> 
> 
>
> and it show me the errors:
>
> equal symbol expected
>
> ---
> can't nested tag like that? any solution about this?
>
>
>
>
>
> - Original Message -
> From: "Raman" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Tuesday, November 25, 2003 8:11 PM
> Subject: Basic question about 
>
> > hello all,
> > i have a basic problem in  > I want to use it in the loop for radio buttons. But facing problems in
> > setting the "value" of the control. i have tried
> >
> > ">
> >
> > but this is not working.
> >
> > Any help regarding 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]
>


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



Re: Basic question about

2003-11-25 Thread Ben Anderson
if that's how you want to do it you need to change your quotes from:
">abc
to:
abc


From: "Ricky Lee" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Re: Basic question about 
hi, so glad that i met the same question as you


module id:


">abc


article title:


and it show me the errors:

equal symbol expected

---
can't nested tag like that? any solution about this?




- Original Message -
From: "Raman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 8:11 PM
Subject: Basic question about 
> hello all,
> i have a basic problem in  I want to use it in the loop for radio buttons. But facing problems in
> setting the "value" of the control. i have tried
>
> ">
>
> but this is not working.
>
> Any help regarding 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]
_
Is there a gadget-lover on your gift list?  MSN Shopping has lined up some 
good bets!  http://shopping.msn.com

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


Re: Basic question about

2003-11-25 Thread Ricky Lee
hi, so glad that i met the same question as you


module id:


">abc


article title:



and it show me the errors:

equal symbol expected

---
can't nested tag like that? any solution about this?





- Original Message -
From: "Raman" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 25, 2003 8:11 PM
Subject: Basic question about  hello all,
> i have a basic problem in  I want to use it in the loop for radio buttons. But facing problems in
> setting the "value" of the control. i have tried
>
> ">
>
> but this is not working.
>
> Any help regarding 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]



Re: Basic question about

2003-11-25 Thread Ben Anderson
You can't specify a tag for the value of an attribute.  The only place you 
can nest tags is inside the tagbody.  Are you using JSTL and struts-el?
You could do

  

there might be a better way to do this.  I haven't worked with radio buttons 
that much, but this should work.
-Ben

From: "Raman" <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Subject: Basic question about 
hello all,
i have a basic problem in 
">
but this is not working.

Any help regarding this??

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Need a shot of Hank Williams or Patsy Cline?  The classic country stars are 
always singing on MSN Radio Plus.  Try one month free!  
http://join.msn.com/?page=offers/premiumradio

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


Re: Basic question about the struts sample application

2003-10-14 Thread Xiuyu Zhang
Sorry that I misunderstand your question.  I thought
logoff.do in mapping to index.jsp according to the
struts-config.xml.  I did not know it will be
forwarded to logon.jsp.

Katelyn
--- Julien Martin <[EMAIL PROTECTED]> wrote:
> Hello Katelyn,
> I have disabled the local forward and it is now the
> *global* forward that is
> being used ( path="/logoff.do"/>).  My question is how
> does the application know that "logoff.do" is mapped
> to the "logon.jsp"
> page?
> Julien.
> 
> - Original Message -
> From: "Xiuyu Zhang" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Wednesday, October 15, 2003 12:26 AM
> Subject: Re: Basic question about the struts sample
> application
> 
> 
> > The mapping are handled in the struts-config.xml
> file.
> >  If you take a look at the  tag, you
> > will find the action's path.  Inside the 
> tag,
> > you will find a  tag; hence, the
> /logoff.do
> > knows who to forward to.
> >
> > Hope this help.
> >
> > katelyn
> > --- Julien Martin <[EMAIL PROTECTED]>
> wrote:
> > > Hello,
> > >
> > > I am going through the struts sample application
> > > (struts-example.war) and I
> > > am trying to understand the firtst global
> forward.
> > > Here it is:
> > >
> > > ***
> > >  > > path="/logoff.do"/>
> > > ***
> > >
> > > How does the application knows that "logoff.do"
> is
> > > mapped to the logon.jsp
> > > page?
> > >
> > > Can anyone answer this question please?
> > >
> > > Thanks in advance,
> > >
> > > Julien.
> > >
> > > - Original Message -
> > > From: "Christian Bollmeyer"
> > > <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List"
> > > <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 14, 2003 11:19 PM
> > > Subject: Re: IDE
> > >
> > >
> > > > Am Dienstag, 14. Oktober 2003 16:43 schrieb
> Duncan
> > > Mills:
> > > >
> > > > Oracle JDev 10g has quickly become my favorite
> > > Struts IDE,
> > > > even running under Linux quite alright at home
> > > though this is
> > > > not a supported platform yet. That is, if you
> > > steer clear from
> > > > the Metal L&F and can live with the fact that
> 10g
> > > always
> > > > forgets the browser command line (even if you
> > > manually
> > > > edit the configuration file, don't remember
> how
> > > it's called
> > > > now). Otherwise, it's great, and considering
> > > Struts support,
> > > > it's something like Struts Studio++, though I
> > > usually don't
> > > > use the integrated modelers and do the UML
> work
> > > with
> > > > Poseidon UML 2.0 at home. Still, probably the
> best
> > > > allround Java IDE around.
> > > >
> > > > Considering 'free': in my understanding, JDev
> is
> > > free
> > > > for download (well...) and using it for an
> > > unlimited
> > > > evaluation period. For production use, you
> must
> > > > license it. That's ok, I think. Comes the
> price
> > > tag:
> > > > IIRC, JDev 9i was sold for $ 995, including
> > > support.
> > > > How will it be with 10g in this direction? Not
> > > that
> > > > I'm directly affected, as we're Oracle
> Alliance
> > > > partners and get the whole range of Oracle
> > > > software anyway, but the price tag for the
> final
> > > > version of 10g would still be interesting.
> > > Generally,
> > > > it really would be helpful if Oracle could
> just
> > > say:
> > > > using our products costs this per named user
> > > > and that per CPU, and you get an x% rebate for
> > > > ASFU licenses. But if Oracle says 'free', it
> > > should
> > > > really be 'free' in the common understanding
> of
> > > the
> > > > term, and not: free to download (never got
> charged
> > > > for just downloading anything, IIRC) and
> > > evaluation.
> > > > So better say: JDev costs $ x

Re: Basic question about the struts sample application

2003-10-14 Thread Xiuyu Zhang
The mapping are handled in the struts-config.xml file.
 If you take a look at the  tag, you
will find the action's path.  Inside the  tag,
you will find a  tag; hence, the /logoff.do
knows who to forward to.

Hope this help.

katelyn
--- Julien Martin <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I am going through the struts sample application
> (struts-example.war) and I
> am trying to understand the firtst global forward. 
> Here it is:
> 
> ***
>  path="/logoff.do"/>
> ***
> 
> How does the application knows that "logoff.do" is
> mapped to the logon.jsp
> page?
> 
> Can anyone answer this question please?
> 
> Thanks in advance,
> 
> Julien.
> 
> - Original Message -
> From: "Christian Bollmeyer"
> <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> Sent: Tuesday, October 14, 2003 11:19 PM
> Subject: Re: IDE
> 
> 
> > Am Dienstag, 14. Oktober 2003 16:43 schrieb Duncan
> Mills:
> >
> > Oracle JDev 10g has quickly become my favorite
> Struts IDE,
> > even running under Linux quite alright at home
> though this is
> > not a supported platform yet. That is, if you
> steer clear from
> > the Metal L&F and can live with the fact that 10g
> always
> > forgets the browser command line (even if you
> manually
> > edit the configuration file, don't remember how
> it's called
> > now). Otherwise, it's great, and considering
> Struts support,
> > it's something like Struts Studio++, though I
> usually don't
> > use the integrated modelers and do the UML work
> with
> > Poseidon UML 2.0 at home. Still, probably the best
> > allround Java IDE around.
> >
> > Considering 'free': in my understanding, JDev is
> free
> > for download (well...) and using it for an
> unlimited
> > evaluation period. For production use, you must
> > license it. That's ok, I think. Comes the price
> tag:
> > IIRC, JDev 9i was sold for $ 995, including
> support.
> > How will it be with 10g in this direction? Not
> that
> > I'm directly affected, as we're Oracle Alliance
> > partners and get the whole range of Oracle
> > software anyway, but the price tag for the final
> > version of 10g would still be interesting.
> Generally,
> > it really would be helpful if Oracle could just
> say:
> > using our products costs this per named user
> > and that per CPU, and you get an x% rebate for
> > ASFU licenses. But if Oracle says 'free', it
> should
> > really be 'free' in the common understanding of
> the
> > term, and not: free to download (never got charged
> > for just downloading anything, IIRC) and
> evaluation.
> > So better say: JDev costs $ , but we grant
> > you a free, unlimited evalutation license period.
> > This way round :-)
> >
> > Finally, I'll misuse the list for some
> JDev-related
> > problem I couldn't find any solution for neither
> at
> > OTN nor by consulting orionserver.com (noting
> > that OTN searches are our last resort, as even
> > UltraSearch seems to be always presenting
> > the *least* relevant topics first, with a special
> > knack for early 8.1.5 documentation). The
> > problem is that we are currently porting a
> > subproject from Sun ONE to JDev. Everything
> > went well, but we still have a Bean factory that's
> > accessed via JNDI. The general idea is that
> > my developers should be able to to not just
> > write their code in JDev, but also make use
> > of its 'Run' or 'Debug' features. This means,
> > everything has to run in the integrated OC4J
> > container, of course.  So my question is:
> > how do you tell OC4J about additional
> > JNDI resources available that are not
> > DataSources (in Sun ONE | Tomcat, you do
> > this via server.xml). We already found out that
> > -oc4j-app.xml seems to be part
> > of the solution, but adding the fitting
> >  entries there only led to
> > 'type unknown' JNDI errors in the JSP stack
> > trace. Yes, we even added everything feasible
> > to /lib and system classpath. Do you possibly
> > know a solution? Currently, the application
> > still runs in Tomcat, and we debug it via
> > log4j, ie. the 'old way'. Did cost us 3
> > man-days already, btw.
> >
> > -- Chris
> >
> > > Depends on your interpretation of the word open
> in this context, if
> > > it's "Free to download and evaluate" then try
> Oracle JDeveloper 10g
> > > Preview release
> http://otn.oracle.com/products/jdev
> > > If the definition is "Product that I will never,
> ever, ever have to
> > > pay for" then ignore this.
> > >
> > > Regards
> > >
> > > Duncan Mills
> > > - Original Message -
> > > From: "virupaksha" <[EMAIL PROTECTED]>
> > > To: "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> > > Sent: Tuesday, October 14, 2003 9:48 AM
> > > Subject: IDE
> > >
> > >
> > > Dear All,
> > >
> > > I am working on struts using exadel struts
> studio,
> > > Can any one know other open IDE for struts ..?
> > > especially for designing View(Drag & drop
> approach..?)
> > >
> > > let me know please..
> > >
>

Re: basic question

2003-03-09 Thread Eddie Bush
Listen to Sri - he's right on the money.

On a side note, you might find it beneficial to do some research on the 
technology, as doing so would undoubtedly answer more questions than you 
even know you have at this point.  One very good place to get started on 
your research is the Struts web site (http://jakarta.apache.org/struts). 
Check out the resources link (under community) - you'll find coverage 
that comes right out of the horses' mouthes.  If you're looking for 
something bound to reference, you might consider checking out O'Reilly's 
selection of Servlet/JSP/Struts books (Java Servlet Programming/Java 
Server Pages are where I got my start - good beginner/intermediate books 
- good references for even advanced folks).  There are getting to be 
several books about Struts too.

Another technology you might well be interested in is a thing call the 
Java Standard Tag Library (JSTL).  You can find a reference 
implementation on Jakarta 
(http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html). 
Essentially, the JSTL is just what it says:  a standard set of tags to 
cover many different needs.  Some (probably more than I'm aware of - 
haven't checked lately) containers are already shipping an 
implementation of the JSTL with their servlet containers nowadays -- 
almost certain Resin does this.  If yours doesn't, or you happen to like 
the Jakarta implementation better (I believe there is, if I recall 
correctly, some "wiggle room" in the spec for how certain things are to 
be implemented - I've heard of folks prefering the Jakarta JSTL over 
others and vice versa), then use that.  It's not that huge of a thing 
(ok, well, it actually could conceivably be depending on where the 
wiggle room was at -- I'm not familiar enough with all the different 
implementations to be an expert on that.  Hans Bergsten likely is though 
- and he frequents the taglibs-user list.)

... and Struts even has it's own JSTL-ized tags, called Struts-EL. 
Essentially, these tags were written to make use of the JSTL Expression 
Language (often referred to as "the EL" or just "EL") in Struts native 
tags.  They're very handy; essential (IMHO) at times.

Peace and GL!

Eddie

Sri Sankaran wrote:

1)The question I have is where will the JSP's reside.
will they be deployed on the web-server or the
application server.
JavaServer Pages (JSPs) help build the HTML that will be rendered on the client (browser).  Since one person's application server is not in another's lexicon, let me say that JSPs must reside in the environment of a servlet container (such as Tomcat).  

A plain web-server (such as IIS or Apache) wouldn't know that to do with them.  A web-server deals only with HTML artifacts.  JSPs on the other hand can be comprised of HTML tags, specialized tags and Java code.  Everything get converted (I am glossing over the details here) into HTML before getting routed back to the client.  Some servlet engines (such as Tomcat) serve dual roles -- as web-server and as a servlet engine.

2)where will struts reside,I think anwser to the first
question should answer this.
Needs a servlet container.

Thanks
Gopi
--
Eddie Bush




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


RE: basic question

2003-03-08 Thread Sri Sankaran

> 1)The question I have is where will the JSP's reside.
> will they be deployed on the web-server or the
> application server.
> 

JavaServer Pages (JSPs) help build the HTML that will be rendered on the client 
(browser).  Since one person's application server is not in another's lexicon, let me 
say that JSPs must reside in the environment of a servlet container (such as Tomcat).  

A plain web-server (such as IIS or Apache) wouldn't know that to do with them.  A 
web-server deals only with HTML artifacts.  JSPs on the other hand can be comprised of 
HTML tags, specialized tags and Java code.  Everything get converted (I am glossing 
over the details here) into HTML before getting routed back to the client.  Some 
servlet engines (such as Tomcat) serve dual roles -- as web-server and as a servlet 
engine.

> 2)where will struts reside,I think anwser to the first
> question should answer this.
> 

Needs a servlet container.

> Thanks
> Gopi
> 

Sri

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



RE: Basic question

2002-10-31 Thread Karr, David
> -Original Message-
> From: Affan Qureshi [mailto:quereshi@;etilize.com]
> Sent: Thursday, October 31, 2002 4:20 AM
> 
> A rather basic question.
> I want to accomplish in my JSP:
> 
> if((request.getParameter("ext")!=null)||(request.getParameter(
> "ext").equals(
> "0")))
> {
> /* do Something */
> }
> else
> {
> /* do Something else */
> }

This is one place where using the JavaServer Pages Standard Tag Library (JSTL) 
provides a small advantage.  Using the JSTL, this would look something like this:

  
   
 Do something.
   
   
 Do something else.
   
  

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




Re: Basic question

2002-10-31 Thread Marcus Biel
of course!
> if true: 
> else 
>

this should already "equal" tell you.

3 equals 3 = true.

cya,

marcus

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




Re: Basic question

2002-10-31 Thread Affan Qureshi
But this is
if(true){/* do somethig*/  }

if(false) {/* do something else */}

not
if(true)
{/*do something*/ }
else
{/*do something else*/}

Or is it?

- Original Message -
From: "Marcus Biel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 6:05 PM
Subject: Re: Basic  question


> if: 
> else: 
>
> marcus
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Re: Basic question

2002-10-31 Thread Marcus Biel
if: 
else: 

marcus

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




Re: Basic question

2002-10-31 Thread Affan Qureshi
I guess i can do:






for
if((request.getParameter("ext")!=null)||(request.getParameter("ext").equals(
"0")))
but still I can't figure out the "else" clause. I dont want to insert
another set of  and  tags with inverse
conditions cause that will introduce another "if" instead of the "else"
clause.

- Original Message -
From: "Affan Qureshi" <[EMAIL PROTECTED]>
To: "struts-user" <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 5:20 PM
Subject: Basic  question


> A rather basic question.
> I want to accomplish in my JSP:
>
>
if((request.getParameter("ext")!=null)||(request.getParameter("ext").equals(
> "0")))
> {
> /* do Something */
> }
> else
> {
> /* do Something else */
> }
>
> Using the  tag I write
>
> 
>
>
> 
> 
>
>
> 
>
> But first this is not an "else" equivalent and secondly it does not
account
> for "null" if the parameter is not found in request.
> What is the solution?
>
> Thanks for your time on this silly question.
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


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




RE: Basic Question About custom Tags

2001-11-26 Thread Tom Morris

I'm sure it is possible.

Our Scenario:
We use the struts iterator tags,
we have custom tags that inspects the bean exposed by that iterator,
our custom tags output manipulated content (& other derived content).

We experienced no problem, though may have something more complex in mind.

TomM

> -Original Message-
> From: Alvin Kutttikkat Antony 
> [mailto:[EMAIL PROTECTED]] 
> Sent: maandag 26 november 2001 12:45
> To: [EMAIL PROTECTED]
> Subject: RE: Basic Question About custom Tags
> 
> 
> Is it possible to  use a Struts Tag inside my custom Tag ,for 
> example I have to perform  Iteration in my custom tag!.
> 
> Any help?
> Alvin
> 
> alvin kuttikkat antony
> Internet und Virtuelle Hochshule
> Directory
> Universität München
> 
> Leopoldstr .3
> 80802 München
> Germany
> 
> Office Tel + 49.89.21025979
> Office Fax + 49.89.21025980
> 
> 
> >>> [EMAIL PROTECTED] 11/23/01 12:01pm >>>
> (-) create a tld
> (-) put the tld in the classpath
> (-) create a class for the tag
> (-) put the tag definition in your jsp
> (-) compile and run
> 
> have a look at (e.g.) struts-html.tld to get a grasp on this
> 
> hth,
> tomK
> 
> > -Original Message-
> > From: Alvin Kutttikkat Antony 
> > [mailto:[EMAIL PROTECTED]] 
> > Sent: vrijdag 23 november 2001 11:25
> > To: [EMAIL PROTECTED] 
> > Subject: Basic Question About custom Tags
> > 
> > 
> > Hello All,
> >   What are the steps to create a Application specific 
> > custom Tag?
> > 
> > Plz help!
> > 
> > Thanks,
> > Alvin
> > 
> > 
> > 
> > 
> > alvin kuttikkat antony
> > Internet und Virtuelle Hochshule
> > Directory
> > Universität München
> > 
> > Leopoldstr .3
> > 80802 München
> > Germany
> > 
> > Office Tel + 49.89.21025979
> > Office Fax + 49.89.21025980
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:struts-user-> [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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

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




RE: Basic Question About custom Tags

2001-11-26 Thread Tom Klaasen (TeleRelay)

Have you got any concrete problems? I think it should work...

tomK

> -Original Message-
> From: Alvin Kutttikkat Antony 
> [mailto:[EMAIL PROTECTED]] 
> Sent: maandag 26 november 2001 12:45
> To: [EMAIL PROTECTED]
> Subject: RE: Basic Question About custom Tags
> 
> 
> Is it possible to  use a Struts Tag inside my custom Tag ,for 
> example I have to perform  Iteration in my custom tag!.
> 
> Any help?
> Alvin
> 
> alvin kuttikkat antony
> Internet und Virtuelle Hochshule
> Directory
> Universität München
> 
> Leopoldstr .3
> 80802 München
> Germany
> 
> Office Tel + 49.89.21025979
> Office Fax + 49.89.21025980
> 
> 
> >>> [EMAIL PROTECTED] 11/23/01 12:01pm >>>
> (-) create a tld
> (-) put the tld in the classpath
> (-) create a class for the tag
> (-) put the tag definition in your jsp
> (-) compile and run
> 
> have a look at (e.g.) struts-html.tld to get a grasp on this
> 
> hth,
> tomK
> 
> > -Original Message-
> > From: Alvin Kutttikkat Antony 
> > [mailto:[EMAIL PROTECTED]] 
> > Sent: vrijdag 23 november 2001 11:25
> > To: [EMAIL PROTECTED] 
> > Subject: Basic Question About custom Tags
> > 
> > 
> > Hello All,
> >   What are the steps to create a Application specific 
> > custom Tag?
> > 
> > Plz help!
> > 
> > Thanks,
> > Alvin
> > 
> > 
> > 
> > 
> > alvin kuttikkat antony
> > Internet und Virtuelle Hochshule
> > Directory
> > Universität München
> > 
> > Leopoldstr .3
> > 80802 München
> > Germany
> > 
> > Office Tel + 49.89.21025979
> > Office Fax + 49.89.21025980
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:struts-user-> [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:struts-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 

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




RE: Basic Question About custom Tags

2001-11-26 Thread Alvin Kutttikkat Antony

Is it possible to  use a Struts Tag inside my custom Tag ,for example I have to 
perform  Iteration in my custom tag!.

Any help?
Alvin

alvin kuttikkat antony
Internet und Virtuelle Hochshule
Directory
Universität München

Leopoldstr .3
80802 München
Germany

Office Tel + 49.89.21025979
Office Fax + 49.89.21025980


>>> [EMAIL PROTECTED] 11/23/01 12:01pm >>>
(-) create a tld
(-) put the tld in the classpath
(-) create a class for the tag
(-) put the tag definition in your jsp
(-) compile and run

have a look at (e.g.) struts-html.tld to get a grasp on this

hth,
tomK

> -Original Message-
> From: Alvin Kutttikkat Antony 
> [mailto:[EMAIL PROTECTED]] 
> Sent: vrijdag 23 november 2001 11:25
> To: [EMAIL PROTECTED] 
> Subject: Basic Question About custom Tags
> 
> 
> Hello All,
>   What are the steps to create a Application specific 
> custom Tag?
> 
> Plz help!
> 
> Thanks,
> Alvin
> 
> 
> 
> 
> alvin kuttikkat antony
> Internet und Virtuelle Hochshule
> Directory
> Universität München
> 
> Leopoldstr .3
> 80802 München
> Germany
> 
> Office Tel + 49.89.21025979
> Office Fax + 49.89.21025980
> 
> 
> 
> --
> 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: Basic Question About custom Tags

2001-11-23 Thread Tom Klaasen (TeleRelay)

(-) create a tld
(-) put the tld in the classpath
(-) create a class for the tag
(-) put the tag definition in your jsp
(-) compile and run

have a look at (e.g.) struts-html.tld to get a grasp on this

hth,
tomK

> -Original Message-
> From: Alvin Kutttikkat Antony 
> [mailto:[EMAIL PROTECTED]] 
> Sent: vrijdag 23 november 2001 11:25
> To: [EMAIL PROTECTED]
> Subject: Basic Question About custom Tags
> 
> 
> Hello All,
>   What are the steps to create a Application specific 
> custom Tag?
> 
> Plz help!
> 
> Thanks,
> Alvin
> 
> 
> 
> 
> alvin kuttikkat antony
> Internet und Virtuelle Hochshule
> Directory
> Universität München
> 
> Leopoldstr .3
> 80802 München
> Germany
> 
> Office Tel + 49.89.21025979
> Office Fax + 49.89.21025980
> 
> 
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 
> 

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




Re: Basic Question in Servlet/JSP ?

2001-07-23 Thread Calvin Yu


Here are somethings I can think of:

1) The PageContext class not only encapsulates these objects, but
container specific behavior as well (handlePageException, pushBody,
etc.).  I would imagine the availability of request and response objects
here are mainly used to support these features, and not necessarily for
general accessibility.

2) Also, PageContext provides some convience methods for commonly used
tasks (include, forward, etc.)  which helped minimize the size of
scriplet block in JSPs.

3) PageContext allows a JSP engine to easily initialize a tag library
with a page's state by initializing it with one object instead of many.


Why isn't there a similar PageContext for Servlets?  Because:

1) Behavior such as exception handling (handlePageException) and output
control (pushBody, popBody) are handled by the developer of the servlet.

2) In servlets, any kind of delegation to other layers are handled by
the servlet developer, whereas delegation in JSPs are handled by the
container (JSP taglib).

3) The JSP Spec is a later spec than the Servlet spec, and benefits from
lessons learn from the earlier Serlvet spec.

Calvin


On 23 Jul 2001 17:41:06 +0530, suhas wrote:
> Hi Cyu ,
> I was going through JSPService method -when the jsp gets translated
into
> Servlet where generally we see pageContext instance obtained from the
> JSPFactory  which is actually container specific implementation .
> 
> My question was - Instead of this container only need to pass
> HttpServletRequest and HttpServletResponse objects  as parameters to
the
> _JSPservice method .  We can get the Session object from above
> HttpServletRequest that container sends as parameter . The out object
could
> have been instantiated using JSPWriter.So why was there a need to have
a
> PageContext Class when everything was possible without that  ,in JSP .
> 
> Suppose  PageContext class comes in JSP , then why the same concept
was not
> in Servlet ???
> 
> suhas
> 
> - Original Message -
> From: Calvin Yu <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, July 23, 2001 5:24 PM
> Subject: Re: Basic Question in Servlet/JSP ?
> 
> 
> On 23 Jul 2001 16:29:52 +0530, suhas wrote:
> 
> > Better can't we get this from the container specific implementaion
> > something like PageContext in the Servlet too? .
> >
> 
> Why would we need to?
> 
> Calvin
> 





Re: Basic Question in Servlet/JSP ?

2001-07-23 Thread Calvin Yu

On 23 Jul 2001 16:29:52 +0530, suhas wrote:

> Better can't we get this from the container specific implementaion
> something like PageContext in the Servlet too? . 
>  

Why would we need to?

Calvin




Re: Basic Question in Servlet/JSP ?

2001-07-23 Thread Ted Husted

To access the request in a Struts Action, you would reference the
"request" passed to the perform() method. 

public ActionForward perform(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,//  <--- request
 HttpServletResponse response)

To access the session, you would code 

HttpSession session = request.getSession();


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/

suhas wrote:
> 
> I was not referring to Struts . We have something like PageContext in the
> JSP . which we use to set some information using setAttribute method in
> either Request scope or  Session scope . Instead same could have done with
> the
> request.setAttribute( "key" val) or session.setAttribute("key" , val ) .
> My question was why we have not provided with few implicit objects like
> session , out etc.. in the Servlet's ???
> Why this concept came only in JSP ? .
> 
> Suhas



Re: Basic Question in Servlet/JSP ?

2001-07-23 Thread suhas

I was not referring to Struts . We have something like PageContext in the
JSP . which we use to set some information using setAttribute method in
either Request scope or  Session scope . Instead same could have done with
the
request.setAttribute( "key" val) or session.setAttribute("key" , val ) .
My question was why we have not provided with few implicit objects like
session , out etc.. in the Servlet's ???
Why this concept came only in JSP ? .

Suhas



- Original Message -
From: Ted Husted <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 23, 2001 4:43 PM
Subject: Re: Basic Question in Servlet/JSP ?


> If you're referring to the PageContext that is available when you are
> rendering the view, the answer would be because it doesn't exist yet ;-)
> The Struts ActionController (a servlet) calls an Action (not a servlet),
> and may eventually forwards to a JSP (another servlet). The PageContext
> for the JSP isn't available until it is called. The mechanism for
> carrying information between HTTP forwards is the HttpServletRequest, or
> the session to carry it between requests.
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 737-3463.
> -- http://www.husted.com/about/struts/
>
>
> > suhas wrote:
> >
> > Hi
> >
> > The PageContext instance gives us access to implicit objects in the
> > page
> > .This is used mainly in JSP . Why Can't we have something in the
> > Servlet
> > ?
> > Why to directly use HttpServletRequest , HttpSession in the Servlet ?
> > Better can't we get this from the container specific implementaion
> > something like PageContext in the Servlet too? .
> >
> > Regards
> >
> >
>




Re: Basic Question in Servlet/JSP ?

2001-07-23 Thread Ted Husted

If you're referring to the PageContext that is available when you are
rendering the view, the answer would be because it doesn't exist yet ;-)
The Struts ActionController (a servlet) calls an Action (not a servlet),
and may eventually forwards to a JSP (another servlet). The PageContext
for the JSP isn't available until it is called. The mechanism for
carrying information between HTTP forwards is the HttpServletRequest, or
the session to carry it between requests.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/


> suhas wrote:
> 
> Hi
> 
> The PageContext instance gives us access to implicit objects in the
> page
> .This is used mainly in JSP . Why Can't we have something in the
> Servlet
> ?
> Why to directly use HttpServletRequest , HttpSession in the Servlet ?
> Better can't we get this from the container specific implementaion
> something like PageContext in the Servlet too? .
> 
> Regards
> 
>