error on struts 1.1

2007-05-07 Thread maya


hi, on this pg of struts 1.1 documentation, 
http://localhost/struts-documentation/userGuide/installation.html

(don't know on-line equiv. of this page, as link to 1.1 on this page
http://struts.apache.org/downloads.html#PriorReleases gets you a 404..)

it says where to put jar's, tld's, etc.. but not dtd's... what are dtd's 
and where do they go?  I don't see any ref to dtd's in the documenation..


right now trying to do a simple layout.. (so: using only tiles-related 
stuff for now..)


but get error:

org.apache.jasper.JasperException
org.apache.struts.tiles.taglib.InsertTag
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

this error tells me absolutely nothing..  in JSP's I have this directive:

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


as for the rest, I put all jars that come with 1.1 download in 
WEB-INF/lib/ (don't see a lot of struts-related jars, though, only one 
(struts.jar); put all tld's in WEB-INF/...  but don't know where to put 
dtd's, (in their own folder? inside WEB-INF/ or inside WEB-INF/lib?? or 
just in WEB-INF/?)


why can't I find a ref to dtd's -- and an explanation as to what they 
are for -- in documenation?


using Tomcat 5.5..

thank you very much...



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



Re: error on struts 1.1

2007-05-07 Thread maya

Antonio Petrelli wrote:

2007/5/7, maya <[EMAIL PROTECTED]>:



hi, on this pg of struts 1.1 documentation,




Time to upgrade I suppose :-)


2007/5/7, maya <[EMAIL PROTECTED]>:



it says where to put jar's, tld's, etc.. but not dtd's... what are dtd's




I went to Google and typed "dtd", this is the first result:
http://www.w3schools.com/dtd/default.asp


and where do they go?  I don't see any ref to dtd's in the documenation..


You don't have to worry about DTDs, since they are already included in
Struts package. DTDs are needed when validating XML files. In your case 
they

are needed to validate Tiles configuration files.


right now trying to do a simple layout.. (so: using only tiles-related

stuff for now..)

but get error:

org.apache.jasper.JasperException
org.apache.struts.tiles.taglib.InsertTag
org.apache.jasper.servlet.JspServletWrapper.handleJspException(
JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java 


:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




This is another problem, please check if your Tiles definitions are loaded
correctly at startup. And anyway you should post the complete stacktrace.

why can't I find a ref to dtd's -- and an explanation as to what they

are for -- in documenation?




What DTDs are you referring to?


all the ones that come w/download...

ok, downloaded 1.3.8.. (can't find url to download 1.3.5..)  gosh, every 
version has a problem..  on this one can't find documentation..  has to 
be built w/maven..  have never used maven, only Ant..  man, what a pain, 
I swear...

what do I need to do to build documentation with maven?

oh brother...

why can't all downloads come with documentation built already? it's just 
a bunch of html files





Antonio




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



Re: error on struts 1.1

2007-05-07 Thread maya

Antonio Petrelli wrote:

2007/5/7, maya <[EMAIL PROTECTED]>:



hi, on this pg of struts 1.1 documentation,




Time to upgrade I suppose :-)


2007/5/7, maya <[EMAIL PROTECTED]>:



it says where to put jar's, tld's, etc.. but not dtd's... what are dtd's




I went to Google and typed "dtd", this is the first result:
http://www.w3schools.com/dtd/default.asp


and where do they go?  I don't see any ref to dtd's in the documenation..


You don't have to worry about DTDs, since they are already included in
Struts package. DTDs are needed when validating XML files. In your case 
they

are needed to validate Tiles configuration files.


right now trying to do a simple layout.. (so: using only tiles-related

stuff for now..)

but get error:

org.apache.jasper.JasperException
org.apache.struts.tiles.taglib.InsertTag
org.apache.jasper.servlet.JspServletWrapper.handleJspException(
JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java 


:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)




This is another problem, please check if your Tiles definitions are loaded
correctly at startup. And anyway you should post the complete stacktrace.

why can't I find a ref to dtd's -- and an explanation as to what they

are for -- in documenation?




What DTDs are you referring to?

Antonio


here is page for 1.3.5..  http://struts.apache.org/1.3.5/index.html
where is link for download?  (need a version that comes with 
documentation built already..)


thank you...



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



Re: error on struts 1.1

2007-05-07 Thread maya

Dave Newton wrote:

--- maya <[EMAIL PROTECTED]> wrote:

why can't all downloads come with documentation
built already? it's just a bunch of html files


You're right, and they're in the struts-documentation
WAR file supplied w/ the binary download.

d.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


nope, not with 1.3.8..   with this version you have to build it yourself...

http://struts.apache.org/1.3.8/learning.html

I seem to remember 1.3.5 comes with documentation built already, but 
can't find link to download 1.3.5


thank you for yr response



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



Re: error on struts 1.1

2007-05-07 Thread maya



my gosh, you are right hmm.. interesting..

ok, so I need to know certain basic things..  I assume general rule, 
regardless of version, is jars always go in WEB-INF/lib, tld's, go in 
WEB-INF/.. but couldn't find tld's, so searched for them.. found them in 
different directories, some in 
src/taglib/src/main/resources/META-INF/tld, some in 
src/el/src/main/resources/META-INF/tld..  this is a bit confusing.. why 
don't they just put all tld's together?  it doesn't say anyting in this 
pg, http://struts.apache.org/1.3.8/userGuide/installation.html as far 
where to put tld's.. I assume tld's always go in WEB-INF/..  is this 
correct?


(I just downloaded struts-1.3.8-lib.zip, doesn't even come with tld's.. 
how is this possible?  tld's are always needed, aren't they?  simplest 
would be a folder called 'tld' w/all tld's in there.. gosh, this is a 
bit messy, not sure what tld's will need.. from all the different tld's 
I found in diff folders in src version...


same thing w/dtd's -- are they needed? if so where do they go? and which 
ones do I need? when search for dtd's in src download find a million of 
them, in different folders...


oh brother...

thank you...



Dave Newton wrote:

Weird; I just downloaded 1.3.8-all and all the docs
are in the "docs" directory for me.

--- maya <[EMAIL PROTECTED]> wrote:


Dave Newton wrote:

--- maya <[EMAIL PROTECTED]> wrote:

why can't all downloads come with documentation
built already? it's just a bunch of html

files

You're right, and they're in the

struts-documentation

WAR file supplied w/ the binary download.

d.


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam
protection around 
http://mail.yahoo.com 

nope, not with 1.3.8..   with this version you have
to build it yourself...

http://struts.apache.org/1.3.8/learning.html

I seem to remember 1.3.5 comes with documentation
built already, but 
can't find link to download 1.3.5


thank you for yr response





-

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





__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




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



what version is best..

2006-09-24 Thread maya

hi,

I started a new job recently where they use struts/tiles for everything, 
I had never used this technique before and would like to learn it well.. 
 when I go to http://struts.apache.org/downloads.html I see versions 
1.0.1, 1.2.9, & 1.3.5..  but all books I have checked out online don't 
cover 1.3.5 yet..  (Oreilly's Jakarta Struts 2nd Edtion, for example, 
covers only 1.1.. as does wrox's struts book..) I'm running Tomcat 5.5, 
JVM 1.4.09.. does it matter what version of struts framework I use?   I 
just want to find a version that when I buy a book that version will be 
covered in the book...  does it matter if I don't use latest struts version?


thank you..


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



tomcat/struts...

2006-10-04 Thread maya

I'm just starting to learn struts.. have been doing JSP/servelts/tomcat
for about three years..  downloaded and am running successfully example
5 from this pg..
http://www.javaworld.com/javaworld/jw-01-2002/jw-0104-tilestrut.html
am using tomcat 5.5/jvm 1.4

this struts example (and all other webapps installed in tomcat) are
running fine; however, I do get errors when start tomcat, or maybe
they're not errors (pls see screenshot at
http://www.mayacove.com/java/tomcat.html..  where it says 
"struts-related", is this an error?)


the line "INFO: XML validation disabled" was getting it before I put 
struts stuff in there, I had been wondering what this line means (since, 
again, all webapps running fine in spite of it...)


would appreciate answers.. thank you very much..





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



loading tiles dynamically...

2006-10-16 Thread maya

hi,

how do you load tiles dynamically in response to user input..
I have classic setting of nav on the left and main content to the right 
of nav tile..  how do I load tiles dynamically in main-content tile in 
response to what link user clicks in left nav? (I mean same principle as 
when you load frames dynamically in a frameset..)


am using Struts 1.1..

thank you..


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



tiles: detect controller pg?

2006-10-23 Thread maya

am fairly new to struts, so not sure you can do this...

I was wondering if it's possible for a tile to detect what page is 
calling it..  I have corp logo in header tile; header tile is called by 
all pgs, but I would like the  code around logo to appear 
ONLY if header tile is NOT being called from index.jsp page..


is this possible?

thanks..


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



Re: tiles: detect controller pg?

2006-10-26 Thread maya

Niall Pemberton wrote:

On 10/23/06, maya <[EMAIL PROTECTED]> wrote:

am fairly new to struts, so not sure you can do this...

I was wondering if it's possible for a tile to detect what page is
calling it..  I have corp logo in header tile; header tile is called by
all pgs, but I would like the  code around logo to appear
ONLY if header tile is NOT being called from index.jsp page..

is this possible?


Simplest way is to insert a different header into the template for the 
index.jsp


Niall



thanks..


yes of course that's the simplest way, thought maybe there was a more 
sophisticated way of doing it.. ok, thanks..



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



struts-html question.... puzzling problem...

2006-11-28 Thread maya

hi,

I'm following chapter 3 of Wrox Struts book ("Professional Jakarta 
Struts") to the letter.. using struts 1.3.5, Tomcat 5.5/1.4...  get 
TLD-related error on index.jsp (entire zipped-up webapp (small, 
virus-free...:) here... www.mayacove.com/java/strutsWrox.zip)


did index.jsp, and the classes, all following instructions in the book, 
the classes (LookupForm and LookupAction) compile fine..  put all 
packages (.jar's) from Jakarta Struts download where they belong 
(WEB-INF/lib..)


in index.jsp is this tag:

  

I looked in struts-html.tld itself, one thing I note is that under 
"form" tag there are no attributes defined for either "name" or "type", 
only for "action" (which can also be seen here, 
http://struts.apache.org/1.3.5/struts-taglib/tlddoc/html/tld-summary.html) 
so am a bit puzzled here



one thing I also noted is that JSP servlet for index.jsp is non-existent 
(when look in tomcat/work/  don't see either index_jsp.java or 
index_jsp.class..)  i.e., JSP for some reason is not even being read by 
container..)


I have in struts-config.xml:

  

  

  name="lookupForm">


in LookupAction.java:

  LookupForm lookupForm = (LookupForm)form;
(this is confusing: so lookupForm is name of form but also an 
instantiation of the other class in the package...(??)


would much appreciate some help.. thank you..
  (posted a question on Wrox's website relevant forum about two days 
ago but have gotten no response..)


thank you very much.


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



Re: struts-html question.... puzzling problem...

2006-11-28 Thread maya

Dave Newton wrote:

From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya

I'm following chapter 3 of Wrox Struts book ("Professional Jakarta
Struts") to the letter.. using struts 1.3.5, Tomcat 5.5/1.4...  get
TLD-related error on index.jsp (entire zipped-up webapp (small,
virus-free...:) here... www.mayacove.com/java/strutsWrox.zip)


Welcome to the world of Wrox.

(Sorry, Wrox.)

As mentioned, you need to look at *current* Struts documentation; that
book is like 3(?) years old and was written for Struts 1.1 (I imagine).

Struts has changed since then.

Dave


thank you very much.. yes, the book uses 1.1..  I can't find any book 
that uses later versions, no 1.1 download on Jakarta site.. this is all 
very puzzling and confusing.. and Wrox, unlike oreilly, there's no 
e-mail contact for the authors (the few times I have written to oreilly 
authors I have always gotten a response...  oh well...)


thank you...  need to learn struts, what to do?  really can't find any 
book that covers 1.3.5..




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



Re: struts-html question.... puzzling problem...

2006-11-28 Thread maya

Dave Newton wrote:

From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
thank you very much.. yes, the book uses 1.1..  I can't find any book
that uses later versions, no 1.1 download on Jakarta site.. 


http://struts.apache.org/downloads.html#PriorReleases


did go to "1.1" link?  http://struts.apache.org/1.1/index.htm   ;)

thanks to all for your help




There are documents on the Struts Wiki discussing changes between 1.1 ->
1.2, I don't know anything about 1.3. There are probably docs for that
there too:

http://wiki.apache.org/struts/StrutsUpgrade

Dave



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



Re: struts-html question.... puzzling problem...

2006-11-28 Thread maya
thank you very much..  downloaded lib and src downloads..  when 
unzipped, found that all files under "docs" are xmls not htmls..  :( oh 
brother  wonder also if there's an equiv. to this pg for 1.3.5... 
http://struts.apache.org/1.3.5/struts-taglib/tlddoc/index.html.


many thanks..



Dave Newton wrote:

http://archive.apache.org/dist/struts/struts-1.1/


-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
Sent: Tuesday, November 28, 2006 2:37 PM
To: user@struts.apache.org
Subject: Re: struts-html question puzzling problem...

Dave Newton wrote:

From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
thank you very much.. yes, the book uses 1.1..  I can't find any

book

that uses later versions, no 1.1 download on Jakarta site..

http://struts.apache.org/downloads.html#PriorReleases

did go to "1.1" link?  http://struts.apache.org/1.1/index.htm   ;)

thanks to all for your help



There are documents on the Struts Wiki discussing changes between

1.1 ->

1.2, I don't know anything about 1.3. There are probably docs for

that

there too:

http://wiki.apache.org/struts/StrutsUpgrade

Dave


-
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: struts-html question.... puzzling problem...

2006-11-29 Thread maya
thank you all very much for your help..  finally got it to work w/struts 
1.1 (I had tried earlier version before, but 1.2.9, since hadn't been 
able to find 1.1)


now need to deal w/WAR-file thing, unfortunately don't know how to 
unpack/deploy WAR files..  I tried about a year ago to learn to use WAR 
files, couldn't get it to work.. there is indeed a 
struts-documentation.war in the 1.1 download..  found WAR-file 
instructions for example here, 
http://www.jguru.com/faq/view.jsp?EID=123229, but it's for tomcat 3.2.. 
I hope this will work on Tomcat 5.5 (since struts 1.1 is rather old..) 
can I assume url for docs then will be struts-documentation/index.jsp?


how exactly does this WAR-thing work???  :) again, thank you very much..



Wendy Smoak wrote:

On 11/28/06, maya <[EMAIL PROTECTED]> wrote:


thank you very much..  downloaded lib and src downloads..  when
unzipped, found that all files under "docs" are xmls not htmls..


You're probably looking at the "source" of the html pages, which is xml.

The documentation is inside struts-documentation.war, which you can
deploy to a servlet container, or just unzip somewhere.


wonder also if there's an equiv. to this pg for 1.3.5...
http://struts.apache.org/1.3.5/struts-taglib/tlddoc/index.html


  http://struts.apache.org/1.1/userGuide/

 From the menu, under Developer Guides, choose a tag library, then
either the API Reference (above) or the Package Description.




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



Re: [OT] RE: Re: struts-html question.... puzzling problem...

2006-11-29 Thread maya
thank you very much for your help..  I'm a developer, mostly front-end 
(but very experienced) also know Java programming (and JSP/back-end), I 
started learning Java about three years ago and I like programming a 
lot.. know very well how to use Tomcat, servlets, etc..


started a new job a few months ago where I use struts, I have no 
problems at work, since deal mostly w/front-end (custom tags, etc..) but 
since I also have an interest in programing, and do have back-end 
experience, want to learn struts "from the ground up", i.e., want to be 
able to create a complete app from scratch w/struts (write the classes, 
everything..) and thus as a learning exercise want to write my own 
little CMS with struts for uploading/displaying photos (could do this 
every easily in way I'm used to, namely putting all processing code in 
JSP itself, but do want to learn how to do it with struts..)


the WAR-file thing has really eluded me.. but now have no choice but 
learn how to deal w/it since otherwise won't be able to look @ docs for 
struts 1.1


would appreciate some suggestions.. thank you very much..


Dave Newton wrote:

From: news [mailto:[EMAIL PROTECTED] On Behalf Of maya
how exactly does this WAR-thing work???


This may not be your best approach to learning JEE.

Have you considered getting a book that discusses JEE and moving on to
Struts from there?

Dave



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



tiles: error

2006-12-04 Thread maya

please what does this error mean?


   ServletException in '/tiles/news_tiles.jsp': null
   javax.servlet.jsp.JspException: ServletException in
   '/tiles/news_tile.jsp': null


it looks like server can't file the tile, but the tile is there..

thank you very much..


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



Hi-New to this group

2005-07-20 Thread Maya menon
Hi all,

I am designing a web app/ Its supposed to have 500 concurrent users.

1. Module- Login
The users login using their uid/password and see the stuff in their database

I am planning to use Struts,jsp,action classes in the front end
Now, back end I am thinking about session ejbs which reads database tables. The 
method for getting values from database tables will be implemented in a DAO. 

Now, what should I use in the middle layer ?
ie, intercation between action classes and session ejb: For a struts based 
appp, whats best here ?
Again 500 concurrent users.
 
Thanks


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Hi-New to this group

2005-07-20 Thread Maya menon
Thank you dave and Eric for the quick solution regarding session facade. 
 
Now using a business delegate and a session facade, is it a good idea ?
 
Also, As Dave wrote about session ejbs, please suggest some give work arounds 
for a session ejb. Requirement is to read contents from database.
 
Maya

Dave Newton <[EMAIL PROTECTED]> wrote:
Maya menon wrote:

>Now, back end I am thinking about session ejbs which reads database tables. 
>
Unless there's a requirement or Very Compelling Reason to use EJB I'd 
sure try to avoid them.

>Now, what should I use in the middle layer ?
>ie, intercation between action classes and session ejb: For a struts based 
>appp, whats best here ?
> 
>
I'd think that a fairly basic facade between the session EJB and/or some 
helper classes would be sufficient.

Googling for "session facade" should give you more than enough info.

Dave



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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Hi-New to this group

2005-07-20 Thread Maya menon
In my case, I have had bad experience with using CMPs. But with session ejbs 
acting as facade and other helper classes [like DAO having SQL code] I have 
seen good performances. 
 
Can anyone send me a sample implementation of a business delegate and session 
facade ?
 
Thanks

Mike Darretta <[EMAIL PROTECTED]> wrote:
We use an Axis SOAP interface to communicate to our session beans. I 
don't necessarily recommend it, but it does the trick nonetheless...

Regarding EJBs, we saw significant performance hits when conducting 
heavy CMP crunching. A simple solution was to employ direct JDBC calls 
within the session beans. This increased performance 10-fold, in some cases.

Mike

[EMAIL PROTECTED] wrote:

>I don't understand Dave's concern. Perhaps he would elaborate on why he says 
>to avoid Session beans.
>
>I have developed applications using Session beans wrapping DAOs for search, 
>etc., along with timer-reloading Entity beans and have seen good results. 
>However, it may be that he would favor POJOs if the container isn't really 
>giving your app anything (why go through the trouble of EJB in other words). 
>In my case I found plenty of benefit in the declarative transaction handling 
>alone.
>
>As for business delegate + session facade. Sure, I can see a case for that. 
>You are adding more complexity, but, your Struts actions shouldn't need to 
>interact with EJB in an ideal world, even if it's a facade-level EJB. I like 
>to have actions access a Manager (aka business delegate) only. Everything else 
>is hidden behind the manager (whether that be EJB access, direct DAO access, 
>or some combination).
>
>Another camp would tell you to just use something like a business delegate + 
>iBatis or Hibernate. I cannot comment as I have not used that approach. 
>Personally, I like to write all my own SQL (along with everything else you can 
>write). 
>
>Erik
>
>
>-Original Message-
>From: Maya menon 
>Sent: Jul 20, 2005 3:35 PM
>To: Struts Users Mailing List 
>Subject: Re: Hi-New to this group
>
>Thank you dave and Eric for the quick solution regarding session facade. 
> 
>Now using a business delegate and a session facade, is it a good idea ?
> 
>Also, As Dave wrote about session ejbs, please suggest some give work arounds 
>for a session ejb. Requirement is to read contents from database.
> 
>Maya
>
>Dave Newton wrote:
>Maya menon wrote:
>
> 
>
>>Now, back end I am thinking about session ejbs which reads database tables. 
>>
>> 
>>
>Unless there's a requirement or Very Compelling Reason to use EJB I'd 
>sure try to avoid them.
>
> 
>
>>Now, what should I use in the middle layer ?
>>ie, intercation between action classes and session ejb: For a struts based 
>>appp, whats best here ?
>>
>>
>> 
>>
>I'd think that a fairly basic facade between the session EJB and/or some 
>helper classes would be sufficient.
>
>Googling for "session facade" should give you more than enough info.
>
>Dave
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>__
>Do You Yahoo!?
>Tired of spam? Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> 
>


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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Hi-New to this group

2005-07-20 Thread Maya menon
Hi, 
 
I am pretty new to Hibernate, [no idea at all] can anyone send me a sample 
implementation ?
 
Thanks

Dave Newton <[EMAIL PROTECTED]> wrote:
[EMAIL PROTECTED] wrote:

>I don't understand Dave's concern. Perhaps he would elaborate on why he says 
>to avoid Session beans.
> 
>
Anything EJB-related I've run in to (except in a few instances) has been 
mind-blowing overkill, that's all.

I'm not saying they're _never_ the right answer, and I might change my 
mind with the latest EJB spec (at least a little), but the footprint 
required for their use seems biggish for the benefits derived. In most 
cases ;)

>However, it may be that he would favor POJOs if the container isn't really 
>giving your app anything (why go through the trouble of EJB in other words). 
>
I would ;)

>Another camp would tell you to just use something like a business delegate + 
>iBatis or Hibernate. I cannot comment as I have not used that approach. 
>
This is the approach I've used the most and it seems to work pretty well 
for me--it's very simple and keeps Actions clean and relatively 
maintenance-free.

Dave



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



-
 Start your day with Yahoo! - make it your home page 

Re: Hi-New to this group

2005-07-20 Thread Maya menon
If any one has any sample implementations using ibatis / hibernate, please send 
them to me. It would be really helpful

Rick Reumann <[EMAIL PROTECTED]> wrote:[EMAIL PROTECTED] wrote the following on 
7/20/2005 3:44 PM:

> Another camp would tell you to just use something like a business
> delegate + iBatis or Hibernate. I cannot comment as I have not used
> that approach. Personally, I like to write all my own SQL (along with
> everything else you can write).

That's the benefit of iBATIS.. you write your own SQL. Nice and easy - 
You write your SQL, it builds your objects and collections from your own 
SQL and hides all the JDBC and code used to build objects from result sets.

-- 
Rick

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



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Hi-New to this group

2005-07-21 Thread Maya menon
For us, struts is the company wide standard, so we take it. 
 
The rest [ibatis] is not a company standard, so I guess we cannot use it.

Michael Rasmussen <[EMAIL PROTECTED]> wrote:
Well, 
As they were posed the requirements had Struts. Assuming that that
wasn't a hard requirement then it would be completely possible. The
application seems on the cover to be a fairly straightforward web app.
Any of the technologies you mentioned would be more than adequate for
the requirements posed. I think if you want to know which is best you
need to read and decide for yourself which combination will suit your
needs best and get your application finished on time, within budget.

Michael

On 7/21/05, Rokibul Islam Khan wrote:
> is it possible to fullfill maya's requirment using spring+hibernate or
> spring+iBatis or jsf/struts+spring+hibernate/iBatis. if not can
> anybody tell me why ? sorry i am a newbie on this arena. can anyone
> shed some light on my thought pls ?!
> 
> On 7/21/05, Craig McClanahan wrote:
> > On 7/21/05, Prashanth.S wrote:
> > > Hello,
> > > I needed a small info.
> > > How many currently existing J2EE complaint Appservers support EJBv3.0 and
> > > what are they??
> >
> > There is no completely compliant EJB3 container, because the spec
> > isn't final yet ... but you can see work in progress towards
> > implementation in GlassFish (https://glassfish.dev.java.net). I've
> > also seen announcements from Oracle and JBoss about early access
> > implementations.
> >
> > >
> > > Thanks
> > > Prashanth
> >
> > Craig
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> 
> --
> --
> Rokibul Islam Khan
> Software Developer
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Hi-New to this group

2005-07-21 Thread Maya menon
same for hibernate and spring. 

Rokibul Islam Khan <[EMAIL PROTECTED]> wrote:whats about hibernate and spring ?

On 7/22/05, Maya menon wrote:
> For us, struts is the company wide standard, so we take it.
> 
> The rest [ibatis] is not a company standard, so I guess we cannot use it.
> 
> Michael Rasmussen wrote:
> Well,
> As they were posed the requirements had Struts. Assuming that that
> wasn't a hard requirement then it would be completely possible. The
> application seems on the cover to be a fairly straightforward web app.
> Any of the technologies you mentioned would be more than adequate for
> the requirements posed. I think if you want to know which is best you
> need to read and decide for yourself which combination will suit your
> needs best and get your application finished on time, within budget.
> 
> Michael
> 
> On 7/21/05, Rokibul Islam Khan wrote:
> > is it possible to fullfill maya's requirment using spring+hibernate or
> > spring+iBatis or jsf/struts+spring+hibernate/iBatis. if not can
> > anybody tell me why ? sorry i am a newbie on this arena. can anyone
> > shed some light on my thought pls ?!
> >
> > On 7/21/05, Craig McClanahan wrote:
> > > On 7/21/05, Prashanth.S wrote:
> > > > Hello,
> > > > I needed a small info.
> > > > How many currently existing J2EE complaint Appservers support EJBv3.0 
> > > > and
> > > > what are they??
> > >
> > > There is no completely compliant EJB3 container, because the spec
> > > isn't final yet ... but you can see work in progress towards
> > > implementation in GlassFish (https://glassfish.dev.java.net). I've
> > > also seen announcements from Oracle and JBoss about early access
> > > implementations.
> > >
> > > >
> > > > Thanks
> > > > Prashanth
> > >
> > > Craig
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, e-mail: [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > --
> > --
> > Rokibul Islam Khan
> > Software Developer
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 


-- 
--
Rokibul Islam Khan
Software Developer

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



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
All,
   
  Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can anyone 
please help.
   
  Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone.  Get Yahoo! 
Messenger with Voice

RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
Ok Thanks. Can I just import the zip file to my project and start using it ?
   
  Maya

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote: 
  Sure you can. Just include the Struts lib files in your project. If you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

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



__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
Thanks Harsh. I also dont care about ide support. 
   
  But think you have an existing web project and you want to use struts files. 
How do you do that ?
   
  In my case, I have a web project in eclipse [created using eclipse 3.1 and 
eclipse web tools platofrm]. Now to this project I have added the struts zip 
file. How do I make use of the struts config files, action classes etc ?
   
  

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
  Sure you can do that. But you would not have any IDE support. Personally
I don't care much for IDE support as all you need is entries in
struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
page.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:17 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Ok Thanks. Can I just import the zip file to my project and start using
it ?

Maya

"Chaudhary, Harsh" wrote: 
Sure you can. Just include the Struts lib files in your project. If
you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-----Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

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



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
Yes, I was trying that.
   
  I created an empty "Web project" in eclipse and imported struts-sample.war. 
But this created two WEB-INF directories and 2 web.xml files. Looks like when a 
web project is first created, it already creates the web.xml and web-inf 
directory,a nd when the war file gets imported, it creates it again.
   
  So, I created a simple Java project and imported the war file. But 
functionally, will it work. What other suggestions ?

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:
  A sample web project is bundeled with the struts distribution at like:
\struts-1.2.8-bin\struts-1.2.8-bin\webapps
Its called struts-examples.war. Get that running and then you can reuse
that code to get started.
Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:31 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Thanks Harsh. I also dont care about ide support. 

But think you have an existing web project and you want to use struts
files. How do you do that ?

In my case, I have a web project in eclipse [created using eclipse 3.1
and eclipse web tools platofrm]. Now to this project I have added the
struts zip file. How do I make use of the struts config files, action
classes etc ?



"Chaudhary, Harsh" wrote:
Sure you can do that. But you would not have any IDE support.
Personally
I don't care much for IDE support as all you need is entries in
struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
page.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:17 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Ok Thanks. Can I just import the zip file to my project and start using
it ?

Maya

"Chaudhary, Harsh" wrote: 
Sure you can. Just include the Struts lib files in your project. If
you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

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



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
rates starting at 1¢/min.

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




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

RE: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
No. It wont work. when I do that, it asks for a folder to import to. When I 
type a new name in says, specified project doesnt exist and stops there...

"Chaudhary, Harsh" <[EMAIL PROTECTED]> wrote:  Sounds like something wrong with 
the import you did. Why don't you do a fresh import without creating a project 
first. Then when you import, it would prompt you to specify a project at which 
point, you can create a new project. Hopefully this will merge the two and 
generate a singular file structure.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:54 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Yes, I was trying that.

I created an empty "Web project" in eclipse and imported struts-sample.war. But 
this created two WEB-INF directories and 2 web.xml files. Looks like when a web 
project is first created, it already creates the web.xml and web-inf 
directory,a nd when the war file gets imported, it creates it again.

So, I created a simple Java project and imported the war file. But 
functionally, will it work. What other suggestions ?

"Chaudhary, Harsh" wrote:
A sample web project is bundeled with the struts distribution at like:
\struts-1.2.8-bin\struts-1.2.8-bin\webapps
Its called struts-examples.war. Get that running and then you can reuse
that code to get started.
Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:31 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Thanks Harsh. I also dont care about ide support. 

But think you have an existing web project and you want to use struts
files. How do you do that ?

In my case, I have a web project in eclipse [created using eclipse 3.1
and eclipse web tools platofrm]. Now to this project I have added the
struts zip file. How do I make use of the struts config files, action
classes etc ?



"Chaudhary, Harsh" wrote:
Sure you can do that. But you would not have any IDE support.
Personally
I don't care much for IDE support as all you need is entries in
struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
page.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:17 AM
To: Struts Users Mailing List
Subject: RE: Struts with Eclipse 3.1


Ok Thanks. Can I just import the zip file to my project and start using
it ?

Maya

"Chaudhary, Harsh" wrote: 
Sure you can. Just include the Struts lib files in your project. If
you
are talking about IDE support for Struts, then I would suggest:
http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
This is a tested plug-in for Struts on eclipse. It costs about $30 -
$40.

There is another Struts plug-in for eclipse available at:
http://download.eclipse.org/webtools/downloads/

This one is free. I have used it myself and its pretty good too.

Harsh.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 25, 2006 10:06 AM
To: user@struts.apache.org
Subject: Struts with Eclipse 3.1


All,

Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
anyone please help.

Thanks.


-
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
Yahoo! Messenger with Voice

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



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
rates starting at 1¢/min.

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




-
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.

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




-
Love cheap thrills? Enjoy PC-to-Phone  calls to 30+ countries for just 2¢/min 
with Yahoo! Messenger with Voice.

Re: Struts with Eclipse 3.1

2006-05-25 Thread Maya menon
But I donnot have an ANT build file. for my project, we donot have an ANT build 
file yet..

Miguel Galves <[EMAIL PROTECTED]> wrote:  just for the record, I use a plain 
Java project, with an appropriate ANT
build file that builds and deploys teh struts system for me.

It works fine.

Miguel

On 5/25/06, Maya menon wrote:
>
> No. It wont work. when I do that, it asks for a folder to import to. When
> I type a new name in says, specified project doesnt exist and stops there...
>
> "Chaudhary, Harsh" wrote: Sounds like something
> wrong with the import you did. Why don't you do a fresh import without
> creating a project first. Then when you import, it would prompt you to
> specify a project at which point, you can create a new project. Hopefully
> this will merge the two and generate a singular file structure.
>
> Harsh.
>
> -Original Message-
> From: Maya menon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 10:54 AM
> To: Struts Users Mailing List
> Subject: RE: Struts with Eclipse 3.1
>
>
> Yes, I was trying that.
>
> I created an empty "Web project" in eclipse and imported struts-sample.war.
> But this created two WEB-INF directories and 2 web.xml files. Looks like
> when a web project is first created, it already creates the web.xml and
> web-inf directory,a nd when the war file gets imported, it creates it again.
>
> So, I created a simple Java project and imported the war file. But
> functionally, will it work. What other suggestions ?
>
> "Chaudhary, Harsh" wrote:
> A sample web project is bundeled with the struts distribution at like:
> \struts-1.2.8-bin\struts-1.2.8-bin\webapps
> Its called struts-examples.war. Get that running and then you can reuse
> that code to get started.
> Harsh.
>
> -Original Message-
> From: Maya menon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 10:31 AM
> To: Struts Users Mailing List
> Subject: RE: Struts with Eclipse 3.1
>
>
> Thanks Harsh. I also dont care about ide support.
>
> But think you have an existing web project and you want to use struts
> files. How do you do that ?
>
> In my case, I have a web project in eclipse [created using eclipse 3.1
> and eclipse web tools platofrm]. Now to this project I have added the
> struts zip file. How do I make use of the struts config files, action
> classes etc ?
>
>
>
> "Chaudhary, Harsh" wrote:
> Sure you can do that. But you would not have any IDE support.
> Personally
> I don't care much for IDE support as all you need is entries in
> struts-cofig.xml, an Action class, a Struts form and an HTML or JSP
> page.
>
> Harsh.
>
> -Original Message-
> From: Maya menon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 10:17 AM
> To: Struts Users Mailing List
> Subject: RE: Struts with Eclipse 3.1
>
>
> Ok Thanks. Can I just import the zip file to my project and start using
> it ?
>
> Maya
>
> "Chaudhary, Harsh" wrote:
> Sure you can. Just include the Struts lib files in your project. If
> you
> are talking about IDE support for Struts, then I would suggest:
> http://www.myeclipseide.com/ContentExpress-display-ceid-55.html
> This is a tested plug-in for Struts on eclipse. It costs about $30 -
> $40.
>
> There is another Struts plug-in for eclipse available at:
> http://download.eclipse.org/webtools/downloads/
>
> This one is free. I have used it myself and its pretty good too.
>
> Harsh.
>
> -Original Message-
> From: Maya menon [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 25, 2006 10:06 AM
> To: user@struts.apache.org
> Subject: Struts with Eclipse 3.1
>
>
> All,
>
> Is it possible to use struts with Eclipse 3.1 ? If yes, how. Can
> anyone please help.
>
> Thanks.
>
>
> -
> Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get
> Yahoo! Messenger with Voice
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> -
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
> rates starting at 1¢/min.
>
> -

Struts-Jsp display

2007-06-05 Thread Maya menon
All,
  I have a requirement in which I display reports in a jsp using Struts. The 
reports pull huge data like 3-5 records will be in the jsp page.
   
  Right now, I get the records in an array from my DAO and then set them to my 
form bean. In results jsp, I iterate through it and use  tag to 
write all values in jsp.
   
  This approach is pretty slow. After it displays all records the page simply 
hangs. From IE page I cannot move forward/backward etc
   
  Can anyone suggest an improvement ?
   
  In DAO i just do JDBC select and get the records. JDBC retrieves query fast.
   
  Thanks.

   
-
Got a little couch potato? 
Check out fun summer activities for kids.

Struts 1.2 using formbeans

2007-08-14 Thread Maya menon
Hi all,
   
  I need some help here.
  I am using Struts 1.2
   
  1. I have inputForm1.jsp where I input 2 values and then fetch the 3rd value 
using a Submit action. This has been mapped to Submit.do and inputFormBean is 
referrenced in the struts-config file. 
  Inside action class Submit.do, the 2 input values are read from InputForm and 
third value is obtained from DB. 
  Then I set this 3rd value to the inputform using setter method and do a 
mapping.forward("inputForm1.jsp")
   
  However, when inputForm1.jsp gets displayed, all fields are null. No values 
for 1,2 and for the newly fetched parameter 3. 
  What am I doing wrong ?
   
  Again, I have
  inputForm1.jsp -> SubmitAction->InputFormBean
  In submitAction, I call setter method of formbean and sets the 3rd parameter 
and do
  mapping.findforward
   
  Thanks,

   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 

Re: Struts 1.2 using formbeans

2007-08-14 Thread Maya menon
Chris,
   
  Thanks for the reply, I dont have redirect=true
  Here is the action:
   
  
  
  
  
   
  Thanks again, 

Christopher Schultz <[EMAIL PROTECTED]> wrote:
  -BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maya,

Maya menon wrote:
> In submitAction, I call setter method of formbean and sets the 3rd
> parameter and do mapping.findforward

Does the forward you are using have redirect="true"? If so, the form
bean might be lost of the form bean is not in session scope.

Can you post the relevant parts of your struts-config.xml? That would be
helpful.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGwhTe9CaO5/Lv0PARAppgAKCdANJE6OJE5V9lBiNOeTk3dJqTRQCgmGQu
WnseD+9z1hsQFLUFaDNeX68=
=Rxup
-END PGP SIGNATURE-

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



   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 

Re: Struts 1.2 using formbeans

2007-08-14 Thread Maya menon
i TRIED SETTING THE REDIRECT=TRUE ALSO, but still it doesnt display the values 
when coming back to the original window. 
   
  Can this be an issue ?
   
  From inputform, I have a submit button which opens another window and calls 
submitaction. In the new window I am displaying the 3rd parameter and allowing 
users to select the parameter they want.
   
  The new ndow[new jsp also] I have added the same action configuration..
   
  Thanks

Maya menon <[EMAIL PROTECTED]> wrote:
  Chris,

Thanks for the reply, I dont have redirect=true
Here is the action:

type="com.test.actions.ListNPAAction" name="InputForm">




Thanks again, 

Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maya,

Maya menon wrote:
> In submitAction, I call setter method of formbean and sets the 3rd
> parameter and do mapping.findforward

Does the forward you are using have redirect="true"? If so, the form
bean might be lost of the form bean is not in session scope.

Can you post the relevant parts of your struts-config.xml? That would be
helpful.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGwhTe9CaO5/Lv0PARAppgAKCdANJE6OJE5V9lBiNOeTk3dJqTRQCgmGQu
WnseD+9z1hsQFLUFaDNeX68=
=Rxup
-END PGP SIGNATURE-

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




-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 

   
-
Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, 
photos & more. 

Struts question

2007-09-09 Thread Maya menon
> value='mypath'/>">I have a question about how to retrive the value from a 
> data object in the form bean 
  > value='mypath'/>"> 
  > value='mypath'/>">I have a form bean, TestForm where I declare my 
dataobject as 
  > value='mypath'/>">private testdata[] data;
  > value='mypath'/>"> 
  > value='mypath'/>">with its getter and setter
  > value='mypath'/>"> 
  > value='mypath'/>">In my testdata class I have a String name, String address
  > value='mypath'/>"> 
  > value='mypath'/>">Now, for me to get the values of the data object in jsp 
using iterate tag, how do I do it ? 
  > value='mypath'/>"> 
  > value='mypath'/>">I have my formbean declared in the jsp. 
  > value='mypath'/>"> 
  > value='mypath'/>">I am trying to use this
  > value='mypath'/>"> 
> value='mypath'/>">   property="list" indexId="index">
  
  ;
  
  
   
  I get this exception
  javax.servlet.ServletException: No getter method available for property 
tndata.tnStatus for bean under name TestFormBean

   
  Please helpme, what am i doing wrong ?
   
  TestFormbean looks like this
   
  private Testdata[] testData;
  
  
  public TestData[] getTestData() {
  return testData;
  }
  public void setTndata(Testdata[] testData) {
  this.testData= testData;
  }
   
   

   
-
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.

Re: Struts question

2007-09-09 Thread Maya menon
Reposting: dont know why junk charachers appear below
  I have a question about how to retrive the value from a data object in the 
form bean 
 
I have a form bean, TestForm where I declare my dataobject as 
private testdata[] data;
 
with its getter and setter
 
In my testdata class I have a String name, String address
 
Now, for me to get the values of the data object in jsp using iterate tag, how 
do I do it ? 
 
I have my formbean declared in the jsp. 
 
  I am trying to use this
 


;


  I get this exception
javax.servlet.ServletException: No getter method available for property 
tndata.tnStatus for bean under name TestFormBean
  
Please helpme, what am i doing wrong ?
  TestFormbean looks like this
  private Testdata[] testData;
public TestData[] getTestData() {
return testData;
}
public void setTndata(Testdata[] testData) {
this.testData= testData;
}

Maya menon <[EMAIL PROTECTED]> wrote:
  > value='mypath'/>">I have a question about how to retrive the value from a 
data object in the form bean 
> value='mypath'/>"> 
> value='mypath'/>">I have a form bean, TestForm where I declare my dataobject 
> as 
> value='mypath'/>">private testdata[] data;
> value='mypath'/>"> 
> value='mypath'/>">with its getter and setter
> value='mypath'/>"> 
> value='mypath'/>">In my testdata class I have a String name, String address
> value='mypath'/>"> 
> value='mypath'/>">Now, for me to get the values of the data object in jsp 
> using iterate tag, how do I do it ? 
> value='mypath'/>"> 
> value='mypath'/>">I have my formbean declared in the jsp. 
> value='mypath'/>"> 
> value='mypath'/>">I am trying to use this
> value='mypath'/>"> 
> value='mypath'/>"> 

;



I get this exception
javax.servlet.ServletException: No getter method available for property 
tndata.tnStatus for bean under name TestFormBean


Please helpme, what am i doing wrong ?

TestFormbean looks like this

private Testdata[] testData;


public TestData[] getTestData() {
return testData;
}
public void setTndata(Testdata[] testData) {
this.testData= testData;
}




-
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and 
lay it on us.

   
-
Boardwalk for $500? In 2007? Ha! 
Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.

Retrieving names of dynamic comboboxes

2007-09-10 Thread Maya menon
How do we retrieve the names of dynamic comboboxes generated using iterate tag 
? I need to capture the onchange event, but how will I capture the name of the 
combo box ?
   
  Thanks

   
-
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.

Dynamic combo boxes

2007-09-20 Thread Maya menon
Hi all,
   
  I have a page which displays dynamic comboboxes.
  The records from DB will be displayed in table and two fields are getting 
displayed in comboboxes.
   
  Now, there is one condtion in which if user changes something in first 
combobox then value of second combobox should automatically change
   
  I am capturing the value of the first combobox using this.value, using 
logic:iterator, indexid and indexed=true to render the combo boxes.
   
  How can I capture the second combobox in this case ?
  How do I get the name of a dynamically rendered combobox in a javascript 
function
   
  Here is how the second combobox gets created
   
  
  
  ;
  
   
  Please provide inputs
   
  Thanks

   
-
Fussy? Opinionated? Impossible to please? Perfect.  Join Yahoo!'s user panel 
and lay it on us.

Re: Dynamic combo boxes

2007-09-20 Thread Maya menon
Can i have some ideas here ?
   
  Thanks

Maya menon <[EMAIL PROTECTED]> wrote:
  Hi all,

I have a page which displays dynamic comboboxes.
The records from DB will be displayed in table and two fields are getting 
displayed in comboboxes.

Now, there is one condtion in which if user changes something in first combobox 
then value of second combobox should automatically change

I am capturing the value of the first combobox using this.value, using 
logic:iterator, indexid and indexed=true to render the combo boxes.

How can I capture the second combobox in this case ?
How do I get the name of a dynamically rendered combobox in a javascript 
function

Here is how the second combobox gets created



;


Please provide inputs

Thanks


-
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and 
lay it on us.

   
-
Got a little couch potato? 
Check out fun summer activities for kids.

Re: Dynamic combo boxes

2007-09-20 Thread Maya menon
Thanks for the response Abhiram,
   
  I tried using styleid,
   
  But how do I give [use] dynamic styleids ? There should be some way to 
retrieve the particular combobox for a particular row right ?
   
  I tried using styleid=bean:write id=index> where index is retrieved from 
logic:iterator tag 
   
  Have you tried it, This way the styleid was not getting dynamically populated

abhiram <[EMAIL PROTECTED]> wrote:
  ur requirement is to change contents of combobox 2, when a different option 
in combobox 1 is selected ryt..

i think you can give id to each combobox,write an onchange event or something 
similar to activate javascript

in javascript, get the selected option of combobox 1 by using 
document.getElementById("id of combo 1").value

write some condition on this value, and change the value of combobox 2 
accordingly.

because u hardcode the ids, u can just access the comboboxes using their 
ids..this should work whether ur comboboxes are static or dynamic.

Maya menon wrote: Hi all,

I have a page which displays dynamic comboboxes.
The records from DB will be displayed in table and two fields are getting 
displayed in comboboxes.

Now, there is one condtion in which if user changes something in first combobox 
then value of second combobox should automatically change

I am capturing the value of the first combobox using this.value, using 
logic:iterator, indexid and indexed=true to render the combo boxes.

How can I capture the second combobox in this case ?
How do I get the name of a dynamically rendered combobox in a javascript 
function

Here is how the second combobox gets created



;


Please provide inputs

Thanks


-
Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and 
lay it on us.


abhiram





-
Save all your chat conversations. Find them online.

   
-
Yahoo! oneSearch: Finally,  mobile search that gives answers, not web links. 

Re: Dynamic combo boxes

2007-09-20 Thread Maya menon
I got it Abhiram,
   
  Used this
   
  styleId="<%="sp" + index%>"  index is the indexid from logic:iterator tag
  Thanks again
   
  Also I was getting styleId not using expressions error since yesterday. 
Figured out this was because I was using 
  struts-html-el.tld instaed of 
  struts-html.tld
   
  Now after I corrected that it works fine too
   
  Thanks again for your support
   
  Maya:
  

abhiram <[EMAIL PROTECTED]> wrote:
  i dont know anything about struts 2, but with my 1.2, i have no probs giving 
dynamic ids.

here is an idea.
inside ur jsp, keep incrementing a counter for every iteration. 

give id as styleId="
   
-
 Check out  the hottest 2008 models today at Yahoo! Autos.

best possible design

2007-01-30 Thread Maya menon
All,
   
  I need to enable role based access to my Struts-J2EE application.
  ie, if a normal user logs in, user should see one page whereas if a superuser 
logs in he should see another page.
   
  Whats the best suited design here ?
  Any links ?
   
  I use Struts 1.x,Eclipse and Tomcat
   
  Thank You

 
-
It's here! Your new message!
Get new email alerts with the free Yahoo! Toolbar.

General question

2007-02-01 Thread Maya menon
I have a struts based J2ee app which displays data from DB in the results.jsp 
page. For DB data access, I use a DAO which returns a serialized object. This 
serialized object, I set it to request object using setAttribute and retrieve 
it using  tag i n jsp page. 
   
  My question is: if users try to open another window and do simultaneous 
tasks, how can I avoid same user from working in two or more different windows 
in a Struts based j2ee application ? 
   
  Any thoughts..

 
-
Everyone is raving about the all-new Yahoo! Mail beta.

Re: General question

2007-02-01 Thread Maya menon
Dave,
   
  Thanks for the reply.
  Yes I had the variable initially set in session. Then when I did Cntrl+N[open 
new window] from the existing browser window, I see the same result in the 
second window.
   
  Even when I set it in request object and do[open new window] the same result 
is being displayed.
   
  what way can the appearence of DB values be prevented in multiple windows ? 
   
  Thanks

Dave Newton <[EMAIL PROTECTED]> wrote:
  --- Maya menon wrote:
> My question is: if users try to open another
> window and do simultaneous tasks, how can I avoid
> same user from working in two or more different
> windows in a Struts based j2ee application ? 

I don't know as you can (easily), but your scenario
doesn't describe a situation in which that would be a
problem. *Session* variables can be a problem
(browser-dependent) but request-based variables
shouldn't be an issue.

DAve "I think I'm just going to change my legal name
to DAve"





The fish are biting. 
Get more visitors on your site using Yahoo! Search Marketing.
http://searchmarketing.yahoo.com/arp/sponsoredsearch_v2.php

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



 
-
Sucker-punch spam with award-winning protection.
 Try the free Yahoo! Mail Beta.

RE: General question

2007-02-01 Thread Maya menon
I am talking about two browser windows. 
  User A logs in in browser A and sees DB results in results.jsp page
   
  Then, User A open Browser B from Browser A. if he does that, he will see 
results in two pages, browser A and browser B. and then he will be able to do 
different edits from different windows. That should be prevented.

"Hartrich, James CTR USTRANSCOM J6" <[EMAIL PROTECTED]> wrote:
  Are you talking about different browser "windows" or just new "tabs" in
the same browser? Perhaps try an application scoped variable that tests
the current user, allowing only one instance of the user to operate the
app.

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 01, 2007 12:52 PM
To: user@struts.apache.org
Subject: General question

I have a struts based J2ee app which displays data from DB in the
results.jsp page. For DB data access, I use a DAO which returns a
serialized object. This serialized object, I set it to request object
using setAttribute and retrieve it using tag i n jsp page. 

My question is: if users try to open another window and do
simultaneous tasks, how can I avoid same user from working in two or
more different windows in a Struts based j2ee application ? 

Any thoughts..


-
Everyone is raving about the all-new Yahoo! Mail beta.

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



 
-
Finding fabulous fares is fun.
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel 
bargains.

JNLP with struts ?

2007-02-23 Thread Maya menon
Have anyone used java web start[JNLP files] with struts ?
   
  I have a project which uses struts. Now i have a Login.jsp, which calls 
Loginaction.java.
   
  If user is a valid user, then I have to initiate a call to a "jnlp file" . 
Have anyone done this ?
   
  basically, I want to install something in the client's machines if the user 
is a valid user of our application. The app uses Login.jsp and Loginaction.java 
now. 
   
  Any suggestions/thoughts,
   
  Maya

 
-
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.

Re: [S2] JNLP with struts ?

2007-02-27 Thread Maya menon
Anyone has any idea ?
   
  I have to call a jnlp file to download some app specific files upon proper 
logon of the users. So, if a user logs in, if its  a valid user, then jnlp file 
has to be downloaded and the user's result page should appear simultaneously..
   
  Any help thoughts, appreacited
   
  Thanks

cilquirm <[EMAIL PROTECTED]> wrote:
  
in your resulting page
you can set

@page contentType = 'application/x-java-jnlp-file'

and return the body of your jnlp file ( possibly even read via c:import or
some such mechanism )





Maya menon wrote:
> 
> Have anyone used java web start[JNLP files] with struts ?
> 
> I have a project which uses struts. Now i have a Login.jsp, which calls
> Loginaction.java.
> 
> If user is a valid user, then I have to initiate a call to a "jnlp file"
> . Have anyone done this ?
> 
> basically, I want to install something in the client's machines if the
> user is a valid user of our application. The app uses Login.jsp and
> Loginaction.java now. 
> 
> Any suggestions/thoughts,
> 
> Maya
> 
> 
> -
> Be a PS3 game guru.
> Get your game face on with the latest PS3 news and previews at Yahoo!
> Games.
> 

-- 
View this message in context: 
http://www.nabble.com/JNLP-with-struts---tf3280718.html#a9127299
Sent from the Struts - User mailing list archive at Nabble.com.


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



 
-
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.

Real time data display in a struts based application.

2007-02-28 Thread Maya menon
All,
   
  Have a design issue here. We have a web based application and have 2000 
concurrent users. The requirement is: when new data comes on Oracle database 
for users this data has to be sent to the online users on a real time basis. 
Someway, the real time data needs to be pushed to the users without the client 
doing a reload/refresh etc. 
   
  What technologies can be used here ? Can anyone provide me some suggestions ? 
   
  The users login to the application using a web page, this is a web based J2ee 
application using struts, Oracle database. 
   
  Thanks,
  Maya

 
-
Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.

Re: Real time data display in a struts based application.

2007-02-28 Thread Maya menon
Thank you both for your responses.
   
  So AJAX is the technique I should refer. Anyone know of any examples / 
somethings.
   
  Also, my colleague asked me this question when I talked to him about a "timed 
AJAX event". Why cant we simply refresh the jsp page ? Why should we use AJAX ? 
so, whats the real advantage of using an AJAX timed event to a normal JSP/HTML 
refresh ?
   
  Maya

Musachy Barroso <[EMAIL PROTECTED]> wrote:
  The div tag when used on the ajax theme, has a timer that will make it
refresh its content from the url specified in the "href" attribute, examples
available in showcase and here:

http://struts.apache.org/2.x/docs/ajax-tags.html

musachy

On 2/28/07, Frank W. Zammetti wrote:
>
> Well, if you can live with not literally "pushing" to the client, this is
> the sort of application AJAX was made for. Have a timed event, every few
> seconds maybe, whatever your tolerable definition of "real time" is, that
> makes and AJAX request to check for new data and display it when found.
> Pretty easy.
>
> Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):
>
> http://javawebparts.sourceforge.net
>
> http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html
>
> The benefit is that it will allow you to do this, since it has a timed
> AJAX event function, and will save you from having to write any Javascript
> yourself (most likely).
>
> Whether you go with APT or not, AJAX is probably the first thing you want
> to look at.
>
> Frank
>
>
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> AIM/Yahoo: fzammetti
> MSN: [EMAIL PROTECTED]
> Author of "Practical Ajax Projects With Java Technology"
> (2006, Apress, ISBN 1-59059-695-1)
> Java Web Parts - http://javawebparts.sourceforge.net
> Supplying the wheel, so you don't have to reinvent it!
>
> On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
> > All,
> >
> > Have a design issue here. We have a web based application and have
> 2000
> > concurrent users. The requirement is: when new data comes on Oracle
> > database for users this data has to be sent to the online users on a
> > real time basis. Someway, the real time data needs to be pushed to the
> > users without the client doing a reload/refresh etc.
> >
> > What technologies can be used here ? Can anyone provide me some
> > suggestions ?
> >
> > The users login to the application using a web page, this is a web
> based
> > J2ee application using struts, Oracle database.
> >
> > Thanks,
> > Maya
> >
> >
> > -
> > Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd


 
-
Never Miss an Email
Stay connected with Yahoo! Mail on your mobile. Get started!

Re: Real time data display in a struts based application.

2007-02-28 Thread Maya menon
Thanks Musachy for your response.
  We use Struts 1.x right now.. Guess we have to update..
  Please send me if yu have any examples/links..
  

Musachy Barroso <[EMAIL PROTECTED]> wrote:
  You can refresh the page, but that would probably be annoying to the user,
not to mention that data entered on fields will most likely be lost. Using a
div you can update just the part of the page that is important. Using the
div tag in struts:



theme="ajax"
href="%{ajaxTest}"
updateFreq="3000"/>

that will make your div reload the content from "AjaxTest.action" every 3000
milliseconds. There are many frameworks available, so you can pick one that
fits your needs. For simple scenarios, the div tag will do.

musachy

On 2/28/07, Maya menon wrote:
>
> Thank you both for your responses.
>
> So AJAX is the technique I should refer. Anyone know of any examples /
> somethings.
>
> Also, my colleague asked me this question when I talked to him about a
> "timed AJAX event". Why cant we simply refresh the jsp page ? Why should we
> use AJAX ? so, whats the real advantage of using an AJAX timed event to a
> normal JSP/HTML refresh ?
>
> Maya
>
> Musachy Barroso wrote:
> The div tag when used on the ajax theme, has a timer that will make it
> refresh its content from the url specified in the "href" attribute,
> examples
> available in showcase and here:
>
> http://struts.apache.org/2.x/docs/ajax-tags.html
>
> musachy
>
> On 2/28/07, Frank W. Zammetti wrote:
> >
> > Well, if you can live with not literally "pushing" to the client, this
> is
> > the sort of application AJAX was made for. Have a timed event, every few
> > seconds maybe, whatever your tolerable definition of "real time" is,
> that
> > makes and AJAX request to check for new data and display it when found.
> > Pretty easy.
> >
> > Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):
> >
> > http://javawebparts.sourceforge.net
> >
> >
> http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html
> >
> > The benefit is that it will allow you to do this, since it has a timed
> > AJAX event function, and will save you from having to write any
> Javascript
> > yourself (most likely).
> >
> > Whether you go with APT or not, AJAX is probably the first thing you
> want
> > to look at.
> >
> > Frank
> >
> >
> > --
> > Frank W. Zammetti
> > Founder and Chief Software Architect
> > Omnytex Technologies
> > http://www.omnytex.com
> > AIM/Yahoo: fzammetti
> > MSN: [EMAIL PROTECTED]
> > Author of "Practical Ajax Projects With Java Technology"
> > (2006, Apress, ISBN 1-59059-695-1)
> > Java Web Parts - http://javawebparts.sourceforge.net
> > Supplying the wheel, so you don't have to reinvent it!
> >
> > On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
> > > All,
> > >
> > > Have a design issue here. We have a web based application and have
> > 2000
> > > concurrent users. The requirement is: when new data comes on Oracle
> > > database for users this data has to be sent to the online users on a
> > > real time basis. Someway, the real time data needs to be pushed to the
> > > users without the client doing a reload/refresh etc.
> > >
> > > What technologies can be used here ? Can anyone provide me some
> > > suggestions ?
> > >
> > > The users login to the application using a web page, this is a web
> > based
> > > J2ee application using struts, Oracle database.
> > >
> > > Thanks,
> > > Maya
> > >
> > >
> > > -
> > > Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
>
>
> -
> Never Miss an Email
> Stay connected with Yahoo! Mail on your mobile. Get started!




-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd


 
-
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

Re: Real time data display in a struts based application.

2007-03-01 Thread Maya menon
Ok, got the difference.
   
  Now being a new bie to AJAX, what are the best techiques that should be used 
to design a well designed web app ?
   
  Again, my page has to show the new data thats being added to database.
   
  Frank told about creating a "timed AJAX event". Where can I get more details 
regarding that ? Again will it be possible /scalable for 2000 concurrent users ?
   
  Thanks

Adam Ruggles <[EMAIL PROTECTED]> wrote:
  The difference between using AJAX and just refreshing a page is a well 
designed AJAX application sends over just the information that is 
needed. For a JSP/HTML page refresh you're sending more data over the 
line. The key here is a well designed AJAX application.

Maya menon wrote:
> Thank you both for your responses.
> 
> So AJAX is the technique I should refer. Anyone know of any examples / 
> somethings.
> 
> Also, my colleague asked me this question when I talked to him about a "timed 
> AJAX event". Why cant we simply refresh the jsp page ? Why should we use AJAX 
> ? so, whats the real advantage of using an AJAX timed event to a normal 
> JSP/HTML refresh ?
> 
> Maya
>
> Musachy Barroso wrote:
> The div tag when used on the ajax theme, has a timer that will make it
> refresh its content from the url specified in the "href" attribute, examples
> available in showcase and here:
>
> http://struts.apache.org/2.x/docs/ajax-tags.html
>
> musachy
>
> On 2/28/07, Frank W. Zammetti wrote:
> 
>> Well, if you can live with not literally "pushing" to the client, this is
>> the sort of application AJAX was made for. Have a timed event, every few
>> seconds maybe, whatever your tolerable definition of "real time" is, that
>> makes and AJAX request to check for new data and display it when found.
>> Pretty easy.
>>
>> Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):
>>
>> http://javawebparts.sourceforge.net
>>
>> http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html
>>
>> The benefit is that it will allow you to do this, since it has a timed
>> AJAX event function, and will save you from having to write any Javascript
>> yourself (most likely).
>>
>> Whether you go with APT or not, AJAX is probably the first thing you want
>> to look at.
>>
>> Frank
>>
>>
>> --
>> Frank W. Zammetti
>> Founder and Chief Software Architect
>> Omnytex Technologies
>> http://www.omnytex.com
>> AIM/Yahoo: fzammetti
>> MSN: [EMAIL PROTECTED]
>> Author of "Practical Ajax Projects With Java Technology"
>> (2006, Apress, ISBN 1-59059-695-1)
>> Java Web Parts - http://javawebparts.sourceforge.net
>> Supplying the wheel, so you don't have to reinvent it!
>>
>> On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
>> 
>>> All,
>>>
>>> Have a design issue here. We have a web based application and have
>>> 
>> 2000
>> 
>>> concurrent users. The requirement is: when new data comes on Oracle
>>> database for users this data has to be sent to the online users on a
>>> real time basis. Someway, the real time data needs to be pushed to the
>>> users without the client doing a reload/refresh etc.
>>>
>>> What technologies can be used here ? Can anyone provide me some
>>> suggestions ?
>>>
>>> The users login to the application using a web page, this is a web
>>> 
>> based
>> 
>>> J2ee application using struts, Oracle database.
>>>
>>> Thanks,
>>> Maya
>>>
>>>
>>> -
>>> Any questions? Get answers on any topic at Yahoo! Answers. Try it now.
>>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>> 
>
>
> 



 
-
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  

Multiple forwards ?

2007-03-01 Thread Maya menon
Has anyone tried forwarding to multiple mappings ? or multiple jsps ?
   
  we have a requirement to use two jsp pages together. Upon success, how will 
we forward to two jsps ? Is this possible ?
   
  I have never done it and am unsure whether it can be done too. If anyone 
knows an idea, please let me know. 
   
  Thanks,Maya

 
-
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

Re: Multiple forwards ?

2007-03-01 Thread Maya menon
Thanks Mike. 
  In another part of my project,
   
  I was trying to convert my "jnlp" file to "jsp" file,and include it in the 
result.jsp. But somehow, when I include the file, jnlp partiulars[like download 
etc] does happen.. Actually the jnlp contents are not being done with the 
include..
   
  Thanks,
  Maya
  
Mike Baroukh <[EMAIL PROTECTED]> wrote:
  
you can't forward to 2 jsps.
Eventually you can include the result of a jsp in another with 
or you can use tiles or sitmesh to do it.


Maya menon a écrit :
> Has anyone tried forwarding to multiple mappings ? or multiple jsps ?
> 
> we have a requirement to use two jsp pages together. Upon success, how will 
> we forward to two jsps ? Is this possible ?
> 
> I have never done it and am unsure whether it can be done too. If anyone 
> knows an idea, please let me know. 
> 
> Thanks,Maya
>
> 
> -
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> 


-- 

Mike Baroukh

---
Cardiweb - 31 Rue de Mogador Paris IXeme
06 63 57 27 22 - 01 53 21 82 63 - Jabber: [EMAIL PROTECTED]
http://www.cardiweb.com
---


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

 
-
Looking for earth-friendly autos? 
 Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.  

Re: Real time data display in a struts based application.

2007-03-02 Thread Maya menon
Musachy,
   
  Yes, we use  struts 1.x, and I really dont think we can download any of these 
external libraries. 
   
  So said so, I have to write javascript etc to achive these "AJAX timed 
events"..
  Any one has done it to achieve it ?
   
  I believe javascript,XML etc are needed.. any examples.

Musachy Barroso <[EMAIL PROTECTED]> wrote:
  Oops...I can't help it, I always assume we are talking about S2. If you are
using S1, pick an ajax framework, most of them have a Div tag like the one
on S2. See Frank's email for details on one of them.

musachy

On 2/28/07, Maya menon wrote:
>
> Thanks Musachy for your response.
> We use Struts 1.x right now.. Guess we have to update..
> Please send me if yu have any examples/links..
>
>
> Musachy Barroso wrote:
> You can refresh the page, but that would probably be annoying to the
> user,
> not to mention that data entered on fields will most likely be lost. Using
> a
> div you can update just the part of the page that is important. Using the
> div tag in struts:
>
>
>
> theme="ajax"
> href="%{ajaxTest}"
> updateFreq="3000"/>
>
> that will make your div reload the content from "AjaxTest.action" every
> 3000
> milliseconds. There are many frameworks available, so you can pick one
> that
> fits your needs. For simple scenarios, the div tag will do.
>
> musachy
>
> On 2/28/07, Maya menon wrote:
> >
> > Thank you both for your responses.
> >
> > So AJAX is the technique I should refer. Anyone know of any examples /
> > somethings.
> >
> > Also, my colleague asked me this question when I talked to him about a
> > "timed AJAX event". Why cant we simply refresh the jsp page ? Why should
> we
> > use AJAX ? so, whats the real advantage of using an AJAX timed event to
> a
> > normal JSP/HTML refresh ?
> >
> > Maya
> >
> > Musachy Barroso wrote:
> > The div tag when used on the ajax theme, has a timer that will make it
> > refresh its content from the url specified in the "href" attribute,
> > examples
> > available in showcase and here:
> >
> > http://struts.apache.org/2.x/docs/ajax-tags.html
> >
> > musachy
> >
> > On 2/28/07, Frank W. Zammetti wrote:
> > >
> > > Well, if you can live with not literally "pushing" to the client, this
> > is
> > > the sort of application AJAX was made for. Have a timed event, every
> few
> > > seconds maybe, whatever your tolerable definition of "real time" is,
> > that
> > > makes and AJAX request to check for new data and display it when
> found.
> > > Pretty easy.
> > >
> > > Have a peak at the AjaxParts Taglib (APT) in Java Web Parts (JWP):
> > >
> > > http://javawebparts.sourceforge.net
> > >
> > >
> >
> http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html
> > >
> > > The benefit is that it will allow you to do this, since it has a timed
> > > AJAX event function, and will save you from having to write any
> > Javascript
> > > yourself (most likely).
> > >
> > > Whether you go with APT or not, AJAX is probably the first thing you
> > want
> > > to look at.
> > >
> > > Frank
> > >
> > >
> > > --
> > > Frank W. Zammetti
> > > Founder and Chief Software Architect
> > > Omnytex Technologies
> > > http://www.omnytex.com
> > > AIM/Yahoo: fzammetti
> > > MSN: [EMAIL PROTECTED]
> > > Author of "Practical Ajax Projects With Java Technology"
> > > (2006, Apress, ISBN 1-59059-695-1)
> > > Java Web Parts - http://javawebparts.sourceforge.net
> > > Supplying the wheel, so you don't have to reinvent it!
> > >
> > > On Wed, February 28, 2007 3:54 pm, Maya menon wrote:
> > > > All,
> > > >
> > > > Have a design issue here. We have a web based application and have
> > > 2000
> > > > concurrent users. The requirement is: when new data comes on Oracle
> > > > database for users this data has to be sent to the online users on a
> > > > real time basis. Someway, the real time data needs to be pushed to
> the
> > > > users without the client doing a reload/refresh etc.
> > > >
> > > > What technologies can be used here ? Can anyone provide me some
> > > > suggestions ?
> > > >
> > > > The users login to the application using a web page, this is a 

Session Management

2007-03-15 Thread Maya menon
All,
   
  I have couple of questions while designing a web app using struts. My 
application uses Httpsession variables.
  1. How do we handle a user from opening duplicate sessions ? Like if a user 
is already logged in, if he/she tries to login again, system should mention 
that user is already logegd in. How do we do that ? 
   
  2. Also, back buttons. Back buttons shoudlnt display anything [like no data] 
should appear when user clicks back button
   
  How to handle these two situations ? Need suggestions. 
   
  Thanks,
  Maya

 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

Global forwards and actions

2006-06-01 Thread Maya menon
All,
   
  I want to understand this better:
   
  Say, I have one form , addDetails.jsp and another deleteDetails.jsp
  addDetails.jsp when submitted should call AddAction and deleteDetails should 
call Deleteaction.
   
  In adddetails I have  and in delete I have 
   
  Now, what all entries do I need in struts-config.xml for these to be 
forwarded to the correct action classes ? 
  thanks
  Maya


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

RE: Global forwards and actions

2006-06-01 Thread Maya menon
Manoj,
   
  Thanks.
  So, just 2 action entries r fine, thats what you think. 

[EMAIL PROTECTED] wrote:
  Sample config






































Note the following 
1. This is a typical example modify according to your need
2. Name of the form is addForm and deleteForm in the xml above (You can change 
as you want)
3. Ask questions I will answer them all (not much work to do today)
4. Path in action mappings can be tile if that is the case you will need a tile 
definition as well or a jsp page(not a good idea to use jsp)
5. Optional: good idea to have all these xml files per struts module
Hope that helps
Manoj 


-Original Message-
From: Maya menon [mailto:cc] 
Sent: 01 June 2006 16:46
To: user@struts.apache.org
Subject: Global forwards and actions

All,

I want to understand this better:

Say, I have one form , addDetails.jsp and another deleteDetails.jsp
addDetails.jsp when submitted should call AddAction and deleteDetails should 
call Deleteaction.

In adddetails I have   and in delete I have 

Now, what all entries do I need in struts-config.xml for these to be forwarded 
to the correct action classes ? 
thanks
Maya


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates 
starting at 1¢/min.



-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

RE: Global forwards and actions

2006-06-01 Thread Maya menon
Ok, for delete.jsp I put action="delete.do"
  form.action="Delete.do";
  form.submit();
   
  In struts-config.xml, I put 
   
  
  
  
  
   
  Now, when I run, it it gives me the following error:
  type Status report
  message Invalid path /jsp/Delete was requested
  description The request sent by the client was syntactically incorrect 
(Invalid path /jsp/Delete was requested).
   
  What am I missing here ?
   
  
Maya menon <[EMAIL PROTECTED]> wrote:
  Manoj,

Thanks.
So, just 2 action entries r fine, thats what you think. 

[EMAIL PROTECTED] wrote:
Sample config






































Note the following 
1. This is a typical example modify according to your need
2. Name of the form is addForm and deleteForm in the xml above (You can change 
as you want)
3. Ask questions I will answer them all (not much work to do today)
4. Path in action mappings can be tile if that is the case you will need a tile 
definition as well or a jsp page(not a good idea to use jsp)
5. Optional: good idea to have all these xml files per struts module
Hope that helps
Manoj 


-Original Message-
From: Maya menon [mailto:cc] 
Sent: 01 June 2006 16:46
To: user@struts.apache.org
Subject: Global forwards and actions

All,

I want to understand this better:

Say, I have one form , addDetails.jsp and another deleteDetails.jsp
addDetails.jsp when submitted should call AddAction and deleteDetails should 
call Deleteaction.

In adddetails I have and in delete I have 

Now, what all entries do I need in struts-config.xml for these to be forwarded 
to the correct action classes ? 
thanks
Maya


-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates 
starting at 1¢/min.



-
Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Global forwards and actions

2006-06-01 Thread Maya menon
well,
   
  I put 
  form.action="/Delete"; //in the jsp
   
  and
   
   //in the xml file
   
  Still it says,
  HTTP 404
   Status report
  message /Delete
  description The requested resource (/Delete) is not available.\
   
  whats going wrong here ?
  

Monkeyden <[EMAIL PROTECTED]> wrote:
  The form action is the same as the action mapping in struts-config, plus the
".do", so if the form has:

  

then the action mapping must be:




On 6/1/06, Maya menon wrote:
>
> Ok, for delete.jsp I put action="delete.do"
> form.action="Delete.do";
> form.submit();
>
> In struts-config.xml, I put
>
> > type="com.xx.xxx.xxx.xxxAction" >
> 
> 
> 
>
> Now, when I run, it it gives me the following error:
> type Status report
> message Invalid path /jsp/Delete was requested
> description The request sent by the client was syntactically incorrect
> (Invalid path /jsp/Delete was requested).
>
> What am I missing here ?
>
>
> Maya menon wrote:
> Manoj,
>
> Thanks.
> So, just 2 action entries r fine, thats what you think.
>
> [EMAIL PROTECTED] wrote:
> Sample config
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Note the following
> 1. This is a typical example modify according to your need
> 2. Name of the form is addForm and deleteForm in the xml above (You can
> change as you want)
> 3. Ask questions I will answer them all (not much work to do today)
> 4. Path in action mappings can be tile if that is the case you will need a
> tile definition as well or a jsp page(not a good idea to use jsp)
> 5. Optional: good idea to have all these xml files per struts module
> Hope that helps
> Manoj
>
>
> -Original Message-
> From: Maya menon [mailto:cc]
> Sent: 01 June 2006 16:46
> To: user@struts.apache.org
> Subject: Global forwards and actions
>
> All,
>
> I want to understand this better:
>
> Say, I have one form , addDetails.jsp and another deleteDetails.jsp
> addDetails.jsp when submitted should call AddAction and deleteDetails
> should call Deleteaction.
>
> In adddetails I have and in delete I have
>
> Now, what all entries do I need in struts-config.xml for these to be
> forwarded to the correct action classes ?
> thanks
> Maya
>
>
> -
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates
> starting at 1¢/min.
>
>
>
> -
> Do you Yahoo!?
> Get on board. You're invited to try the new Yahoo! Mail Beta.
>
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>



-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Re: Global forwards and actions

2006-06-01 Thread Maya menon
well,
   
  Here is exactly what I have:
   
  1. jsp files are in /jsp folder.
  struts-config file entries and action classes. 
   
  struts-config entry is like this:
   
  
  
  
  
  

Monkeyden <[EMAIL PROTECTED]> wrote:
  

If that's the error you're getting, then that can't be your code. You're
trying to request "/jsp/Delete" somewhere in your code. I suspect that the
/jsp is a directory and thus will only be relevant to the action-forwards,
not the form or the action-mapping.

On 6/1/06, Monkeyden wrote:
>
> The form action is the same as the action mapping in struts-config, plus
> the ".do", so if the form has:
>
>   
>
> then the action mapping must be:
>
> 
>
>
> On 6/1/06, Maya menon wrote:
> >
> > Ok, for delete.jsp I put action="delete.do"
> > form.action="Delete.do";
> > form.submit ();
> >
> > In struts-config.xml, I put
> >
> > > > type="com.xx.xxx.xxx.xxxAction" >
> > 
> > 
> > 
> >
> > Now, when I run, it it gives me the following error:
> > type Status report
> > message Invalid path /jsp/Delete was requested
> > description The request sent by the client was syntactically incorrect
> > (Invalid path /jsp/Delete was requested).
> >
> > What am I missing here ?
> >
> >
> > Maya menon wrote:
> > Manoj,
> >
> > Thanks.
> > So, just 2 action entries r fine, thats what you think.
> >
> > [EMAIL PROTECTED] wrote:
> > Sample config
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Note the following
> > 1. This is a typical example modify according to your need
> > 2. Name of the form is addForm and deleteForm in the xml above (You can
> > change as you want)
> > 3. Ask questions I will answer them all (not much work to do today)
> > 4. Path in action mappings can be tile if that is the case you will need
> > a tile definition as well or a jsp page(not a good idea to use jsp)
> > 5. Optional: good idea to have all these xml files per struts module
> > Hope that helps
> > Manoj
> >
> >
> > -Original Message-
> > From: Maya menon [mailto:cc]
> > Sent: 01 June 2006 16:46
> > To: user@struts.apache.org
> > Subject: Global forwards and actions
> >
> > All,
> >
> > I want to understand this better:
> >
> > Say, I have one form , addDetails.jsp and another deleteDetails.jsp
> > addDetails.jsp when submitted should call AddAction and deleteDetails
> > should call Deleteaction.
> >
> > In adddetails I have and in delete I have
> >
> > Now, what all entries do I need in struts-config.xml for these to be
> > forwarded to the correct action classes ?
> > thanks
> > Maya
> >
> >
> > -
> > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
> > rates starting at 1¢/min.
> >
> >
> >
> > -
> > Do you Yahoo!?
> > Get on board. You're invited to try the new Yahoo! Mail Beta.
> >
> > __
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com
> >
>
>


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Re: Global forwards and actions

2006-06-01 Thread Maya menon
Yes I did.
   
  1. In jsp:
  form.action="/Delete.do";
   
  2. In config file:
   
  
  action
  *.do
  
   
  Now the error is this:
  The requested resource (/Delete.do) is not available.
  

Monkeyden <[EMAIL PROTECTED]> wrote:
  I dont know how else I can say this. Put this in your JSP instead:

form.action="/Delete*.do*"; //in the jsp


On 6/1/06, Maya menon wrote:
>
> well,
>
> Here is exactly what I have:
>
> 1. jsp files are in /jsp folder.
> struts-config file entries and action classes.
>
> struts-config entry is like this:
>
> > type="com.xx.xxx.xxx.xxxaction" >
> 
> 
> 
>
>
> Monkeyden wrote:
>
>
> If that's the error you're getting, then that can't be your code. You're
> trying to request "/jsp/Delete" somewhere in your code. I suspect that the
> /jsp is a directory and thus will only be relevant to the action-forwards,
> not the form or the action-mapping.
>
> On 6/1/06, Monkeyden wrote:
> >
> > The form action is the same as the action mapping in struts-config, plus
> > the ".do", so if the form has:
> >
> >
> >
> > then the action mapping must be:
> >
> >
> >
> >
> > On 6/1/06, Maya menon wrote:
> > >
> > > Ok, for delete.jsp I put action="delete.do"
> > > form.action="Delete.do";
> > > form.submit ();
> > >
> > > In struts-config.xml, I put
> > >
> > > > > type="com.xx.xxx.xxx.xxxAction" >
> > >
> > >
> > >
> > >
> > > Now, when I run, it it gives me the following error:
> > > type Status report
> > > message Invalid path /jsp/Delete was requested
> > > description The request sent by the client was syntactically incorrect
> > > (Invalid path /jsp/Delete was requested).
> > >
> > > What am I missing here ?
> > >
> > >
> > > Maya menon wrote:
> > > Manoj,
> > >
> > > Thanks.
> > > So, just 2 action entries r fine, thats what you think.
> > >
> > > [EMAIL PROTECTED] wrote:
> > > Sample config
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Note the following
> > > 1. This is a typical example modify according to your need
> > > 2. Name of the form is addForm and deleteForm in the xml above (You
> can
> > > change as you want)
> > > 3. Ask questions I will answer them all (not much work to do today)
> > > 4. Path in action mappings can be tile if that is the case you will
> need
> > > a tile definition as well or a jsp page(not a good idea to use jsp)
> > > 5. Optional: good idea to have all these xml files per struts module
> > > Hope that helps
> > > Manoj
> > >
> > >
> > > -Original Message-
> > > From: Maya menon [mailto:cc]
> > > Sent: 01 June 2006 16:46
> > > To: user@struts.apache.org
> > > Subject: Global forwards and actions
> > >
> > > All,
> > >
> > > I want to understand this better:
> > >
> > > Say, I have one form , addDetails.jsp and another deleteDetails.jsp
> > > addDetails.jsp when submitted should call AddAction and deleteDetails
> > > should call Deleteaction.
> > >
> > > In adddetails I have and in delete I have
> > >
> > > Now, what all entries do I need in struts-config.xml for these to be
> > > forwarded to the correct action classes ?
> > > thanks
> > > Maya
> > >
> > >
> > > -
> > > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
> > > rates starting at 1¢/min.
> > >
> > >
> > >
> > > -
> > > Do you Yahoo!?
> > > Get on board. You're invited to try the new Yahoo! Mail Beta.
> > >
> > > __
> > > Do You Yahoo!?
> > > Tired of spam? Yahoo! Mail has the best spam protection around
> > > http://mail.yahoo.com
> > >
> >
> >
>
>
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Handling attribute values

2006-06-07 Thread Maya menon
Hi all,
   
  1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 
   
  2. Display results.jsp displays all records with an option of delete to the 
users.
   
  3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
  what path should I follow ?
   
  DisplayAction -> displayResults -> EditAction 
   
  EditAction should again display displayResults and get the attribute set in 
DisplayAction.
   
  Please help

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Handling attribute values

2006-06-07 Thread Maya menon
Manoj,
   
  Yes, I am storing a vector in request attribute. Using session attribute, I 
am not feeling comfortable. Because the application can be accessed 
simultaneously by lots. 
   
  So, In EditAction, is there a way to get the attribute from request ? 
  

[EMAIL PROTECTED] wrote:
  Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Handling attribute values

2006-06-07 Thread Maya menon
Manoj,
   
  In the vector I am storing a data object with 6 fields. I am using the 
iterate tag to iterate thru the vector and display the results. 
   
  Thanks

[EMAIL PROTECTED] wrote:
  Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-----
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-----
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Retrieve values

2006-06-07 Thread Maya menon
I tried storing vector values in a hidden field.
   
   
  "/>
   
  where data is a vector which I have set into the request type.
   
  Now how will I retrieve it ? 
  

Maya menon <[EMAIL PROTECTED]> wrote:
  Manoj,

In the vector I am storing a data object with 6 fields. I am using the iterate 
tag to iterate thru the vector and display the results. 

Thanks

[EMAIL PROTECTED] wrote:
Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Retrieve values

2006-06-07 Thread Maya menon
I tried storing vector values in a hidden field.
   
   
  "/>
   
  where data is a vector which I have set into the request type.
   
  Now how will I retrieve it ? 
  

Maya menon <[EMAIL PROTECTED]> wrote:
  Manoj,

In the vector I am storing a data object with 6 fields. I am using the iterate 
tag to iterate thru the vector and display the results. 

Thanks

[EMAIL PROTECTED] wrote:
Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Retrieve values

2006-06-07 Thread Maya menon
Yes, regarding this:
   
  I want to get the value and again create a vector out of it. Also, I am going 
to the next page with a link, < ahref=""?data=/>
   
  Like String values = request.getParameter("data"); //This gives objects.
   
  I get the string. Now I want to make a vector of it and then use the 
 tag again.
   
  If I just use vector.add(String) and then use iterate tag, it shows error 
saying, no getter method found..
   
  

[EMAIL PROTECTED] wrote:
  In the action where the form is submitted you call 
request.getAttributr("data") as the input hidden type's name is data

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 18:34
To: Struts Users Mailing List
Subject: Retrieve values

I tried storing vector values in a hidden field.


 [input] "/>

where data is a vector which I have set into the request type.

Now how will I retrieve it ? 


Maya menon wrote:
Manoj,

In the vector I am storing a data object with 6 fields. I am using the iterate 
tag to iterate thru the vector and display the results. 

Thanks

[EMAIL PROTECTED] wrote:
Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

RE: Retrieve values

2006-06-07 Thread Maya menon
Can anyone please help here ?
   
  1. request.setAttribute -> sets a vector in Action class 1
  2. In jsp, displays the values in vector using iterate tag and theres a 
hidden field with value as values in vector. In this jsp, the next .do is 
getting called like 
   
  3. In the next action class, I want to get it
  String x = request.getParameter("data");
  and again create a vector, to set it to the request
   
  If I do that, in the jsp, it says: no getter method found.
  please suggest me where I am wrong

Maya menon <[EMAIL PROTECTED]> wrote:
  Yes, regarding this:

I want to get the value and again create a vector out of it. Also, I am going 
to the next page with a link, < ahref=""?data=/>

Like String values = request.getParameter("data"); //This gives objects.

I get the string. Now I want to make a vector of it and then use the tag again.

If I just use vector.add(String) and then use iterate tag, it shows error 
saying, no getter method found..



[EMAIL PROTECTED] wrote:
In the action where the form is submitted you call request.getAttributr("data") 
as the input hidden type's name is data

-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 18:34
To: Struts Users Mailing List
Subject: Retrieve values

I tried storing vector values in a hidden field.


[input] "/>

where data is a vector which I have set into the request type.

Now how will I retrieve it ? 


Maya menon wrote:
Manoj,

In the vector I am storing a data object with 6 fields. I am using the iterate 
tag to iterate thru the vector and display the results. 

Thanks

[EMAIL PROTECTED] wrote:
Maya, Vectors are synchronized. Any method that touches the Vector's contents 
is thread safe. ArrayList, on the other hand, is unsynchronized, making them, 
therefore, not thread safe. With that difference in mind, using synchronization 
will incur a performance hit. So if you don't need a thread-safe collection, 
use the ArrayList. Why pay the price of synchronization unnecessarily?

Also can you tell me what exactly are you storing in vector?
I need this to tell you the best possible answer as when navigating through the 
pages (through actions) if the information is small you can use hidden values 
to pass the values around which you want to manage

Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 15:21
To: Struts Users Mailing List
Subject: RE: Handling attribute values

Manoj,

Yes, I am storing a vector in request attribute. Using session attribute, I am 
not feeling comfortable. Because the application can be accessed simultaneously 
by lots. 

So, In EditAction, is there a way to get the attribute from request ? 


[EMAIL PROTECTED] wrote:
Maya,
It seems you storing a list of records in request

Set the attribute in session scope, and when you delete the record update the 
attribute in session when you are in editAction
Or
In Edit action again set the update attribute in request scope
Cheers
-Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: 07 June 2006 14:52
To: user@struts.apache.org
Subject: Handling attribute values

Hi all,

1. I have an action class, DisplayAction which displays the records from 
database. Here I am setting a vector into the request scope and on success 
forwarding it to displayresults.jsp. 

2. Display results.jsp displays all records with an option of delete to the 
users.

3. Now, once user deletes the records, by going to editaction, on success it 
should again display the displayresults.jsp. How will I get the attribute I set 
in step one here again. 
what path should I follow ?

DisplayAction -> displayResults -> EditAction 

EditAction should again display displayResults and get the attribute set in 
DisplayAction.

Please help

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.co

Reload the same page

2006-06-08 Thread Maya menon
All,
   
  I have a page, results.jsp with a link 
  < ahref="deleteAction.do?/>
   
  In deleteAction,  the record will be deleted by calling the helper classes 
and on succesful delete the request should be forwarded again to the 
results.jsp.
   
  How can I achieve this ?
   
  In strts-config, i have it properly pointed. But the page doesnot refresh. Am 
I missing anything ?
   
  Thanks
   

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Best approach

2006-06-12 Thread Maya menon
All,
   
  I have 4 buttons in a jsp. 
  The  four should do four different things, with 2 being Submit and Cancel. Is 
it a good way to write  3 different action classes or just one action class ? 
Which is a good approach ?
   
  Thanks

 __
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Tags in struts

2006-07-10 Thread Maya menon
All,
  In my JSP I have a textbox and two list boxes[which can display multiple 
values].
   
  From my database, I have an object [a data object], ListData with following 
information returning 
  string result;
  Vector itemList; //list of object 1
  ArrayList itemList1; //list of object 2
   
  In my JSP, I have th reference to ListData object, I know I can use 
>bean:write and get result.
   
  Now, for getting fields within the arraylists, is there any tag which I can 
use ?
   
  I have to
  -> iterate thru the list, which gets me another dataobject with getter method.
  -> then use dataobject's property
   
  its like a vector inside an object. Any ideas ?
   
   


-
Yahoo! Music Unlimited - Access over 1 million songs.Try it free. 

Re: Tags in struts

2006-07-10 Thread Maya menon
Thanks Adam.
   
  Yes, I have a bean lets say, Testbean with two Collections.
   
  I have to display the value of these Collections[has objects] in a select box 
in my JSP.
   
  Can you send me the sample code please ?
   
  Maya

Adam Gordon <[EMAIL PROTECTED]> wrote:
  
> In my JSP I have a textbox and two list boxes[which can display
> multiple values].
> 
> From my database, I have an object [a data object], ListData with
> following information returning 
> string result;
> Vector itemList; //list of object 1
> ArrayList itemList1; //list of object 2
> 
> In my JSP, I have th reference to ListData object, I know I can use
> 
>> bean:write and get result.
>> 
> 
> Now, for getting fields within the arraylists, is there any tag which
> I can use ?
> 

Yes and no, depending on your desired implementation. Probably the 
easiest way I've found is to use the LabelValueBean object and construct 
a java.util.List of these objects from your model data. Then, following 
the example at http://wiki.apache.org/struts/StrutsWidgets, you can use 
the html:optionsCollection element and the "value" and "label" 
attributes to retrieve the value and display name (two separate things) 
of the item selected in the listbox.

Since I just implemented this late last week, I can post an example if 
you'd like...it's pretty straight forward once you grasp how to use it 
(although, it was this last part that took me a while too...)

Alternatively, check out the Radio Group section of the above listed 
URL, it provides an example using logic:iterate and bean:write but I 
don't think it allows for different bean getters...someone please 
correct me if I'm wrong.
> 
> I have to
> -> iterate thru the list, which gets me another dataobject with getter
> method.
> -> then use dataobject's property
> 
> its like a vector inside an object. Any ideas ?
> 
> 
> 
So, if I understand you correctly, you have a bean Foo with a method 
getBar() that returns a Collection? If so, you'll want to just set an 
attribute on the request with the result of that getter method as I 
don't think there's a way to handle it otherwise. I did this last week 
also, so if you want, I can post that code as well.

-Adam

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




-
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ 
countries) for 2¢/min or less.

Re: Tags in struts

2006-07-11 Thread Maya menon
Thanks Adam
   
  Implemented it and it worked.
  One quick question, when we use these tags, one of the options get selected 
by default. How can we modify the tag so that NONE of the options get selected 
by default ?
   
  Thanks.

Adam Gordon <[EMAIL PROTECTED]> wrote:
  Maya-

Let's say your TestBean class has getFoo() and getBar() methods both 
which return Collection objects. If these objects are instances of 
LabelValueBean objects it's really easy, if they are not, I'd recommend 
converting them to these bean objects either in your bean class or in 
the action (though the latter could add additional overhead if not done 
correctly). Assume also that your TestBean class has getter and setter 
methods for ONE Foo and ONE Bar (say getOneFoo(), setOneFoo(String foo), 
getOneBar(), setOneBar(String bar).

In your Action's execute method (or a method called by execute(...)) 
type (assume testBean is an instance of the TestBean class and the 
getFoo() and getBar() methods return Collections of LabelValueBean objects):

public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {

...

Collection fooCollection = testBean.getFoo();
Collection barCollection = testBean.getBar();

request.setAttribute("fooCollection", fooCollection); // 
"fooCollection" can be any text you want - i recommend using a final 
static reference instead of a hard-coded string.

request.setAttribute("barCollection", barCollection); // same 
comment applies

...
}

in your JSP, you would say:


your collection on the request -->
property="value"
labelProperty="label"/>


and,


property="value"
labelProperty="label"/>


to render list boxes of your model data.

html:options knows that you have a Collection of objects (in this case 
LabelValueBean objects) that have the methods getValue() and 
getLabel(). Note that since these attributes are configurable, you can 
make the Collection a collection of any type of bean you want so long as 
all the beans in the collection have a getXXX() methods where XXX are 
the values of the attributes "property" and "labelProperty".

When your form is submitted, the setOneFoo(String) and setOneBar(String) 
methods will be called and set with the value of the "property" 
attribute. the "labelProperty" attribute dictates what is actually 
displayed to the user in the browser.

Let me know if you have any more questions.

-Adam

Maya menon wrote:
> Thanks Adam.
> 
> Yes, I have a bean lets say, Testbean with two Collections.
> 
> I have to display the value of these Collections[has objects] in a
> select box in my JSP.
> 
> Can you send me the sample code please ?
> 
> Maya
>
> 

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




-
Yahoo! Music Unlimited - Access over 1 million songs.Try it free. 

Re: Tags in struts

2006-07-12 Thread Maya menon
Adam,
   
  Thanks for the suggestion. I checked with our users, they didnt like the idea 
of inserting a text in the listbox. They see it as confusing.
   
  So, ideally my users lik to have listboxes with No values selected...
   
  Any idea how it can be achieved ?
   
  Thanks.

Adam Gordon <[EMAIL PROTECTED]> wrote:
  Maya-

Excellent! For a list box, I believe that you must have at least one 
option selected at any given time. If you don't want to provide a 
default and force the user to actually select one (and then you can 
validate the user's input to ensure he/she has actually selected a real 
value) then you can do what we did.

For our Time Zone list box, we created the list of time zones and also 
inserted a text label of "Time Zone" with the value of "" into the 
LabelValueBean List and then in the Action that is executed before the 
JSP page is rendered, we set the property on the bean. So for our time 
zone it would be beanInstance.setTimeZone(""). This defaults our time 
zone list box to display "Time Zone" and if the user tries to submit the 
form without selecting a time zone, our validator informs them that they 
must select a time zone.

Glad it worked.

-Adam

Maya menon wrote:
> Thanks Adam
> 
> Implemented it and it worked.
> One quick question, when we use these tags, one of the options get
> selected by default. How can we modify the tag so that NONE of the
> options get selected by default ?
> 
> Thanks.
>
> 

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




-
Do you Yahoo!?
 Get on board. You're invited to try the new Yahoo! Mail Beta.

RE: Tags in struts

2006-07-12 Thread Maya menon
Yes Adam.
  Thanks again
   
  in the nested:select tag you can add value="", that changes the display in 
such a way that none of the needed options ar selected.
   
  Thanks again.
   
  Now, my display is perfect, have to think about how to update options in this 
list box now using javascript. 
   
  -Maya

Adam Gordon <[EMAIL PROTECTED]> wrote:
  Maya-

A. I understand now. You want a list box, not a drop-down list.
Drop-down lists require that one, and only one, item be selected. List
boxes allow for zero, one, or more options to be selected.

Check out the "Dropdown box" section of the Struts Wiki:
http://wiki.apache.org/struts/StrutsWidgets

It explains how to have the tag render as a list-box rather
than a drop-down list.

I've not yet used a list box but I imagine if you set the bean property
(that matches the property of the list box) to the empty string (or perhaps
even null), no item will be selected when rendered.

Hope this helps.

-Adam

-----Original Message-
From: Maya menon [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, 12 July 2006 07:21
To: Struts Users Mailing List
Subject: Re: Tags in struts

Adam,

Thanks for the suggestion. I checked with our users, they didnt like the
idea of inserting a text in the listbox. They see it as confusing.

So, ideally my users lik to have listboxes with No values selected...

Any idea how it can be achieved ?

Thanks.




-
Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls.  Great rates 
starting at 1¢/min.

Re: Tags in struts

2006-07-12 Thread Maya menon
ok...
   
  good thought, looking at Javascripr right now to edit the options in list 
box..
   
  -Maya

Adam Gordon <[EMAIL PROTECTED]> wrote:
  Maya-

Just had a thought...you can set the "style" attribute on the 
element to say 'style="display: none;"' to hide a row in the list. 
Additionally, it collapses the list so that there's not an empty space. 
Very cool, IMHO.

-Adam

Adam Gordon wrote:
> Maya-
>
> If you use validation, you really don't want to use the value 
> attribute at all because when the JSP reloads after a failed 
> validation, the struts widget will take it's value from the value 
> attribute you specified and NOT not take it from the bean. This is 
> why I suggested just setting the property on the bean to the empty 
> string inside the Action.
>
> If you don't use validation, then you can ignore this.
>
> Depending on what you want to do to the HTML list box after it's 
> rendered you may run into issues. Removing a row is pretty easy. 
> Adding a row is quite difficult and according to W3C it's not fully 
> supported in all browsers. When you add a row, you need to actually 
> specify the element to add and the element it's to 
> be inserted before. Changing the text of a row in a list box 
> shouldn't be hard either. There are some really good (free) 
> Javascript debuggers out there that can give you the whole DOM tree so 
> you know exactly how to reference specified elements of a list box 
> without using alert() debugging.
>
> Happy coding.
>
> Cheers,
>
> -Adam

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




-
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.

Come back to same JSP

2006-08-29 Thread Maya menon
All,
   
  I have a jsp page, to add new records to the database. Now, when the records 
are added succesfully I have to come back to the same page with the fields 
populated with the added values.
   
  how do i achieve this ?
   
  Please let me know.
   
  Thanks



-
Get your own web address for just $1.99/1st yr. We'll help. Yahoo! Small 
Business.