Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Vito Andolini

Greenhorn
+ Follow
since Jun 19, 2007
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vito Andolini

Nevermind, figured it out!

if you set the inputForward attribute on the controller to true:



you can set the input attribute on the action to be an Action.forward, which allows you to forward to another action.



12 years ago
I have an action mapping that displays a page with a form. The action gathers some dynamic data for drop-down lists, etc.

The form is submitted, but with errors, and validation is configured to run. I understand that I can include an "input" attribute for the action mapping so that the form could be redisplayed for the user. But I need to run the action again, not just display the form, because the action needs to gather the dynamic data for the form.

Any idea how this can be done?

Thanks very much...
12 years ago
Hello, I was wondering if it's possible to set something to be cached both publicly and privately. That is to say, I want an image (for example) to be cached on a proxy server, but also on the user's browser. This would prevent new requests for the image from going past the proxy server, but if the user already had the image locally, the browser wouldn't even have to send a request to a proxy server.

It seems that we can only set cache to public or private, but not both. Anyone know how/if this can be accomplished?

Grazie.
12 years ago
JSP
I have created a JSR-168 Faces Portlet using RSA 7.0.0.5 for WebSphere Portal 6.0.1.3. The portlet runs as designed, but we noticed a problem in performance testing. It appears that every time we do a POST from the faces portlet, it adds data to wps.war's session. We could see that wps.war's session size was growing as high as 6 MB, and a heap dump showed that there were faces classes (UIViewRoot, and everything it contains) from our application in wps.war's httpsession.

Furthermore, I was able to isolate this to the faces portlet framework itself - actually to POSTs using the faces portlet framework. I created a generic basic JSR 168 portlet and ran it. I changed the theme to print out everything in session (since the theme runs in wps.war, it will print out everything in wps.war's session). Running GETs and POSTs on the basic portlet did not add any data to wps.war's session. I then created a very simple JSR-168 Faces portlet. All it had was an input field and a submit button in a form - although it did absolutely nothing with the data submitted. I noticed that if I just rendered the faces portlet, no data was added to wps.war's session. However, everytime I POSTed the form, it added about 5 KB to session.

Has anyone run into this problem before, or does anyone have any thoughts/suggestions? I hate to be that guy who makes a post like "EMERGENCY - NEED HELP NOW!!", but we're in Performance testing and this is a huge risk to our implementation date. Any help would be appreciated immensely.

Thanks!
13 years ago
Hi, I'm trying to code a JSF portlet on WebSphere Portal 6. I have put values into the portlet session, however I cannot pull them out of the portlet session using jstl. Your typical

doesn't work because the jstl is looking in the HttpSession, not in the PortletSession.

Anyone know how to use jstl to access a variable in the portlet session?
13 years ago
This is one of those questions that I'm pretty sure I know the answer to, but have to ask anyway because I don't really like the answer!

In WebSphere Portal V6, if I want a portlet service to call an EJB or a Web Service, I'll have to modify wps.war's web.xml to add the references, correct? I know that it is possible to call a Web Service without externalizing the endpoint or credentials, but that isn't really good design in my opinion.

So is that it? If you want to call an EJB or WS, you HAVE to modify wps.war's web.xml? Have people done this and had good/bad experiences? From what I've read, modifying wps.ear isn't forbidden, but it's kind of a "enter at your own risk" decision.

Any help would be greatly appreciated.
13 years ago
You are correct. I was mistakenly under the impression that while C2A was an IBM implementation, JSR-168 included Cooperative Portlets in its spec. That was incorrect, and your assertions are valid.

Thanks for the input!
13 years ago
Cameron is going to think I'm stalking him, but wouldn't cooperative portlets be acceptable here, too?

If an action is taken on his "drop down" portlet, it can communicate information to the target portlet. I suppose if the communication needs to be "inter-page", then the availability of that functionality will depend on the Portal vendor.
13 years ago
Hello. I am trying to create a portlet with the WebClipper portlet in WebSphere Portal 6.0. When I enter the URL to be clipped, I would like to enter a relative url, that way as I migrate the configuration up through the test environments (which all have different domains), I don't have to touch the portlet's configuration.

When I try this, I get an error because the URL is "malformed" i.e. not absolute. Has anyone ever created a Web Clipper portlet with a relative url?

Thanks!
13 years ago
Maybe I'm missing something here, because I trust Cameron, but isn't his request the definition of cooperative portlets? An action on portlet A triggers an action on portlet B...
13 years ago