JSF and XML propertie File instead DOTpropertie File
Hello
I'll would like to load resources in JSF (<f:loadBundle>)
Coming out by a xml File instead a .propertie File.
I've got no problem get resources stored in .properties
I try to change the files. Al I get is a exception throw by
org.apache.myfaces.taglib.core.LoadBundleTag resolveBundle
Resource bundle 'com.webapp.navigation.' could not be found.
Where did I find some information about?
Where is it to configure?
The Servletcontainer is Tomcat.
Thank You
esion
.
Thank You,
it's realy a good idea to rtfm :-)
esion
Similar Messages
-
Pdf files in search results - open the properties paga instead the file
Hi,
We have 2010 search results page for searching files. When the search result is a pdf - the icon shown is not pdf icon and when click the file name it opens the properties page instead the file itself. What should be set? thanks a lot
keren tsurIt looks like you didn't register PDF file type in your search service application.
Go to Central Administration->Manage Service Application. Click on the name of your search service application and check file types (link in the left column) -
Can Database be used for storing file instead of file system
Hi,
Has anyone used database to store files instead of file system?
Is there any documentation available to do so.
Thanks in Advance
AmitHi ,
Yes , contents can be stored in DB instead of File system .
Documentation link : http://docs.oracle.com/cd/E21043_01/doc.1111/e10792/c02_settings005.htm
Thanks,
Srinath -
How to retreive images and xml stored in temporary internet files
hi all,
I am creating an air application that has to work in offline too.so i have decided to retrieve datas it from temporary internet files(is it a rightway or anyother way to do that if so pls suggest). I have an issues of retreiving images and xml stored in the temporary internet files of the user system ..can anybody help me and give solution for this..
regards,
Divya.What software are you using to create the website? Perhaps there is some command you can implement on the website to force the entire file to be downloaded. If you use Dreamweaver, you might ask in that forum. If you make the link an ftp link rather than a http link, you might guarantee that the file will be downloaded in its entirety, but the download location will not necessarily be in a temp folder.
-
Does anybody know if instead of using the JSF Tag library, I can use XML to describe my JSP page (similar to the concept used by Oracle's UIX)?
The concept is that I write an XML page, which is then parsed to a JSP (runtime or compile time, I don't care). Anybody know about support for this feature?Does anybody know if instead of using the JSF Tag library
I can use XML to describe my JSP page (similar to the concept
used by Oracle's UIX)?Ed has already answered your immediate question about the JSF EA 3 capability, but I wanted to add that UIX will also support JSF via XML once JSF is released, just as we support our current XML model today.
Brian Albers
UIX Development Manager - Oracle Corp.
http://otn.oracle.com/products/ids/uix/content.html -
Muse creates .php files instead .html files when directly uploaded on host in program
When i use reCaptcha in Adobe Muse it creates index.php files when i click upload on ftp host. If i export it as html, then it works correctly.
For my own Website it's not a problem (Hoststar.ch), but it appears to be a problem for other hosting providers (Genotec.ch).
Also if there is a .htdocs file in the folder im exporting it to, it writes a "Muse Generated redirects", but it still won't for Genotec.ch.
If there is no .htdocs file in the folder, it also won't create one.
Is that problem fixable or what do i need to do?Hi,
Adobe Muse does not generates .htdocs file. Did you check it with your host, if it is available for you on the server? -
How to include the characters " " and " " in a XML properties file.
hi
including the following prop entry gives me the error "Element is not closed" error message.
<entry key="test">can't include chars < and ></entry>
But i need to include the chars "<" and ">" in my xml properties file.
please help.
thanksTry < and >
Dave Patterson -
Best way to handle .properties and .xml files
Hi,
I have an application which contains so many properties and XML files, these are a part of WAR file which we deployed in
tomcat server. Whenever we make changes to these properties and XML files we redeploy the app and start the server.
Is there any way we can make sure that these files can take changes without redeploying or starting the server?
Please clarify.
Thanks.Sure - keep them outside of the war. Pick any directory where you can put them (a directory where the server is allowed to read of of course), load them from that directory in your application. Make sure you can reach that directory through (S)FTP to easily be able to modify them. Then all you need is a way to reload them in the application, should the information be cached.
-
Hi Scripting Guy. I am a Server Administrator who is very familiar with Active Directory, but new to PowerShell. Like many SysAdmins, I often need to create multiple accounts (ranging from 3-200) and add them multiple groups (ranging
from 1 - 100). Previously I used VBS scripts in conjunction with an Excel .XLS file (not CSV file). Since VBS is essentially out the door and PowerShell is in - I am having to re-create everthing.
I have written a PowerShell script that bulk creates my users and adds them to their corresponding groups - however, this can only use a CSV file (NOT an XLS file). I understand that "CSV is much easier to use than Excel worksheets", but
most times I have three sets of nearly identical groups (for Dev, QA and Prod). Performing Search and Replace on the Excel template across all four Worksheets ensures the names used are consistent throughout the three environments.
I know each Excel Worksheet can be exported as a separate CSV file and then use the PowerShell scripts as is, but since I am not the only SysAdmin who will be using these it leads to "unnecessary time lost", not to mention the reality that even
though you clearly state "These tabs need to be exported using this naming standard" (to work with the PowerShell scripts) that is not the result.
I've been tasked to find a way to modify my existing PowerShell/CSV scripts to work with Excel spreadsheets/workbooks instead - with no success. I have run across many articles/forums/scirpts that let you update Excel or export AD data into an Excel
spreadsheet (even specifying the worksheet, column and row) - but nothing for what I am trying to do.
I can't imagine that I am the ONLY person who is in this situation/has this need. So, I am hoping you can help. How do I modify my existing scripts to reference "use this Excel spreadsheet, and this specific worksheet in the spreadsheet
prior to performing the New-ADUser/Add-ADGroupMember commands".
For reference, I am including Worksheet/Column names of my Excel Spreadsheet Template as well as the first part of my PowerShell script. M-A-N-Y T-H-A-N-K-S in advance.
Worksheet: Accounts
Columns: samAccountName, CN_DisplayName_Name, sn_LastName, givenName_FirstName, Password, Description, TargetOU
Worksheets: DevGroups / QAGroups / ProdGroups
Columns: GroupName, Members, MemberOf, Description, TargetOU
# Load PowerShell Active Directory module
Write-Host "Loading Active Directory PowerShell module." -foregroundcolor DarkCyan # -backgroundcolor Black
Import-Module ActiveDirectory
Write-Host " "
# Set parameter for location of CSV file (so source file only needs to be listed once).
$path = ".\CreateNewUsers-CSV.csv"
# Import CSV file as data source for remaining script.
$csv = Import-Csv -path $path | ForEach-Object {
# Add '@saccounty.net' suffix to samAccountName for UserPrincipalName
$userPrincinpal = $_."samAccountName" + "@saccounty.net"
# Create and configure new AD User Account based on information from the CSV source file.
Write-Host " "
Write-Host " "
Write-Host "Creating and configuring new user account from the CSV source file." -foregroundcolor Cyan # -backgroundcolor Black
New-ADUser -Name $_."cn_DisplayName_Name" `
-Path $_."TargetOU" `
-DisplayName $_."cn_DisplayName_Name" `
-GivenName $_."givenName_FirstName" `
-SurName $_."sn_LastName" `
-SamAccountName $_."samAccountName" `
-UserPrincipalName $userPrincinpal `Here is the same script as a function:
Function Get-ExcelSheet{
Param(
$fileName = 'C:\scripts\test.xls',
$sheetName = 'csv2'
$conn = New-Object System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = $fileName;Extended Properties=Excel 8.0")
$cmd=$conn.CreateCommand()
$cmd.CommandText="Select * from [$sheetName$]"
$conn.open()
$cmd.ExecuteReader()
It is called like this:
Get-ExcelSheet -filename c:\temp\myfilename.xslx -sheetName mysheet
Do NOT change anything in the function and post the exact error. If you don't have Office installed correctly or are running 64 bits with a 32 bit session you will have to adjust your system.
¯\_(ツ)_/¯
HI JRV,
My apologies for not responding sooner - I was pulled off onto another project this week. I have included and called your Get-ExcelSheet function as best as I could...
# Load PowerShell Active Directory module
Write-Host "Loading Active Directory PowerShell module." -foregroundcolor DarkCyan # -backgroundcolor Black
Import-Module ActiveDirectory
Write-Host " "
# JRV This Function Loads the Excel Reader
Function Get-ExcelSheet{
Param(
$fileName = 'C:\scripts\test.xls',
$sheetName = 'csv2'
$conn = New-Object System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = $fileName;Extended Properties=Excel 8.0")
$cmd=$conn.CreateCommand()
$cmd.CommandText="Select * from [$sheetName$]"
$conn.open()
$cmd.ExecuteReader()
# Set parameter for location of CSV file (so source file only needs to be listed once) as well as Worksheet Names.
$sourceFile = ".\NewDocClass-XLS-Test.xlsx"
# Add '@saccounty.net' suffix to samAccountName for UserPrincipalName
$userPrincinpal = $_."samAccountName" + "@saccounty.net"
# Combine GivenName & SurName for DisplayName
$displayName = $_."sn_LastName" + ". " + $_."givenName_FirstName"
# JRV Call the Get-ExcelSheet function, providing FileName and SheetName values
# Pipe the data from source for remaining script.
Get-ExcelSheet -filename "E:\AD_Bulk_Update\NewDocClass-XLS-Test.xlsx" -sheetName "Create DocClass Accts" | ForEach-Object {
# Create and configure new AD User Account based on information from the CSV source file.
Write-Host " "
Write-Host " "
Write-Host "Creating and configuring new user account from the CSV source file." -foregroundcolor Cyan # -backgroundcolor Black
New-ADUser -Name ($_."sn_LastName" + ". " + $_."givenName_FirstName") `
-SamAccountName $_."samAccountName" `
-UserPrincipalName $userPrincinpal `
-Path $_."TargetOU" `
Below is the errors I get:
Exception calling "Open" with "0" argument(s): "The 'Microsoft.Jet.OLEDB.4.0'
provider is not registered on the local machine."
At E:\AD_Bulk_Update\Create-BulkADUsers-XLS.ps1:39 char:6
+ $conn.open()
+ ~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException
Exception calling "ExecuteReader" with "0" argument(s): "ExecuteReader
requires an open and available Connection. The connection's current state is
closed."
At E:\AD_Bulk_Update\Create-BulkADUsers-XLS.ps1:40 char:6
+ $cmd.ExecuteReader()
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException -
Hello, everyone. As a SSIS newbie, I have a simple question about load XML data files with SSIS. Currently I have multiple XML files in a specified folder (C:\XMLData) using one XSD file. Since SSIS does not support expression language for XML Source component (unlike flat file connnection), do you know how to loop through all XML data files to load them into a table in a database? I guess I may need to do some programming in VBScript. Any help is greatly thankful
Thank you very much.Since SSIS does not support expression language for XML Source component (unlike flat file connnection),
Are you sure about that? If you flip back to the control-flow and view the properties of the dataflow in question then you should be able to put an expression on the [XML Source].[XMLData] property.
Background reading:
Dataflow expressions
(http://consultingblogs.emc.com/jamiethomson/archive/2007/10/09/SSIS_3A00_-Dataflow-expressions.aspx )
http://sqlblog.com/blogs/jamie_thomson/ | http://jamiethomson.spaces.live.com/ | @jamiet -
Hi,
I am sorry to use this as a shortcut instead of "doing the work myself", but there is so much info on the web so I do not know where to start. I just want to perform a simple task.
I have a java object ...
public class MySampleObject {
private String name;
private String address;
private int phonenumber;
}And I want to put it into an xml file like this:
<persons>
<person>
<name>Helena</name>
<address>Sweden</address>
<phonenumber>01234567</phonenumber>
</person>
</persons>My plan is to do it the straightforard way by putting strings into a stringbuffer and writing it to a file.
Is there a smarter xml-ish way to do it ?
/Helenastraightforard way by putting strings into a stringbuffer and writing it to a file.
No you should not do it that way
I can give you an example program to create an xml with a little bit search you can finish your home work
package xml;
import org.w3c.dom.*;
import javax.xml.parsers.*;
import javax.xml.transform.*;
import java.io.*;
import javax.xml.transform.stream .*;
import javax.xml.transform.dom.*;
public class createXML{
public Document createDocument(){
try {
DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
Document doc = builder.newDocument();
return doc;
} catch (ParserConfigurationException e) {
e.printStackTrace();
return null;
public void writeXML(Document doc,String fileName){
try{
File xmlFile = new File(fileName+".xml");
Source source = new DOMSource(doc);
Result result = new StreamResult(xmlFile);
Transformer xformer = TransformerFactory.newInstance().newTransformer();
xformer.transform(source, result);
}catch(Exception e){
e.printStackTrace();
public static void main(String args[]){
createXML cx = new createXML();
Document xmlDoc = cx.createDocument();
Element element = xmlDoc.createElement("root");
xmlDoc.appendChild(element);
element.appendChild(xmlDoc.createTextNode("TEST"));
cx.writeXML(xmlDoc,"output");
} -
How to open and XML file?
Does anyone have a way on Mac to open an XML file for viewing. This can be done with WIN Excel and XML toolkit but doesn't exist for Mac Excel in Office 2008. I can open with TextEdit but would like to see the info with headers and cells without all the XML coding. Numbers 09 can't open it at all.
Numbers uses XML to build the description of the documents but it's not an XML editor.
A simple search in Google with the intricate key string xml editor AND mac return numerous interesting links.
Yvan KOENIG (VALLAURIS, France) vendredi 9 octobre 2009 11:33:27 -
HTML and XML files open in same window(KM Navigation iView)
Hi All,
I have created a KM navigation which is pointing the folder inside the documents repository. This folder contains HTML and XML files. It is rendering fine. But, when I click on the file links in KM Navigation iView, it is opening in new window.Here I need to open in same window. How can I acheive this?. Please help me.
Thanks & Regards,
Venkatesh RHi ,
check the below thread and try options mentioned in it
https://www.sdn.sap.com/irj/sdn/thread?threadID=72594
Koti Reddy -
I can't open pages files from USB and iCloud due to : "The necessary file index.xml is missing". Original file is written on iMac (2014) and saved to an USB stick and then transferred till macBook Pro (2009, Yosemite) for editing. Then I shared the files by iCloud but I am not able to open them on iMac again. Niether can I use the USB stick to transfer the edited files back. I'm running Pages '09 4,1 (923) on the macBook and Pges 5.5.2 (2120) on the iMac.
HåkanPages 5.5.2 is extremely incompatible with even other Macs let alone the vast majority of PC and MsWord users out there, so not a good idea to leap into the fire with both eyes shut.
After having done that to the first Pages 5 files, Apple has repeatedly done it to even the most minor point updates. Apple can't even anticipate its own erratic changes let alone what everyone else needs doing.
Peter -
Application: FileNet content SG (Panagon) and MGETDOC(Web application)
Issue: when open a doc, the doc goes to .zip file instead of going to the doc directly. Only this issue happens for .xlsx,docs and pptx document.
Note: On all client machine, we are using office 2007 and IE8 browser
Cause: On 16<sup>th</sup> July 2013, . Net framework 4.5 is install on all our GI-D desktop machines. There after the issue is started .
Application Background: Applications built on .net framework 1.1 and it can support up to 4.0 version on client machine to view the documents through panagon and MGETDOC application. Panagon (Filenet content services) is
not supported in .net framework 4.5 and above.
Work around: After I had troubleshooting and tested with one of our system which has .net framework 4.5, IE8 does not support with HTML5 and tested with IE9 and Chrome, documents were able to open successfully.
I had removed .Net framework 4.5 uninstalled and able to open the documents w/o any issue. And also we had give the work around as if the doc goes to zip file, they open the doc by removing the . zip extension and they can save it as .xlsx or docx file and
they can able to open file.
Please let us know if you there is a fix to export the files through framework 4.5 and do contact us if you need further details, we shall discuss on the same. Thank you for your support. Request you to email @
[email protected]/[email protected]
CandidaPresumably you're using Safari?
You can change that in Safari Preferences (at least in 5.0.3, might be different in 5.1.x)
The checkbox at the bottom will do that for you. However! I strongly advise against permitting that; there have been, and no doubt will be again, malware that uses that to bypass authentication.
Just select Desktop as the default download location so you don't have to dig for the files.
Maybe you are looking for
-
Problem in Creation of Change Master Record in CC01 (ECM)
Hi folks, me got a problem. whenever i create a Change Master Record using the transactuion code cc01, Change Master is generated but it is not updated to the database and instead throws up a dump error. Regards, maximus.
-
Copy & Paste in Photoshop Elements 9
I want to use the heart cookie cutter and cut out just the part of the picture within the heart shape and paste it into a WORD document. How do you do that? I am new to Photoshop Elements. Using help didn't help.
-
Jar_cache files left in temp folder
With my java applet, I notice that my Temp folder fills up with lots of jar_cachexxx files, where xxx is numeric. Running on Windows Vista. Most of these files have a size of 0. The files never seem to be deleted. I've searched the forums, but this d
-
GTM - One Side Trading Contract - error
Hi All, I am trying to set up the system for GTM. I managed to do the config. I assigned pricing procedure VKP003 for a sales area. This is working fine with the two sided contract. However when I try to create a sales trading contract there is no pr
-
Why Does ImageReady.exe Run on My Laptop?
I have the Sattelite L955-S5370 (Windows 8). I noticed that two instances of ImageReady.exe are running as processes. From my research, this is part of Adobe Photoshop. However, neither Photoshop nor Photoshop Express has ever been installed on this