Web Applications

14K

Solutions

14K

Contributors

Web applications are systems that run in browsers that perform functions normally associated with other client-based programs. One of the most commonly used web applications is email; instead of downloading individual emails to a local machine, the data is shown through a website. Other examples of web applications are collaborative systems like a wiki or an online game.

Share tech news, updates, or what's on your mind.

Sign up to Post

Hi,

I went through https://www.callicoder.com/reactive-rest-apis-spring-webflux-reactive-mongo/ and need clarifications on the below

In previous version we have to specify as below to return the output as Json

@RequestMapping(value = "/getString", method = RequestMethod.GET, produces = "application/json")

How to return the response as Json in new Spring 5 ?

In earlier version we can return a stream directly to the browser to process to the front end. either stream or base64 url. How to return a stream in the current spring 5 version

Where i can find out the syntax differences between spring earlier and spring 5 version

Thanks.
0
CompTIA Security+
LVL 12
CompTIA Security+

Learn the essential functions of CompTIA Security+, which establishes the core knowledge required of any cybersecurity role and leads professionals into intermediate-level cybersecurity jobs.

I am working to create a login prompt and I do not want the browser to offer the remember username and password option for the user. I am using a text box for the username field and a password box for the password field. Anytime I use a password box the browser prompts the option whether to remember username and password or not. I would like my users to type in those information each time they login. Is there any way I could use a text box to accept password and mask the characters in that textbox as a password character so that the browser does not prompt the remember username and password option?
0
Hi , I need an advise .
Do anybody know , what is the most popular architecture for .Net WEB application?
I mean before 2008 I use
ASP.NET 3.5  + Adjust  Toolkit cl [b]- front end ( view)
Typed DataSet  + Busies Logic CS classes middle tier ( model)
Public generic  cs class injected into Code Behind of every page was responsible  for binding / back binding
ASP.NET controls  to Typed Dataset  ( controles)
Public generic  cs class was responsible  to fill out Typed Datset data from SQL Server ( DAL)
Back end is always was SQL Server
Export / Import of the data was always via WEB Services  or sql jobs  which were run  from the last data received identity  (for performance point)
Right now so many Framework.

Do you   how use them  the most optimal way?
I mean what is the best way  to  implement
1)Most  efficient front end
2) Middle Tier with Business logic
3) Data  Access Layer
4) Data Exchange (Export/ Import) with   different clients
 
Please advice
0
why does experts-exchange.com use tracking cookies?
0
Hi experts
I need a site or company to create video or flash to present an application on a seminar
Thanks
0
We are working on an e-commerce application. We are at the point of integrating Elasticsearch for the product search engine with Spring boot application with Spring data. We have tried different tutorials online (check links below) but they all doesn't run well. No indexes are added to the Elasticsearch.  We are using ES 6.3.1 and the maven dependency is as follows.

               
 <dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-data-elasticsearch</artifactId>
		</dependency>

Open in new window


Product Entity

@Entity
@Document(indexName = "product", type="default")
public class Product {

    @javax.persistence.Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long Id;
    private String Name;
    @Lob
    @Type(type = "text")
    private String Description;
    private String ShortDescript;
    private String Model;
    private String Brand;
    private String Sku;
    private String Isbn;
    private Integer Shipping;
    private BigDecimal SalePrice;
    private BigDecimal RegularPrice;
    private Integer Quantity;
    private Double Weight;

//other code here
}

Open in new window


Product Repository

@Repository
public interface ProductRepository extends ElasticsearchCrudRepository<Product, Long> {

    @Query("select p from Product p where p.supplier.id = ?1")
    public Iterable<Product> GetAllProductsBySupplier(Long id);
   
}

Open in new window


We have installed kibana locally and have tested with test data and it works. But not with the Spring Boot application. Need your help. Thanks

1. https://www.baeldung.com/spring-data-elasticsearch-tutorial
2.https://www.mkyong.com/spring-boot/spring-boot-spring-data-elasticsearch-example/
0
I'm able to pass the query parameter successfully to the field however when the item is saved the record is not being saved to the list. What's interesting is that if I manually override the passed value by typing into the field on the form and then clicking save, the record is saved to the list .

We have a working example of this on the same site for a different list that we created about a year ago and does not have this issue.


Original Code Provided when a new form was created for the list in SPD:
<SharePoint:FormField runat="server" id="ff1{$Pos}" ControlMode="New" FieldName="AttachmentsID" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Value','ValueChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@AttachmentsID')}"/>
<SharePoint:FieldDescription runat="server" id="ff1description{$Pos}" FieldName="AttachmentsID" ControlMode="New"/>


Removed the above code and replaced with the following:                                                            
<asp:TextBox runat="server" id="ff1{$Pos}" Name="FileName" Text="{$AttachmentsID}" Value="{@AttachmentsID}" __designer:bind="{ddwrt:DataBind('i',concat('ff1',$Pos),'Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@AttachmentsID')}" Width="100px" Height="20px" BorderWidth="0" />
0
Hi Expert,

I'm getting below Oracle Web-logic application error could anybody please guide me how to fix it!

subsystem is initializing on Server WebWORKS6.>
####<Aug 2, 2018 1:09:38 PM GMT> <Info> <Store> <trpridrps1app6> <WebWORKS6> <[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1533215378092> <BEA-280008> <Opening the persistent file store "WLS_DIAGNOSTICS" for recovery: directory=D:\Manu\IDRPPSA\srvr6\config\JDADomain\servers\WebWORKS6\data\store\diagnostics requestedWritePolicy="Disabled" fileLockingEnabled=true driver="wlfileio3".>
####<Aug 2, 2018 1:09:38 PM GMT> <Critical> <WebLogicServer> <trpridrps1app6> <WebWORKS6> <Main Thread> <<WLS Kernel>> <> <> <1533215378108> <BEA-000386> <Server subsystem failed. Reason: java.lang.NullPointerException
java.lang.NullPointerException
       at weblogic.store.io.file.StoreFile.close(StoreFile.java:440)
       at weblogic.store.io.file.Heap.open(Heap.java:320)
       at weblogic.store.io.file.FileStoreIO.open(FileStoreIO.java:104)
       at weblogic.store.internal.PersistentStoreImpl.recoverStoreConnections(PersistentStoreImpl.java:431)
       at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:422)
       at weblogic.store.xa.PersistentStoreManagerXA.createFileStore(PersistentStoreManagerXA.java:117)
       at weblogic.diagnostics.archive.DiagnosticStoreRepository.getStore(DiagnosticStoreRepository.java:91)
       at …
0
ImageHello Experts,

I have an Article Content Type that I'd like to display all of the Articles, on separate pages based on a Choice Field Item.  Any help on how I can achieve this is very much appreciative.
Using SharePoint 2013 On-Prem.  I don't need help on creating the content type, only on how to get them to display on their own pages that are page-able.  To also include the Title, an image, and part of the Body.
 
0
Hi, After logging into a site I select the page required it then goes through a load process in which several pages appear before the end page completes, however I would like to access the 2nd page that is part of the loading as it has more search facilities. Is there a way to allow me to step page by page through the loading process. If I am quick enough clicking with the mouse I can sometimes access the page but it is very random. I am using Chrome, the same load proces does'nt occur under MS Edge.
0
CompTIA Cloud+
LVL 12
CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Hello!

We have an intranet that's behind a username/password page and one of our biggest struggles is search. We've implemented a basic search tool and it does okay at best. If searching for the word book, it'll return pages with the word book in it. However, it runs into issues when using multiple words, quotations, and does not rank the results for the user. Our intranet is using php and CodeIgniter. I looked around at codecanyon.net for php search engine scripts, but nothing really stuck out to me. Does an expert have a suggestion on what a good search solution might be for an intranet?
0
How to get currency exchange rate in ASP.NET C#  webform .
I've using the following answer but doesn't work.
Expert Exchange Solution

Maybe google currency converter not exist. is there any other way.
aaa.PNG
0
im getting this error message in my ruby on rails blog app and i have no idea why

this is my controller file:

class PostsController < ApplicationController
  def index
    @posts=Post.all.order("created_at DESC")
  end

  def new
    @post=Post.new
  end

  def show
    @post=Post.find(params[:id])
  end

  def create
    @post=Post.new(post_params)
    if @post.save
      redirect_to @post
    else
      render "new"
    end
  end

  def edit
    @post=Post.find(params[:id])
  end

  def update
    @post=Post.find(params[:id])
    if @post.update(params[:post].permit(:title, :body))
      redirect_to @post
    else
      render "edit"
    end
  end

  def destroy
    @post=Post.find(params[:id])
    @post.destroy
    redirect_to posts_path
  end

  private

  def post_params
    params.require(:post).permit(:title, :body)
  end

end

Open in new window


and this is my edit file: (i get the error when trying to delete a post and the link to the destroy path is on my edit page)

<font color="#BD004B">
    <h1 class="smallBorder">Edit Post</h1>
</font>
<br/>
<hr size="10" width="auto" color="#BD004B">

<%=render "form"%>

<ul>
  <li>
    <%=link_to "Delete", posts_path(@post), method: :destroy, data:{confirm:"Are you sure you want to delete this post?"}%>
  </li>
</ul>

Open in new window

0
When I use Google Maps for example, I automatically get the map for the location I am at. There are much more examples like this, where my location is automatically given out to someone else. How can I get more control of this, and in particular be able to completely hide my location for anyone at all times? In Windows, Android and Mac?
0
Dear Experts,

I have an asp.net website that uses identity 2.1 (I'm pretty sure > 2.0 anyways as near as I can tell). It is written in visual basic. I ran into a weird issue the other day where people were logging in and getting this viewstate error:

Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.

So I followed the advice I found in the microsoft article and added a machine key to the web.config file so that no matter what it (hopefully) shouldn't get that error again.

Once the machine key was changed to one that I set now we had issues with anyone with an already existant authorization cookie on their computer, they were unable to login. I believe it's because the machine key that I set no longer matched the one that was used in their cookie. I'm not entirely clear how, but apparently it's part of how it's encrypted. If they clear their cookies, all is well - then they could login.

So one bit of advice I found searching on the web sounded super simple and super-easy. They recommended that you have some sort of set key in your web.config, like a guid or something and then you add it to your cookie also. Then, when you load the cookie, you can check the key and if it doesn't match your server key, somehow you invalidate the cookie.

I basically spent all day trying to figure out …
0
try
            {
                string folder = ConfigurationManager.AppSettings["Path"];
                string readline;
                if (Directory.Exists(folder))
                {
                    using (var sr = new StreamReader(folder))
                    {
                        readline = sr.ReadLine();
                        while (readline != null)
                        {
                            if (Directory.Exists(folder))
                            {
                                //DirectoryInfo d = new DirectoryInfo(folder);
                                foreach (var file in d.GetFiles("*.*"))
                                {
                                    File.Delete(file.FullName);
                                }
                                Logger.DebugFormat("Folder Path : " + folder);

                                foreach (var subDir in new DirectoryInfo(folder).GetDirectories())
                                {
                                    subDir.Delete(true);
                                }
                            }
                        }
                    }
                }
                Logger.DebugFormat("Folder Path : " + folder);
            }
            catch (IOException ex)
            {
                Console.WriteLine(ex.Message);
                return;
            }
0
In my Magento there is an exception message "The requested Payment Method is not available." from Mage_Core_Exception class happening on a few pages:
  • /checkout/onepage/saveShippingMethod/
  • /checkout/onepage/

This is the stacktrace:
stacktrace
The version is Magento CE 1.9.3.3
What is the issue and how to fix this?
0
We have a cloud web application developed in .net MVC c#.now I'm starting​ integrate with sage 50 desktop application. Sage 50 provide an SDK for integration. We have to pass data like create invoice,from my web application. So how to do this process? Which is the best solution? Which technology we use here? Web service and things are recommend from sage support team.but how to use this?

Please advise for this,access desktop application from web.
0
I am migrating a Magento 1 module to be used on the Magento 2 platform.  All of the code has been migrated and produces the expected results but in Magento's technical review process it fails the varnish check.Capture.PNGMy initial research into the issue shows that you should specify cachable=false on your block elements or by setting the _isScopePrivate property in your defined Block PHP file.  The only problem is that I do not have any block elements.

I have created one to try and combat this issue but the module does not require any block elements.  The module works by appending the quote results to a rateResultFactory which is then displayed on the Checkout screen.

I have also tried to use the method described here to try and retrieve any dynamic data without requiring the cacheable flag.

Any help would be tremendously appreciated.

-saige-
0
C++ 11 Fundamentals
LVL 12
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Is it possible to customize the "look and feel", layout, etc for Amazon AWS's SAML Federation Landing Page?

https://signin.aws.amazon.com/saml

When we signin to our company "federation page" it redirects us to "https://signin.aws.amazon.com/saml" (as it should), which displays all of
our AWS accounts/AWS Roles to sign into. However, it's ugly and not really organized/categorized in any way (so you have to always scroll up/down
to find the account you want or do a "Ctrl-F").

I know we can customize our first landing page (company federation landing page), but can we change anything for the redirect/second SAML landing page?
0
how to validate query string parameter  and other body parameters using Fluent Validation in the same web api request.
i know to perform fluent validation for the parameters in the post body  example
https://exceptionnotfound.net/custom-validation-in-asp-net-web-api-with-fluentvalidation/
but i have web API  some thing like
 http://localhost:8087/api/myapicontroller/serachresults?id=123
(its post request with body parameters and also has question tring parameter like ID)
how to validate both questring paramerer and post body using fluent validation.

my api controller is some thing like this,
[HttpPost]
 public IHttpActionResult SearchResults(int id,SearchRequestViewModel searchRequestViewModel)
{
}
i need to validate using fluent validation both "query string" parameter "id" and "SearchRequestViewModel".
is it possible? if so please let me know
0
I have a business client who wants to give his clients the ability to schedule appointments through his website.  He's looking for an easy interface where they can book the day and time based on his availability through either his Outlook365 calendar or his Google calendar.  Can anyone recommend any software (paid or free) that can provide such a service?
0
My organization has its Applicant Tracking System outsourced and is hosted with the vendor. I will give a little idea on the setup. We have intranet portal as well as an external internet website. We have different job search pages for internal applicants (can view internal job postings + external job postings) as well as for external applicants (can only view external job postings).

If we access the internet website from any of the computer (web cache cleared) in the internal network, It loads the proper external job listings page. Then if we open the job listings page from intranet from the same machine, it will also show the proper job listing page for the internal applicants. The strange issue is:  Now if we go back to the external internet website from the same machine and open the job search page again, it opens the internal job listings page (it's not opening the proper external job listings page). Suppose if  the web cache has been cleared and then the external website will  start to show the proper page. Another Issue will arise, If I use the back and forward button on the internal page, it will open the external job listings page (which is strange). No clue why this is happening!.

If someone can help to figure out what could be the cause of this issue, that would be highly appreciated.

Thanks,

Jose
0
There is an exit command line argument in the jvm options which is shown in apache tomcat logs but I cannot find it anywhere in the JVM options of the application

During a tomcat 8 startup the  JVM parameters are shown in the initial startup logs and it appears just above the Xms and Xmx

04-Apr-2018 12:27:21.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xloggc:C:\Tomcat8032\apache-tomcat-8.0.32\logs\gc.log
04-Apr-2018 12:27:21.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:-OmitStackTraceInFastThrow
04-Apr-2018 12:27:21.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit
04-Apr-2018 12:27:21.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms8192m
04-Apr-2018 12:27:21.171 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx8192m

I have seen this as a very common occurrence in almost all tomcat 8 apps and it appears like a tomcat's own setting as we dont have this specified anywhere in the JVM options.

I request you experts to let me know what this option is about and if its possible to remove it from the JVM options.

Our business thinks that this could be one of the reasons for the ongoing issues and I want to prove otherwise. Also I don't see any mention of this setting in apache websites. I am also looking for any apache…
0
Hi,

We have configured a SFB standard demployment with 1 Front End server, one Edge server, and one Proxy for web apps support (We have a Webapp server too)

The issue is, we are unable to get the web apps features working from outside local domain network over the internet.
We assume the problem lies with some DNS, Rev proxy, firewall rules or the topology, but can't figure out where the problem is.
When we run Microsoft Connectivity test, the legacy autodiscover works, that indicates the rev proxy is functional.

The setup is with one WAN ip to edge server, and one WAN ip to Rev proxy.

Is there someone that can explain or help with the correct DNS requirements, Firewall, and Rev proxy configurations for this simple setup?
0

Web Applications

14K

Solutions

14K

Contributors

Web applications are systems that run in browsers that perform functions normally associated with other client-based programs. One of the most commonly used web applications is email; instead of downloading individual emails to a local machine, the data is shown through a website. Other examples of web applications are collaborative systems like a wiki or an online game.