Is there any way to create objects in jstl even if its not a java bean
please someone help me :<(
thx in advance for the time you'll spend on my question.
i am translating some code in jsp with embedded java to jstl. and in scriptlets they created java object of some class and using it in loop. but that class is not bean, so i can't use <jsp:useBean> tag so how do i do that here is the code
<% TabLayoutConfiguratorImpl tabsConfigurator = new TabLayoutConfiguratorImpl();
%>
<logic:iterate id="tab" name="tabList" type="TabItem" >
<% // compute href
if (!tabsConfigurator.isHidden(tab))
-----statements-----
%>
</logic:iterate>
how can i create TabLayoutConfiguratorImpl class object and use everything should be done in jstl? is there any way at all?
here is my class
package conf;
import javax.servlet.http.*;
import org.apache.struts.tiles.ComponentContext;
public class TabLayoutConfiguratorImpl implements TabLayoutConfigurator
public void configure(HttpServletRequest request) {
HttpSession session = request.getSession();
ComponentContext context = ComponentContext.getContext(request);
this.configureDefinition(context);
java.util.Iterator i = ((java.util.List) context.getAttribute("tabList")).iterator();
while (i.hasNext())
TabItem tab = (TabItem) i.next();
this.configureTab(tab, session);
// subclasses should override this if there the attributes in the Definition
// need to be manipulated
protected void configureDefinition(ComponentContext context)
// default implementation does nothing
// subclasses should override this if tabs in the definition
// need to be manipulated
protected void configureTab(TabItem tab, HttpSession session)
// default implementation does nothing
// subclasses should override this if they want to hide tabs in the
// configuration
public boolean isHidden(TabItem tab)
// default implementation returns false - ie they are visible
return false;
}
I don't see what is wrong with
<jsp:useBean id="tabsConfigurator" class="com.mypackage.TabLayoutConfiguratorImpl"/>
The class has a no-args constructor at least. The useBean tag will work with it. Probably.
But still, some code just can't be translated into scriptless JSTL.
Calling methods which take parameters is one of those things.
In this case you probably want to write a custom tag to work with your tabs
I would probably look at using custom tags like this:
<%@ taglib prefix="tab" uri="/WEB-INF/TabLayout.tld"%>
// tab to create the configurator.
// either export it as a var, or use other tags only nested within this one
// so you can get access to the configurator.
<tab:configure var="configurator">
<tab:render configurator="${configurator}" tab="${tab}">
</tab:configure>I don't know exactly what the scriptlet code will be doing. But I think a custom taglib would be the only way to eliminate scriptlet code that you have here.
Similar Messages
-
Is there any way to create a system-wide variable?
Hello IDM gurus.
Is there any way to create rarely changing system wide variables that can be loaded at system startup that will be available to all users? For example, at IDM system startup, the variables would be read from configuration or generic objects and live in memory for ALL users as opposed to each workflow/user having to read the same variables when the workflow is run.
Any help would be appreciated.That may very well be the answer I'm looking for. Is there a way for that to be available within the entire application instead of having to read it in each workflow?
-
Is there any way to create a VMvmare server cluster?
Hi,
I have two machines which don't support install ESXi, these machines are running centos 5 with no X and I installed vmware server 2.0.
My question is, is there any way to create a vmware server cluster like is possible create in ESX?
I know in ESX once you create a cluster, the resources are increased since resources are added. Is there any way to do same thing with vmware server 2.0?
Also is there any other option for my machines, I don't want to install X since the machines don't have much resource.
Thanks in advance.Welcome to the COmmunit - With VMware server each environment functions independently and there is no way to pool resources as you can with a DRS cluster - and remembering even in a DRS cluster the VMs swill only run on a single host at a time as they would in VMware Server machines/
Also just because it is not suppported does not mean you will not be able to create a VM with an unsupported OS - -
Is there any way to create an installer for Mac OS and Linux OS once a stand alone application is created? I have created an executable application that I want to distribute to Mac and Linux users (different applications were created in the respective OS). I was wondering if there is any way to create an installer? I think there probably isn't... If the user were to simply download the Labview Run-time Engine from ni.com would they be able to run the application or is it more complicated than that?
Thanks so much for your time.I think Shane tried to say, that it is on the Mac OS X installation DVD, NOT the LabVIEW for Mac OS X installation medium. And that could very well have changed in recent Mac OS X versions as well. They used to have Xcode on it too, but that seems gone as well.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Is there any way to create admin role only for one resource.
Hi all,
I am trying to create an admin role with 'update user' capability. But I want to restrict the user(with the admin role) to be able to update a user's attribute only for one resource, The user(with the admin role) should not be able to update the attributes of the other resources which a user have.
Is there any way to create admin role only for one resource?
I customized the tabbed user form to show only one resource attribute (deleting the missing fields and adding my tab for the resource) and then assigned this new User Form to the user(with the admin role) in security tab.
It works fine. But the problem is that if any user(with the admin role) is also admin of some other resource then he/she will not be able to view the other resource attributes.
Please suggest,
thanksThe loop function always repeats the same region so of course the fade is also copied. So option+drag the original region to make a (non clone) copy, fade the first region and loop the second one (which you just copied).
-
I am going to a lake cabin in Northern Minnesota for a week and need to get wifi for my Mac. Is there any way to create a wifi hotspot using my Ipad so that I have internet service for my laptop?
No, iPad can become a hot spot, but if you have an iPhone, it can tether if you have a data plan that incudes the tethering option. With AT&T for example, you can add tethering for $20 month or for $45/month, you receive tethering and 4GB of data per month. If you have the unlimited data plan from AT&T you'll unfortunately have to give it up if you want to tether. You can also go to almost any carrier and purchase a MiFi unit which may work for you. Whether iw will work in Northern Minnesota is something only your carrier could answer.
-
Is there any way to create table of more than 30 char length name
hi all,
Please tell me is there any way to create table of more than 30 char length name in oracle 10g
RegardsHi,
If you want table name to be more than 30 Char.
I am sure,your naming convention is not upto the mark.
Its not possible in 10g as well as in 11g.
Thanks
Yogesh Nagle
India -
Is there any way to create discussion board using JSP
Hi! i'm doing a project using jsp is there any way to create a simple discussion board like the one here? can anyone who knows pls forward some links that teaches me how to do it step by step. Thanks for your help and have a nice day :)
From the UK! -- PC Plus, August 2000 Issue:
How to build a JSP Message Board
http://www.pcplus.co.uk/media/pcplus/pdf/166/pcplus.166.progworld.java.pdf
You'll get a nice 2-page pdf file, taken directly from the magazine
--Dave -
Is there any way to create fields reports users can enter data into?
I am using Crystal XI to develop reports for my company and have not received any formal training on it. I'm learning it fairly well through the help files.
One of the reports I need to create summarizes our scrap, rework, and additional incurred expenses for our monthly quality reports. Most of the information is stored in the main program used by all employees, a very small amount of it is not. I have created sub-reports for each of the different types of costs that are tracked in the system.
Is there any way to create an area on the report that our QA people can use to enter the items not tracked in the main system? I am imagining that it would be through another sub-report of some kind, but do not know how to create the fields needed.
Thank you very much for any assistance you can provide, even if it is to tell me "You can't do that, ma'am..." At least then I would know and wouldn't beat my head against the desk trying to figure out how to do it.Is defining parameter prompts in the Crystal Report and displaying it in the report a possible workaround?
If you define parameter prompts, then Crystal will query the user before running the report - so this would be problematic if the user needs to reference data in the report to enter appropriate values (one possibility then is to use interactive parameters feature available in CR 2008).
Sincerely,
Ted Ueda -
Is there any way to create 3D PDF file without having the model tree ?
Is there any way to create 3D PDF file without having the model tree ?
3D communication is good but sometime we don't want the receiver to be able to study every components in model.
or any way to make the receiver cannot use model tree and measurement tool ????
Thank you very muchYou can remove the assembly tree by doing a roundtrip in 3D Toolkit, here's how:
- start Acrobat 3D
- drag & drop a CAD file
- click on 3D Annot to activate
- right-click on 3D
- select 'Edit in 3D Toolkit'
- 3D Toolkit launches
- click in 'Scene Tree' panel
- right-click on top assembly name
- select 'Tools->Collapse Hierarchy'
- select 'File->Save'
- select 'File->Exit' -
Is there any way, to create with Adobe Muse HTML-Mail Templates?
Is there any way, to create with Adobe Muse HTML-Mail Templates? or to convert the createt page to only html content? any other tool like an website copyer?
tanks for help!Off the top of my head, you should be able to create mail templates in muse BUT it will require very basic html/css knowledge on your part. I am assuming you want to do just the signature?
Create the design you would like on one page, dont do any kind of styling in a master page. Then export the site into a folder. Open the html file with notepad/ textedit and then copy just the code for JUST the template. Throw it in you mail app of choice and it should work.
This seems like something that would be done alot quicker in dreamweaver in design view.
PLEASE NOTE: ^i could be completely wrong - but in theory this may work. -
Is there any way to create a reminder for "today"?
Is there any way to create a reminder for "today" in the new Reminders app? I used to be able to pull up the "today" list and add things that would go to my default list but automatically show up for today but now it looks as though that option is gone. Additionally, any way to get dates/times to show up with reminders in the Notification Center?
Hey chewie314,
Thanks for the question. From the information you provided, it sounds like you might be looking for the "Scheduled" view. This view will show all of your reminders that are scheduled in a list. To access the schedule view, click the icon:
Reminders - iPhone User Guide
http://help.apple.com/iphone/7/#/iph88463e18
Thanks,
Matt M. -
Is there any way to create a file compatible with Premiere Pro
Is there any way to create a file in Premiere elements that is compatible with Premiere Pro and that can be used in Premiere Pro
Consternation
The important information that I do not see mentioned nor offered by you.
1.What version of Premiere Elements are you using and on what computer operating system it is running? What version of Premiere Pro do you want to use?
The Premiere Pro Import Supported Formats seem to indicate that it will accept the Premiere Elements project.prel (project file) on Windows Only.
Adobe Premiere Pro Help | Supported file formats
This may or may not be possible depending on damaged projects or outdated elements.
2. If you want to export your Premiere Elements Timeline to a file saved to the computer hard drive and subsequently import that into your Premiere Pro version, that "should" work. You would go to the Premiere Elements Publish+Share/Computer/ and make a selection based on what the Premiere Pro Import Supported file formats are and what you need. I can help you with that. But, details first.
But, just a "beware"...when you get to Premiere Elements 11 or 12 (if that is the version involved) Publish+Share/Computer/ there are several categories, but all you see is Adobe Flash Video, MPEG, and AVCHD. The rest of the list that includes AVI and QuickTime which both need to be scrolled to all of the time to see them, not just sometimes, with the thin scroll bar to the right of the list of choices. You can export files
with AVI file extension, under Publish+Share/Computer/AVI
with MOV file extension, under Publish + Share/Computer/QuickTime
And, if you do not have QuickTime installed on your computer with Premiere Elements, you are not going to have presets for the QuickTime export.
Remember, there is more to an export than just its file extension. Know your other export properties as well.
In many cases, you can customize the export settings to suit your requirements.
Problems will exist if you are trying to go from Premiere Elements Windows to Premiere Pro Mac or vice versa.
I would be glad for the opportunity to help you with this issue, but details are needed.
Looking forward to your follow up.
Thanks.
ATR -
Is there any way to create backing bean, After page gets created?
Hi
Any one can please answer to my quick question !!!
Is there any way to create the backing bean ,after a jsf page gets created using ADF ..?
When i first time created the jsf jppx page i unchecked the option to generate backing bean, but later some time I would like to have backing bean for the newly created page. so is there any way to create backing bean ...?
Thanks in AdvanceHave your page in the visual design mode then go to the Design->Page Properties menu and you'll be able to select auto-bind on the second tab.
-
Is there any way to create a HTTP_AAE Receiver without a path in NW PO 7.31
Hi ,
Does anyone know how to create a HTTP_AAE Receiver without a path??
We are in a phase of migrating Interfaces from PI 7.1 to PO 7.31(Java Only).
For one of the Interface in PI 7.1 there is a RFC Destination for vendor communication through HTTPS connectivity :
TargetHost: IP Address
Post: value
Path Prefix: Blank
During migration requirment is to keep the Path field BLANK of the Communication Channel,however since PO has mandatory path field a "/" is been provided, because of which data post fails.
PI: https://IP:9443
PO: https://IP:9443/ (Since Path Prefix is mandatory)
As per my understanding The data is supposted to be posted directly to the IP (https://IP:9443) however it is getting posted to (https://IP:9443/) where the service is not available. For Reference attached relevant screenshots.
Is there any way to create a HTTP_AAE Receiver without a path. Need ardent support and suggestions
regarding this.
Regards
RijuHi,
For Service auto- PO from PR, you need to activate Automatic Purchase order creation for Service requisitions in ML91 t.code.
Note:
For material :automatic PO creation from PR, follow the steps.
1) Material Master purchasing view tick automatic PO check box
2) Vendor Master purchasing view tick automatic PO check box.
3) Maintain Source list for Vendor & Material.(ME01)
4) Maintain Purchase Info Record.(ME11)
5) Create a Purchase Requisition.(ME51)
6) Use T.Code: ME59 & execute for PR for vendor, you will be able to create automatic PO.
During creation of PR , select check box of Source Determination in the 1st screen of ME51
Ensure that Purchase Info Record should be there.
If you have more than one vendor then fixes only one vendor in source list.
Regards,
Biju K
Maybe you are looking for
-
How can I move an e-mail forwarded as an attachment into my inbox?
I recently migrated from MS Outlook 2003 to Thunderbird 24.4.0 for my personal e-mail because I can't afford the latest MS Outlook and wouldn't really want version 2013 anyway. Prior to the migration, any time someone sent me a personal e-mail at wor
-
How can I display multiple numeric limit test in operator interface
I am using Teststand 3 and I want to display additional information like the limits and the results in the sequence UI control. Adding new columns to this control is no problem, so it works good with any step type, that has a single result. But how c
-
Hi I'm still learning AE. I'd appreciate any help. I can export to Windows. Can't export to Vimeo SD 25 fps in H.264 either. When I try to compile via media encoder the following I get this message. - Encoding Time: 00:00:00 07/30/2013 03:01:03 PM :
-
Have just purchased a new mac book pro, am now having issues syncing my apps to my new mac?
-
Can you use chat commands in Office Communicator - Lync
In several other chat clients there are commands you can enter that perform various functions or actions. For example in some clients I can write "/me slaps you with a large trout" and the chat window will display: "c.maples slaps you with a large tr