ADF Faces with Struts 2 -JSf plugin

2007-10-26 Thread robin bajaj
I have a fairly strong Struts 1.x background but suffered a lot in one of the 
recent projects
because of the lack of some controls ( I didn't find using Dojo etc. that 
easy). 

I am currently working on a new project using Oracle ADF Faces and I am really 
very impressed
by the out-of-the-box functionality and controls provided by ADF faces. 

I have heard that Struts2 provides JSF plugin. Has anyone tried using ADF faces 
distribution
with Struts2's JSF plugin... Any good/bad experiences with the integration.. ?
(I have not tried MyFaces implementation.. but actually in this case, I would 
just like to use ADF faces
if possible with Struts 2...)
Please share.. 
thanks,
robin





  Get news delivered with the All new Yahoo! Mail.  Enjoy RSS feeds right 
on your Mail page. Start today at http://mrd.mail.yahoo.com/try_beta?.intl=ca

Re: [BEER] Re: Books

2007-04-27 Thread robin bajaj
i hope Ted (Husted) is reading this post ... (and several others 
from Struts 2 users who have expressed the need for such a book..

robin (a Struts2 fan, but waiting for some good book)

- Original Message 
From: Chris Pratt [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Friday, April 27, 2007 2:27:00 PM
Subject: Re: [BEER] Re: Books

I have recently begun the learning curve from Struts 1 to Struts 2, and
since WebWork in Action is really the only game in town, it's definitely
worth the read.  There is a lot of package and library conversions that you
have to do to get the examples working on Struts 2, and some of the concepts
have advanced since the book was written, but the information is still
relevant, and at this point, I would add it to the suggested reading list of
anyone starting up the Struts 2 Learning Curve.
  (*Chris*)

P.S.  Any chance of Struts 2 in Action (i.e. WWiA v2) any time soon?  Seems
like the time is ripe.

On 4/27/07, maestro [EMAIL PROTECTED] wrote:

 Now that everyone has had a good whip at it...
 Is the book worth anything?

 On 4/27/07, Wendy Smoak [EMAIL PROTECTED] wrote:
 
  On 4/27/07, Harring Figueiredo [EMAIL PROTECTED] wrote:
 
   By th eway he describes the whole thing, I think he meant it literaly,
  even
   though he should have used the adjective instead (sadistic). It is
  indeed
   very funny!
 
  A former coworker once accused open source developers of changing
  stuff not so that it would work better, but simply so they could sell
  more books!
 
  --
  Wendy
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 








  Be smarter than spam. See how smart SpamGuard is at giving junk email the 
boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca


Re: Flex front end

2007-04-20 Thread robin bajaj

I just came across this article
that explains how to use Flex front end for Struts web app.
http://www.adobe.com/devnet/flex/articles/struts.html

hope that helps,
robin

On 4/20/07, Richard Kroll [EMAIL PROTECTED] wrote:


I am new to struts so bear with me if I'm slightly off, but Flex and
struts really have no need to talk to one another.  Struts is concerned
with the view / controller layer of a MVC application.  Flex acts
internalizes the view / controller layer, and has a micro-framework
called Cairngorm (http://labs.adobe.com/wiki/index.php/Cairngorm).

You can find more information about integrating flex and java at
http://www.adobe.com/devnet/flex/flex_java.html.  From the information
I've seen, it's not a necessity to use FDS, but it can greatly enhance
what is possible in an RIA.

HTH,

Rich Kroll


 -Original Message-
 From: Frank Russo [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 20, 2007 2:52 PM
 To: Struts Users Mailing List
 Subject: RE: Flex front end

 I'd be curious about this one myself. I've read some good things about
 Flex, but I'd like to see what comes of it as far as popularity. The
fact
 that flash is what it renders holds me back a bit, but it's got some
 really nice features for doing ajax, but even better, it has a built
in
 push technology (I've seen this referred to as comet on some sites) on
the
 server, so you don't have to make standard ajax calls. Really cool
 stuff...

 -Original Message-
 From: Joe Yuen [mailto:[EMAIL PROTECTED]
 Sent: Friday, April 20, 2007 2:44 PM
 To: Struts Users Mailing List
 Subject: Flex front end


 Has anyone had any experience getting Adobe's Flex product to work
with
 struts?


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


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




[OT] problem with displaytag column sorting in struts 1.2 web project

2007-04-08 Thread robin bajaj

Hi All,
In my Struts 1.2.x webapp, I am getting some Patient records from 
backend using my PatientManager businessObject (which uses Hibernate)
to send back a populated Patients List in the request scope. (Patient is 
my bean).


I am feeding this patientsList to Displaytag table,
to show the data in a table.

Here's the code snippet for my jsp containing displaytag table.
http://rafb.net/p/artIJr98.html

Now, I want to sort this table based on the PatientID
when I click on the PatientID column.

I read in the Displaytag docs

http://displaytag.homeip.net/displaytag-examples-1.1/example-sorting.jsp

where it mentions the following :

If you want to allow the user to sort the data as it is coming back, 
then you need to just do two things, make sure that the data returned 
from your property implements the Comparable interface (if it doesn't 
natively - use the decorator pattern as shown a couple of examples ago), 
and then set the attribute sortable=true on the columns that you want 
to be able to sort by.



Following the above suggestion, I changed my Patient class to implement 
Comparable interface and implemented the following compareTo method (as 
following)

http://rafb.net/p/t0CR4Q98.html

Then I re-build my app and restart it on the server, the displaytag 
table shows up fine. But when I click on the first column PtId, it 
doesn't sort the table. I just get the Http404 error page.


Am I missing something ?

Please help,
thanks in advance,
robin.

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



Re: Need suggestion to load resource properties file dynamically

2007-03-01 Thread robin bajaj

Hi there,
I am looking for similar results (*dynamically load properties file 
without restarting the server))


You'll need to implement your own MessageResourcesFactory and configure
 it in struts-config.xml. Your custom factory and/or the resource 
bundles

 it creates can use whatever logic you want for (re)loading the property
 files.

can you please provide some code templates or some pointers about how to 
 implement what you suggested ?


thanks,
robin


Laurie Harper wrote:

Prithivirajan Dhamodharan wrote:

Help required to load values in properties file(MessageResources) without
restarting/reloading the server.

Kindly give your suggestions.


You'll need to implement your own MessageResourcesFactory and configure 
it in struts-config.xml. Your custom factory and/or the resource bundles 
it creates can use whatever logic you want for (re)loading the property 
files.


L.


-
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: Ajax Requirement

2007-02-28 Thread robin bajaj

Another good online example using JWP
http://www.learntechnology.net/content/ajax/ajax_select_alter.jsp

On 2/28/07, Siva Gurusamy [EMAIL PROTECTED] wrote:


Thanks for the reply.

Can you please tell me which cookbook example which you are referring.

I went through showcase.war, there was doubleselect which was closest to
my
requirement, but, it doesn't hit the server for change in master select.
But, in my case I want some sql query to be executed to find the result of
child select.

Is there any similar example anywhere which I can refer?

Thanks
siva

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 27, 2007 7:52 PM
To: Struts Users Mailing List
Subject: Re: Ajax Requirement

JWP doesn't offer ready-made components such as this (yet!!), but it
*does* make developing them very simple (and without you having to code
Javascript usually)... this particular case is actually one of our
cookbook examples, so I suppose you could in fact say it offer this
particular item :)

Frank

Musachy Barroso wrote:
 If you are using the autocompleter tag, this is done already, and
 there is
 an example on showcase. If not, you will have to do everything my hand,
for
 which I would recommend using a framework that already has it, like
 AjaxTags, not sure if Java Web Parts has something like this also,
Frank?

 regards
 musachy

 On 2/27/07, Siva Gurusamy [EMAIL PROTECTED] wrote:

 Hi,



 I am new to Struts 2. I have following requirement on Ajax. Can
somebody
 explain me how to implement this requirement?



 There is form in which there are 2 selects. One is a master select and
 other
 is child select whose values changes based on master select. I want to
 implement in Ajax. This is similar to having 2 selects one with Country
 and
 other with states. Based on selection of Country, values in state
select
 changes.  There are also other fields in the form which will be
submitted
 when all the fields are entered properly.



 Thanks

 siva





--
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!




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




struts 2 with jsf as plugin

2006-12-19 Thread robin bajaj

hi All,
I heard that Struts2 can use JSF components selectively on per-page 
basis. Does this mean, I can use any JSF distribution including ICESoft, 
MyFaces, Sun's JSF RI etc. or does it have any limits as per the JSF 
distro is concerned.


And can we mix match using a couple of distros, ie. using a MyFaces 
component for one page and ICESoft component for another.


And is there anyway possible we could plugin JSF components in STruts 
1.3.x ?? (or is it still just wishful thinking.. for a Struts 2.x novice 
like me :-(


Thanks for your replies in advances,
regards,
robin.

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



Re: Struts2, Shale, Seam, pure JSF - what to use?

2006-12-19 Thread robin bajaj

Hi there,

May I ask a corollary question in this context.

What is the current status of Shale, is it build on top of SUN's JSF Ref.
Implementation or MyFaces
or Can I just use any JSF distro with Shale.

Thanks for your replies in advance,
regards
robin

On 12/19/06, Don Brown [EMAIL PROTECTED] wrote:


It isn't an either/or question.  You can use JSF actions, components,
and configuration in a Struts 2 app, using the Struts 2 JSF Plugin.
If you prefer an action-centric design, but want to use JSF
components, then it is worth looking into.  If you want a pure JSF
approach, especially if you have your eye on the JSF tools, then
MyFaces or Shale would be worth looking at.

See also: http://cwiki.apache.org/WW/javaserver-faces.html

Don

On 12/19/06, Piero Sartini [EMAIL PROTECTED] wrote:
 Hello list,

 the last days I've read a lot about web frameworks in java. And the more
I
 read, the more questions I have. Just writing this down, maybe someone
has
 some thoughts that can help me.

 My problem is simple, or lets say it should be simple: What webframework
is a
 good choice to start a new web application?

 After all, JSF seams to be popular, it is supported by big vendors and
it is a
 standard. My problem with JSF is that its way too basic in my eyes. It
does
 not give me best practices, its just there and says: use me. But it
does
 not give me an idea how it is used best. But maybe I missed that. My
feeling
 is that its a core technology like jsp ... someone should build a
framework
 with it ...

 I am missing this framework around JSF that does speed up development.
Is
 shale meant to be this framework? It matured a lot since I last looked
at it.
 But for me, it looks like its not really accepted - maybe I am wrong. Is
 shale what I am searching for?

 There is JBoss Seam. I don't want to use jboss AS and not sure if its
the best
 choice..

 I looked at struts2 and it feels like it could be what I searched for.
There
 is good documentation, many examples, an maven archetype, lots of users
and
 the possibility to use third party technologies like freemarker. But my
 problem is that I am not sure if its not better to use JSF to be
compatible
 with future technologies. There are a lot of ajax-components for
example, and
 we can wait that a lot of third party libraries and tools will be
 available...

 Is there a simple answer?


 Regards,
 Piero

 -
 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]




HELP with switching modules in Struts 1.2.x

2006-12-07 Thread robin bajaj

Hi All,
I am trying to switch modules in Struts 1.2.x webapp using a global forward.

Here's the global forward

forward name=backTOMODULE2 contextRelative=true 
path=/MODULE2/action.do redirect=true/	



Here's the action Mapping that wants to switch to MODULE2 when an 
actionForward toAccMain_CustomerProfilePage is returned by

ProcessLoyaltyPageAction


action path=/processLoyalty
type=com.abc.flow.action.renewal.ProcessLoyaltyPageAction
   name=loyaltyForm
   scope=request
   validate=true
   input=viewLoyaltyPage 

forward name=toAccMain_CustomerProfilePage path=/backTOMODULE2 
contextRelative=true/forward

/action



-
Looks like, there's something wrong with my action mapping's forward.
Everytime, the above actionForward is returned by the action, my .log 
file shows the following forwardconfig being processed


2006-12-07 12:19:41,788 435579 DEBUG [ExecuteThread: '9' for queue: 
'default'] action.RequestProcessor - 
processForwardConfig(ForwardConfig[name=toAccMain_CustomerProfilePage,path=/backTOMODULE2,redirect=false,contextRelative=true])


but nothing happens.

Browser address bar shows - 
http://localhost:7001/rdas107/MODULE1/processLoyalty.do


and ends up giving Error 404 Not found Error

No other exception, error in the logs or server console.

Any help would be much appreciated,

regards,
robin






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



[Fwd: HELP with switching modules in Struts 1.2.x]

2006-12-07 Thread robin bajaj

Please ignore my previous mail. I found the issue.
I was trying to forward from a local forward to a global forward.

I started forwarding to the global forward directly and everthing 
started working fine.


thanks,
robin
---BeginMessage---

Hi All,
I am trying to switch modules in Struts 1.2.x webapp using a global forward.

Here's the global forward

forward name=backTOMODULE2 contextRelative=true 
path=/MODULE2/action.do redirect=true/	



Here's the action Mapping that wants to switch to MODULE2 when an 
actionForward toAccMain_CustomerProfilePage is returned by

ProcessLoyaltyPageAction


action path=/processLoyalty
type=com.abc.flow.action.renewal.ProcessLoyaltyPageAction
   name=loyaltyForm
   scope=request
   validate=true
   input=viewLoyaltyPage 

forward name=toAccMain_CustomerProfilePage path=/backTOMODULE2 
contextRelative=true/forward

/action



-
Looks like, there's something wrong with my action mapping's forward.
Everytime, the above actionForward is returned by the action, my .log 
file shows the following forwardconfig being processed


2006-12-07 12:19:41,788 435579 DEBUG [ExecuteThread: '9' for queue: 
'default'] action.RequestProcessor - 
processForwardConfig(ForwardConfig[name=toAccMain_CustomerProfilePage,path=/backTOMODULE2,redirect=false,contextRelative=true])


but nothing happens.

Browser address bar shows - 
http://localhost:7001/rdas107/MODULE1/processLoyalty.do


and ends up giving Error 404 Not found Error

No other exception, error in the logs or server console.

Any help would be much appreciated,

regards,
robin







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

Help with using formaKey attribute for display dollar values

2006-11-28 Thread robin bajaj

Hi Folks,
If I have an int value ( showing number of cents) in session scope that 
is going to get displayed on the JSP as dollar value.

I am using the following tag

bean:write name=XYZProfileDTO property=double_ABCDollarsAvailable 
formatKey=format.msf  scope=session/


where I have the following key defined in my .properties file

format.msf=$#,##0.00

But the above converts a value of 1896 cents to $18.00

How can I make it show up as $ 18.96 itself.?

Any help would be much appreciated,
regards,
robin.

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



[Fwd: Help with using formaKey attribute for display dollar values]

2006-11-28 Thread robin bajaj

Sorry I forgot to mention,
I am actually dividing the 1896 cents by 100 before the jsp page
to make the value 18.96 and then display it using the formatkey as
$18.00.

I would appreciate a formatKey pattern that could convert 1896 straight 
into $18.96 (without me having to divide it by 100).


Thanks a lot,
robin.
---BeginMessage---

Hi Folks,
If I have an int value ( showing number of cents) in session scope that 
is going to get displayed on the JSP as dollar value.

I am using the following tag

bean:write name=XYZProfileDTO property=double_ABCDollarsAvailable 
formatKey=format.msf  scope=session/


where I have the following key defined in my .properties file

format.msf=$#,##0.00

But the above converts a value of 1896 cents to $18.00

How can I make it show up as $ 18.96 itself.?

Any help would be much appreciated,
regards,
robin.


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

Re: [Fwd: Help with using formaKey attribute for display dollar values]

2006-11-28 Thread robin bajaj

no that variable is a float.

Hubert Rabago wrote:

Did you declared the variable that holds the 1896 / 100 value as int?

On 11/28/06, robin bajaj [EMAIL PROTECTED] wrote:

Sorry I forgot to mention,
I am actually dividing the 1896 cents by 100 before the jsp page
to make the value 18.96 and then display it using the formatkey as
$18.00.

I would appreciate a formatKey pattern that could convert 1896 straight
into $18.96 (without me having to divide it by 100).

Thanks a lot,
robin.



-- Forwarded message --
From: robin bajaj [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Date: Tue, 28 Nov 2006 16:04:39 -0500
Subject: Help with using formaKey attribute for display dollar values
Hi Folks,
If I have an int value ( showing number of cents) in session scope that
is going to get displayed on the JSP as dollar value.
I am using the following tag

bean:write name=XYZProfileDTO property=double_ABCDollarsAvailable
formatKey=format.msf  scope=session/

where I have the following key defined in my .properties file

format.msf=$#,##0.00

But the above converts a value of 1896 cents to $18.00

How can I make it show up as $ 18.96 itself.?

Any help would be much appreciated,
regards,
robin.




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




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




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



[Fwd: Re: [Fwd: Help with using formaKey attribute for display dollar values]]

2006-11-28 Thread robin bajaj

Actually its a double. sorry
---BeginMessage---

no that variable is a float.

Hubert Rabago wrote:

Did you declared the variable that holds the 1896 / 100 value as int?

On 11/28/06, robin bajaj [EMAIL PROTECTED] wrote:

Sorry I forgot to mention,
I am actually dividing the 1896 cents by 100 before the jsp page
to make the value 18.96 and then display it using the formatkey as
$18.00.

I would appreciate a formatKey pattern that could convert 1896 straight
into $18.96 (without me having to divide it by 100).

Thanks a lot,
robin.



-- Forwarded message --
From: robin bajaj [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Date: Tue, 28 Nov 2006 16:04:39 -0500
Subject: Help with using formaKey attribute for display dollar values
Hi Folks,
If I have an int value ( showing number of cents) in session scope that
is going to get displayed on the JSP as dollar value.
I am using the following tag

bean:write name=XYZProfileDTO property=double_ABCDollarsAvailable
formatKey=format.msf  scope=session/

where I have the following key defined in my .properties file

format.msf=$#,##0.00

But the above converts a value of 1896 cents to $18.00

How can I make it show up as $ 18.96 itself.?

Any help would be much appreciated,
regards,
robin.




-
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]





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

help with using valuelist taglib with Struts 1.2.x

2006-11-27 Thread robin bajaj

I am trying to use valueList taglib with my Struts 1.2.x webapp.
I basically have a collection of dto's having the data that I want
to display. I am using Struts with Hibernate 3.0.
I dont have any Spring knowledge. Have any of you been able to use 
valueList and its sorting/paging features with my skill-set i.e without 
Spring knowledge.


I would appreciate any feedback (*positive/negative experiences) with
Valuelist.

Thanks a lot,
robin.


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



Having problems with Struts validation framework

2006-11-23 Thread robin bajaj

Hi Folks,

--- problem ---
My validation is working but the control doesnt go back to the input 
page. I want the input page to render again showing the errors.


--- Details --
I am using Struts 1.1.x for my webApp.
My validation is working fine. (validator-rules.xml and 
validation-renewal.xml setup correctly and declared in 
struts-config-renewal.xml file).


I want to validate an Email text field on LoyaltyPage.jsp, it has to 
be non-empty, valid email address.


Here's the snippet from validation-renewal.xml
-
 form name=loyaltyForm
field property=email
depends=required,email
msg name=required  key=error.loyaltyPage2 
  /
msg name=email  key=error.loyaltyPage3 /
/field
/form
--

Here's the snippet from struts-config-renewal.xml
--
action path=/processLoyalty
   
type=com.xyz.flow.action.renewal.ProcessLoyaltyPageAction
   name=loyaltyForm
   scope=request
   validate=true
   input=/LoyaltyPage.jsp 
   forward name=exit 
path=/EquipmentList.jsp/forward
   forward name=continue 
path=/processRegistration.do/forward
   forward name=failure 
path=/ErrorPageRenewal.jsp/forward

/action

--

I do notice that validation is occuring but the control doesnt go back 
to the loyaltypage.jsp even though I have mentioned it as the input 
attribute in the action mapping. I just get a blank page in the browser.


input=/LoyaltyPage.jsp

I have tried changing the input attribute to the action that actually 
forwards to loyaltyPage.jsp

input=/getLoyalty.do

but in both the cases, I get the blank page in the browser. I want the 
loyaltypage.jsp to render again with the error messages showing up.


The following logs show clearly that the validation is occuring, form is 
failing the validation, but the input page is still not rendering in the 
browser.


What's the missing piece in the whole picture, please help ???


2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] action.RequestProcessor - Processing a 'POST' for path 
'/processLoyalty'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] util.RequestUtils -  Looking for ActionForm bean instance in 
scope 'request' under attribute key 'loyaltyForm'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] util.RequestUtils -  Creating new ActionForm instance of type 
'com.xyz.salescentral.flow.formbean.renewal.LoyaltyForm'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] util.RequestUtils -  -- 
[EMAIL PROTECTED]
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] action.RequestProcessor -  Storing ActionForm bean instance 
in scope 'request' under attribute key 'loyaltyForm'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] action.RequestProcessor -  Populating bean properties from 
this request
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.BeanUtils - 
BeanUtils.populate([EMAIL PROTECTED], 
{actionValue=[Ljava.lang.String;@1633bbd, 
contactMethod=[Ljava.lang.String;@1e719e8, 
sendCommunication=[Ljava.lang.String;@155f12b, 
email=[Ljava.lang.String;@14c7c48})
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.BeanUtils - 
setProperty([EMAIL PROTECTED], 
actionValue, [continue])
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.ConvertUtils - Convert string 'continue' to class 
'java.lang.String'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.ConvertUtils -   Using converter 
[EMAIL PROTECTED]
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.BeanUtils - 
setProperty([EMAIL PROTECTED], 
contactMethod, [])
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.ConvertUtils - Convert string '' to class 
'java.lang.String'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.ConvertUtils -   Using converter 
[EMAIL PROTECTED]
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.BeanUtils - 
setProperty([EMAIL PROTECTED], 
sendCommunication, [false])
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.ConvertUtils - Convert string 'false' to class 
'boolean'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.ConvertUtils -   Using converter 
[EMAIL PROTECTED]
2006-11-23 11:35:39,546 219875 

[Fwd: Having problems with Struts validation framework]

2006-11-23 Thread robin bajaj

Hello folks,
I found a little issue with the action that's being called.
Please dis-regard my previous mail reporting this issue.
Its resolved now.

However, I have another related issue.
My loyaltyPAge.jsp has two buttons - Exit and continue.

I want the validation to occur only when Continue is clicked upon.
But because there's one form in the LoyaltyPage.jsp having these two 
buttons, they both get evaluated using one actionMapping (which has the 
validate=true).


Is there some facility provided by the Struts framework to
SKIP the validation when a specific button (Exit) is clicked
and ONLY OCCUR when another button(*Continue) is clicked . ???

A corollary question to this would be,
Is it possible for one JSP to have two buttons in one form,
and each button calling a different Action.

Currently as I know, the action gets called based on the
html:form action=  setting.


Any help would be much appreciated,
regards,
robin.










---BeginMessage---

Hi Folks,

--- problem ---
My validation is working but the control doesnt go back to the input 
page. I want the input page to render again showing the errors.


--- Details --
I am using Struts 1.1.x for my webApp.
My validation is working fine. (validator-rules.xml and 
validation-renewal.xml setup correctly and declared in 
struts-config-renewal.xml file).


I want to validate an Email text field on LoyaltyPage.jsp, it has to 
be non-empty, valid email address.


Here's the snippet from validation-renewal.xml
-
 form name=loyaltyForm
field property=email
depends=required,email
msg name=required  key=error.loyaltyPage2 
  /
msg name=email  key=error.loyaltyPage3 /
/field
/form
--

Here's the snippet from struts-config-renewal.xml
--
action path=/processLoyalty
   
type=com.xyz.flow.action.renewal.ProcessLoyaltyPageAction
   name=loyaltyForm
   scope=request
   validate=true
   input=/LoyaltyPage.jsp 
   forward name=exit 
path=/EquipmentList.jsp/forward
   forward name=continue 
path=/processRegistration.do/forward
   forward name=failure 
path=/ErrorPageRenewal.jsp/forward

/action

--

I do notice that validation is occuring but the control doesnt go back 
to the loyaltypage.jsp even though I have mentioned it as the input 
attribute in the action mapping. I just get a blank page in the browser.


input=/LoyaltyPage.jsp

I have tried changing the input attribute to the action that actually 
forwards to loyaltyPage.jsp

input=/getLoyalty.do

but in both the cases, I get the blank page in the browser. I want the 
loyaltypage.jsp to render again with the error messages showing up.


The following logs show clearly that the validation is occuring, form is 
failing the validation, but the input page is still not rendering in the 
browser.


What's the missing piece in the whole picture, please help ???


2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] action.RequestProcessor - Processing a 'POST' for path 
'/processLoyalty'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] util.RequestUtils -  Looking for ActionForm bean instance in 
scope 'request' under attribute key 'loyaltyForm'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] util.RequestUtils -  Creating new ActionForm instance of type 
'com.xyz.salescentral.flow.formbean.renewal.LoyaltyForm'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] util.RequestUtils -  -- 
[EMAIL PROTECTED]
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] action.RequestProcessor -  Storing ActionForm bean instance 
in scope 'request' under attribute key 'loyaltyForm'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] action.RequestProcessor -  Populating bean properties from 
this request
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.BeanUtils - 
BeanUtils.populate([EMAIL PROTECTED], 
{actionValue=[Ljava.lang.String;@1633bbd, 
contactMethod=[Ljava.lang.String;@1e719e8, 
sendCommunication=[Ljava.lang.String;@155f12b, 
email=[Ljava.lang.String;@14c7c48})
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.BeanUtils - 
setProperty([EMAIL PROTECTED], 
actionValue, [continue])
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.ConvertUtils - Convert string 'continue' to class 
'java.lang.String'
2006-11-23 11:35:39,546 219875 DEBUG [ExecuteThread: '7' for queue: 
'default'] beanutils.ConvertUtils -   

how to use validation rules from validatior-rules.xml in Struts Actions

2006-11-23 Thread robin bajaj

Hi Folks,
I have an Email text field that I want to validate against Struts
validation framework's provided email Rule in validator-rules.xml.

Can I do this programmatically in Struts Action or ActionForm's java 
code instead of

having to declaratively do it in validation.xml. ??


Any help would be much appreciated,
robin.

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



Re: how to selectively call struts validation from a form

2006-11-23 Thread robin bajaj


Thanks Paul for your input on this issue and
Thanks Wendy for suggesting the following link.

 Rick has an article on calling validation manually, here:
   http://learntechnology.net/validate-manually.do


I understand this stuff

ActionErrors errors = form.validate( mapping, request );
if ( errors != null  !errors.isEmpty() ) {
saveErrors(request, errors);
setUp(request);
return (mapping.findForward(UIconstants.VALIDATION_FAILURE));
}
--
I only have one issue with this approach. I dont know how to make use of 
the built-in validation rules provided in validation-rules.xml in my 
.java code.

I can check for simple things like not-null, not-empty etc. but checking
something like email field will be easier if I could leverage the 
rules provided by Struts validation framework in validator-rules.xml.


Is there a way to do this ?
Essentially I want to use validation rules like email, mask from 
validator-rules.xml while writing my Action or ActionForm java code.




Any pointers ?
regards,
robin.




Wendy Smoak wrote:

On 11/23/06, robinbajaj [EMAIL PROTECTED] wrote:


Hi Folks,
My previous post's subject was not clear. So here's a re-phrase of the
problem.

My loyaltyPAge.jsp has two buttons - Exit and continue.

I want the validation to occur only when Continue is clicked upon.
But the html:form in the jsp points to one actionmapping
having validate=true - that's why the Struts validation framework
tries to validate the input fields regardless of which button is clicked.


Rick has an article on calling validation manually, here:
  http://learntechnology.net/validate-manually.do



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



Re: another html:link issue

2006-11-21 Thread robin bajaj

Thanks for the reply Ed,
I have a quick question about paramId usage.

How about having a hidden parameter,
like
  html:hidden property=variable value=value/
and doing
html:link forward=myForward paramID=myVariable paramName=variable 
paramScope=someScope View  Loyalty Page

/html:link

Shouldn't this pass the variable  in some Scope to be later retrieved 
in the subsequent action etc. OR Do I HAVE TO bring a scalar property in 
 request/session scope from something before the JSP etc. ?


regards,
robin

Ed Griebel wrote:

A html:link will NOT send anything on the current form; it actually
doesn't even need to be inside a form.

Here's 2 approaches that I've used:
- generate the URL with html:rewrite action=... and store it in a
variable and just use a standard a href=... to generate the link,
and append the variables you want to when generating the href part
- use the html:link parameters paramId, paramName, and paramProperty:
-- paramId: the name on the URL
-- paramName: the scoped collection or POJO that contains the field
(omit if property is a scalar)
-- paramProperty: the name of the field in the above object, or the
name of a scalar-typed scoped variable

HTH,
-ed

On 11/20/06, robin bajaj [EMAIL PROTECTED] wrote:

Hi Folks,
I am trying to have an html:link in my jsp form. This form normally
submits to action Action1.do. (html:form action/Action1.do)

But when clicked upon html:link, I want to do 2 things :

a) call  a different action Action2.do
b) and set the value and send one variable (hidden parameter etc.) in
the request/session scope so that Action2.do can process it.


I have tried doing the following
---
html
  body
  html:form action =/Action1.do
html:hidden property=variable value=value/
html:link forward=myForward View  Loyalty Page
/html:link
  /html:form
  /body
/html
---


Even though my myForward points to the right action (Acton2.do) and
calls it successfully, I still cannot get to submit the variable with
its assigned value.

When I do request.getParameter(variable) in my Action2.do code,
I get null value.

How can i work around this situation? How about using paramid, paramname
attributes? I couldn't understand their correct usage from Struts 1.1
Api reference , some small snippet will be very helpful and much
appreciated.
Or Any other workarounds are most welcome .
thanks,
robin


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




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




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



session maintenance in struts webapp

2006-11-21 Thread robin bajaj

Hi Folks,
In my Struts 1.2.x based webapp, I intend to maintain a session for
every logged in user.
-- More details --
Say after 'n' seconds of inactivity I want to pop up a message
saying the session will expire in another 'm' seconds. The user can
click on 'refresh' button to get some more grace time else the session
will expire and the next time user tries to do something on the page, he
gets redirected to the 'login' page with a message - 'your last session
has expired, please login again'

I have already implemented SSL using SSLext tag-library (release 0 for
Struts 1.2.x) in my webApp. Can it help me in this case,

What other alternatives can I consider in this case,
Any tips/ideas will be much appreciated,
Regards,
robin



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



bean:write not displaying the intended values

2006-11-16 Thread robin bajaj

Hi Folks,

At Struts 1.x level,
I am writing the value of bean's property on a jsp page
using bean:write name=bean property=bean-property scope=request/ 
 tag , but nothing gets displayed on the web page.


Infact the generated HTML (view source in the browser), shows the tag's 
code as-is. bean:write name=bean property=bean-property 
scope=request/


However,
I can display the value of bean's property using a scriptlet.

%LoyaltyProfileDto loyaltyProfileDTO = 
(LoyaltyProfileDto)request.getAttribute(loyaltyProfileDTO);

out.println(loyaltyProfileDTO.getEMail());  %

This scriptlet works fine and displays the bean property's value correctly.

I dont know what's wrong,
Any ideas ?
regards,
- R

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



Re: bean:write not displaying the intended values

2006-11-16 Thread robin bajaj

Good Stuff, it worked, I was missing a quote in my taglib declaration.

Instead of %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %
it was %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean %

Missing  before /WEB-INF

Thanks a ton,
- R

Chris Loschen wrote:

Did you include the taglib reference in your JSP page? Something like this:

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

Without it, the JSP can't find the custom tag and you get the behavior you're 
describing.

Hope that helps.

Chris Loschen 


-Original Message-
From: robin bajaj [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 16, 2006 3:38 PM

To: Struts Users Mailing List
Subject: bean:write not displaying the intended values

Hi Folks,

At Struts 1.x level,
I am writing the value of bean's property on a jsp page using bean:write name=bean 
property=bean-property scope=request/
  tag , but nothing gets displayed on the web page.

Infact the generated HTML (view source in the browser), shows the tag's code as-is. bean:write 
name=bean property=bean-property
scope=request/

However,
I can display the value of bean's property using a scriptlet.

%LoyaltyProfileDto loyaltyProfileDTO =
(LoyaltyProfileDto)request.getAttribute(loyaltyProfileDTO);
out.println(loyaltyProfileDTO.getEMail());  %

This scriptlet works fine and displays the bean property's value correctly.

I dont know what's wrong,
Any ideas ?
regards,
- R

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



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




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



dojo toolkit available for Struts 1.x ?

2006-11-10 Thread robin bajaj

Hi All,
Thanks a lot for Struts community's help so far regarding all my questions.
I developing a webApp using Struts 1.2.x
I have been searching around for good jsp taglib for tab controls.
And specifically that allows sub-tabs in those tabs. I have been hearing 
about dojo on this forum in Struts 2.x context.

I checked out http://dojotoolkit.org/
I am very impressed by the Sub-TabContainer and DatePicker controls.
And I need them pretty badly in my webApp.
Is it possible to integrate them into my webApp (and dojo in general) using 
Struts 1.2.x

or do I HAVE TO upgrade Struts 2.x ?

What kind of difference are we looking at between Struts 1.x and Struts 2.x 
support

for Dojo toolkit specifically ?

Thanks in advance,
regards,
robin. 



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



Re: how to call action from java script

2006-11-10 Thread robin bajaj

Hi there,
I would catch a control's (radionButton etc) event to fire the form's submit 
method to call its action etc.
- You can catch the onclick event of the radio button and submit the form 
and hence call its action.


html:form  action=/myaction.do
   html:radio value=abc property=cde 
onclick=document.forms[form-name-from-struts-config.xml].submit(); /

/html:form

hope this helps,
robin

- Original Message - 
From: nazgultukai [EMAIL PROTECTED]

To: user@struts.apache.org
Sent: Friday, November 10, 2006 12:46 PM
Subject: how to call action from java script




I'm trying to create a web page using JSP,Struts and Javascript...
the page has a form where there are two radio buttons and a menu box.
now the idea is when one clicks on a radio button the menu will show the
items related to this categoryfor this I've to use java script on 
click

function  . but I'm not getting how can I call the action from this on
click function ...as I've to use Struts for this application as well...
please help.

--
View this message in context: 
http://www.nabble.com/how-to-call-action-from-java-script-tf2609331.html#a7281890

Sent from the Struts - User mailing list archive at Nabble.com.


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




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



Re: In search of a perfect AJAX solution for Struts

2006-11-10 Thread robin bajaj

Hi Frank,
Thanks a lot for your reply on this issue.
I did give it a quick shot to Java Web Parts. Very well done !
a) I liked and will use the following in my current webApp.
   1) 2nd JWP cookbook example - AJAX style populating the drop-down 
selections.

   2) SessionInactivityFilter

b)  I will use dojoToolkit for DatePicker and Tab/sub-tab controls.

Thanks,
robin

- Original Message - 
From: Frank W. Zammetti [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Cc: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, November 09, 2006 5:32 PM
Subject: Re: In search of a perfect AJAX solution for Struts



FYI, support for that taglib ceased a long time ago.  It has since grown
up to something much bigger and better: AjaxParts Taglib (APT), a
component of Java Web Parts (JWP):

http://javawebparts.sourceforge.net

...and directly to the taglib:

http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/package-summary.html

You'll find that APT is more powerful, easier to use, and a fully
maintained project, as is JWP in general.  There are examples for it (the
JWP sample app first and foremost, the JWP cookbook examples, and
real-world (ahem) usage in some of the examples in the book Practical Ajax
Projects With Java Technologies)... and, you'll find some folks who have
used it floating around who can offer some thoughts... I'm not sure the
same can be said for the original AjaxTags (not to be confused with the
project AjaxTags, which is totally different).

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 Thu, November 9, 2006 4:55 pm, robin bajaj wrote:

Hi Guys,
In search of a perfect AJAX solutions for Struts 1.2.x , I just came
across
this Struts HTML taglib mod. which does AJAX for you declaratively.

here's the site -  http://struts.sourceforge.net/ajaxtags/index.html

 Here's the goal (as mentioned on site) 
This project has the goal of adding AJAX (Asynchronous Javascript+XML)
functionality to the existing Struts HTML taglib, and providing a
declarative method for using the functionality. The basic idea is that an
EXISTING Struts-based app using the HTML taglib can add AJAX 
functionality

without disrupting the existing code and without the developer having to
know any of the details of how AJAX works.
--

Since there's no Demo provided on the Site, I would appreciate any
feedback
from the folks
who have already used this taglib successfully.

thanks a lot,
robin


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





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




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



Re: problem with moving jsp pages under web-inf/ folder

2006-11-10 Thread robin bajaj

Oh ok, sorry I was a little lost yesterday while trying all this.
I just read your responses carefully again and
gave it a shot. Its working now. :-)
I will keep the jsps under web-inf\jsp  and the other resources under
webRoot itself.
thanks a lot to all who replied to this thread,
have a nice weekend,
regards,
robin.

Ed Griebel wrote:

You're getting blank pages or no styles because ${context_root} is not
a real variable, the string ${context_root} may even be in your
generated HTML, which would be way wrong.

Actually, ${context_root} was a placeholder for the correct variable
that I didn't know the exact value of off the top of my head, you
probably want to use ${requestScope.contextPath}. If you're not in a
JSTL 2.0 environment you'll have to surround it with c:out
value=.../. Also, the path after the ${} will have to match what
directory you put it into when you build your war file.

-ed

On 11/9/06, robin bajaj [EMAIL PROTECTED] wrote:

Hi Ed,
Thanks for the suggestion, I agree with you.
But when I changed my JSP Web-inf/jsp/non-tiles.jsp
to point to my .css and .js in your suggested way, I get weird 
behaviour in

the browsers.
In IE 6, I get a blank page *(yes a totally white blank page)
In Mozilla firefox 2.0 , I get simple content (as before making this
changes) without applying the stylesheets... what am I doing wrong now.
Here's non-tiles.jsp code , may be you can spot the culprit.
--
%@ page language=java%
%@ taglib uri=http://struts.apache.org/tags-bean; prefix=bean %
%@ taglib uri=http://struts.apache.org/tags-html; prefix=html %
%@ taglib uri=http://struts.apache.org/tags-logic; prefix=logic %
%@ taglib uri=http://struts.apache.org/tags-tiles; prefix=tiles %
html:html
head
titleadfasdf/title
script src=${context_root}/scripts/oBCTS_scripts.js 
language=javascript

type=text/javascript/script
script type=text/css src=${context_root}/css/styles.css/
/head
body class=sidebar
dl id=menu
%-- html:button property=Back
onclick=location.href='default.do'Back/html:button --%
dt onclick=javascript:show();a
href=navigatePatient.do?do=getFirstPatientAdd New Patient/a/dt
dt onclick=javascript:show();a href=listPatients.doView Working
List/a/dt
%--dt class=level1Menu onclick=javascript:show('smenu3');Access
Patient Roster/dt--%
dt onclick=javascript:show();a href=myAction.do?do=addBookAccess
Patient Roster/a/dt
dd id=smenu3
ul
lia href=myAction.do?do=addBookHistory/a/li
lia href=myAction.do?do=addBookClinical Presentations/a/li
lia href=myAction.do?do=addBookFamily Malignancies/a/li
lia href=myAction.do?do=addBookComorbidities/a/li
dl id =menu2
dt style=text-align:right; onclick=javascript:show('ssmenu1');
 Treatments*/dt
dd id=ssmenu1
ul
lia href=myAction.do?do=addBookNeo Adjuvant/a/li
lia href=myAction.do?do=addBookSurgery/a/li
lia href=myAction.do?do=addBookAdjuvant Chemo/a/li
lia href=myAction.do?do=addBookHormonal/a/li
lia href=myAction.do?do=addBookBiologic Agents/a/li
lia href=myAction.do?do=addBookClinical Trial/a/li
/ul
/dd
/dl
%-- lia href=myAction.do?do=addBookImages/a/li --% %-- 
robin:

Check with M if this is required here. --%
lia href=myAction.do?do=addBookPathologies/a/li
lia href=myAction.do?do=addBookBiopsies/a/li
lia href=myAction.do?do=addBookClinical 
Evaluation/Follow-ups/a/li

/ul
/dd
%--dt onclick=javascript:show('smenu4');View Images/dt--%
dt onclick=javascript:show();a href=myAction.do?do=addBookView
Images/a/dt
dd id=smenu4
ul
lia href=myAction.do?do=addBookMammograms/a/li
lia href=myAction.do?do=addBookX-Rays/a/li
lia href=myAction.do?do=addBookBone Scans/a/li
lia href=myAction.do?do=addBookCT Scans/a/li
lia href=myAction.do?do=addBookUltrasound Scans/a/li
lia href=myAction.do?do=addBookMRI Studies/a/li
/ul
/dd
/dl
/body
/html:html





- Original Message -
From: Ed Griebel [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, November 09, 2006 4:44 PM
Subject: Re: problem with moving jsp pages under web-inf/ folder


 What happens when the JSP is converted to HTML, it is sent to the
 browser. The browser then tries to access the css and js files from
 the webserver, but since the HTML points to web-inf, it won't serve
 them.

 One way to do it is to create an action mapping that is just defined
 as a ForwardAction, e.g. action path=/css
 type=org.apache.struts.actions.ForwardActions
 parameter=/WEB-INF/css/my.css/

 However, why do you need to protect the CSS and javascript files? Why
 not have them outside of the WAR files's WEB-INF directory, then your
 http would just have a simple script type=text/css
 file=${context_root}/css/my.css/ ? You are not going to keep
 anything secret by keeping them in WEB-INF because they are simple
 text files and anyone who looks at the generated HTML will see where
 the CSS comes from.

 On 11/9/06, robin bajaj [EMAIL PROTECTED] wrote:
 Hi Everybody,

 - SUMMARY -
 Can anyone tell me as to how can I make my jsp lying in Web-inf

Re: Struts 1.3.5 and Eclipse 3.2

2006-11-10 Thread robin bajaj

Hi Bruno,
The problem seems to be incorrect taglib uri value.
I am using Struts 1.2.x
%@ taglib uri=http://struts.apache.org/tags-logic; prefix=logic %
here's what I have.
I know they changed it from Struts 1.1 to 1.2. Unless they changed it f
You can give a shot with this. Or else just wait for some Struts 1.3.x 
user to respond.

regards,
robin

Bruno Melloni wrote:
I have a strange problem, with Struts 1.3.5 in Eclipse 3.2.  


- struts-taglib-1.3.5.jar is in the classpath.
- Inside the jar, in /META-INF/tld are the struts tld files.  
- I have the following in index.jsp:

%@ taglib uri=/META-INF/tld/struts-logic.tld prefix=logic
%
logic:redirect forward=welcome /
- Eclipse whines about the tag not being known.  I even tried replacing
the URI with http://struts.apache.org/tags-logic;, but no cigar.

Any idea what is going on, and how to fix it?

Thanks,

Bruno

-
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 1.3.5 and Eclipse 3.2

2006-11-10 Thread robin bajaj

Hi Bruno,
The problem seems to be incorrect taglib uri value.
I am using Struts 1.2.x
%@ taglib uri=http://struts.apache.org/tags-logic; prefix=logic %
here's what I have.
I know they changed it from Struts 1.1 to 1.2.  Unless they changed it 
from 1.2 to 1.3.x as well, it should work for you.
You can give a shot with this. Or else just wait for some Struts 1.3.x 
user to respond.

regards,
robin

Bruno Melloni wrote:
I have a strange problem, with Struts 1.3.5 in Eclipse 3.2.  


- struts-taglib-1.3.5.jar is in the classpath.
- Inside the jar, in /META-INF/tld are the struts tld files.  
- I have the following in index.jsp:

%@ taglib uri=/META-INF/tld/struts-logic.tld prefix=logic
%
logic:redirect forward=welcome /
- Eclipse whines about the tag not being known.  I even tried replacing
the URI with http://struts.apache.org/tags-logic;, but no cigar.

Any idea what is going on, and how to fix it?

Thanks,

Bruno

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




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



[OT-Friday]What's the best way to search through Struts user list ...

2006-11-10 Thread robin bajaj

Hi Guys,
What's the best way to search through Struts user mailing list archives 
...for already known issues . Just Google or do we have some search 
functionality on the site that I didnt notice during a quick glance


thanks,
robin

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



Re: Struts 1.3.5 and Eclipse 3.2

2006-11-10 Thread robin bajaj
Or actually you can just get it from your project structure, depending 
upon your jsp and tld location.


Say your jsp is in WebRoot/   [[ webRoot/abc.jsp ]]
and your tld is lying in web-Inf/struts-logic.tld  {usual tooling/user 
practice}


Then you can access the .tld as
%@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic %

I wonder why you dont have the actual .tld files in the web-inf folder
of your webApp. If you actually don't then you can get them from Struts 
download site.

Hope it helps,
regards,
robin

Paul Benedict wrote:
The taglib URI should be the the http:// address, not the /META-INF 
location. If you are unsure what the address is, open up the TLD files 
and see.


-- Paul

Bruno Melloni wrote:
I have a strange problem, with Struts 1.3.5 in Eclipse 3.2. 
- struts-taglib-1.3.5.jar is in the classpath.
- Inside the jar, in /META-INF/tld are the struts tld files.  - I have 
the following in index.jsp:

%@ taglib uri=/META-INF/tld/struts-logic.tld prefix=logic
%
logic:redirect forward=welcome /
- Eclipse whines about the tag not being known.  I even tried replacing
the URI with http://struts.apache.org/tags-logic;, but no cigar.

Any idea what is going on, and how to fix it?

Thanks,

Bruno

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




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




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



Re: [OT-Friday]What's the best way to search through Struts user list ...

2006-11-10 Thread robin bajaj

Great going folks.
Thanks a lot.
robin

Wendy Smoak wrote:

On 11/10/06, robin bajaj [EMAIL PROTECTED] wrote:


What's the best way to search through Struts user mailing list archives
...for already known issues . Just Google or do we have some search
functionality on the site that I didnt notice during a quick glance


Nabble is my favorite archive:  http://www.nabble.com/Struts-f203.html



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



Re: In search of a perfect AJAX solution for Struts

2006-11-10 Thread robin bajaj

Thanks a lot, appreciate the clarification.
Needed it pretty bad.
- R

Levan Dvalishvili wrote:

There is small cavity regarding ajaxtags as a name :
, http://ajaxtags.sourceforge.net/ is alive and well and its in beta 2 stage
at the moment, good thing about it is that they use prototype,
script.acu.los, which in my opinion is lot faster and better that overweight
Dojo, 
But this http://struts.sourceforge.net/ajaxtags/index.html is what Frank

referring to is indeed dead and turned into part of other bigger project.


Levan Dvalishvili 
Support Lead  US

Verticali,Inc
(646) 736 - 6075

-Original Message-
From: robin bajaj [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 10, 2006 3:03 PM

To: Struts Users Mailing List
Subject: Re: In search of a perfect AJAX solution for Struts

Hi Frank,
Thanks a lot for your reply on this issue.
I did give it a quick shot to Java Web Parts. Very well done !
a) I liked and will use the following in my current webApp.
1) 2nd JWP cookbook example - AJAX style populating the drop-down
selections.
2) SessionInactivityFilter

b)  I will use dojoToolkit for DatePicker and Tab/sub-tab controls.

Thanks,
robin

- Original Message -
From: Frank W. Zammetti [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Cc: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, November 09, 2006 5:32 PM
Subject: Re: In search of a perfect AJAX solution for Struts



FYI, support for that taglib ceased a long time ago.  It has since grown
up to something much bigger and better: AjaxParts Taglib (APT), a
component of Java Web Parts (JWP):

http://javawebparts.sourceforge.net

...and directly to the taglib:



http://javawebparts.sourceforge.net/javadocs/javawebparts/ajaxparts/taglib/p
ackage-summary.html

You'll find that APT is more powerful, easier to use, and a fully
maintained project, as is JWP in general.  There are examples for it (the
JWP sample app first and foremost, the JWP cookbook examples, and
real-world (ahem) usage in some of the examples in the book Practical Ajax
Projects With Java Technologies)... and, you'll find some folks who have
used it floating around who can offer some thoughts... I'm not sure the
same can be said for the original AjaxTags (not to be confused with the
project AjaxTags, which is totally different).

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 Thu, November 9, 2006 4:55 pm, robin bajaj wrote:

Hi Guys,
In search of a perfect AJAX solutions for Struts 1.2.x , I just came
across
this Struts HTML taglib mod. which does AJAX for you declaratively.

here's the site -  http://struts.sourceforge.net/ajaxtags/index.html

 Here's the goal (as mentioned on site) 
This project has the goal of adding AJAX (Asynchronous Javascript+XML)
functionality to the existing Struts HTML taglib, and providing a
declarative method for using the functionality. The basic idea is that an
EXISTING Struts-based app using the HTML taglib can add AJAX 
functionality

without disrupting the existing code and without the developer having to
know any of the details of how AJAX works.
--

Since there's no Demo provided on the Site, I would appreciate any
feedback
from the folks
who have already used this taglib successfully.

thanks a lot,
robin


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




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




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


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




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



Re: RE: Input and results on the same JSP

2006-11-09 Thread robin bajaj

Hi Guys,
sorry to jump in this thread.
I am trying to achieve this sort of AJAX functionality at Struts 1.2.x 
level.

Is it possible? or Do I have to upgrade to Struts 2.x for AJAX support ?
Any good articles for this (preferrable Struts 1.2.x specific) ?
Appreciate your help in advance,
thanks,
robin

- Original Message - 
From: Prakash Inuganti -X (pinugant - Digital-X, Inc. at Cisco) 
[EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org; 
struts-user@jakarta.apache.org

Sent: Thursday, November 09, 2006 3:36 PM
Subject: RE: RE: Input and results on the same JSP


Hi Brian,

I am trying to do exactly what you described here. Good to know it can
be done. I am reassured now in case I run into errors.


Thanks
Prakash





From: Brian Holzer [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 3:32 PM
To: struts-user@jakarta.apache.org
Subject: Fwd: RE: Input and results on the same JSP


Hi there,
  We do this all over the place with our app.  What we do, is the form
that contains our query params (entered in your textarea) we also
include a Collection of your choice of the Objects you retrieve from the
db based on your query params.  Then use your logic iterate tags to
display the results, so you have your form contain the input and the
results of your query.

Brian


Wesley Wannemacher [EMAIL PROTECTED] 09/11/2006 12:55:31

PM 
I've done this sort of AJAX-y in the past...

You have 2 DIVs one that contains the form you want, then another DIV
that contains the data table. Then you create a Javascript global
variable that acts as a switch to indicate which div should be visible.
Then, instead of having your form post directly to the action, have it
run a javascript function that uses an async http request to your
action. Then, when the action is done, have the callback update the data
table div and make it visible while hiding the form.

It isn't that hard to hand-code, but I've heard good things about Dojo.

-Wes


-Original Message-
From: Prakash Inuganti -X (pinugant - Digital-X, Inc. at
Cisco) [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 09, 2006 12:41 PM
To: user@struts.apache.org
Subject: Input and results on the same JSP

Hi,

I am trying to display entry and results on the same screen.
The idea is
like this. I have a textarea where some values can be entered. On
submitting this data, the same form refreshes displaying the data in a
table. Can this be done? I create a bean with the values entered in
textarea and use it to iterate and create table. Any pointers
out there
for this use case? Would appreciate any help.

Thanks
Prakash





**DISCLAIMER**

This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you are not the named addressee, please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. If you are not the intended
recipient you are notified that using, disclosing, copying or
distributing the contents of this information is strictly prohibited.

**DISCLAIMER**



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



problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread robin bajaj

Hi Everybody,

- SUMMARY -
Can anyone tell me as to how can I make my jsp lying in Web-inf/jsp/ folder 
pick the stylesheet and javascript lying

in Web-inf/scripts and Web-inf/css ??

- DETAILS -
I have SSL enabled my web-app this morning using SSLext release 0 .
I am using Struts 1.2.x with Tiles. Now I can switch from http to https etc.
So,everything is working fine except that my jsp pages
(and other images, css and javascript files) are still lying under WebRoot\ 
folder.

To be specific - webRoot\jsp , webRoot\css, webRoot\images, webRoot\scripts
have the corresponding resources.

I want to avoid direct access to the jsp (and the static resources) from the 
browser
(foreg: since my jsp pages are currently in webRoot\jsp, user can still 
access them

using http://hostname:port//context-name/jsp/abc.jsp )

So I tried moving my jsp folder (and images, css, scripts folders) to 
webRoot\WEB-INF\
from webRoot. Since I am using tiles, I also updated the references to the 
jsps

from /jsp/abc.jsp   to --- /WEB-INF/jsp/abc.jsp

Now when i go to my home page. My images, javascripts and css are not being 
applied to the jsp pages. I get plain white jsp page with contents.


Just to make sure, that Tiles is not messing things up. I created a new JSP 
page - Web-inf\jsp\non-tiles.jsp
And copied the contents of another jsp that uses javascript and css 
stylesheets.


And forwarded my index.jsp to an actionForward that points to this 
non-tiles.jsp.

Even this .jsp shows up without applying the css and javascript.

So I thought its a path issue.
I am accessing my javascript and css as
script src=../scripts/oBCTS_scripts.js language=javascript 
type=text/javascript/script

link rel=stylesheet type=text/CSS HREF=../css/styles.css

Since my non-tiles.jsp is in Web-inf/jsp/ folder , and oBCTS.js file is in 
Web-inf/scripts/ folder  (similary .css file is in Web-inf/css/styles.css)
I think the above paths should resolve correctly. But they DO NOT and hence 
even my non-tiles.jsp shows up without applying the .css stylesheet and .js 
javascript effects.


Just to prove it for myself, I copy-pasted the contents .css and .js files 
into the jsp itself and now access them as

script type=text/javascript  [...] /script
style type=text/css  [...]  /style

So this works fine. (After all... :-(
Can anyone tell me as to how can I make my jsp lying in Web-inf/jsp/ folder 
pick the stylesheet and javascript lying in Web-inf/scripts and Web-inf/css 
??


Thanks in advance,
robin 



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



In search of a perfect AJAX solution for Struts

2006-11-09 Thread robin bajaj

Hi Guys,
In search of a perfect AJAX solutions for Struts 1.2.x , I just came across 
this Struts HTML taglib mod. which does AJAX for you declaratively.


here's the site -  http://struts.sourceforge.net/ajaxtags/index.html

 Here's the goal (as mentioned on site) 
This project has the goal of adding AJAX (Asynchronous Javascript+XML) 
functionality to the existing Struts HTML taglib, and providing a 
declarative method for using the functionality. The basic idea is that an 
EXISTING Struts-based app using the HTML taglib can add AJAX functionality 
without disrupting the existing code and without the developer having to 
know any of the details of how AJAX works.

--

Since there's no Demo provided on the Site, I would appreciate any feedback 
from the folks

who have already used this taglib successfully.

thanks a lot,
robin 



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



Re: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread robin bajaj

Hi Ed,
Thanks for the suggestion, I agree with you.
But when I changed my JSP Web-inf/jsp/non-tiles.jsp
to point to my .css and .js in your suggested way, I get weird behaviour in 
the browsers.

In IE 6, I get a blank page *(yes a totally white blank page)
In Mozilla firefox 2.0 , I get simple content (as before making this 
changes) without applying the stylesheets... what am I doing wrong now.

Here's non-tiles.jsp code , may be you can spot the culprit.
--
%@ page language=java%
%@ taglib uri=http://struts.apache.org/tags-bean; prefix=bean %
%@ taglib uri=http://struts.apache.org/tags-html; prefix=html %
%@ taglib uri=http://struts.apache.org/tags-logic; prefix=logic %
%@ taglib uri=http://struts.apache.org/tags-tiles; prefix=tiles %
html:html
head
titleadfasdf/title
script src=${context_root}/scripts/oBCTS_scripts.js language=javascript 
type=text/javascript/script

script type=text/css src=${context_root}/css/styles.css/
/head
body class=sidebar
dl id=menu
%-- html:button property=Back 
onclick=location.href='default.do'Back/html:button --%
dt onclick=javascript:show();a 
href=navigatePatient.do?do=getFirstPatientAdd New Patient/a/dt
dt onclick=javascript:show();a href=listPatients.doView Working 
List/a/dt
%--dt class=level1Menu onclick=javascript:show('smenu3');Access 
Patient Roster/dt--%
dt onclick=javascript:show();a href=myAction.do?do=addBookAccess 
Patient Roster/a/dt

dd id=smenu3
ul
lia href=myAction.do?do=addBookHistory/a/li
lia href=myAction.do?do=addBookClinical Presentations/a/li
lia href=myAction.do?do=addBookFamily Malignancies/a/li
lia href=myAction.do?do=addBookComorbidities/a/li
dl id =menu2
dt style=text-align:right; onclick=javascript:show('ssmenu1'); 
Treatments*/dt

dd id=ssmenu1
ul
lia href=myAction.do?do=addBookNeo Adjuvant/a/li
lia href=myAction.do?do=addBookSurgery/a/li
lia href=myAction.do?do=addBookAdjuvant Chemo/a/li
lia href=myAction.do?do=addBookHormonal/a/li
lia href=myAction.do?do=addBookBiologic Agents/a/li
lia href=myAction.do?do=addBookClinical Trial/a/li
/ul
/dd
/dl
%-- lia href=myAction.do?do=addBookImages/a/li --% %-- robin: 
Check with M if this is required here. --%

lia href=myAction.do?do=addBookPathologies/a/li
lia href=myAction.do?do=addBookBiopsies/a/li
lia href=myAction.do?do=addBookClinical Evaluation/Follow-ups/a/li
/ul
/dd
%--dt onclick=javascript:show('smenu4');View Images/dt--%
dt onclick=javascript:show();a href=myAction.do?do=addBookView 
Images/a/dt

dd id=smenu4
ul
lia href=myAction.do?do=addBookMammograms/a/li
lia href=myAction.do?do=addBookX-Rays/a/li
lia href=myAction.do?do=addBookBone Scans/a/li
lia href=myAction.do?do=addBookCT Scans/a/li
lia href=myAction.do?do=addBookUltrasound Scans/a/li
lia href=myAction.do?do=addBookMRI Studies/a/li
/ul
/dd
/dl
/body
/html:html





- Original Message - 
From: Ed Griebel [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, November 09, 2006 4:44 PM
Subject: Re: problem with moving jsp pages under web-inf/ folder



What happens when the JSP is converted to HTML, it is sent to the
browser. The browser then tries to access the css and js files from
the webserver, but since the HTML points to web-inf, it won't serve
them.

One way to do it is to create an action mapping that is just defined
as a ForwardAction, e.g. action path=/css
type=org.apache.struts.actions.ForwardActions
parameter=/WEB-INF/css/my.css/

However, why do you need to protect the CSS and javascript files? Why
not have them outside of the WAR files's WEB-INF directory, then your
http would just have a simple script type=text/css
file=${context_root}/css/my.css/ ? You are not going to keep
anything secret by keeping them in WEB-INF because they are simple
text files and anyone who looks at the generated HTML will see where
the CSS comes from.

On 11/9/06, robin bajaj [EMAIL PROTECTED] wrote:

Hi Everybody,

- SUMMARY -
Can anyone tell me as to how can I make my jsp lying in Web-inf/jsp/ 
folder

pick the stylesheet and javascript lying
in Web-inf/scripts and Web-inf/css ??

- DETAILS -
I have SSL enabled my web-app this morning using SSLext release 0 .
I am using Struts 1.2.x with Tiles. Now I can switch from http to https 
etc.

So,everything is working fine except that my jsp pages
(and other images, css and javascript files) are still lying under 
WebRoot\

folder.
To be specific - webRoot\jsp , webRoot\css, webRoot\images, 
webRoot\scripts

have the corresponding resources.

I want to avoid direct access to the jsp (and the static resources) from 
the

browser
(foreg: since my jsp pages are currently in webRoot\jsp, user can still
access them
using http://hostname:port//context-name/jsp/abc.jsp )

So I tried moving my jsp folder (and images, css, scripts folders) to
webRoot\WEB-INF\
from webRoot. Since I am using tiles, I also updated the references to 
the

jsps
from /jsp/abc.jsp   to --- /WEB-INF/jsp/abc.jsp

Now when i

Fw: problem with moving jsp pages under web-inf/ folder

2006-11-09 Thread robin bajaj

Hi there,
Okay, just to fix the blank pag issues in IE, I just went back to square one 
and just applied your suggestion of using the following snippet in my jsp , 
Now both IE and Firefox show simple contents without applying the 
stylesheets or javascript effects.


script src=${context_root}/scripts/oBCTS_scripts.js language=javascript 
type=text/javascript/script

script type=text/css src=${context_root}/css/styles.css/

any idea, why is it still not working for me,
I appreciate your help so far on this issue,
robin

- Original Message - 
From: robin bajaj [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, November 09, 2006 5:15 PM
Subject: Re: problem with moving jsp pages under web-inf/ folder



Hi Ed,
Thanks for the suggestion, I agree with you.
But when I changed my JSP Web-inf/jsp/non-tiles.jsp
to point to my .css and .js in your suggested way, I get weird behaviour 
in the browsers.

In IE 6, I get a blank page *(yes a totally white blank page)
In Mozilla firefox 2.0 , I get simple content (as before making this 
changes) without applying the stylesheets... what am I doing wrong now.

Here's non-tiles.jsp code , may be you can spot the culprit.
--
%@ page language=java%
%@ taglib uri=http://struts.apache.org/tags-bean; prefix=bean %
%@ taglib uri=http://struts.apache.org/tags-html; prefix=html %
%@ taglib uri=http://struts.apache.org/tags-logic; prefix=logic %
%@ taglib uri=http://struts.apache.org/tags-tiles; prefix=tiles %
html:html
head
titleadfasdf/title
script src=${context_root}/scripts/oBCTS_scripts.js 
language=javascript type=text/javascript/script

script type=text/css src=${context_root}/css/styles.css/
/head
body class=sidebar
dl id=menu
%-- html:button property=Back 
onclick=location.href='default.do'Back/html:button --%
dt onclick=javascript:show();a 
href=navigatePatient.do?do=getFirstPatientAdd New Patient/a/dt
dt onclick=javascript:show();a href=listPatients.doView Working 
List/a/dt
%--dt class=level1Menu onclick=javascript:show('smenu3');Access 
Patient Roster/dt--%
dt onclick=javascript:show();a href=myAction.do?do=addBookAccess 
Patient Roster/a/dt

dd id=smenu3
ul
lia href=myAction.do?do=addBookHistory/a/li
lia href=myAction.do?do=addBookClinical Presentations/a/li
lia href=myAction.do?do=addBookFamily Malignancies/a/li
lia href=myAction.do?do=addBookComorbidities/a/li
dl id =menu2
dt style=text-align:right; onclick=javascript:show('ssmenu1');
Treatments*/dt
dd id=ssmenu1
ul
lia href=myAction.do?do=addBookNeo Adjuvant/a/li
lia href=myAction.do?do=addBookSurgery/a/li
lia href=myAction.do?do=addBookAdjuvant Chemo/a/li
lia href=myAction.do?do=addBookHormonal/a/li
lia href=myAction.do?do=addBookBiologic Agents/a/li
lia href=myAction.do?do=addBookClinical Trial/a/li
/ul
/dd
/dl
%-- lia href=myAction.do?do=addBookImages/a/li --% %-- robin: 
Check with M if this is required here. --%

lia href=myAction.do?do=addBookPathologies/a/li
lia href=myAction.do?do=addBookBiopsies/a/li
lia href=myAction.do?do=addBookClinical 
Evaluation/Follow-ups/a/li

/ul
/dd
%--dt onclick=javascript:show('smenu4');View Images/dt--%
dt onclick=javascript:show();a href=myAction.do?do=addBookView 
Images/a/dt

dd id=smenu4
ul
lia href=myAction.do?do=addBookMammograms/a/li
lia href=myAction.do?do=addBookX-Rays/a/li
lia href=myAction.do?do=addBookBone Scans/a/li
lia href=myAction.do?do=addBookCT Scans/a/li
lia href=myAction.do?do=addBookUltrasound Scans/a/li
lia href=myAction.do?do=addBookMRI Studies/a/li
/ul
/dd
/dl
/body
/html:html





- Original Message - 
From: Ed Griebel [EMAIL PROTECTED]

To: Struts Users Mailing List user@struts.apache.org
Sent: Thursday, November 09, 2006 4:44 PM
Subject: Re: problem with moving jsp pages under web-inf/ folder



What happens when the JSP is converted to HTML, it is sent to the
browser. The browser then tries to access the css and js files from
the webserver, but since the HTML points to web-inf, it won't serve
them.

One way to do it is to create an action mapping that is just defined
as a ForwardAction, e.g. action path=/css
type=org.apache.struts.actions.ForwardActions
parameter=/WEB-INF/css/my.css/

However, why do you need to protect the CSS and javascript files? Why
not have them outside of the WAR files's WEB-INF directory, then your
http would just have a simple script type=text/css
file=${context_root}/css/my.css/ ? You are not going to keep
anything secret by keeping them in WEB-INF because they are simple
text files and anyone who looks at the generated HTML will see where
the CSS comes from.

On 11/9/06, robin bajaj [EMAIL PROTECTED] wrote:

Hi Everybody,

- SUMMARY -
Can anyone tell me as to how can I make my jsp lying in Web-inf/jsp/ 
folder

pick the stylesheet and javascript lying
in Web-inf/scripts and Web-inf/css ??

- DETAILS -
I have SSL enabled my web-app this morning using SSLext release 0 .
I am using Struts 1.2.x

Ajax in Struts 1.x , what about SSL in Struts 2.x

2006-11-08 Thread robin bajaj

Hi All,
I am using Struts 1.2.x for my web app. I have a navigation functionality on 
my forms (*Prev, Next, First , Last)
for navigating through the records. My client does not like the whole page 
refreshing when any of the navigation buttons
is clicked. Is that something that I can avoid by using AJAX in my Struts 
Application.
If so, then can someone suggest some good Struts 1.2.x specific AJAX 
articles ( that is known to work for Struts 1.x developers)


I have a dependency on Struts 1.2.x because
-I have to implement SSL switching in this webapp and the SSLext 
(http://sslext.sourceforge.net/)
only supports Struts 1.2.x at the best. Is this a valid constraint ? 
Has anyone used this taglib with higher Struts versions(especially Struts 
2.x).?


Assuming (a) is possible (ie Struts 2.x does have SSL support),
-I am willing to give Struts 2.x a shot for my project, since I 
heard it provides pretty good AJAX support. Is that rite ?
-Considering the fact that I only know Struts 1.x, what kind of 
learning curve am I looking at for Struts 2.x . Any ideas, experiences etc?

.
Thanks for your replies in advance,
robin 



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



Re: newbie struts and beans scope question

2006-11-03 Thread robin bajaj

Hi Rick,

I am using Struts 1.2. Unless Struts 1.3 provides something special on this
aspect,
following is my understanding :
a) If you have a bean that is NOT an actionForm, then you HAVE TO explicitly

put it in request scope using request.setAttribute(mybean,mybean);
to access it in the jsp

However, if the bean was actually an ActionForm and was mentioned in any
actionMapping (in struts-config.xml)
under name attribute, it would go in the scope mentioned by scope
attribute (session scope by default)
- this would happen without you have to write any java code in Action class
for doing this.


Now if I wanted to make the bean available beyond request scope


b) that you can do using the following code snippet
HttpSession session = request.getSession();
session.setAttribute(mybean,mybean);

Can someone please confirm (a) above.

hope that helps,
robin
-

On 11/3/06, Rick Schumeyer [EMAIL PROTECTED] wrote:


I'm trying to understand how and when beans are available within struts.
(1.3.5)

For example, if my Action class contains code like:

MyBean mybean = new MyBean() // NOT an ActionForm, just a regular bean

I would have thought (and the docs suggest) that I would need something
like

request.setAttribute(mybean, mybean);

in order to use this bean in the jsp that the action eventually forwards
to.  But I don't...the bean seems to automatically be available to the
jsp.

Now if I wanted to make the bean available beyond request scope, then
would I need to use the request.setAttribute?




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




Re: Using html:errors with a field that is iterated.

2006-11-03 Thread robin bajaj

Hi Adam,
Yes, I think html:errors is a pretty good validaiton mechanism.
Especially if you use the Struts validation framework (validation.xml,
validator-rules.xml) for
generating your errors.

For showing errors right beside each specific field that fails the
validation, you will need
to have html:errors property=property-name/html:errors  tag beside
each field.

But if you want to show all the errors at once (say above all the fields)
then you can use
html:errors/ tag as-is.

Check this link for more info : (this link is not _outdated)
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section2

hope this helps,
robin

On 11/3/06, Adam K [EMAIL PROTECTED] wrote:


Hi all I am using struts 1.2.9 and starting to work on error
validation.  So
far I have my login page using:

 html:errors property=username/html:errors
etc etc etc.

I was wondering firstly Is this still the best manner in which to display
errors ?


The second question which has more to do with the title is
How does one use error validation on fields that are iterated ?

As an example if I have 3 fields where a team has to enter a score, I want
to ensure that the only values that are entered beside each field is a
number.  If any of those fields have other than a number I want the error
to
appear only beside that particular field.  Is this something that can be
done with error validation ?  I am looking around for examples but most
examples are quite dated and I am trying to use the best things available
to
me.

thanks in advance.
Adam




Re: s:datepicker in Struts 2

2006-11-01 Thread robin bajaj

Hi Ashish,
Just curious, Is it Struts 2 taglib that you are using in this case?
I am still at Struts 1.2.x, was wondering if there are any 
datePicker/Calendar taglibs in the latest Struts 2.x


Would appreciate your feedback,
robin

Asish Kr. Samanta wrote:

Hi,

 


I am Asish, I am using datepicker, but it will not come to the page. Dojo is
undefined. What is the problem? Can you give the solution.

 


My cod snippet is given below.

 


%@ page contentType=text/html; charset=UTF-8 %

%@ taglib prefix=s uri=/struts-tags %

html

head

s:head theme=ajax calendarcss=calendar-green/

titleSign On/title

/head

 


body

s:form action=Login

s:textfield label=%{getText('username')} name=username/

s:password label=%{getText('password')} name=password /

s:datepicker name=date/

s:submit/

/s:form

/body

/html

 


I am using jBoss, IE6.0

 


Asish

 





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



Re: how to generate GLOBAL errors using Struts validation framework

2006-11-01 Thread robin bajaj

Hi Dave,

Thanks for the reply.

My Desired Scenario:

a)
When the user submits the form with more than one fields left blank (or 
with incorrect values), I want to show a

general (GLOBAL) message on top of the form saying

Following shown mandatory fields were provided with incorrect values

b) And then I want to show a field-specific error message beside each 
input field that failed the validation rules.


What's the best way to handle this situation.

For part (b) I have setup my validation rules in validation.xml file, 
but this .xml file requires me to provide
property=actionform-property-name  value for every field name that I 
am trying to validate. I need to know how can I achieve part (a) ??


Thanks for your help,
robin



Dave Newton wrote:

From: robin bajaj [mailto:[EMAIL PROTECTED]

I need to know how can I generate GLOBAL validation errors using the
validation.xml file. I know this can be done easily in ActionForm's
java code like:


Like what kind of global validation errors?

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]



how to generate generic errors using Struts validation framework

2006-10-31 Thread robin bajaj

Hi Everyone,
I am using Struts 1.2 validation framework where I am using the 
following elements to mention validation rules for specific action 
properties.


form name=navigatePatientForm
 field
   property=actionform-property-name
   depends=required
   arg0 key=property-label-name-from-resourcebundle/
 /field
But this only allows me to generate validation errors for specific
ActionForm property names.

I need to know how can I generate GLOBAL validation errors using the 
validation.xml file. I know this can be done easily in ActionForm's java 
code like:


errors.add(ActionErrors.GLOBAL_ERROR,new 
ActionError(error.username.required)

);

Thanks for your help,
robin

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