Re: New to Struts

2005-04-04 Thread Jan-Jaap Endenburg - Vera
I have had a lot of help from:
   www.sourcebeat.com: sample chapter of book 'Jakarta Struts Live'
Good luck,
Jan-Jaap
Balaji H. Kasal wrote:
Hi,
I am quite new to struts. Please guide me which is the best place to 
start. I will prefer to start with Struts example ()src code).

Thanks in advance.
--Balaji
-
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]


Struts - verify on too much tag library reference files?

2005-03-30 Thread Jan-Jaap Endenburg - Vera
Hi all!
Does anyone know a tool (or a way) for verifying all jsp-pages on their 
tag library reference files?
Example of what I call a tag library reference file:

   %@ taglib uri=/tlds/struts-html.tld prefix=html %
The problem is not that I have too little tag library reference files: 
this would of course be told via error messages.
The problem is that I often have too much tag library reference files, 
and I would like to select these 'too much' references, via some kind of 
tool...

Can someone help me?
Jan-Jaap Endenburg
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: I look for an example of LOGIC:ITERATE that iterates over an ARRAY

2005-03-29 Thread Jan-Jaap Endenburg - Vera
Thank you Günther, for your help:
Now it works fine!
Jan-Jaap
Günther Wieser wrote:
i think the example in the docs shows you almost everything:
logic:iterate id=element name=myhashtable
Next element is bean:write name=element property=value/
/logic:iterate 

all you need to do is drop the property attribute as an array doesn't have
properties. then it should work fine.
so this is an array version:
logic:iterate id=element name=myArray
Next element in array is bean:write name=element /
/logic:iterate 

kr,
guenther
--
Günther Wieser
creative-it
Guglgasse 6/1/11/1
A-1110 Wien
Austria
http://www.creative-it.com
-Original Message-
From: Jan-Jaap Endenburg - Vera [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 29, 2005 1:50 PM
To: Struts Users Mailing List
Subject: I look for an example of LOGIC:ITERATE that iterates over an ARRAY

Hi everyone,
I look for an example of logic:iterate that iterates over an array (of
strings):
I am not sure how to display these array-values in my jsp-page: should this
be done with bean:write?
If so: what should I fill for name  property?
Thanks for your help!
Jan-Jaap
-
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: [HELP] What's wrong with my html:link syntax... :(

2005-03-16 Thread Jan-Jaap Endenburg - Vera
Pham,
To, it looks as if the quotes will not be interpreted correctly in the 
following part:

   html:link page=/student/getScore.jsp?id=treetag:nodeId
   node=tree.node/
The text 'tree.node' will not be inside quotes, contrarely to what I 
understand below that you would want.
Perhaps you should use single quotes for the outside quotes and double 
quotes for the inside (or vice versa).

Jan-Jaap
Pham Anh Tuan wrote:
Hi all,
I got a problem when I code like below:
html:link page=/student/getScore.jsp?id=treetag:nodeId 
node=tree.node/Go/html:link

I can not get value of treetag:nodeId node=tree.node/
if my code is incorrect, plz help me solve it.
thanks
Bowl
-
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: Hidden parameter passing: RE: parameter passing from one jsp-screen to another

2005-03-10 Thread Jan-Jaap Endenburg - Vera
Erik,
I implemented it in this way: thank you for your help!
Jan-Jaap
Erik Weber wrote:
Well, this is not great nice solution in my opinion, but it does seem 
to be popular. This requires you to have a form on screen A and to use 
POST instead of GET to request screen B. Also, it requires JavaScript.

You could make all your links have the same URL, but put an onclick 
JavaScript handler with a different parameter on each one (most of the 
Struts HTML tags support the onclick, onsubmit, etc., attributes). The 
onclick handler does two things when you click the link:

1) sets the value of a hidden variable in the form
2) submits the form
So basically, you are turning your hyperlink into a submit button.
On the server, you now have the request parameter just as before, only 
now it comes from a form field instead of a query string variable.

You have to realize, though, that the value isn't truly hidden from 
the user (or from a network snooper) -- the user can view the HTML 
source to see what value gets sent with each click, and the parameter 
is still delivered in a request packet (though it won't show up in a 
URL request log). But, you won't see this parameter in a typical 
browser status bar when you hover your mouse pointer over the link, or 
in the address bar after your browser starts receiving the response.

Perhaps someone else might have another solution. This is the one that 
came to mind.

Erik

jj endenburg wrote:
Thank you Erik!
Actually, the information in my question was not
complete. I am sorry for this...
The parameter to pass from jsp-screen A to jsp-screen
B should stay hidden from the end-user.
This is why displaying this parameter in the URL is
not possible, unfortunately.
Instead of this, how can I pass this parameter within
Struts, without the end-user being able to see it?
Thank you,
Jan-Jaap
--- [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
 

Well, how about using a query string parameter in
your links?
http://foo.com/myapp/bar.jsp?itemId=1
http://foo.com/myapp/bar.jsp?itemId=2
And so on?
The Struts html:link tag (or the JSTL c:url tag) can
be used to dynamically
create your links.
  
http://struts.apache.org/userGuide/struts-html.html#link
 

Hope that helps,
Erik
Original Message:
-
From: jj endenburg [EMAIL PROTECTED]
Date: Tue, 8 Mar 2005 00:29:46 -0800 (PST)
To: user@struts.apache.org
Subject: parameter passing from one jsp-screen to
another
Hi everyone,
I have the following problem: how can I pass a
parameter from a jsp-screen A to a jsp-screen B
within
the struts-framework?
More concrete:
Screen A has several clickable link instances to
screen B. Each link instance has its own
(dynamically
calculated) parameter value to pass to screen B.
This parameter is hidden from the sreen.
Can someone give me a hint on how this parameter
passing can be done in a handy way within struts?
Thanks,
Jan-Jaap
Met vriendelijke groeten,
Jan-Jaap Endenburg

   
__ Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

  
-
 

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

  

 

mail2web - Check your email from the web at
http://mail2web.com/ .

  
-
 

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


   
__ Celebrate Yahoo!'s 10th Birthday! 
Yahoo! Netrospective: 100 Moments of the Web 
http://birthday.yahoo.com/netrospective/

-
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: log4j struts

2005-02-17 Thread Jan-Jaap Endenburg - Vera
Hi!
Can you give me an example of specifying log4j as init-param. within 
struts-config.xml?

Thanks,
Jan-Jaap
Ye, Young wrote:
yes, you can.
-Original Message-
From: Brian McGovern [mailto:[EMAIL PROTECTED]
Sent: 2005/02/16 4:48 PM
To: Struts Users Mailing List
Subject: log4j struts
I want to use log4j with my struts app.  Can I use the struts-config.xml to
specify log4j as an init parameter and point it to its external properties
file? Or do i have to make my own front controller servlet for that?
thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


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