Cardi Eltabet
About
-
Posted Answers
Answer
It also appears that inequities in the social, cultural, historical, economic and political determinants of health, lack of access to nutritionally adequate food and barriers to proper health care play major roles in the diabetes epidemic in indigenous populations.
Answer is posted for the following question.
Answer
Sunshine Tower Hotel
Address: 136 Sheridan St, Cairns City QLD 4870, Australia
Answer is posted for the following question.
Which are the best hotel deals in Cairns, Australia cbd?
Answer
Diamyd Medical AB is dedicated to find a cure for type 1 diabetes: first, the autoimmune inflammation need to be down-regulated with a compound such as for example GABA; second, tolerance need to be ...
Answer is posted for the following question.
What is dmyd stock?
Answer
A unique, moving and dazzlingly researched exploration of the places, people, musicians, writers and filmmakers that inspired David Jones to become David Bowie, what we can learn from his life’s work and journey, and why he will always matter. ...
Answer is posted for the following question.
Why bowie matters will brooker?
Answer
Rank | Betting Site | Bet Now |
---|---|---|
1 | BetUS | Go to Site |
2 | MyBookie | Go to Site |
3 | BetNow | Go to Site |
4 | Bovada | Go to Site |
Answer is posted for the following question.
How to watch greyhound racing online?
Answer
Hi,
I am trying to iterate through the resources inside a page. In my code I am able to get the resource but while iterating i only managed to get the last component inside the page. I need to get each resource and its properties so that I can write a json for each resource. The snippet which i have written is as follows:
protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response) throws IOException
{
response.setContentType("application/json");
response.setCharacterEncoding("utf-8");
resolver = request.getResourceResolver();
session = resolver.adaptTo(Session.class);
gson = new Gson();
gsonwriter = gson.newJsonWriter(response.getWriter());
RequestPathInfo requestPathInfo = request.getRequestPathInfo();
Resource res = request.getResourceResolver().getResource(requestPathInfo.getResourcePath());
Resource res2 = res.getChild("parcontent");
Iterator
{
while(resit.hasNext())
{
Resource res3 = resit.next();
str = res3.getName().toString();
LOG.info("Resource is ::" + res);
ValueMap property = res3.adaptTo(ValueMap.class);
text = property.get("text", String.class);
LOG.info("Property of resource is ::" + text);
props.add(str);
gsonwriter.beginObject();
gsonwriter.name(str).value(text);
gsonwriter.endObject();
}
}
try
{
response.getWriter().println(str1);
response.getWriter().println(text);
}
Answer is posted for the following question.
How to iterate resource in aem?