Re: Maven2 archetype or sample POM for Struts 1.x?

2007-01-24 Thread Wendy Smoak

On 1/23/07, Manos Batsis <[EMAIL PROTECTED]> wrote:


Is there any M2 archetype or sample POM availabe for Struts 1.x webaps
with webdoclet, nergefiles and all working? I'm trying to create a POM
and  extract an archetype from it, but sincde i got to various issues i
finally wondered whether a nice soul has already gone through this.


There is an archetype for 1.3, based on the struts-blank app.  It
hasn't been released yet, but I just deployed a new snapshot and tried
it out.

The readme is here:
  
http://svn.apache.org/repos/asf/struts/maven/trunk/struts-archetype-blank/README.txt

The archetype version number is 1.3.5-SNAPSHOT (but the webapp
generated from it uses the released 1.3.5 jars.)

Let us know whether it works for you-- it's on my "needs a release"
list, but hasn't been a high priority.

--
Wendy

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



Re: [S2] Any hope to have ajax form submission working?

2007-01-24 Thread Musachy Barroso
After 3 hours debugging, now I see how easy it was :), when the 
"targets" attribute is set to a parent element of the form, and the link 
is hit, the content of the "targets" element is set to "Loading...", the 
problem is that doing this will "erase" the form in IE (duh). So when 
dojo iterates over the fom to build the parameters, the form is empty 
(form.element.length == 0) in IE, but  in FF the elements are still 
there. So, when you have an scenario like this, you can't show the 
loading text. Now the bad news, there is no way to prevent the loading 
text from being shown, I created a ticket for it the other day with a 
patch, but it is scheduled for 2.1.0:


https://issues.apache.org/struts/browse/WW-1570

It is a trivial patch, maybe we can get a committer to take a look at it :)

regards
musachy

Dariusz Wojtas wrote:

Hmmm, if this is so black-magic then who knows if you can still
reproduce it tomorrow?
What if IE dies in 'some other way'?

Thanks for the info, the hope is back :)

Best regards
Dariusz Wojtas

On 1/24/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:

With your latest jsp file I was able to reproduce the problem. Here is
were it gets Microsoft-black-magic-style. I did something, not sure
what, and it then started to work. I killed the "explorer" process, and
start it again, and was able to reproduce it again, looks like a though
one :)

regards
musachy


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





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



Re: how to go back to input page?

2007-01-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Heidy,

Heidy Gutiérrez Guzmán wrote:
> In the application, i have the option of change language from any page.

What about using the "referer" header (yes, it is misspelled)?

- -chris

Here is the code for my entire SwitchLocaleAction.java:

import java.util.Locale;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

public class SwitchLocaleAction
extends BaseAction
{
public ActionForward execute(ActionMapping mapping,
 ActionForm form,
 HttpServletRequest request,
 HttpServletResponse response)
throws Exception
{
String language = request.getParameter("lang");
String country = request.getParameter("country");

Locale locale;

if(null == language)
throw new ServletException("No language specified.");

if(null == country)
{
locale = new Locale(language);
}
else
{
locale = new Locale(language, country);
}

super.setLocale(request, locale);

String redirect = request.getParameter("next");

if(null == redirect)
redirect = request.getHeader("referer");

if(null != redirect)
{
if(0 > redirect.indexOf(";jsessionid="))
redirect = response.encodeRedirectURL(redirect);

response.sendRedirect(redirect);
}
else
response.getWriter().write("Cannot determine next page.
Please go back manually.");

return null;
}
}

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

iD8DBQFFt+gu9CaO5/Lv0PARAsQ3AKCxLXVLRev3ugNkvUPfNShdPgdpswCfS/MM
ckUc1hmZ9CGDK6yY4ZVat4M=
=dKxM
-END PGP SIGNATURE-

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



Problems with Struts Test Case

2007-01-24 Thread Christopher Loschen
Hi all,

Does anyone here use StrutsTestCase?

I'm getting an NPE I haven't been able to figure out and haven't gotten
any response from the associated forum at SourceForge. Just in case
somebody here could help, here are the details:

My class looks like this:

public class CreateActionTest extends MockStrutsTestCase {

// Public methods
/

public CreateActionTest(String name) {
super(name);
}

public void setUp() throws Exception {
super.setUp();
}

public void tearDown() throws Exception {
super.tearDown();
}

public void testCreateAction() {
setRequestPathInfo("/home/user-preferences/modify");
addRequestParameter("application","6");
actionPerform();

etc.

The NPE is thrown on the line where actionPerform() is called. I've got
a mock datasource in use, and that does seem to be getting initialized
correctly. The directory where WEB-INF lives is in my classpath, as is a
lot of other stuff matching the classpath for the other JUnit tests set
up for our application.

I've tried to run the debugger in Eclipse, and I think I've found the
line in MockStrutsTestCase where the NPE is thrown:

this.getActionServlet().doPost(request,response);

The getActionServlet method does the initializing for the actionServlet
and that seems to be returning something (I suppose it could be null,
but doesn't seem to be: it has some of the mappings from the
struts-config.xml file in place).

I'm running out of ideas at this point. Does anyone here have some
insight for me? Thank you!

Chris


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



Re: [S2] Any hope to have ajax form submission working?

2007-01-24 Thread Dariusz Wojtas

Hmmm, if this is so black-magic then who knows if you can still
reproduce it tomorrow?
What if IE dies in 'some other way'?

Thanks for the info, the hope is back :)

Best regards
Dariusz Wojtas

On 1/24/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:

With your latest jsp file I was able to reproduce the problem. Here is
were it gets Microsoft-black-magic-style. I did something, not sure
what, and it then started to work. I killed the "explorer" process, and
start it again, and was able to reproduce it again, looks like a though
one :)

regards
musachy


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



Re: how to go back to input page?

2007-01-24 Thread Heidy Gutiérrez Guzmán

In the application, i have the option of change languaje from any page.

When that option is selected, go to an Action where i do the necesary for
that, after that i need to go back to the input page where the user was.

I would like the solution don't carry on changes on  each action on the
struts-config because the application is almost at end and is very
extensive.

Thank you very much


Re: [S2] Any hope to have ajax form submission working?

2007-01-24 Thread Musachy Barroso
With your latest jsp file I was able to reproduce the problem. Here is 
were it gets Microsoft-black-magic-style. I did something, not sure 
what, and it then started to work. I killed the "explorer" process, and 
start it again, and was able to reproduce it again, looks like a though 
one :)


regards
musachy

Dariusz Wojtas wrote:

Hi,

Does the current form submission come from a problem in dojo?
Or is this something else?
What are the current conclusions about it?

I do not want to be too annoying, this is just important for me.
Any chance to have it working within a week or two?

Best regards
Dariusz Wojtas

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





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



Re: how to go back to input page?

2007-01-24 Thread Dave Newton
--- Heidy Gutiérrez Guzmán <[EMAIL PROTECTED]>
wrote:
> I need to know how to go back to input page in
> struts.

Under what circumstances?

mapping.getInputForward()?

Dave



 

It's here! Your new message!  
Get new email alerts with the free Yahoo! Toolbar.
http://tools.search.yahoo.com/toolbar/features/mail/

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



using struts validator for a form-property of type="org.apache.struts.upload.FormFile"

2007-01-24 Thread Fleetwood, Brett \(DCS\)
G'day All,

I'm trying to validate a form that contains a

org.apache.struts.upload.FormFile as a form property on a JSP. From the

struts HTML tag-lib I'm using  in my JSP like this;



and I've set up the form bean like this;











 



where the DcsDynaValidatorForm extends the DynaValidatorForm.

I'm trying to validate the form by checking the text of the FormFile

object to see if its blank. This is what i've tried in validation.xml

but it doesn't get picked up;







I'm quite new to this and if i've omitted anything then please let me
know. 

Thanks in advance,

Brett.



Re: [s2] Action classes and wildcards with special characters

2007-01-24 Thread Elie Ciment

Thanks, Don!

Is this documented anywhere, because I couldn't find anything...

Back to work!

EC

On 1/24/07, Don Brown <[EMAIL PROTECTED]> wrote:


The wildcard character will optionally swallow the previous character
so login_* will be matched by login and login_app.  This change from
Struts 1 was done in order to better align with the "action!method"
notation of WebWork 2/Struts 2.

Don

On 1/24/07, Elie Ciment <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am following along the tutorials online getting started with Struts2.
I am
> loving it, but I noticed something bazaar and was wondering what anyone
has
> to say about it.
>
> When you have an action
>
> 
>
> and you add an underscore or ! followed by an asterisk (*), to make it
>
>  or 
>
> then when you reference the url http://localhost:8080/myapp/Login.action-
> why does the action Login_* get called? I would think that the
underscore is
> now needed in order to call this action!
>
> Basically, now LoginXyz.action does not work, yet Login.action does - as
> does Login_xyz.action (which is the only one that makes sense to me).
So,
> does the special character have any special teatment? If so, which
> characters are teated specially aside from the ! and _ characters, and
is
> this documented anywhere?
>
> Thanks for your help,
> EC
>
>
> -- The particular case was first brought to attention in the validation
> section of the tutorial (
> http://struts.apache.org/2.x/docs/validating-input.html). It was
suggested
> that if you do not wish to validate before there was any user input, add
a
> wildcard (*) after a special character to the action ("_" in the
article,
> but in my downloaded source for the blank struts2 app it was the "!").
That
> would make it Login_* (or Login!*).
>
> Whether I go to the Login.action or the Login_any-
action-but-input.action it
> works and validates, returning back to the page with the validation
comment
> (xyz is required etc). The question struck me: why does it work for
> Login.action!!?? Thanks, again.
>
>

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




Re: [s2] Action classes and wildcards with special characters

2007-01-24 Thread Don Brown

The wildcard character will optionally swallow the previous character
so login_* will be matched by login and login_app.  This change from
Struts 1 was done in order to better align with the "action!method"
notation of WebWork 2/Struts 2.

Don

On 1/24/07, Elie Ciment <[EMAIL PROTECTED]> wrote:

Hi,

I am following along the tutorials online getting started with Struts2. I am
loving it, but I noticed something bazaar and was wondering what anyone has
to say about it.

When you have an action



and you add an underscore or ! followed by an asterisk (*), to make it

 or 

then when you reference the url http://localhost:8080/myapp/Login.action -
why does the action Login_* get called? I would think that the underscore is
now needed in order to call this action!

Basically, now LoginXyz.action does not work, yet Login.action does - as
does Login_xyz.action (which is the only one that makes sense to me). So,
does the special character have any special teatment? If so, which
characters are teated specially aside from the ! and _ characters, and is
this documented anywhere?

Thanks for your help,
EC


-- The particular case was first brought to attention in the validation
section of the tutorial (
http://struts.apache.org/2.x/docs/validating-input.html). It was suggested
that if you do not wish to validate before there was any user input, add a
wildcard (*) after a special character to the action ("_" in the article,
but in my downloaded source for the blank struts2 app it was the "!"). That
would make it Login_* (or Login!*).

Whether I go to the Login.action or the Login_any-action-but-input.action it
works and validates, returning back to the page with the validation comment
(xyz is required etc). The question struck me: why does it work for
Login.action!!?? Thanks, again.




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



[s2] Action classes and wildcards with special characters

2007-01-24 Thread Elie Ciment

Hi,

I am following along the tutorials online getting started with Struts2. I am
loving it, but I noticed something bazaar and was wondering what anyone has
to say about it.

When you have an action



and you add an underscore or ! followed by an asterisk (*), to make it

 or 

then when you reference the url http://localhost:8080/myapp/Login.action -
why does the action Login_* get called? I would think that the underscore is
now needed in order to call this action!

Basically, now LoginXyz.action does not work, yet Login.action does - as
does Login_xyz.action (which is the only one that makes sense to me). So,
does the special character have any special teatment? If so, which
characters are teated specially aside from the ! and _ characters, and is
this documented anywhere?

Thanks for your help,
EC


-- The particular case was first brought to attention in the validation
section of the tutorial (
http://struts.apache.org/2.x/docs/validating-input.html). It was suggested
that if you do not wish to validate before there was any user input, add a
wildcard (*) after a special character to the action ("_" in the article,
but in my downloaded source for the blank struts2 app it was the "!"). That
would make it Login_* (or Login!*).

Whether I go to the Login.action or the Login_any-action-but-input.action it
works and validates, returning back to the page with the validation comment
(xyz is required etc). The question struck me: why does it work for
Login.action!!?? Thanks, again.


how to go back to input page?

2007-01-24 Thread Heidy Gutiérrez Guzmán

Hi

I need to know how to go back to input page in struts.

Thanks


[s1] Cancel request parameters and attributes

2007-01-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

All,

I have two actions in my code that I want to be able to cancel out-of,
but neither of them is exciting enough to warrant a form bean and a trip
through the validator. I have found that Action.isCancelled does not
work when this is the case.

A simple hackaround is to do this in my action code:

if(super.isCancelled(request)
   || null !=
request.getParameter(org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY))
{
 // handle cancellation
}

This week, I'm upgrading to struts-1.3.5, which has the taglib JAR
separate from the core JAR, which means that I need to drag the taglib
JAR along with my upgrade, and I'd prefer not to do so (ignore the fact
that I need that JAR file for velocity-tools to work ;).

I figured it's time for me to get to the bottom of this problem, and I'm
finding myself getting quite confused reading through the code.

First, anyone who looks will note that the name of the "cancel" button
used by the struts form tag library (and the FormTool from
velocity-tools's struts tools) get the name
"org.apache.struts.taglib.html.CANCEL", which is the string value of
org.apache.struts.taglib.html.Constants.CANCEL_PROPERTY.

So far, so good.

Now, to find out how Aciton.isCancelled works. It's pretty simple: it
checks for a request attribute:

protected boolean isCancelled(HttpServletRequest request) {
return (request.getAttribute(Globals.CANCEL_KEY) != null);
}

The string value for Globals.CANCEL_KEY is
"org.apache.struts.action.CANCEL", which doesn't match up with that used
by the tag libaray. No big deal... it probably gets detected somewhere
in the request processor, right?

Well, I checked. The RequestProcessor only mentions "cancel" in the
processPopulate method, which delegates some processing to
RequestUtils.populate and then checks the request parameters for
Globals.CANCEL_KEY (or Globals.CANCEL_KEY_X for image submissions). No
luck there, so let's look at RequestUtils.populate.

RequestUtils.populate only sets properties on the ActionForm, and
doesn't mess with the request.

I can't seem to find the place where (under regular circumstances) the
request parameter "...taglib.html.CANCEL" gets converted into the
request attribute Globals.CANCEL.

Can someone help me understand how this works? I'd like to do the
"right" thing, here, and I need to understand how struts handles this
stuff during form submission so I can get it working when there is no form.

Any enlightenment would be appreciated.

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

iD8DBQFFt6+J9CaO5/Lv0PARAuVxAJwM4BUVrZrFLBrDFUkq1Zgw6M9e7QCeLZFB
/E5sol+RWy14+Of0ZskDkZw=
=weT7
-END PGP SIGNATURE-

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



Re: s2 velocity error

2007-01-24 Thread Ron Chan

my bad...

this is solved by adding velocity-tools-view




Ron Chan wrote:
> 
> i'm unable to use velocity result, tried in 2.0.3-snapshot and
> 2.0.4-snapshot
> 
> No mapping found for dependency
> [type=org.apache.struts2.views.velocity.VelocityManager, name='default']
> in public void
> org.apache.struts2.dispatcher.VelocityResult.setVelocityManager(org.apache.struts2.views.velocity.VelocityManager).
> 
> 

-- 
View this message in context: 
http://www.nabble.com/s2-velocity-error-tf3081385.html#a8564038
Sent from the Struts - User mailing list archive at Nabble.com.


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



[S1] No inheritance of validation properites?

2007-01-24 Thread uni
I have a hierarchy of DynaValidatorForm beans. There is a form "Something" and
subtypes "SpecialSomething1" and "SpecialSomething2". If I use validation and
refer to the bean "Something" (to specify which general purpose properties
should be validated), the validation does not work. I have to copy the
validation code and refer to each single subtype of the form.
Does the validation part not take the inheritance hierarchy of form beans take
into account or did I make an error in my configuration?

Cheers,

Thorsten


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



S2 - allowedTypes

2007-01-24 Thread Hartrich, James CTR USTRANSCOM J6
The allowedTypes param of FileUploadStack is working correctly however
upon return "input" (S2 default) I'm losing request parameters. How can
I configure S2 to return a specific "inputUpdate"? Or how can I retrieve
my request params within my actions.input()?


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



R: R: [OT] Re: R: R: Reading generated html

2007-01-24 Thread Marcello Savino
I'm not developing the  entire solution, i only need the html string to pass as 
a a parameter to a web service (see: 
http://sipt07.si.ehu.es/evalaccess2/index.html).


Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-Messaggio originale-
Da: Dave Newton [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 24 gennaio 2007 15.37
A: Struts Users Mailing List
Oggetto: Re: R: [OT] Re: R: R: Reading generated html

--- Marcello Savino wrote:
> To check accessibity conformance of the genarated page

Ah... Boy, I'd sure do that a different way, like using Watir (or my STILL 
unreleased HeavyWatir :( or Selenium; more client-side focused tests. Or 
HttpUnit (or whatever that Struts one is etc.)

Dave



 

Don't get soaked.  Take a quick peak at the forecast with the Yahoo! Search 
weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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



s2 velocity error

2007-01-24 Thread Ron Chan

i'm unable to use velocity result, tried in 2.0.3-snapshot and 2.0.4-snapshot

No mapping found for dependency
[type=org.apache.struts2.views.velocity.VelocityManager, name='default'] in
public void
org.apache.struts2.dispatcher.VelocityResult.setVelocityManager(org.apache.struts2.views.velocity.VelocityManager).

-- 
View this message in context: 
http://www.nabble.com/s2-velocity-error-tf3081385.html#a8561192
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: R: [OT] Re: R: R: Reading generated html

2007-01-24 Thread Dave Newton
--- Marcello Savino wrote:
> To check accessibity conformance of the genarated
> page

Ah... Boy, I'd sure do that a different way, like
using Watir (or my STILL unreleased HeavyWatir :( or
Selenium; more client-side focused tests. Or HttpUnit
(or whatever that Struts one is etc.)

Dave



 

Don't get soaked.  Take a quick peak at the forecast
with the Yahoo! Search weather shortcut.
http://tools.search.yahoo.com/shortcuts/#loc_weather

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



R: [OT] Re: R: R: Reading generated html

2007-01-24 Thread Marcello Savino
To check accessibity conformance of the genarated page
cheers


Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-Messaggio originale-
Da: Dave Newton [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 24 gennaio 2007 15.06
A: Struts Users Mailing List
Oggetto: [OT] Re: R: R: Reading generated html

--- Marcello Savino wrote:
> Cause i need  to submit the html content to a servlet to analyze the 
> html code

Now I'm curious; why?

Dave



 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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



R: R: Reading generated html

2007-01-24 Thread Marcello Savino
Ok i've tryed the form submit too here the code:
Jsp:
 

Action.Java:
public ActionForward readContent(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException {
StringBuffer HTMLStr=new StringBuffer("");
try {

BufferedReader br = request.getReader();
HTMLStr.append(br.readLine());
System.out.println (HTMLStr.toString());
return(mapping.getInputForward());  

}

The string HTMLStr.toString() return always null !

Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-Messaggio originale-
Da: Nagraj Rao [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 24 gennaio 2007 15.01
A: Struts Users Mailing List
Oggetto: Re: R: Reading generated html

Hi Marcello

i'm bit confused on whether you wanna submit the content or set it into an 
object. Please guide me on that.
i guess if you're capturing an HTML content in your jsp, which you need to 
submit, a simple form submit should work. In case you wanna set i to myObj 
object then u can make it thru a scriptlet that Abhishek suggested.

you can also go for an Ajax submit as well.

N

- Original Message -
From: "Marcello Savino" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, January 24, 2007 6:59 PM
Subject: R: R: Reading generated html


Cause i need  to submit the html content to a servlet to analyze the html 
code


Marcello Savino
ALDEBRA S.p.A.
tel.  0461302441

-Messaggio originale-
Da: Dave Newton [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 24 gennaio 2007 14.24
A: Struts Users Mailing List
Oggetto: Re: R: Reading generated html

--- Marcello Savino wrote:
> As you can see (value="<%=request%>") the data setted is jsp is not of
> type string.
> I'm pretty sure cause i use to pass the request object to an other
> similar bean (with other purpose) and it works fine !

I didn't know you could do that (or I forgot; don't know which). I thought I 
thought <%= ... %> basically called toString on everything.

Now... *why* would you want to do this?! It strikes me as being a pretty Bad 
Idea.

Dave





Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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



[OT] Re: R: R: Reading generated html

2007-01-24 Thread Dave Newton
--- Marcello Savino wrote:
> Cause i need  to submit the html content to a
> servlet to analyze the html code

Now I'm curious; why?

Dave



 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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



Re: R: Reading generated html

2007-01-24 Thread Nagraj Rao

Hi Marcello

i'm bit confused on whether you wanna submit the content or set it into an 
object. Please guide me on that.
i guess if you're capturing an HTML content in your jsp, which you need to 
submit, a simple form submit should work. In case you wanna set i to myObj 
object then u can make it thru a scriptlet that Abhishek suggested.


you can also go for an Ajax submit as well.

N

- Original Message - 
From: "Marcello Savino" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Wednesday, January 24, 2007 6:59 PM
Subject: R: R: Reading generated html


Cause i need  to submit the html content to a servlet to analyze the html 
code



Marcello Savino
ALDEBRA S.p.A.
tel.  0461302441

-Messaggio originale-
Da: Dave Newton [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 24 gennaio 2007 14.24
A: Struts Users Mailing List
Oggetto: Re: R: Reading generated html

--- Marcello Savino wrote:

As you can see (value="<%=request%>") the data setted is jsp is not of
type string.
I'm pretty sure cause i use to pass the request object to an other
similar bean (with other purpose) and it works fine !


I didn't know you could do that (or I forgot; don't know which). I thought I 
thought <%= ... %> basically called toString on everything.


Now... *why* would you want to do this?! It strikes me as being a pretty Bad 
Idea.


Dave





Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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



R: R: Reading generated html

2007-01-24 Thread Marcello Savino
Cause i need  to submit the html content to a servlet to analyze the html code


Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-Messaggio originale-
Da: Dave Newton [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 24 gennaio 2007 14.24
A: Struts Users Mailing List
Oggetto: Re: R: Reading generated html

--- Marcello Savino wrote:
> As you can see (value="<%=request%>") the data setted is jsp is not of 
> type string.
> I'm pretty sure cause i use to pass the request object to an other 
> similar bean (with other purpose) and it works fine !

I didn't know you could do that (or I forgot; don't know which). I thought I 
thought <%= ... %> basically called toString on everything.

Now... *why* would you want to do this?! It strikes me as being a pretty Bad 
Idea.

Dave



 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

-
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: R: Reading generated html

2007-01-24 Thread Dave Newton
--- Marcello Savino wrote:
> As you can see (value="<%=request%>") the data
> setted is jsp is not of type string.
> I'm pretty sure cause i use to pass the request
> object to an other similar bean (with other purpose)
> and it works fine !

I didn't know you could do that (or I forgot; don't
know which). I thought I thought <%= ... %> basically
called toString on everything.

Now... *why* would you want to do this?! It strikes me
as being a pretty Bad Idea.

Dave



 

Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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



RE: Reading generated html

2007-01-24 Thread Kandelwal Abhishek
Hi dear,

I think u can try this code: just replace your  code with following scriptlet:

<% myObj.setHtml(request);%>

I m sure this will surely help you. but I m still not sure if your 
value="<%=request%>" will work. 

Thanks & Regards
Abhishek Khandelwal


-Original Message-
From: Nagraj Rao [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 24, 2007 8:02 AM
To: Struts Users Mailing List
Subject: Re: Reading generated html

Hi Marcello
I guess Abhishek's right. You cant send a request object like that (atleast 
not in double quotes). Please check up that code.

N
- Original Message - 
From: "Marcello Savino" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Wednesday, January 24, 2007 6:21 PM
Subject: R: Reading generated html


As you can see (value="<%=request%>") the data setted is jsp is not of type 
string.
I'm pretty sure cause i use to pass the request object to an other similar 
bean (with other purpose) and it works fine !

Anyway thanks for your attention


Marcello Savino
ALDEBRA S.p.A.
tel.  0461302441

-Messaggio originale-
Da: Kandelwal Abhishek [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 24 gennaio 2007 13.15
A: Struts Users Mailing List
Oggetto: RE: Reading generated html

Hi dear,

I guess the method setHtml(HttpServletRequest request) is not called because 
the data u r setting from JSP is of type String but the bean method 
parameter takes HttpServletRequest. So change the parameter type to String 
instead of HttpServletRequest.

Hope it will solve the problem.

Thanks & Regards
Abhishek Khandelwal


-Original Message-
From: Marcello Savino [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 5:16 AM
To: Struts Users Mailing List
Subject: Reading generated html


Hi all.
I need to read in a Bean the generated html (i mean the one interpreted by 
the browser).
Let me explain further:
In a jsp file i've this piece of code:

[...]

[...]



[...]

[...]

This is the bean:

package util;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ServletInputStream; import java.io.InputStreamReader; 
import java.io.BufferedReader;; public class Test {

public Test(){
}
public void setHtml(HttpServletRequest request){
StringBuffer HTMLStr=new StringBuffer("");
ServletInputStream content=request.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(content));
HTMLStr.append(br.readLine());
}
}

But i get no HTML string, always get a null string !
I suppose the bean method is invoked before tha page was rendered, but i can 
figure out how invoke the bean after.
Even an alternative approach will be intersting for me.

Any help will be greatly appreciated
Thanks in advance

Marcello Savino
ALDEBRA S.p.A.
tel.  0461302441

-
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: How to use

2007-01-24 Thread Dave Newton
--- red phoenix <[EMAIL PROTECTED]> wrote:
> I want to make a dynamic tree,and I can add,modify 
> and delete any node of the dynamic tree, how to
realize
>  it? Is there a source code for me?

My impression has been that if you want to use some of
the higher functionality of the tree then you might be
better off doing it by hand rather than using the S2
tag. That said, it was several months ago that I first
tried it.

http://dojotoolkit.org with the caveat that it is not
the best documented project out there; I spent a fair
amount of time reading JavaScript source.

Dave



 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097

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



Re: Reading generated html

2007-01-24 Thread Nagraj Rao

Hi Marcello
I guess Abhishek's right. You cant send a request object like that (atleast 
not in double quotes). Please check up that code.


N
- Original Message - 
From: "Marcello Savino" <[EMAIL PROTECTED]>

To: "Struts Users Mailing List" 
Sent: Wednesday, January 24, 2007 6:21 PM
Subject: R: Reading generated html


As you can see (value="<%=request%>") the data setted is jsp is not of type 
string.
I'm pretty sure cause i use to pass the request object to an other similar 
bean (with other purpose) and it works fine !


Anyway thanks for your attention


Marcello Savino
ALDEBRA S.p.A.
tel.  0461302441

-Messaggio originale-
Da: Kandelwal Abhishek [mailto:[EMAIL PROTECTED]
Inviato: mercoledì 24 gennaio 2007 13.15
A: Struts Users Mailing List
Oggetto: RE: Reading generated html

Hi dear,

I guess the method setHtml(HttpServletRequest request) is not called because 
the data u r setting from JSP is of type String but the bean method 
parameter takes HttpServletRequest. So change the parameter type to String 
instead of HttpServletRequest.


Hope it will solve the problem.

Thanks & Regards
Abhishek Khandelwal


-Original Message-
From: Marcello Savino [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 5:16 AM
To: Struts Users Mailing List
Subject: Reading generated html


Hi all.
I need to read in a Bean the generated html (i mean the one interpreted by 
the browser).

Let me explain further:
In a jsp file i've this piece of code:

[...]

[...]



[...]

[...]

This is the bean:

package util;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ServletInputStream; import java.io.InputStreamReader; 
import java.io.BufferedReader;; public class Test {


public Test(){
}
public void setHtml(HttpServletRequest request){
StringBuffer HTMLStr=new StringBuffer("");
ServletInputStream content=request.getInputStream();
BufferedReader br = new BufferedReader(new InputStreamReader(content));
HTMLStr.append(br.readLine());
}
}

But i get no HTML string, always get a null string !
I suppose the bean method is invoked before tha page was rendered, but i can 
figure out how invoke the bean after.

Even an alternative approach will be intersting for me.

Any help will be greatly appreciated
Thanks in advance

Marcello Savino
ALDEBRA S.p.A.
tel.  0461302441

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



R: Reading generated html

2007-01-24 Thread Marcello Savino
As you can see (value="<%=request%>") the data setted is jsp is not of type 
string.
I'm pretty sure cause i use to pass the request object to an other similar bean 
(with other purpose) and it works fine !

Anyway thanks for your attention


Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-Messaggio originale-
Da: Kandelwal Abhishek [mailto:[EMAIL PROTECTED] 
Inviato: mercoledì 24 gennaio 2007 13.15
A: Struts Users Mailing List
Oggetto: RE: Reading generated html

Hi dear,

I guess the method setHtml(HttpServletRequest request) is not called because 
the data u r setting from JSP is of type String but the bean method parameter 
takes HttpServletRequest. So change the parameter type to String instead of 
HttpServletRequest. 

Hope it will solve the problem.

Thanks & Regards
Abhishek Khandelwal


-Original Message-
From: Marcello Savino [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 24, 2007 5:16 AM
To: Struts Users Mailing List
Subject: Reading generated html

 
Hi all.
I need to read in a Bean the generated html (i mean the one interpreted by the 
browser).
Let me explain further:
In a jsp file i've this piece of code:

[...]

[...]



[...]

[...]

This is the bean:

package util;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ServletInputStream; import java.io.InputStreamReader; 
import java.io.BufferedReader;; public class Test {

public Test(){
}
public void setHtml(HttpServletRequest request){
StringBuffer HTMLStr=new StringBuffer("");  
ServletInputStream content=request.getInputStream();
BufferedReader br = new BufferedReader(new 
InputStreamReader(content));
HTMLStr.append(br.readLine());
}
}

But i get no HTML string, always get a null string ! 
I suppose the bean method is invoked before tha page was rendered, but i can 
figure out how invoke the bean after.
Even an alternative approach will be intersting for me.

Any help will be greatly appreciated
Thanks in advance

Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

-
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: Type Conversion Messages i18n

2007-01-24 Thread Tom Schneider

I'm assuming this is for Struts 2.  If not, please ignore me. :)

This is one thing I wish they would improve in Struts 2--it's certainly 
not as obvious or trivial as I would expect it, but this little tidbit 
was buried deep in the book: 'Webwork in Action'.  Here is an example of 
one of our messages:


invalid.number.error=Field ${getText(fieldName + '.label')} is invalid, 
please enter a number.


This syntax will not work with the ConversionErrorInterceptor, you must 
manually add a conversion validator to every field where you want a 
conversion error displayed.  This is because the OGNL lookup  on the 
bundle string occurs in the validator framework.  But the idea is that 
the bundle text will go through an OGNL lookup, getText will be called 
on the action and we'll be looking up fieldName + '.label'.  So if the 
fieldName is age, we would lookup age.label in the resource bundle.


This could be made more user friendly if we had a field key in addition 
to the error message key in the xwork validation framework.  This would 
allow the field name lookup to happen automatically and it would be 
available just as fieldName.  (Right now fieldName is only the literal 
text from the XML)

Tom


André Faria wrote:

/How can I make the i18n of the message :
/"Invalid field value for field {0}" ?

Regards,
André Faria

-
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: Reading generated html

2007-01-24 Thread Kandelwal Abhishek
Hi dear,

I guess the method setHtml(HttpServletRequest request) is not called
because the data u r setting from JSP is of type String but the bean
method parameter takes HttpServletRequest. So change the parameter type
to String instead of HttpServletRequest. 

Hope it will solve the problem.

Thanks & Regards
Abhishek Khandelwal


-Original Message-
From: Marcello Savino [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 24, 2007 5:16 AM
To: Struts Users Mailing List
Subject: Reading generated html

 
Hi all.
I need to read in a Bean the generated html (i mean the one interpreted
by the browser).
Let me explain further:
In a jsp file i've this piece of code:

[...]

[...]



[...]

[...]

This is the bean:

package util;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ServletInputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;;
public class Test {

public Test(){
}
public void setHtml(HttpServletRequest request){
StringBuffer HTMLStr=new StringBuffer("");  
ServletInputStream content=request.getInputStream();
BufferedReader br = new BufferedReader(new
InputStreamReader(content));
HTMLStr.append(br.readLine());
}
}

But i get no HTML string, always get a null string ! 
I suppose the bean method is invoked before tha page was rendered, but i
can figure out how invoke the bean after.
Even an alternative approach will be intersting for me.

Any help will be greatly appreciated
Thanks in advance

Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

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



Reading generated html

2007-01-24 Thread Marcello Savino
 
Hi all.
I need to read in a Bean the generated html (i mean the one interpreted
by the browser).
Let me explain further:
In a jsp file i've this piece of code:

[...]

[...]



[...]

[...]

This is the bean:

package util;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ServletInputStream;
import java.io.InputStreamReader;
import java.io.BufferedReader;;
public class Test {

public Test(){
}
public void setHtml(HttpServletRequest request){
StringBuffer HTMLStr=new StringBuffer("");  
ServletInputStream content=request.getInputStream();
BufferedReader br = new BufferedReader(new
InputStreamReader(content));
HTMLStr.append(br.readLine());
}
}

But i get no HTML string, always get a null string ! 
I suppose the bean method is invoked before tha page was rendered, but i
can figure out how invoke the bean after.
Even an alternative approach will be intersting for me.

Any help will be greatly appreciated
Thanks in advance

Marcello Savino
ALDEBRA S.p.A. 
tel.  0461302441

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



Type Conversion Messages i18n

2007-01-24 Thread André Faria

/How can I make the i18n of the message :
/"Invalid field value for field {0}" ?

Regards,
André Faria

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



Re: Filter

2007-01-24 Thread Taras Puchko

Hi!

Request parameters should not be confused with request attributes. In
general you cannot set a parameter but you can make a wrapper for the
request object overriding getParameter(String), getParameterNames()
and getParameterValues(String).
You can also forward to a URL that contains your parameter.

Taras.

On 1/24/07, Emmanuel KOJE <[EMAIL PROTECTED]> wrote:

Hi Guys,

I tried to configure a filter to get all my cookies from my request and set 
information some information in the request object.

Unfortunetly it seems It didn't keep the value I've set as a parameter of the 
request. Every time my request pqremeter is empty. Even if I do a setAttribute.
Can I use custom filter with Struts 2 ? or does the filter RequestDispacther 
override all my parameters ?

Thanks for your help


- Original Message 
From: Dave Newton <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Tuesday, January 23, 2007 5:00:29 PM
Subject: RE: [s2] Question about SessionAware docs.

From: Tom Schneider [mailto:[EMAIL PROTECTED]
> Actually your explanation is not quite 100% correct.  The interceptor
> injects a Map that is backed by the HttpSession.  So puts and gets to
> the Map will actually be puts and gets to the HttpSession.  (Very
> clever IMO)

Ah, okay. That's handy and still keeps it clean :)

Dave


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










Looking for earth-friendly autos?
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/



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



Filter

2007-01-24 Thread Emmanuel KOJE
Hi Guys,

I tried to configure a filter to get all my cookies from my request and set 
information some information in the request object.

Unfortunetly it seems It didn't keep the value I've set as a parameter of the 
request. Every time my request pqremeter is empty. Even if I do a setAttribute.
Can I use custom filter with Struts 2 ? or does the filter RequestDispacther 
override all my parameters ?

Thanks for your help


- Original Message 
From: Dave Newton <[EMAIL PROTECTED]>
To: Struts Users Mailing List 
Sent: Tuesday, January 23, 2007 5:00:29 PM
Subject: RE: [s2] Question about SessionAware docs.

From: Tom Schneider [mailto:[EMAIL PROTECTED]
> Actually your explanation is not quite 100% correct.  The interceptor
> injects a Map that is backed by the HttpSession.  So puts and gets to
> the Map will actually be puts and gets to the HttpSession.  (Very 
> clever IMO)

Ah, okay. That's handy and still keeps it clean :)

Dave


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








 

Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/

Re: JSTL toUpperCase

2007-01-24 Thread Taras Puchko

If you application server supports Servlet 2.4 (e.g. Tomcat 5.x) you should use

http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

See http://faq.javaranch.com/view?ServletsWebXml

You may need to make minor corrections to your web.xml to make it 2.4 compiant.

Taras.

On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

So I have to change it to this:
http://java.sun.com/dtd/web-app_2_4.dtd"; >

?

Can you also tell me what's wrong with this:



Error: org.apache.jasper.JasperException: jsp.error.beans.property.conversion

It worked with JSTL 1.0, it doesn't work anymore for JSTL 1.1.

-Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED]
Sent: woensdag 24 januari 2007 11:36
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase

Make sure you are using web.xml version 2.4.

Taras.

On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> All of a sudden, my iteration doesn't work anymore.
> I want to iterate through an ArrayList of Person-objects, and before this change, I simply 
iterated through it with c:forEach items="${list}" var="person"
>
> But when I run my webapp, now I can only see ${person.firstName}, ... instead 
of the actual values.
>
> -Original Message-
> From: Taras Puchko [mailto:[EMAIL PROTECTED]
> Sent: woensdag 24 januari 2007 11:10
> To: Struts Users Mailing List
> Subject: Re: JSTL toUpperCase
>
> Ensure you have
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
>
> and NOT
>
> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
>
> Taras
>
> On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Then I get this:
> >
> > Validation error messages from TagLibraryValidator for c in 
/dynamic/view/ViewPersonView.jsp43: tag = 'out' / attribute = 'value': An error occurred while parsing 
custom action attribute "value" with value "${fn:toUpperCase(person.lastName)}": 
org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.
> >
> > JSTL is version 1.1 btw.
> > -Original Message-
> > From: Taras Puchko [mailto:[EMAIL PROTECTED]
> > Sent: woensdag 24 januari 2007 10:52
> > To: Struts Users Mailing List
> > Subject: Re: JSTL toUpperCase
> >
> > Hi,
> >
> > you should separate the namespace from the function name with a colon
> > rather than with a dot:
> >
> > <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> > 
> >
> >
> > Taras.
> >
> >
> > On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Seems straight-through, but apparently it isn't.
> > >
> > > I have an object in the session scope, of which I need to show some 
attributes.  Some of them need to be converted to upper case.  You can use functions for 
that, but the problem is that I get a lot of errors :-/.
> > >
> > > My taglib-definition looks as follows:
> > >
> > > <%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
> > >
> > > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
> > >
> > > <%@ taglib uri="http://java.sun.com/jstl/functions"; prefix="fn" %>
> > >
> > > If I put jstl/jsp/__ I get an error, stating that the URI cannot be 
resolved.  If I leave the jsp out of the URL, everything works fine for c and fmt, but 
the tag library for functions can't be resolved.  I've put the fn.tld in my web-app 
folder, where I've also put the others.
> > >
> > > If I do this:
> > > %@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> > > 
> > > I get the following error:
> > > Validation error messages from TagLibraryValidator for c in /dynamic/view/ViewPersonView.jsp39: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn.toUpperCase(person.lastName)}": Encountered "(", expected one of ["}", ".", ">", "gt", 
"<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]
> > >
> > > If I change it to fn.UpperCase (as the tld mentions), I get the same 
error.
> > >
> > > Can anybody tell me what I'm doing wrong, or how I can fix this? It's 
really annoying, since google tells me I have to do it this way.  Declaration of the tag 
library is identical to core and fmt, and they work like a charm.
> > >
> > > Björn De Bakker
> > >
> > >
> > >
> > >
> > >
> > >
> > > This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other use of 
the email by you is prohibited.
> > >
> > >
> >
> >
> > This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information.  If you have received it 
in error, please notify the sender immediately and delete

Re: JSTL toUpperCase

2007-01-24 Thread Bob Arnott

[EMAIL PROTECTED] wrote:

So I have to change it to this:
http://java.sun.com/dtd/web-app_2_4.dtd"; >


Try



http://java.sun.com/xml/ns/j2ee";
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

  ...



--
Bob Arnott


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



RE: JSTL toUpperCase

2007-01-24 Thread bjorn.de.bakker
So I have to change it to this:
http://java.sun.com/dtd/web-app_2_4.dtd"; >

?

Can you also tell me what's wrong with this:



Error: org.apache.jasper.JasperException: jsp.error.beans.property.conversion

It worked with JSTL 1.0, it doesn't work anymore for JSTL 1.1.  

-Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED] 
Sent: woensdag 24 januari 2007 11:36
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase

Make sure you are using web.xml version 2.4.

Taras.

On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> All of a sudden, my iteration doesn't work anymore.
> I want to iterate through an ArrayList of Person-objects, and before this 
> change, I simply iterated through it with c:forEach items="${list}" 
> var="person"
>
> But when I run my webapp, now I can only see ${person.firstName}, ... instead 
> of the actual values.
>
> -Original Message-
> From: Taras Puchko [mailto:[EMAIL PROTECTED]
> Sent: woensdag 24 januari 2007 11:10
> To: Struts Users Mailing List
> Subject: Re: JSTL toUpperCase
>
> Ensure you have
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
>
> and NOT
>
> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
>
> Taras
>
> On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Then I get this:
> >
> > Validation error messages from TagLibraryValidator for c in 
> > /dynamic/view/ViewPersonView.jsp43: tag = 'out' / attribute = 
> > 'value': An error occurred while parsing custom action attribute "value" 
> > with value "${fn:toUpperCase(person.lastName)}": 
> > org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions 
> > are not supported.
> >
> > JSTL is version 1.1 btw.
> > -Original Message-
> > From: Taras Puchko [mailto:[EMAIL PROTECTED]
> > Sent: woensdag 24 januari 2007 10:52
> > To: Struts Users Mailing List
> > Subject: Re: JSTL toUpperCase
> >
> > Hi,
> >
> > you should separate the namespace from the function name with a colon
> > rather than with a dot:
> >
> > <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> > 
> >
> >
> > Taras.
> >
> >
> > On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > > Seems straight-through, but apparently it isn't.
> > >
> > > I have an object in the session scope, of which I need to show some 
> > > attributes.  Some of them need to be converted to upper case.  You can 
> > > use functions for that, but the problem is that I get a lot of errors :-/.
> > >
> > > My taglib-definition looks as follows:
> > >
> > > <%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
> > >
> > > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
> > >
> > > <%@ taglib uri="http://java.sun.com/jstl/functions"; prefix="fn" %>
> > >
> > > If I put jstl/jsp/__ I get an error, stating that the URI cannot be 
> > > resolved.  If I leave the jsp out of the URL, everything works fine for c 
> > > and fmt, but the tag library for functions can't be resolved.  I've put 
> > > the fn.tld in my web-app folder, where I've also put the others.
> > >
> > > If I do this:
> > > %@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> > > 
> > > I get the following error:
> > > Validation error messages from TagLibraryValidator for c in 
> > > /dynamic/view/ViewPersonView.jsp39: tag = 'out' / attribute = 
> > > 'value': An error occurred while parsing custom action attribute "value" 
> > > with value "${fn.toUpperCase(person.lastName)}": Encountered "(", 
> > > expected one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", 
> > > ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", 
> > > "and", "&&", "or", "||"]
> > >
> > > If I change it to fn.UpperCase (as the tld mentions), I get the same 
> > > error.
> > >
> > > Can anybody tell me what I'm doing wrong, or how I can fix this? It's 
> > > really annoying, since google tells me I have to do it this way.  
> > > Declaration of the tag library is identical to core and fmt, and they 
> > > work like a charm.
> > >
> > > Björn De Bakker
> > >
> > >
> > >
> > >
> > >
> > >
> > > This message is for the designated recipient only and may contain 
> > > privileged, proprietary, or otherwise private information.  If you have 
> > > received it in error, please notify the sender immediately and delete the 
> > > original.  Any other use of the email by you is prohibited.
> > >
> > >
> >
> >
> > This message is for the designated recipient only and may contain 
> > privileged, proprietary, or otherwise private information.  If you have 
> > received it in error, please notify the sender immediately and delete the 
> > original.  Any other use of the email by you is prohibited.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> This message is for the designated recipient only and may contain privi

Re: JSTL toUpperCase

2007-01-24 Thread Taras Puchko

Make sure you are using web.xml version 2.4.

Taras.

On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

All of a sudden, my iteration doesn't work anymore.
I want to iterate through an ArrayList of Person-objects, and before this change, I simply iterated 
through it with c:forEach items="${list}" var="person"

But when I run my webapp, now I can only see ${person.firstName}, ... instead 
of the actual values.

-Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED]
Sent: woensdag 24 januari 2007 11:10
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase

Ensure you have

<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

and NOT

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

Taras

On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Then I get this:
>
> Validation error messages from TagLibraryValidator for c in 
/dynamic/view/ViewPersonView.jsp43: tag = 'out' / attribute = 'value': An error occurred while 
parsing custom action attribute "value" with value "${fn:toUpperCase(person.lastName)}": 
org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.
>
> JSTL is version 1.1 btw.
> -Original Message-
> From: Taras Puchko [mailto:[EMAIL PROTECTED]
> Sent: woensdag 24 januari 2007 10:52
> To: Struts Users Mailing List
> Subject: Re: JSTL toUpperCase
>
> Hi,
>
> you should separate the namespace from the function name with a colon
> rather than with a dot:
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> 
>
>
> Taras.
>
>
> On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Seems straight-through, but apparently it isn't.
> >
> > I have an object in the session scope, of which I need to show some 
attributes.  Some of them need to be converted to upper case.  You can use functions 
for that, but the problem is that I get a lot of errors :-/.
> >
> > My taglib-definition looks as follows:
> >
> > <%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
> >
> > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
> >
> > <%@ taglib uri="http://java.sun.com/jstl/functions"; prefix="fn" %>
> >
> > If I put jstl/jsp/__ I get an error, stating that the URI cannot be 
resolved.  If I leave the jsp out of the URL, everything works fine for c and fmt, 
but the tag library for functions can't be resolved.  I've put the fn.tld in my 
web-app folder, where I've also put the others.
> >
> > If I do this:
> > %@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> > 
> > I get the following error:
> > Validation error messages from TagLibraryValidator for c in /dynamic/view/ViewPersonView.jsp39: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn.toUpperCase(person.lastName)}": Encountered "(", expected one of ["}", ".", ">", "gt", 
"<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]
> >
> > If I change it to fn.UpperCase (as the tld mentions), I get the same error.
> >
> > Can anybody tell me what I'm doing wrong, or how I can fix this? It's 
really annoying, since google tells me I have to do it this way.  Declaration of the 
tag library is identical to core and fmt, and they work like a charm.
> >
> > Björn De Bakker
> >
> >
> >
> >
> >
> >
> > This message is for the designated recipient only and may contain 
privileged, proprietary, or otherwise private information.  If you have received it 
in error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.
> >
> >
>
>
> This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of 
the email by you is prohibited.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

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




RE: JSTL toUpperCase

2007-01-24 Thread bjorn.de.bakker
All of a sudden, my iteration doesn't work anymore.
I want to iterate through an ArrayList of Person-objects, and before this 
change, I simply iterated through it with c:forEach items="${list}" var="person"

But when I run my webapp, now I can only see ${person.firstName}, ... instead 
of the actual values.

-Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED] 
Sent: woensdag 24 januari 2007 11:10
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase

Ensure you have

<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

and NOT

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

Taras

On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Then I get this:
>
> Validation error messages from TagLibraryValidator for c in 
> /dynamic/view/ViewPersonView.jsp43: tag = 'out' / attribute = 
> 'value': An error occurred while parsing custom action attribute "value" with 
> value "${fn:toUpperCase(person.lastName)}": 
> org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are 
> not supported.
>
> JSTL is version 1.1 btw.
> -Original Message-
> From: Taras Puchko [mailto:[EMAIL PROTECTED]
> Sent: woensdag 24 januari 2007 10:52
> To: Struts Users Mailing List
> Subject: Re: JSTL toUpperCase
>
> Hi,
>
> you should separate the namespace from the function name with a colon
> rather than with a dot:
>
> <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> 
>
>
> Taras.
>
>
> On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Seems straight-through, but apparently it isn't.
> >
> > I have an object in the session scope, of which I need to show some 
> > attributes.  Some of them need to be converted to upper case.  You can use 
> > functions for that, but the problem is that I get a lot of errors :-/.
> >
> > My taglib-definition looks as follows:
> >
> > <%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
> >
> > <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
> >
> > <%@ taglib uri="http://java.sun.com/jstl/functions"; prefix="fn" %>
> >
> > If I put jstl/jsp/__ I get an error, stating that the URI cannot be 
> > resolved.  If I leave the jsp out of the URL, everything works fine for c 
> > and fmt, but the tag library for functions can't be resolved.  I've put the 
> > fn.tld in my web-app folder, where I've also put the others.
> >
> > If I do this:
> > %@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> > 
> > I get the following error:
> > Validation error messages from TagLibraryValidator for c in 
> > /dynamic/view/ViewPersonView.jsp39: tag = 'out' / attribute = 
> > 'value': An error occurred while parsing custom action attribute "value" 
> > with value "${fn.toUpperCase(person.lastName)}": Encountered "(", expected 
> > one of ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", 
> > "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", 
> > "||"]
> >
> > If I change it to fn.UpperCase (as the tld mentions), I get the same error.
> >
> > Can anybody tell me what I'm doing wrong, or how I can fix this? It's 
> > really annoying, since google tells me I have to do it this way.  
> > Declaration of the tag library is identical to core and fmt, and they work 
> > like a charm.
> >
> > Björn De Bakker
> >
> >
> >
> >
> >
> >
> > This message is for the designated recipient only and may contain 
> > privileged, proprietary, or otherwise private information.  If you have 
> > received it in error, please notify the sender immediately and delete the 
> > original.  Any other use of the email by you is prohibited.
> >
> >
>
>
> This message is for the designated recipient only and may contain privileged, 
> proprietary, or otherwise private information.  If you have received it in 
> error, please notify the sender immediately and delete the original.  Any 
> other use of the email by you is prohibited.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

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



Re: JSTL toUpperCase

2007-01-24 Thread Taras Puchko

Ensure you have

<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>

and NOT

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

Taras

On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Then I get this:

Validation error messages from TagLibraryValidator for c in 
/dynamic/view/ViewPersonView.jsp43: tag = 'out' / attribute = 'value': An error occurred while 
parsing custom action attribute "value" with value "${fn:toUpperCase(person.lastName)}": 
org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are not supported.

JSTL is version 1.1 btw.
-Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED]
Sent: woensdag 24 januari 2007 10:52
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase

Hi,

you should separate the namespace from the function name with a colon
rather than with a dot:

<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>



Taras.


On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Seems straight-through, but apparently it isn't.
>
> I have an object in the session scope, of which I need to show some 
attributes.  Some of them need to be converted to upper case.  You can use 
functions for that, but the problem is that I get a lot of errors :-/.
>
> My taglib-definition looks as follows:
>
> <%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
>
> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
>
> <%@ taglib uri="http://java.sun.com/jstl/functions"; prefix="fn" %>
>
> If I put jstl/jsp/__ I get an error, stating that the URI cannot be resolved. 
 If I leave the jsp out of the URL, everything works fine for c and fmt, but the 
tag library for functions can't be resolved.  I've put the fn.tld in my web-app 
folder, where I've also put the others.
>
> If I do this:
> %@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> 
> I get the following error:
> Validation error messages from TagLibraryValidator for c in /dynamic/view/ViewPersonView.jsp39: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn.toUpperCase(person.lastName)}": Encountered "(", expected one of ["}", ".", ">", "gt", 
"<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]
>
> If I change it to fn.UpperCase (as the tld mentions), I get the same error.
>
> Can anybody tell me what I'm doing wrong, or how I can fix this? It's really 
annoying, since google tells me I have to do it this way.  Declaration of the tag 
library is identical to core and fmt, and they work like a charm.
>
> Björn De Bakker
>
>
>
>
>
>
> This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in error, 
please notify the sender immediately and delete the original.  Any other use of 
the email by you is prohibited.
>
>


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

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




RE: JSTL toUpperCase

2007-01-24 Thread bjorn.de.bakker
Then I get this:

Validation error messages from TagLibraryValidator for c in 
/dynamic/view/ViewPersonView.jsp43: tag = 'out' / attribute = 'value': 
An error occurred while parsing custom action attribute "value" with value 
"${fn:toUpperCase(person.lastName)}": 
org.apache.taglibs.standard.lang.jstl.parser.ParseException: EL functions are 
not supported.

JSTL is version 1.1 btw.
-Original Message-
From: Taras Puchko [mailto:[EMAIL PROTECTED] 
Sent: woensdag 24 januari 2007 10:52
To: Struts Users Mailing List
Subject: Re: JSTL toUpperCase

Hi,

you should separate the namespace from the function name with a colon
rather than with a dot:

<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>



Taras.


On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Seems straight-through, but apparently it isn't.
>
> I have an object in the session scope, of which I need to show some 
> attributes.  Some of them need to be converted to upper case.  You can use 
> functions for that, but the problem is that I get a lot of errors :-/.
>
> My taglib-definition looks as follows:
>
> <%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>
>
> <%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>
>
> <%@ taglib uri="http://java.sun.com/jstl/functions"; prefix="fn" %>
>
> If I put jstl/jsp/__ I get an error, stating that the URI cannot be resolved. 
>  If I leave the jsp out of the URL, everything works fine for c and fmt, but 
> the tag library for functions can't be resolved.  I've put the fn.tld in my 
> web-app folder, where I've also put the others.
>
> If I do this:
> %@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
> 
> I get the following error:
> Validation error messages from TagLibraryValidator for c in 
> /dynamic/view/ViewPersonView.jsp39: tag = 'out' / attribute = 
> 'value': An error occurred while parsing custom action attribute "value" with 
> value "${fn.toUpperCase(person.lastName)}": Encountered "(", expected one of 
> ["}", ".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", 
> "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]
>
> If I change it to fn.UpperCase (as the tld mentions), I get the same error.
>
> Can anybody tell me what I'm doing wrong, or how I can fix this? It's really 
> annoying, since google tells me I have to do it this way.  Declaration of the 
> tag library is identical to core and fmt, and they work like a charm.
>
> Björn De Bakker
>
>
>
>
>
>
> This message is for the designated recipient only and may contain privileged, 
> proprietary, or otherwise private information.  If you have received it in 
> error, please notify the sender immediately and delete the original.  Any 
> other use of the email by you is prohibited.
>
>


This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.

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



Re: JSTL toUpperCase

2007-01-24 Thread Taras Puchko

Hi,

you should separate the namespace from the function name with a colon
rather than with a dot:

<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>



Taras.


On 1/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Seems straight-through, but apparently it isn't.

I have an object in the session scope, of which I need to show some attributes. 
 Some of them need to be converted to upper case.  You can use functions for 
that, but the problem is that I get a lot of errors :-/.

My taglib-definition looks as follows:

<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

<%@ taglib uri="http://java.sun.com/jstl/functions"; prefix="fn" %>

If I put jstl/jsp/__ I get an error, stating that the URI cannot be resolved.  
If I leave the jsp out of the URL, everything works fine for c and fmt, but the 
tag library for functions can't be resolved.  I've put the fn.tld in my web-app 
folder, where I've also put the others.

If I do this:
%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>

I get the following error:
Validation error messages from TagLibraryValidator for c in /dynamic/view/ViewPersonView.jsp39: tag = 'out' / attribute = 'value': An error occurred while parsing custom action attribute "value" with value "${fn.toUpperCase(person.lastName)}": Encountered "(", expected one of ["}", ".", ">", "gt", 
"<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", "+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]

If I change it to fn.UpperCase (as the tld mentions), I get the same error.

Can anybody tell me what I'm doing wrong, or how I can fix this? It's really 
annoying, since google tells me I have to do it this way.  Declaration of the 
tag library is identical to core and fmt, and they work like a charm.

Björn De Bakker






This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.




JSTL toUpperCase

2007-01-24 Thread bjorn.de.bakker
Seems straight-through, but apparently it isn't.

I have an object in the session scope, of which I need to show some attributes. 
 Some of them need to be converted to upper case.  You can use functions for 
that, but the problem is that I get a lot of errors :-/.

My taglib-definition looks as follows:

<%@ taglib uri="http://java.sun.com/jstl/fmt"; prefix="fmt" %>

<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

<%@ taglib uri="http://java.sun.com/jstl/functions"; prefix="fn" %>

If I put jstl/jsp/__ I get an error, stating that the URI cannot be resolved.  
If I leave the jsp out of the URL, everything works fine for c and fmt, but the 
tag library for functions can't be resolved.  I've put the fn.tld in my web-app 
folder, where I've also put the others.

If I do this:
%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>

I get the following error: 
Validation error messages from TagLibraryValidator for c in 
/dynamic/view/ViewPersonView.jsp39: tag = 'out' / attribute = 'value': 
An error occurred while parsing custom action attribute "value" with value 
"${fn.toUpperCase(person.lastName)}": Encountered "(", expected one of ["}", 
".", ">", "gt", "<", "lt", "==", "eq", "<=", "le", ">=", "ge", "!=", "ne", "[", 
"+", "-", "*", "/", "div", "%", "mod", "and", "&&", "or", "||"]

If I change it to fn.UpperCase (as the tld mentions), I get the same error.

Can anybody tell me what I'm doing wrong, or how I can fix this? It's really 
annoying, since google tells me I have to do it this way.  Declaration of the 
tag library is identical to core and fmt, and they work like a charm.

Björn De Bakker
 

 



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information.  If you have received it in 
error, please notify the sender immediately and delete the original.  Any other 
use of the email by you is prohibited.


How to use

2007-01-24 Thread red phoenix

I want to use ,I read
treeExampleDynamic.jsp of struts2 document,like follows:

function treeNodeSelected(nodeId) {
dojo.io.bind({
   url: "?nodeId="+nodeId,
   load: function(type, data, evt) {
   var displayDiv = dojo.byId("displayId");
   displayDiv.innerHTML = data;
 },
mimeType: "text/html"
});
};

dojo.event.topic.subscribe("treeSelected", this, "treeNodeSelected");






I don't know what meaning of  dojo? I don't use the object dojo before! And
I don't know how to use it.Anybody can tell how to use it? I want to make a
dynamic tree,and I can add,modify and delete any node of the dynamic
tree,how to realize it? Is there a source code for me?

Thanks in advance!
Best regards,
phoenix