Questions tagged [webcontent]

34 questions
11
votes
9 answers

How can I get real path for file in my WebContent folder?

I need to get real path for file in my WebContent directory, so that framework that I use can access that file. It only takes String file as attribute, so I need to get the real path to this file in WebContent directory. I use Spring Framework, so…
newbie
  • 24,286
  • 80
  • 201
  • 301
4
votes
1 answer

How to create an 'empty' journal article programmatically in liferay

Using Liferay 6.1 CE, is there an easy way to create an 'empty' journalarticle based on a known structureId ? The following code : ja = JournalArticleLocalServiceUtil.addArticle( themeDisplay.getUserId(), themeDisplay.getScopeGroupId(), …
Alain Dresse
  • 673
  • 8
  • 24
3
votes
2 answers

Which technology is used in a Liferay web content portlet?

In order to create web content, a web content portlet is used. What technology is behind this portlet? What was used to develop this portlet? JSP, JSF, Struts, Icefaces, or any thing else? Moreover, is there a link to download it separately.
Elbassel
  • 444
  • 7
  • 19
3
votes
1 answer

How to use parent CSS from Shadow DOM

I have css from parent application that I want to use inside a web-component made by shadow dom. I don't want to copy css from parent aplication to web-component, but right now, the web-component can't see the parent application css, how can I do…
Cledson Araújo
  • 160
  • 1
  • 9
3
votes
4 answers

Downloading web content with Swift 3

I am trying to download webcontent for a weather app that I am making. When I run the app the source code on the website does not appear on my Xcode. I also updated my info.plist to accept web content. Do you have an idea on what the problem is and…
Perewillz
  • 73
  • 8
3
votes
2 answers

What's the meaning of page and page.body in Capybara

I'm a newbie try to test my Rails project using Capybara, but I'm confused with the meaning of page and page.body, when I try to detect some string from my div: (in :js=>true mode)
"some content"
Some of my test will pass…
林鼎棋
  • 1,995
  • 2
  • 16
  • 25
3
votes
4 answers

Accessing Java class from HTML web app

I have a dynamic web project. In src folder I have Java class with couple of methods. Let us suppose index.html file has two buttons.on click of the button how can I call the Java class. Is there any possibility of doing so?
user3007385
  • 153
  • 4
  • 15
3
votes
1 answer

How to change the permissions of multiple liferay articles

The website I am working on has 600 articles and all of them have the view permission off for guest. Is there any easy way to change the permission for all web content to view for guest users? I really would like to avoid having to manually change…
coltonfranco
  • 147
  • 2
  • 15
2
votes
1 answer

Sort by nested field value in FTL liferay

My Structure created in liferay is as shown below: { "availableLanguageIds": [ "en_US" ], "defaultLanguageId": "en_US", "fields": [ { "label": { "en_US": "Image" }, …
User14141111
  • 355
  • 2
  • 19
2
votes
1 answer

Get user-specific web-content

I would like to ask if there is any Java API call in liferay which returns the web contents, which were uploaded by a specific user. For example, I have one user who has upload some content and I want to show in a portlet this content, how can I do…
fchatzia
  • 45
  • 8
1
vote
1 answer

Unknown error. Website Content Download program

i am trying to download content of website say "http://www.posh24.se/kandisar" and i have checked my program 100s of time but didnot find any solutions. please look into it. i am trying to put all content of website on my Log but i am only getting…
Krish gogar
  • 47
  • 2
  • 6
1
vote
2 answers

Access files stored in a web content folder from an EJB

I have some data files in my WebApplication which I want to read. How can I access them from an EJB? I tried something like this but it didn't work: @Singleton public class Server { public void loadData() { InputStream is = …
1
vote
1 answer

obtain resources relative path in WebContent

I have built a dynamic web project MusicStore in Eclipse, and I want to access an xml file located in WebContent/_res/Songs.xml. The method I used to access it in a regular Java class[not a servlet] is: URL url =…
Will
  • 539
  • 2
  • 8
  • 18
0
votes
1 answer

How to make a web app for android?

I’ve been making android apps for like 4-5 days now. So i’m wondering if you know how I can make a web app? I have been looking through many tutorials, but none shows directly how I can make an app that displays the content from a website, and that…
Espen
  • 9
  • 2
0
votes
1 answer

Create A File in the WebContent Folder From Java

I wanted to know how to create a file in the WebContent folder of a dynamic web project using Java? The basic question remaining is how to get the path of the WebContent folder. Note: No servlet is to be used! Edit: Okay, i am trying to create a new…
yash
  • 189
  • 1
  • 4
  • 14
1
2 3